You are missing our premiere tool bar navigation system! Register and use it for FREE!

Author: rotopointPostPosted: Mon Oct 24, 2005 6:23 pm    Post subject:

Thanks! It works!

Author: Admin32Location: GreecePostPosted: Thu Nov 24, 2005 10:24 am    Post subject: Re: Changing Page Title for Content Pages

To extend this information a bit further, I'd like to ask how it would be possible to do the same for any custom made page displayed from phpnuke.

For example, I create my own php file, add the 'include header.php' statement and phpnuke wraps around it nicely. I'd now like to preserve the .php file's 'Title' page, and not have phpnuke override it each time.

How would this be possible ?

Author: Evaders99PostPosted: Thu Nov 24, 2005 10:51 pm    Post subject: Re: Changing Page Title for Content Pages

phpNuke will overwrite the title, because of the theme system used to wrap the code. The only thing supported by default is to add code to it by using the $pagetitle variable

Author: obiwan_24PostPosted: Fri Dec 16, 2005 5:38 am    Post subject:

Cool !
Thanx for the code Cypher_489 !!
It helped me. Another question : is it possible, with the title, to have the category displayed if one has been created for the content ?

Thank you.

Nuke Cops -> Core Chargers

All times are GMT - 8 Hours

Page 1 of 1

Powered by phpBB © 2001,2002 phpBB Group
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 

Author: T00LB0XPostPosted: Mon Oct 17, 2005 5:50 pm    Post subject:

I don't get exactly what you want to do.
Let me translate what you said in my words.
You have a title page of PHP-Nuke.
And, you want to add that title page to contents module pages?

Is that right?

Author: rotopointPostPosted: Tue Oct 18, 2005 10:04 am    Post subject: Re: Changing Page Title for Content Pages

Every Content Page has a Title. For example, I make a content page and name it "My Title".

In Internet Explorer, the title of the page at the top just shows the name of my web site - "ROTOPOINT FANTASY SPORTS".

I want it to work like the news module does. At the top of Internet Exploerer I would like it to say "ROTOPOINT FANTASY SPORTS - My Title" instead of just "ROTOPOINT FANTASY SPORTS"

I hope this makes better sense. Thanks for any assistance.

Author: XyberianLocation: Behind youPostPosted: Tue Oct 18, 2005 10:52 am    Post subject:

Do you want that to appear on the top of web-brower only when you click on Contetns module?

Author: Cypher_489Location: EnglandPostPosted: Mon Oct 24, 2005 8:10 am    Post subject: Re: Changing Page Title for Content Pages

In modules/Content/index.php, change:

Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
· Home
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 266 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Changing Page Title for Content Pages Changing Page Title for Content Pages

Nuke Cops -> Core Chargers

Author: rotopoint PostPosted: Mon Oct 17, 2005 5:16 pm    Post subject: Changing Page Title for Content Pages

I've been trying to figure out how to get the page title of my PHPnuke content pages to include the title of the content page.

I know this has to have been done somwhere else, but my Googling doesn't turn up any help. If there's anybody that knows how to do this, it would be greatly appreciated.
$pagetitle = "- $module_name";


global $prefix, $db;

$sqltitle = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_pages WHERE pid='$pid'"));

$title = $sqltitle['title'];
$pagetitle = "- $title";
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.043 Seconds - 155 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
added by Evaders - DO NOT REMOVE
:: FI Theme :: PHP-Nuke theme by coldblooded ( ::