Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2002
Posts: 17
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 17
How would I go about getting rid of the standard my profile | register | search | faq | forum home and the board name above it so that I could place links for them up in the header or somewhere else???

And also possibly do the same with the » Today's Active Topics « link...

Thanks

Sponsored Links
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
Moderator / Template Diva
Offline
Joined: Mar 2000
Posts: 3,594
They're located in ubb_lib.cgi, search the file for $MainButtons and you can manually remove the links that way.

---Jamin


Don't put that signature in your mouth! You don't know where it's been!
Joined: Jun 2001
Posts: 6
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 6
Ok i tried this and after removing these lines:
========================================================================
if (exists $in{'f'}) {
$this_forum = "&search_forum=$in{f}";
} else {
$this_forum = "";
}

if ($vars_registration{DisplayRegistration} ne 'NO') {
$MyProfileLink = qq($vars_wordlets{profile_link} wink unless $vars_registration{SuspendRegister} eq "true";
}

if ($vars_search{AllowSearch} ne 'FALSE') {
$ifsearchrest = "|";
$SearchLink = qq($vars_wordlets{search_link} ;
}

$MainButtons = qq!
$MyProfileLink $ifmyreg $RegisterLink $ifregsearch $SearchLink $ifsearchrest $vars_wordlets{faq_link} | $vars_wordlets{forum_home_link}
!;
========================================================================
And now the oroginal UBB links are gone smile

The forum title is still there though. How can I remove that?

Thx,

Mike.

[ 01-17-2002 07:48 AM: Message edited by: TeeBee ]

Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
Moderator / Template Diva
Offline
Joined: Mar 2000
Posts: 3,594
You don't have to remove all of that. Actually, you probably shouldn't... Put it back, if you can, and then do this:

Change:
quote:

$MainButtons = qq!
$MyProfileLink $ifmyreg $RegisterLink $ifregsearch $SearchLink $ifsearchrest $vars_wordlets{faq_link} | $vars_wordlets{forum_home_link}
!;



To just
quote:

$MainButtons = qq! !;



to empty the variable contents, but leave the reference intact. In my experience, it's always best to leave variable references intact but just make them empty, because sometimes it can cause errors if you take them out completely.

As for the logo, that will have to be manually removed from each of the public template files. If you've got a program like UltraEdit32, you can do a Replace In Files command, and replace $vars_wordlets{forum_acronym} with a space, or with nothing, and it will remove it. Otherwise just go through and remove that line yourself from all the templates.

---Jamin


Don't put that signature in your mouth! You don't know where it's been!
Joined: Jan 2002
Posts: 17
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 17
I tried your approach Jamin, but it doesnt work. The links are all still there. The only time they arent is when I click on one of the categories...

Sponsored Links
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
Moderator / Template Diva
Offline
Joined: Mar 2000
Posts: 3,594
Did you try clearing your cache?

---Jamin


Don't put that signature in your mouth! You don't know where it's been!
Joined: Jan 2002
Posts: 17
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 17
Oh, the stupidity...the stupid stupidity.

Which Template files are these? Just want to know what im looking for.

Thanks for all the help Jamin

Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
Moderator / Template Diva
Offline
Joined: Mar 2000
Posts: 3,594
Um, I used to have a list, but I don't anymore. It's basically about half of the public_* files - about half of them reference a standard header variable from public_common.pl, and the other half create their own header. So you'll want to do this to public_common.pl and any public_* file that doesn't reference $Standard_Title_Table.

---Jamin


Don't put that signature in your mouth! You don't know where it's been!
Joined: Jan 2002
Posts: 17
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 17
just me being stupid...sorry

Joined: Jan 2002
Posts: 17
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 17
So what is the proper way to do this in version 6.2.1.1? I had it all done and now the Main buttons thing is all different frown

It has some comments in there about them making it easier but I dont know much about CGI...

this is what it looks like now:

sub MainButtonOptions {
my($this_forum, @items);
if (exists $in{'f'}) {
$this_forum = ";search_forum=$in{f}";
} else {
$this_forum = "";
}

# Okay, everyone whining about the main button options being
# hard to add to can now cut it out. :-D

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

Sponsored Links
Joined: May 2002
Posts: 4
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 4
(Nevermind, please delete this message)


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 20240505)