PDA

View Full Version : Browser Title editing


bennac40
April 16th, 2008, 01:25 PM
Once again Chuck, Im seeking your help.

Ok change I want to do is the code that shows the page title on the browser.

The example is like this:
Current Title:

Future Music Festival - {Website Name} - Mozilla

I would love it to become like this :
New Version:

{Website Name} - Future Music Festival - Mozilla


I was able to do this tweak on my vBulletin and here is the code I edited on vBulletin just as an example:


showthread template

$thread[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]

I Changed to :

$vboptions[bbtitle] $thread[title] - <if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if>


This helps alot with search engines since it makes the page title search engine friendly

Chuck S
April 16th, 2008, 03:56 PM
why not just edit the order of things in the printheader function in pp-inc.php like so in line 668


$theader = str_replace( "<head>","<head><title>{$Globals['galleryname']} - {$titlereplace}</title>", $theader );