Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Customization Tutorial Adding a link to the UserCP Menu
Author Message
Mr-Trainor Offline
Member
***

Posts: 243
Joined: Mar 2010
Reputation: 6
Post: #1
Adding a link to the UserCP Menu
Hey all, here's my first ever tutorial :P. I hope you find this useful; it will allow you to add further links to the menu you see on the left hand side of the UserCP page. I've used the Default theme for this tutorial but other themes may be similar if not the same, so you can still use this tutorial :).

1) Go to admincp >> Templates & Style >> Templates >> Expand Templates (on your selected theme) >> User Control Panel Templates

2) Depending on which section you want to add your link, you need to open the template which related to it. I'm adding a link to Miscellaneous so I've clicked Full Edit on usercp_nav_misc

3) now that you have the template open, you need to find the following:
Code:
</tbody>
This will usually be located right at the end.

4) Now, before the code I asked you to locate in step 3, you need to add the following code:
Code:
    <tr><td class="trow1 smalltext"><a href="URLHERE" class="usercp_nav_item usercp_nav_usergroups">TEXTHERE</a></td></tr>

5) Once you've added the code above, you need to edit it. Firstly, replace URLHERE with the location you would like to link to. Secondly, replace TEXTHERE with the text to be displayed on the UserCP Menu. So for example, I might set the link to http://mybbsource.com/ and the text to MyBB Source.

Further Customisation:
- allow the link to open in a new window/tab instead of in the same window
- add a whole new section on the UserCP for the link to go under rather than adding it to a previous section (like I added mine to Miscellaneous)
- change the icon of the new link; with what I have provided it will use the icon of the Memberships link
- if your forum has multiple languages, change the text to the code which will link it to the languages page and get the text from there, depending on the users language
I won't explain any of this now but feel free to reply to this thread asking for assistance with any if this though, and I'll help :D.

And you're done. As I said above though, please note that this is for the Default Theme and there is a possibility that some custom themes will be different. Please also excuse any mistakes, I wrote all this on my iPod Touch :P. If you do notice a mistake though, just reply and I'll edit it :).

Hopefully you found this useful :D.
02-23-2011, 09:31 AM
Find all posts by this user Quote this message in a reply
thnok Offline
Junior Member
**

Posts: 16
Joined: Feb 2011
Reputation: 0
Post: #2
RE: Adding a link to the UserCP Menu
Thanks for the tutorial! 001_smile This will be more than useful for me!! 001_smile
02-24-2011, 12:26 AM
Find all posts by this user Quote this message in a reply
Raikard Offline
Junior Member
**

Posts: 21
Joined: Jan 2011
Reputation: 0
Post: #3
RE: Adding a link to the UserCP Menu
Good! I Like This Wink
02-24-2011, 02:23 AM
Find all posts by this user Quote this message in a reply
Mr-Trainor Offline
Member
***

Posts: 243
Joined: Mar 2010
Reputation: 6
Post: #4
RE: Adding a link to the UserCP Menu
Thanks, glad you like it/found it useful 001_smile.
02-24-2011, 09:40 AM
Find all posts by this user Quote this message in a reply
DinoMGD Offline
Junior Member
**

Posts: 6
Joined: Mar 2011
Reputation: 0
Post: #5
RE: Adding a link to the UserCP Menu
Thanks for the tutorial! 001_smile
03-23-2011, 10:29 AM
Find all posts by this user Quote this message in a reply
junaidpk Offline
Junior Member
**

Posts: 46
Joined: Jul 2011
Reputation: 0
Post: #6
RE: Adding a link to the UserCP Menu
Clear and awesome tutorials
07-07-2011, 05:22 PM
Find all posts by this user Quote this message in a reply
fma965 Offline
Member
***

Posts: 78
Joined: Jul 2011
Reputation: 0
Post: #7
RE: Adding a link to the UserCP Menu
nice tut prob wont use but handy to know
08-01-2011, 05:40 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)