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

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

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

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Title Modifications - Question [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
JackX
Corporal
Corporal


Joined: Feb 12, 2003
Posts: 58

Location: USA

PostPosted: Sun Jun 19, 2005 6:29 pm Reply with quoteBack to top

Hello all,

I have googletap installed and it is working great, but I have a questions that isn't quite related to googletap, but it is related to SE Optimization.

Is there a way to remove the site name prefix in the meta title (the title in the browser top).

For example, when you view a full article it says the following:

Site Name - Article Title

I want it to just say:

Article Title

Any tips would be appreciated. Thanks.
Find all posts by JackXView user's profileSend private message
JackX
Corporal
Corporal


Joined: Feb 12, 2003
Posts: 58

Location: USA

PostPosted: Tue Jun 21, 2005 3:18 pm Reply with quoteBack to top

Anyone have any thoughts on this? Thanks. Very Happy
Find all posts by JackXView user's profileSend private message
shrek_rock
Captain
Captain


Joined: Nov 24, 2003
Posts: 709


PostPosted: Tue Jun 21, 2005 3:57 pm Reply with quoteBack to top

Hi, what you could do is use an if statement to display different titles for the modules. Open header.php and search for

Quote:
function head()


Inside the global place

Quote:
$name


Next search for

Code:
echo "<title>$sitename $pagetitle</title>\n";


Now all you need to do is surround that code with and if statement that if the module name is anything other than the homepage show only the pagetitle for that module so it will look like the following..

Code:
if ($name=='News') {

    echo "<title>$sitename $pagetitle</title>\n";
   }
else {
  echo "<title>$pagetitle</title>\n";
}


The thing to make sure is that $pagetitle is defined in all your modules, if it not just add somewhere close to the top the following

Quote:
$pagetitle = "Article";


I hope this helps Smile.

_________________
Image

Image
Find all posts by shrek_rockView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
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.340 Seconds - 243 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::