Previous Thread
Next Thread
Print Thread
Rate Thread
#174076 03/09/2002 11:15 AM
Joined: Jan 2002
Posts: 167
Member
Member
Offline
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

Sponsored Links
#174077 03/09/2002 11:27 AM
Joined: May 2001
Posts: 197
Member
Member
Offline
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 smile . Don't forget to change the addresse "http://www.enter_addresse_here.com" in the code.

Make backup smile

#174078 03/09/2002 12:36 PM
Joined: Jan 2002
Posts: 167
Member
Member
Offline
Joined: Jan 2002
Posts: 167
Thanx alot smile

#174079 03/09/2002 12:51 PM
Joined: Jan 2002
Posts: 167
Member
Member
Offline
Joined: Jan 2002
Posts: 167
I just tried it and it works thanx alot smile

#174080 03/09/2002 1:19 PM
Joined: May 2001
Posts: 197
Member
Member
Offline
Joined: May 2001
Posts: 197
No probleme smile

Sponsored Links
#174081 03/15/2002 2:21 AM
Joined: Sep 2001
Posts: 5
Junior Member
Junior Member
Offline
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:




Read the rules
Search before you post

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?
confused

#174082 03/15/2002 3:47 AM
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. smile

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. smile


UBB.classic: Love it or hate it, it was mine.
#174083 03/15/2002 1:41 PM
Joined: Jan 2002
Posts: 167
Member
Member
Offline
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.

#174084 03/15/2002 5:45 PM
Joined: Sep 2001
Posts: 5
Junior Member
Junior Member
Offline
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.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)