|
|
Joined: Jan 2002
Posts: 167
Member
|
Member
Joined: Jan 2002
Posts: 167 |
add a link at the top of my boards beside "my profile" , "register" etc as i need to add a membership link and i want a CP link , i know its something to do with ubb_lib.cgi
|
|
|
|
Joined: May 2001
Posts: 197
Member
|
Member
Joined: May 2001
Posts: 197 |
Go in ubb_lib.cgi ##### Find: quote: $vars_wordlets{forum_home_link}
##### After this add: ( this is all on the same line )
quote: | Membership | Control Panel
Not sure the Membership link will work but I know the cp does cause I just tried it . Don't forget to change the addresse "http://www.enter_addresse_here.com" in the code.
Make backup
|
|
|
|
Joined: Jan 2002
Posts: 167
Member
|
Member
Joined: Jan 2002
Posts: 167 |
Thanx alot
|
|
|
|
Joined: Jan 2002
Posts: 167
Member
|
Member
Joined: Jan 2002
Posts: 167 |
I just tried it and it works thanx alot
|
|
|
|
Joined: May 2001
Posts: 197
Member
|
Member
Joined: May 2001
Posts: 197 |
No probleme
|
|
|
|
Joined: Sep 2001
Posts: 5
Junior Member
|
Junior Member
Joined: Sep 2001
Posts: 5 |
I have a similar problem now that I upgraded to v 6.2 from 6.1. I had added two graphics below the “my profile | register | search | faq | forum home” line by modifying the $MainButtonsLine code in ubb_lib.cgi. The original code was: quote:
$MainButtons = qq! $MyProfileLink $ifmyreg $RegisterLink $ifregsearch $SearchLink $ifsearchrest $vars_wordlets{faq_link} | $vars_wordlets{forum_home_link}
And I added this right below it: quote:
But now the code in ubb_lib.cgi is completely different: quote:
if ($vars_registration{DisplayRegistration} ne 'NO') { # My Profile push(@items, qq($vars_wordlets{profile_link}));
if($vars_registration{SuspendRegister} ne "true") { # Register push(@items, qq($vars_wordlets{register_link})); } # end if } # end if
if ($vars_search{AllowSearch} ne 'FALSE') { # Search push(@items, qq($vars_wordlets{search_link})); }
# FAQ push(@items, qq($vars_wordlets{faq_link})); # Forum Home push(@items, qq($vars_wordlets{forum_home_link}));
return join(" | ", @items) } # end MainButtonOptions
I tried 20 different ways of adding my code to the end of this but it crashed my board every time. Anybody have any suggestions as to the proper way to add my buttons to this code?
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
FYI, don't get used to MainButtonLine being in ubb_lib, it moves to public_common in 6.2.2. First things first - do you understand what the new code does? If not, please say so so I can whip up an explanation. Only once you learn what the code is doing can you modify it safely.
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Jan 2002
Posts: 167
Member
|
Member
Joined: Jan 2002
Posts: 167 |
Thats cool that its moving to public_common as I just don't like hacking ubb_lib for some reason as i always get some kind of error when hacking it.
|
|
|
|
Joined: Sep 2001
Posts: 5
Junior Member
|
Junior Member
Joined: Sep 2001
Posts: 5 |
I am afraid I do not know what that code does. I just assumed it is the code for the link bar, but I do not know how it works.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 808
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|