Previous Thread
Next Thread
Print Thread
Rate Thread
#184477 12/22/2005 11:03 PM
Joined: Mar 2001
Posts: 172
G
Gladius Offline OP
Member
OP Offline
Member
G
Joined: Mar 2001
Posts: 172
Not exactly a "new members" question, but probably fits in here best...

Anyway, I'd like to change the titles of the ultimatebb.cgi page and the forum thread listing pages, and I'm having some problems... Namely, I can't seem to find any separation for these sections in public_common.pl, or even for threads themselves. If I add some text to the first title tag in public_common.pl, it'll display that on every single page, from the forum summary, to thread listing and actual posts themselves. I'd like to prevent it from showing on the thread pages, however, since these will generally have long titles already anyway, and the text I'm hacking in wouldn't show whole, so it'd look lame having it there.

In short, is there a way to add some text to the title tags on ultimatebb.cgi and the thread listing pages for forums, and if, how can I do it? Thanks.

Sponsored Links
#184478 12/23/2005 1:56 AM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Offline
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
You have two options.

First, you can alter the calls to generic_wrapper to include a page_title (or page_name...) for each of the pages you wish to modify.

Or second, you can modify generic_wrapper to twiddle with the page title as needed, which'll be a bit more on the complex side.


UBB.classic: Love it or hate it, it was mine.
#184479 12/23/2005 9:51 AM
Joined: Mar 2001
Posts: 172
G
Gladius Offline OP
Member
OP Offline
Member
G
Joined: Mar 2001
Posts: 172
I'm afraid you've lost me there - I'm not that familiar with UBB's code to know where to look for that, or what exactly the page_title/page_name difference is... could you give me some specific instructions here please? Just putting the text in the title of ultimatebb.cgi would already work for me, the forum threads listing pages would just be a bonus. smile

Happy Holidays!

#184480 12/23/2005 11:01 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Offline
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Bah, slacker! wink

generic_wrapper is the name of the sub in public_common that's responsible for the generation of most of the top of the page. "Top of the page" generally means just the actual visible HTML, but it can also set the page title.

Most generic_wrapper calls are in templates. For example, the one for the forum summary is in public_forum_summary. Real shocker there.

page_name and page_title?

page_title is only the title tag.

page_name, if set, is BOTH the title tag AND the name of the page in the breadcrumbs (if no other breadcrumb is specified). The two are often the same... but not always.

Compare the generic_wrapper call on line 20 of public_forum_page with the generic_wrapper call on line 10 of public_forum_summary for varying arguments, etc.


UBB.classic: Love it or hate it, it was mine.
#184481 12/27/2005 12:57 PM
Joined: Mar 2001
Posts: 172
G
Gladius Offline OP
Member
OP Offline
Member
G
Joined: Mar 2001
Posts: 172
I've been away for a few days so I couldn't reply sooner...

Regarding page_title/page_name difference; ok, that makes sense... I'll want to edit page_title then.

However, after comparing those two templates, I still have no idea how to force a certain title for a specific page... There's no such thing done there so I could extrapolate from, as far as I can see.

Sponsored Links
#184482 12/30/2005 1:15 PM
Joined: Mar 2001
Posts: 172
G
Gladius Offline OP
Member
OP Offline
Member
G
Joined: Mar 2001
Posts: 172
Anyone?

#184483 01/02/2006 3:10 PM
Joined: Mar 2001
Posts: 172
G
Gladius Offline OP
Member
OP Offline
Member
G
Joined: Mar 2001
Posts: 172
Pretty please, with a cherry on top?

#184484 01/03/2006 11:14 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Offline
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Mmm, cherries.

If you want to change the title for a page, change the template that generates the page. smile

Yes, it's really that simple. Be sure to clear the cache after each change, of course.


UBB.classic: Love it or hate it, it was mine.
#184485 01/04/2006 7:18 AM
Joined: Mar 2001
Posts: 172
G
Gladius Offline OP
Member
OP Offline
Member
G
Joined: Mar 2001
Posts: 172
Did I mention that I couldn't find a specific template for ultimatebb.cgi to edit? laugh

I've looked everywhere and couldn't find it, so please point me in the right direction...

#184486 01/05/2006 1:32 AM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Offline
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
public_forum_summary. Sorry, too subtle above. smile

(There's no one-to-one correlation for scripts and templates.)


UBB.classic: Love it or hate it, it was mine.
Sponsored Links
#184487 01/08/2006 8:03 PM
Joined: Mar 2001
Posts: 172
G
Gladius Offline OP
Member
OP Offline
Member
G
Joined: Mar 2001
Posts: 172
Ok... so I'm guessing I should be editing this here:

Code
my $hf = &generic_wrapper({
page_title => "",
before_navbar => qq~</font></td><td align="right">
But how exactly? I want to simply insert a chunk of my own text after the existing page title text.

#184488 01/09/2006 11:47 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I believe you'd add it here, wouldn't you?

page_title => "",


- Allen wavey
- What Drives You?
#184489 01/09/2006 7:23 PM
Joined: Jan 2000
Posts: 5,814
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Online Tapedshut
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,814
Likes: 13
page_title => "Gizmo is Bestest!",


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#184490 01/13/2006 7:59 PM
Joined: Mar 2001
Posts: 172
G
Gladius Offline OP
Member
OP Offline
Member
G
Joined: Mar 2001
Posts: 172
Oh.... I assumed that'd change the entire page title (which I don't want). I'll give it a try, thanks.


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
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,556
Posts293,846
Members13,843
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,814
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Gizmo 1
Top Likes Received
isaac 69
Gizmo 13
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20210624)
Responsive Width:

PHP: 7.3.20 Page Time: 0.013s Queries: 42 (0.006s) Memory: 0.8477 MB (Peak: 0.9261 MB) Data Comp: Zlib Server Time: 2021-06-24 09:00:46 UTC
Valid HTML 5 and Valid CSS