PDA

View Full Version : Mini Mods - SEO mod.: remove &order=desc from vbulletin 3.7.x urls


abdobasha2004
09-01-2009, 10:00 PM
This modification I searched a lot about it and posted here in vbulletin.org but nobody seemed to know how.
Until I posted this thread the only forums who have pagination directly without "&order=desc" in forumdisplay urls was my forum (http://www.nmisr.com/vb/) and Digital point forum where I also asked and no body answered.

Since I managed to know how I would like to share:
First : value of this mod. :
1- prevent duplicate content detected in Google webmaster tools.
2- gives single url for each forumdisplay page
3- SEO value : remove Duplicate urls for search engines to determine one url to index
4- higher page rank you might get for right internal linking
5- Internal linking now goes along urls in sitemap generated by vbseo sitemap generator.

Second : How to :
Find Template : :
pagenav
Replace existing code with :
<!-- 100fm6.com SEO -->
<div class="pagenav" align="$stylevar[right]">
<table class="tborder" cellpadding="3" cellspacing="$stylevar[cellspacing]" border="0">
<tr>
<td class="vbmenu_control" style="font-weight:normal"><phrase 1="$pagenumber" 2="$totalpages">$vbphrase[page_x_of_y]</phrase></td>
<if condition="$show['first']"><td class="alt1" nowrap="nowrap"><a class="smallfont" href="$address<if condition="$anchor">#$anchor</if>" title="$vbphrase[first_page] - <phrase 1="$firstnumbers[first]" 2="$firstnumbers[last]" 3="$total">$vbphrase[results_x_to_y_of_z]</phrase>"><strong>&laquo;</strong> $vbphrase[first]</a></td></if>
<if condition="$show['prev']"><td class="alt1"><a class="smallfont" href="$address<if condition="$prevpage != 1">&amp;page=$prevpage</if><if condition="$anchor">#$anchor</if>" title="$vbphrase[prev_page] - <phrase 1="$prevnumbers[first]" 2="$prevnumbers[last]" 3="$total">$vbphrase[results_x_to_y_of_z]</phrase>">&lt;</a></td></if>
$pagenav
<if condition="$show['next']"><td class="alt1"><a class="smallfont" href="$address&amp;page=$nextpage<if condition="$anchor">#$anchor</if>" title="$vbphrase[next_page] - <phrase 1="$nextnumbers[first]" 2="$nextnumbers[last]" 3="$total">$vbphrase[results_x_to_y_of_z]</phrase>">&gt;</a></td></if>
<if condition="$show['last']"><td class="alt1" nowrap="nowrap"><a class="smallfont" href="$address&amp;page=$totalpages<if condition="$anchor">#$anchor</if>" title="$vbphrase[last_page] - <phrase 1="$lastnumbers[first]" 2="$lastnumbers[last]" 3="$total">$vbphrase[results_x_to_y_of_z]</phrase>">$vbphrase[last] <strong>&raquo;</strong></a></td></if>
<if condition="$show['popups']"><td class="vbmenu_control" title="$address"><a name="PageNav"></a></td></if>
</tr>
</table>
</div>
<!-- /100fm6.com SEO -->

Find template :
pagenav_pagelink
Replace existing code with : [UPDATED]
<!-- 100fm6.com SEO -->
<td class="alt1"><a class="smallfont" href="$address<if condition="$curpage != 1">&amp;page=$curpage</if><if condition="$anchor">#$anchor</if>" title="<phrase 1="$pagenumbers[first]" 2="$pagenumbers[last]" 3="$total">$vbphrase[show_results_x_to_y_of_z]</phrase>">$curpage</a></td>
<!-- /100fm6.com SEO -->

Find Template :
pagenav_pagelinkrel
Replace existing code with :
<!-- 100fm6.com SEO -->
<td class="alt1"><a class="smallfont" href="$address<if condition="$curpage != 1">&amp;page=$curpage</if><if condition="$anchor">#$anchor</if>" title="<phrase 1="$pagenumbers[first]" 2="$pagenumbers[last]" 3="$total">$vbphrase[show_results_x_to_y_of_z]</phrase>"><!--$relpage-->$curpage</a></td>
<!-- 100fm6.com SEO -->

thats it
yours
http://www.nmisr.com/ (http://www.nmisr.com/)
If you like this mod do not forget to nominate and mark as installed

lazydesis
09-03-2009, 02:04 AM
will wait for some reviews before i install .. thanks anyways :)

abdobasha2004
09-15-2009, 12:18 AM
you can see some reviews @
https://vborg.vbsupport.ru/showthread.php?t=222313