![]() |
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. |
Ok, for the last step, editing the template, what and where do we exactly edit?
|
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. |
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 |
[QUOTE]Originally posted by freddie
Do it this way and you don't have to edit anything when you upgrade. |
please do!
|
Have done; hack now updated. Many thanks for that.
|
So easy! Thanks very much!
|
ah thank you freddie ;)
|
Parse error: parse error in /home/serioussam/cgi-bin/forums/global.php(328) : eval()'d code on line 10
|
All times are GMT. The time now is 01:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|