The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
I'm logged in to your board... so why is there still a link at the top of your board asking me to "register"?
I'm not logged in... so why is there a link to my "control panel"? This bit of code will remove the pointless links from your forum, leaving it looking neater and using (a bit) less bandwidth. Details: Two template edits, that's all. Demo: http://forums.mediauk.com Use Username: vbulletinorg Password: vbulletinorg so you can see both states. We use text rather than the standard graphics, but you'll find the graphic code enclosed in the hack documentation. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Ok, for the last step, editing the template, what and where do we exactly edit?
|
|
#3
|
||||
|
||||
|
I put something in my phpinclude template like this:
if ($bbuserinfo[userid]) { // user is logged in $pflink = linkto usercp.php } else { $pflink = linkto register.php } I then put $pflink in the header template in place of the buttons that show user cp/register. Do it this way and you don't have to edit anything when you upgrade. |
|
#4
|
||||
|
||||
|
In your header simply
Delete this :- <a href="usercp.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences" border="0"></a> <a href="register.php?s=$session[sessionhash]&action=signup"><img src="{imagesfolder}/top_register.gif" alt="Registration is free!" border="0"></a> And replace it with : $register_or_controlpanel Tried and tested and works fine and the php edit is hardly brain surgery now is it ![]() HM |
|
#5
|
|||
|
|||
|
[QUOTE]Originally posted by freddie
Do it this way and you don't have to edit anything when you upgrade. |
|
#6
|
|||
|
|||
|
please do!
|
|
#7
|
|||
|
|||
|
Have done; hack now updated. Many thanks for that.
|
|
#8
|
|||
|
|||
|
So easy! Thanks very much!
|
|
#9
|
||||
|
||||
|
ah thank you freddie
|
|
#10
|
|||
|
|||
|
Parse error: parse error in /home/serioussam/cgi-bin/forums/global.php(328) : eval()'d code on line 10
|
![]() |
|
|