|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
I doubt if this is in the right forum...so move it if not.
I need to get rid of :
my profile | register | search | faq | forum home |
At the top of my page, so i can put a custom header.
Can someone be kind enough to help me out...PLEASE?
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Check out public_common.pl, sub MainButtonLine
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
thank you!....what do i do, just delete that whole section or what?
I want to be able to still reach those places via buttons on custom header.
As you can tell...i am completly new at all of this.
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
I would just delete "$mainbuttonsline" code from the "Tables" in public_common.pl (at least 4 places). By doing so however, you'll no longer have your main button links unless you were going to hardcode it. For myself I didn't use the "$mainbuttonsline" but I left the "sub MainButtonOptions {" intact.
|
|
|
|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
|
|
|
|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
With what you said...somehting about tables and hard code...if i delete that...would those pages still exist? So like if i have the links as an image in my heade...would they work corectly?r
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
Well, if you delete "$MainButtonsLine" your pages will still exist. Your links: "my profile | register | search | faq | forum home |" will no longer display however. Basically you'll have to manually code it yourself. If you want to replace the word links with image links then do what Charles said by going into your public_common.pl file (noncgi) and look for: sub MainButtonOptions { If you're not familiar with HTML this might get a little tricky. Whatt you will need to do is remove: $vars_wordlets{profile_link} $vars_wordlets{login_link} $vars_wordlets{register_link} $vars_wordlets{directory_link} $vars_wordlets{search_link} $vars_wordlets{faq_link} $vars_wordlets{forum_home_link} which display the word links and replace them with your image code "  " It's important to look at the words in the above codes and you'll see which is for the "my profile", "register", "search", "register", "faq" and "forum home". Example: $vars_wordlets{forum_home_link} = forum home
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Well, if you're looking to remove the |'s check: https://ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=17;t=000967 https://ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=17;t=000930#000000 I ask things in twos  BTW... If you're just looking to get rid of them completely, you'd have to remove the actual lines from the template as described in the above posts. If you're looking for the "Cosmetic Links" (links as images basically) check: https://ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=33;t=000011
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
I thought he was trying to get rid of the | guess I was wrong :x...
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
Initially I thought he wanted to get rid of the entire "MainButtonsLine". His 4th post I got the impression he wanted image links instead of the standard "vars wordlets" links. The Cosmetic Links is a good option in this case.
Then again I could be wrong.
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Can never tell half the time so I included differant options, figured that hopefully one would be correct lol...
|
|
|
|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
Ok....i want to completely get rid of the links and |'s. However, i need the pages that they link to, to still work, because i then want to make a custom header and include links to some of those pages (search, profile, etc).
So i think you guys have explained it good enough. Ill try it out in a while.
Oh...one more thing...... Will one of those ways get rid of the Forum Title above the links too? I This to (of course) will be added to the custom header. If not......how can i do this?
Thanks you guys.
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
#1 question: Yes...The pages will still exist but not the default links to those pages. By removing "$MainButtonsLine" you'll get rid of both links and "|". #2 question: In public_common.pl look for: [/code]and:
</pre></div></div>and look for:<br><br>[code] The "$vars_config{BBName}" is the wordlet for the UBB title.

|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Prime always gets to things before me, and to think, I'm using the XML output to read posts lol... GJ btw... FareWell, I look forward to see your final result  .
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
In 6.5 getting rid of the $mainbuttonsline in standard_title_table and the search version isn't going to help. $mainbuttonsline is in the templates directly. The JCTemplates use standard_title_table but the standard templates don't.
You either have to remove the code from within the $mainbuttonsline definition in public_common.pl or remove $mainbuttonsline from each template.
|
|
|
|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
quote: Originally posted by PrimeTime: #1 question: Yes...The pages will still exist but not the default links to those pages. By removing "$MainButtonsLine" you'll get rid of both links and "|".
#2 question:
In public_common.pl look for:
[/code]and:
</pre></div></div>and look for:<br><br>[code] The "$vars_config{BBName}" is the wordlet for the UBB title.
Ok, i got the links taken out...now i cant seem to figure out how to take out the board title. Im not sure what to do with what you said Prime...i tried deleting the whole sections, or just the wordlet thing that you said...and its still there...........what am i doing wrong?!?!?!??!
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
Umm...What UBB version are you running because X is right about 6.5 version. Can you also take a screenshot of your "board title" so I have a better idea what you are referring to?
|
|
|
|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
running 6.3.1.2.
I mean the text right above the links that i wanted to get rid of...its my board name or title.
|
|
|
|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
How do i take a screen shot?
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
Ahh...I wonder if you deleted part of the image code which also contains "$vars_config{BBName}"?: [/code]Just for the sake of it try deleting the entire code set in "$standard_title_table":
</pre></div></div>If that takes your board name away then this is the code you want to target and delete:<br><br>[code] See if that works. 
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
quote: Originally posted by Farewell: How do i take a screen shot? Press "Print Screen" on your keyboard (on the right of "F12" key then you can copy and paste that to Paint.
|
|
|
|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
Halelujiah! Its Gone.......thank you very much!!!!!!!
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
Don't forget to do that too with the "$search_standard_title_table" in public_common.pl. 
|
|
|
|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
i lied, all the |searc|...etc links are gone on the first page, but they are still there on the right once i go into the forums.
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
On every page (other than the forum summary) or just the forum pages?
|
|
|
|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
just the forum pages....(and opened threads).
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
Hmm...Hehe.
You may need to edit the "$MainButtonsLine" manually in the public_forum_page.pl and public_topic_page.pl files. Then again if you are certain you do not want these links you can just do with Charles and X suggested by going into public_common.pl and edit out the codes in:
[code][/code]
|
|
|
|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
so, just delete all the code in sub MainButtonOptions { ? Does that include deleting sub MainButtonOptions { itself?
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
I guess you could delete everything in between: or these codes as well. I just didn't choose that route in case you decide in the future that you want to use it.
|
|
|
|
Joined: Feb 2003
Posts: 28
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 28 |
|
|
|
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: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|