Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 2.X » General Help for 2.X » What controls the 'User Menu'
What controls the 'User Menu' [message #4457] Wed, 14 July 2010 19:20 Go to next message
the-reactor is currently offline the-reactor  United States
Messages: 28
Registered: July 2010
Leecher
I'm wondering what controls the 'User Menu' that is in the same box as the 'Log In' menu. By default, there is a 'home' icon there and I want to add an upload icon (upload.php) there.

thanks
Re: What controls the 'User Menu' [message #4459 is a reply to message #4457] Wed, 14 July 2010 23:05 Go to previous messageGo to next message
Daffy is currently offline Daffy  France
Messages: 359
Registered: October 2009
Location: uk
Releaser

check your theme main.php, it should be there.

Re: What controls the 'User Menu' [message #4461 is a reply to message #4459] Thu, 15 July 2010 03:06 Go to previous messageGo to next message
the-reactor is currently offline the-reactor  United States
Messages: 28
Registered: July 2010
Leecher
hello,

i looked in that file but couldn't find the code. do you know where in that file?

thanks!
Re: What controls the 'User Menu' [message #4463 is a reply to message #4461] Thu, 15 July 2010 09:25 Go to previous messageGo to next message
Daffy is currently offline Daffy  France
Messages: 359
Registered: October 2009
Location: uk
Releaser

sorry mate, my bad. it is in your blocks/usercp.php

Re: What controls the 'User Menu' [message #4465 is a reply to message #4463] Thu, 15 July 2010 16:33 Go to previous messageGo to next message
the-reactor is currently offline the-reactor  United States
Messages: 28
Registered: July 2010
Leecher
Thanks for pointing me in the right direction. Though, like I said, by default there is a 'home' icon there and I want to add an upload icon (upload.php) there. From looking at the code in blocks/usercp.php I realized that I just needed to turn on uploading for users who are not registered in the PMBT admin settings. After doing that an upload icon was added to the 'User Menu' section on the front page.

thanks again
Re: What controls the 'User Menu' [message #4467 is a reply to message #4465] Thu, 15 July 2010 18:01 Go to previous message
Daffy is currently offline Daffy  France
Messages: 359
Registered: October 2009
Location: uk
Releaser

no problem. are you wanting that icon to show even if not uploader? if so

change
                if ($upload_level == "all") echo "<a href=\"upload.php\">"._bttorrentupload."</a><br />\n";



to

echo "<a href=\"upload.php\">"._bttorrentupload."</a><br />\n";



[Updated on: Thu, 15 July 2010 18:03]

Report message to a moderator

Previous Topic:Removing Statcounter
Next Topic:group colors
Goto Forum:
  


Current Time: Wed Feb 08 06:06:56 GMT 2012

Total time taken to generate the page: 0.00737 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software