Advertising
SEO Tags Mod
This mod is for PHP Fusion 6.01.x.

What does it do?

The default installation displays the name of your site (defined in the admin site settings) on all pages. Before applying the mod this article would have displayed The Webmasters Bureau in the browser title bar, now it reads: SEO Tags Mod - The Webmasters Bureau. Before the modification, the meta keywords and description tags would have been the same on every page. The SEO Tags Mod uses information relating to the page in question.

The SEO Tags Mod makes changes to one file: subheader.php. It also add one file to your installation. You can download the pre modded files as a zip file here.

Step 1: Ensure you backup subheader.php before you proceed.

Step 2: Upload seo_tags_include.php to the includes directory of your installation.

Step 3: Upload the new subheader.php so that it overwrites your existing file.

That's it your done! Check your site to make sure all is working as it should be.

To apply the changes manually:

Step 1: Ensure you backup subheader.php before you proceed.

Step 2: Upload seo_tags_include.php to the includes directory of your installation.

Step 3: Open subheader.php and find:

 if ($settings['maintenance'] == "1" && !iADMINfallback(BASEDIR."maintenance.php");
 if (
iMEMBER$result dbquery("UPDATE ".$db_prefix."users SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'");


Immediately after, add:

 // SEO tags mod
 
require_once INCLUDES."seo_tags_include.php";
 
$seo_tags seo_tags($article_id,$cat_id,$readmore,$forum_id,$thread_id,$db_prefix,$page_id);
 
// END SEO tags mod


Also in subheader.php find:

 <title>".$settings['sitename']."</title>
 <
meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>
 <
meta name='description' content='".$settings['description']."'>
 <
meta name='keywords' content='".$settings['keywords']."'>


and replace with:
 <!-- SEO tags mod -->
   <
title>".$seo_tags['title'].$settings['sitename']."</title>
   <
meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>
   <
meta name='description' content='";
 
 if ($seo_tags['
description']) {
  echo $seo_tags['
description'];
 } else {
  echo $settings['
description'];
 }
 
 echo "'
>
 <
meta name='keywords' content='";
 
 if ($seo_tags['
keywords']) {
  echo $seo_tags['
keywords'];
 } else {
  echo $settings['
keywords'];
 }
 
 echo "'
>
 <!-- 
END SEO tags mod -->


Step 4: Save subheader.php

Step 5: Check your site to make sure all is working as it should be.
Ratings
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 75% [6 Votes]
Very Good Very Good 25% [2 Votes]
Good Good 0% [No Votes]
Average Average 0% [No Votes]
Poor Poor 0% [No Votes]
Cheap Web Hosting
Here at The Webmaster's Bureau we understand the need to maintain the balance between low costs, acceptable levels of service and hosting account features. Whether your requirements are very basic or you need scalable web space with some serious oomph, at £2.99 a month, price is simply not an issue. » Web Hosting Details
Domain Name Search
Search
Login
Navigation
Home
Articles
Downloads
Forum
News
Links
Contact Us
Privacy
FAQ's
Themes (Templates)
Switch to:

More about: Themes...

Latest Downloads
Priamos Web Applicat... 1728
Night City Theme 2236
TWB Mailbox 1715
TWB Web Links 1364
TWB Articles 1721
Latest Articles
robots.txt Protocol
Adsense Placement
Google Sitemaps Expl...
SEO Tags Mod
PHP Fusion Themes (T...
Recent Projects
Auctionfeed
Priamos: Web Solutions
Quit Smoking - STOP!