PDA

View Full Version : Forum Display Enhancements - Remove duplicate content due to &order=desc in forumdisplay pages 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

saadessa
09-02-2009, 06:47 PM
thank you for this mod i will try it thank you

abdobasha2004
09-03-2009, 03:26 AM
any body installed b4 this post must rebuild pagenave_pagelink

Arcade Fire
09-03-2009, 08:55 AM
Thanks!

Michael.A
09-04-2009, 04:32 AM
sound good... "more info well be nice"

saso2.com
09-04-2009, 06:33 AM
thank you

تسلم يا عبووود

abdobasha2004
09-04-2009, 06:57 AM
more info well be nice
any question I will be happy to answer
if You can not understand
visit a forumdisplay page on this forum and another one on my forums
see how paging goes
1 2 3 11 50 > last
and so on
see difference in urls

munnakv
09-06-2009, 03:06 PM
Thanks.
I was looking for something like this.

Installed.

cagbaazee
09-13-2009, 02:38 PM
Any Demo for that.....

mhackl
09-13-2009, 03:09 PM
Very Nice! Excellent mod

abdobasha2004
09-14-2009, 05:44 PM
Any Demo for that
MY forum (http://100fm6.com/vb/) !

rtyagis
11-03-2009, 11:16 AM
I don't see any changes in the url.

abdobasha2004
11-03-2009, 01:20 PM
I don't see any changes in the url.


Do u see &order=desc in urls?
if no
this is good

rtyagis
11-08-2009, 02:23 PM
Thanks for reply.

Tanapangarap
11-15-2009, 02:53 AM
Hi.

Your forum isn't loading for me.

Regards,

Kevin

abdobasha2004
11-15-2009, 02:57 PM
Sorry !
yesterday I had a traffic boom on 100FM6.com, try viewing forum pages now

k-vb
11-15-2009, 05:03 PM
اتمني توضيح شرحك با العربي لأني لاحظت انه مخصص لمحركات البحث وعدم تكرار المواضيع

abdobasha2004
11-15-2009, 05:23 PM
اتمني توضيح شرحك با العربي لأني لاحظت انه مخصص لمحركات البحث وعدم تكرار المواضيع
http://100fm6.com/vb/showthread.php?t=34145

twiztidnati
12-29-2009, 11:19 PM
This mod is great, however, it is not compatible with photo post, I accident lost the original code for pagenav_pagelinkrel can someone post the original please, so that I can replace it.

reepair
07-04-2010, 04:37 PM
Thank You

zako2010
07-17-2010, 08:05 PM
Thanks. nice mod

w-elbalad.com
07-18-2010, 01:18 AM
good work man
check your inbox :)

yahsuah
11-20-2012, 11:25 AM
Thanks for this mod!

kmplex
06-23-2013, 11:15 PM
Didn't do anything..

yahsuah
08-15-2014, 04:49 PM
Thanks!