|
|
#1
| ||||
| ||||
|
vBulletin Photopost SEO SEO Photopost version 5.5 (ajax version) - In the course of my SEO'ing of vBulletin, I get to SEO the associated packages. Make sure that you have the spider friendly url's option on: Settings - Edit options - Global options option: Use Spider-friendly URLs? Issues:
find: Code: <title>{$Globals['galleryname']} - {$titlereplace} - Powered by PhotopostPost
Code: <title>{$titlereplace} - {$Globals['galleryname']}
Code: <!-- end no cache headers -->\n Code: <meta name=description content='See {$titlereplace} on our {$Globals['galleryname']} picture gallery - {$titlereplace}' />
/photopost/pp-inc.php replace: Code: $theader = str_replace( "<head>","<head><title>{$Globals['galleryname']} - {$titlereplace} - Powered by PhotoPost</title>", $theader );
with: Code: $theader = str_replace( "<head>","<head><title>{$titlereplace} - {$Globals['galleryname']}</title>", $theader );
Code: $theader = str_replace( "{ppheader}", "$nocachetag $headtags $javapopup $headslide", $theader);
print "$theader";
Code: $headx="
<meta name=\"description\" content=\"See {$titlereplace} on our {$Globals['galleryname']} gallery. {$titlereplace} - sitename.\" />
$nocachetag
$headtags
$javapopup
$headslide
$ajaxcode";
$theader = str_replace( "{ppheader}",$headx, $theader);
ie /languages/eglish.php from Code: $Globals['pp_lang']['tablehead'] = "Main Index"; Code: $Globals['pp_lang']['tablehead'] = "Your main keyphrase"; Check your pp admin, and delete any meta description from the administration / edit headtags. Add in the following plugin: Code: <?xml version="1.0" encoding="ISO-8859-1"?> <plugins> <plugin active="1" product="vbulletin"> <title>Photopost SEO</title> <hookname>parse_templates</hookname> <phpcode><![CDATA[ if(THIS_SCRIPT=='showphoto' or THIS_SCRIPT=='showgallery' or THIS_SCRIPT=='showmembers' or THIS_SCRIPT=='slideshow' or THIS_SCRIPT=='ppindex' or THIS_SCRIPT=='uploadphoto') $photopost=true; if(THIS_SCRIPT=='showproduct' or THIS_SCRIPT=='showcat' or THIS_SCRIPT=='cpindex') $classifieds=true;]]></phpcode> </plugin> </plugins> and update the headinclude template to be the following: Code: <if condition="THIS_SCRIPT=='member' or $photopost"><else /> Last edited by T2DMan; 18th Feb 07 at 07:08 PM. |
|
#2
| ||||
| ||||
| the /index.php is not needed index.php replace Code: $childnav = "<span class=\"{$Style['small']}\"><a href=\"{$Globals['maindir']}/index.php\">{$Globals['pp_lang']['home']}</a> $childnav</span>";
Code: $childnav = "<span class=\"{$Style['small']}\"><a href=\"{$Globals['maindir']}/\">{$Globals['pp_lang']['home']}</a> $childnav</span>";
find Code: $childnav = "<a href=\"{$Globals['maindir']}/index.php\">{$Globals['pp_lang']['home']} » {$Globals['pp_lang']['persalbums']}";
Code: $childnav = "<a href=\"{$Globals['maindir']}/\">{$Globals['pp_lang']['home']} » {$Globals['pp_lang']['persalbums']}";
find Code: $menu .= "<a href=\"{$Globals['maindir']}/index.php\">{$Globals['pp_lang']['home']}";
Code: $menu .= "<a href=\"{$Globals['maindir']}/\">{$Globals['pp_lang']['home']}";
find Code: <a href=\"{$Globals['maindir']}/index.php\">{$Globals['pp_lang']['retfront']} {$Globals['galleryname']}");
Code: <a href=\"{$Globals['maindir']}/\">{$Globals['pp_lang']['retfront']} {$Globals['galleryname']}");
find: Code: $childnav = "<a href=\"{$Globals['maindir']}/index.php\">{$Globals['pp_lang']['home']}
Code: $childnav = "<a href=\"{$Globals['maindir']}/\">{$Globals['pp_lang']['home']}
find: Code: $childnav = "<a href=\"{$Globals['maindir']}/index.php\">{$Globals['pp_lang']['home']}
Code: $childnav = "<a href=\"{$Globals['maindir']}/\">{$Globals['pp_lang']['home']}
showphoto.php find \ Code: $childnav = "<a href=\"{$Globals['maindir']}/index.php\">{$Globals['pp_lang']['home']}
Code: $childnav = "<a href=\"{$Globals['maindir']}/\">{$Globals['pp_lang']['home']}
pp_inc.php from Code: $conurl = construct_ppurl( "{$Globals['maindir']}/$whoami.php/cat/$cat/page/$p" );
//t2dman seo tweak Code: if($p==1) {
$conurl = construct_ppurl( "{$Globals['maindir']}/$whoami.php/cat/$cat" );
} else {
$conurl = construct_ppurl( "{$Globals['maindir']}/$whoami.php/cat/$cat/page/$p" );
}
Code: $conurl = construct_ppurl( "{$Globals['maindir']}/$whoami.php/cat/$cat/page/1"
Code: $conurl = construct_ppurl( "{$Globals['maindir']}/$whoami.php/cat/$cat/"
Code: $posternav .= "<a href=\"{$Globals['maindir']}/index.php/page/1$extrainfo\">1</a> ... ";
Code: $posternav .= "<a href=\"{$Globals['maindir']}/$extrainfo\">1</a> ... ";
Code: $posternav .= "<a href=\"{$Globals['maindir']}/index.php?page=1$extrainfo\">1</a> ... ";
Code: $posternav .= "<a href=\"{$Globals['maindir']}/?$extrainfo\">1</a> ... ";
Code: $conurl = construct_ppurl( "{$Globals['maindir']}/$whoami.php?cat=$cat&page=1" );
Code: $conurl = construct_ppurl( "{$Globals['maindir']}/$whoami.php?cat=$cat" );
Code: $posternav .= "<a href=\"{$Globals['maindir']}/index.php/page/1$extrainfo\">{$pagenames[1]}</a> ... ";
Code: $posternav .= "<a href=\"{$Globals['maindir']}/$extrainfo\">{$pagenames[1]}</a> ... ";
Code: $posternav .= "<a href=\"{$Globals['maindir']}/index.php?page=1$extrainfo\">{$pagenames[1]}</a> ... ";
Code: $posternav .= "<a href=\"{$Globals['maindir']}/?$extrainfo\">{$pagenames[1]}</a> ... ";
Last edited by T2DMan; 19th Feb 07 at 12:14 PM. |
|
#3
| ||||
| ||||
|
Add the following to your navbar template: replace: Code: <strong>$vboptions[bbtitle]</strong></div> Code: <if condition="THIS_SCRIPT=='ppindex'"><h1 class="h1navbar">Photos</h1>
<div class="navbar2">intr paragraph for the main photo index page</div>
<else />
<if condition="!$photopost"><h1 class="h1navbar">$vboptions[bbtitle]</h1></div></if>
</if></if>
<if condition="$photopost">
{navbar}
<else />
add a closing of </if> at the end of all your navbar intro paragraphs. You need to have added in the plugin noted - that picks for the photopost pages. after the following code on pp-inc.php Code: $theader = str_replace( "{tablewidth}", $Globals['tablewidth'], $theader);
Code: $firstwords="<a href=\"/photopost/\">Pictures</a></div><img class=\"inlineimg\" src=\"./images/misc/navbits_finallink.gif\" border=\"0\" /><h1 class=\"h1navbar\">{$titlereplace}</h1><div class=\"navbar2\">Check out the <b>{$titlereplace}</b> pictures on our '{$Globals['galleryname']}' gallery. domain.com is a world leading website on all things xxx. <i>{$titlereplace}</i> pictures on domain.com.</div>";
$theader = str_replace( "{navbar}", $firstwords, $theader);
Last edited by T2DMan; 26th Sep 06 at 11:32 PM. |
|
#4
| ||||
| ||||
| header include template add at the start of the template: Code: <if condition="THIS_SCRIPT=='ppindex"> <meta name="description" content="156 characters with the search phrase mentioned twice with a sales pitch for the site." /> If you have vbulletin header integration for your photopost and reviewpost, then you need to correct the paths for a number of items. header include template add the forum pathname appropriate to your forum - ie, I added /forums/ for one client: Code: <script type="text/javascript" src="/forums/clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script> <if condition="$show['popups']"><script type="text/javascript" src="/forums/clientscript/vbulletin_menu.js?v=$vboptions[simpleversion]"></script></if> <if condition="$vboptions['externalrss']"> <link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="/forums/external.php?type=RSS2" /> <if condition="$show['foruminfo'] OR $show['threadinfo']"> <link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="/forums/external.php?type=RSS2&forumids=$foruminfo[forumid]" /> Delete the $cronimage, and replace with the following: Code: <if condition="!$photopost and !$classifieds">$cronimage</if> Last edited by T2DMan; 20th Feb 07 at 03:03 AM. |
|
#5
| ||||
| ||||
|
The best way of doing seo photopost, is to give cookies for each variation of view. The url's can then be the single url, but the view can be of "recent" photos etc based on the cookie set for the last categorisation. If the link was to the proper url, and then an "onclick" to the variation, that would be another idea. The onclick could set the cookie, then redirect to the proper url. However, adding rel=nofollows is one quick fix for the situation. add rel=nofollows as follows: slideshow.php Code: $slidecode = "<a rel=\"nofollow\" href=\"$slidestop\">{$Globals['pp_lang']['stop']}</a>";
templates/vb3enhanced/membhead.tmpl Code: <span class="{$Style['medium']}"><a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['a']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['a']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['b']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['b']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['c']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['c']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['d']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['d']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['e']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['e']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['f']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['f']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['g']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['g']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['h']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['h']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['i']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['i']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['j']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['j']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['k']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['k']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['l']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['l']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['m']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['m']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['n']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['n']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['o']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['o']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['p']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['p']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['q']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['q']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['r']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['r']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['s']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['s']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['t']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['t']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['u']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['u']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['v']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['v']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['w']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['w']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['x']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['x']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['y']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['y']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['z']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['z']}</a><br />
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['0']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['0']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['1']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['1']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['2']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['2']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['3']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['3']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['4']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['4']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['5']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['5']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['6']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['6']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['7']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['7']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['8']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['8']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?sl={$Globals['pp_lang']['9']}&cat=$cat&limit=$limit">{$Globals['pp_lang']['9']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showmembers.php?cat=$cat&limit=$limit">All</a></span>
Code: <a rel="nofollow" href="{$Globals['maindir']}/showgallery.php?limit=last7&cat=$cat">{$Globals['pp_lang']['last7']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showgallery.php?limit=last14&cat=$cat">{$Globals['pp_lang']['last14']}</a>
<a rel="nofollow" href="{$Globals['maindir']}/showgallery.php?limit=all&cat=$cat">{$Globals['pp_lang']['allimages']}</a>
add in the rel=nofollow Code: $regtext = " · <a rel=\"nofollow\" href=\"{$Globals['vbulletin']}/register.php?action=signup\">{$Globals['pp_lang']['register']}</a>";
Code: $menu .= " · <a rel=\"nofollow\" href=\"{$Globals['maindir']}/search.php\">{$Globals['pp_lang']['search']}</a>";
There are so many more. Just hard to know what is worth it. The recent photos are great for Google being able to find them quickly, but are not their long term url. Last edited by T2DMan; 19th Oct 06 at 07:39 AM. |
|
#6
| ||||
| ||||
|
If you use the inc_features.php file, adn want the images to have alt tags of the titles of the images... find the following - 3 of: Code: $query = "SELECT p.id,p.user change to: Code: $query = "SELECT p.title,p.id,p.user find the following: Code: while (list($pid,$puser Code: while (list($title,$pid,$puser Code: $mthumb = "<img src=\"{$url_path}/images/overlay-roundp.gif\" height=\"105\" width=\"81\" border=\"0\" alt=\"\" />";
Code: $mthumb = "<img src=\"{$url_path}/images/overlay-roundp.gif\" height=\"105\" width=\"81\" border=\"0\" alt=\"$title\" />";
Code: $mthumb = "<img src=\"{$url_path}/images/overlay-round.gif\" height=\"81\" width=\"105\" border=\"0\" alt=\"\" />";
Code: $mthumb = "<img src=\"{$url_path}/images/overlay-round.gif\" height=\"81\" width=\"105\" border=\"0\" alt=\"$title\" />";
|
|
#7
| ||||
| ||||
|
Go through all the code on the file search for Code: $imgdisp = "<img src Code: alt=\"$title\" |
|
#8
| ||||
| ||||
|
pp-inc.php file find - Code: function get_imagethumb( $bigimage, $thecat, $theuser, $approved, $nocache=0, $avatar=0, $thumbw=0, $thumbh=0) Code: function get_imagethumb( $bigimage, $thecat, $theuser, $approved, $nocache=0, $avatar=0, $thumbw=0, $thumbh=0,$title="" ) Code: $imgtag = "<img border=\"0\" src=\"{$Globals['idir']}/ipending.gif\" alt=\"\" />";
Code: $imgtag = "<img border=\"0\" src=\"{$Globals['idir']}/ipending.gif\" alt=\"$title\" />";
Code: $imgtag = "<img border=\"0\" $imgsize src=\"$fileurl$rand\" alt=\"\" />"; Code: $imgtag = "<img border=\"0\" $imgsize src=\"$fileurl$rand\" alt=\"$title\" />"; Code: $imgtag = "<img border=\"0\" $imgsize src=\"$fileurl2$rand\" alt=\"\" />"; Code: $imgtag = "<img border=\"0\" $imgsize src=\"$fileurl2$rand\" alt=\"$title\" />"; Code: $pimgtag[$count] = get_imagethumb( $features['bigimage'], $features['cat'], $features['userid'], 1); Code: $pimgtag[$count] = get_imagethumb( $features['bigimage'], $features['cat'], $features['userid'], 1, 0, 0, 0, 0, $features['title']);
__________________ Michael Brandon T2DMan Please register as a user and send a PM to contact me. Instant messaging options on my profile. Diners - Book Auckland Restaurants online, special deals, photos full menus and wine lists. Restaurants - Listing Details - Open to restaurants nationwide New Zealand - get a full listing on Time2Dine |
|
#9
| |||
| |||
|
Hi T2DMan! I'm ambitiously attempting to follow your photopost tutorial. I can't find photopost/admin-inc.php, however, I found the title string in adm-inc.php and replaced it, but no update has occured on the site. Please help! Cheers... |
|
#10
| |||
| |||
|
Progress... I'm up to this point: $theader = str_replace( "<head>","<head><title>{$titlereplace} - {$Globals['galleryname']}</title>", $theader ); I've added that to pp-inc.php Now, I get: Quote:
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Zen Cart SEO | T2DMan | osCommerce SEO | 7 | 12th Nov 10 07:56 PM |
| LOOKING FOR ADVICE ON SEO vBULLENTIN | MadRhino | SEO vBulletin | 2 | 30th Oct 06 03:36 PM |
| Reviewpost SEO | T2DMan | SEO vBulletin | 1 | 19th Jan 06 10:44 PM |
| Clients fail to follow SEO recommendations | T2DMan | 0 | 7th Oct 05 06:10 AM | |
| SEO vBulletin | T2DMan | SEO vBulletin | 0 | 15th Feb 05 02:33 PM |