Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jul 2006
Posts: 116
Likes: 4
P
Member
Member
P Offline
Joined: Jul 2006
Posts: 116
Likes: 4
I post this under bugs because search engine friendly URLs is one of the standard features. Unfortunately, the current version of UBB.threads 7.0 has some serious SEO issues.

Issue #1: Double content
UBB.threads is generating too much links to the same pages, which result in double content. Here an example with 6 links to the same page:

https://www.ubbcentral.com/version7/ubbthreads.php/ubb/showflat/Number/2011/an/0/page/1#Post2011
https://www.ubbcentral.com/version7/ubbthreads.php/ubb/showflat/Number/2011#Post2011
https://www.ubbcentral.com/version7/ubbthreads.php/ubb/showflat/Number/2012#Post2012
https://www.ubbcentral.com/version7/ubbthreads.php/ubb/showflat/Number/2014#Post2014
https://www.ubbcentral.com/version7/ubbthreads.php/ubb/showflat/Number/2017#Post2017
https://www.ubbcentral.com/version7/ubbthreads.php/ubb/showflat/Number/2018#Post2018

Search engines such as Google would indexing all 6 links as pages and may penetrate the site in question for double content.

Issue #2: Links to non content pages
There are many links to non-content pages like new topic, send PM or the profile page. This could be easily fixed by using the rel="nofollow" parameter.

Here an example based on the showflat.tpl:

Code
 <div id="options_popup" style="display: none;"><table class="popup_menu">                                                                                                                                                         
{if $closed != 1 && $reply == "on"}                                                                                                                                                                                               
<tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&amp;Number={$first_post}" rel="nofollow">{$lang.NEW_REPLY}</a></td></tr>                                                               
{/if}                                                                                                                                                                                                                             
{if $reply == "on"}                                                                                                                                                                                                               
<tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&amp;Board={$Board}" rel="nofollow">{$lang.NEW_TOPIC}</a></td></tr>                                                                      
{/if} 

With this small modification, search engines will no longer trying to index the post or reply pages.

Last edited by Rick; 08/03/2006 12:25 PM.
Philipp #2043 07/30/2006 10:29 AM
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
The first issue is because the forum is also threaded, so links to individual posts are a feature, not a bug smile


- Allen
- ThreadsDev | PraiseCafe
#2044 07/30/2006 11:01 AM
Joined: Jul 2006
Posts: 116
Likes: 4
P
Member
Member
P Offline
Joined: Jul 2006
Posts: 116
Likes: 4
Actually, it has nothing to do with the threaded mode; this issue is in the flat mode wink . After playing a little more with the templates, I saw that this could be easily fixed by changing the following line in Showflat.tpl:

Code
<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}{$postrow[post].Number}#Post{$postrow[post].Number}"><img border="0" src="{$config.BASE_URL}/images/{$style_array.icons}/{$postrow[post].Icon}" {$images.icons} alt="" /></a>

to:

Code
<a href="#Post{$postrow[post].Number}"><img border="0" src="{$config.BASE_URL}/images/{$style_array.icons}/{$postrow[post].Icon}" {$images.icons} alt="" /></a>

Philipp #2045 07/30/2006 11:18 AM
Joined: Jun 2006
Posts: 106
member
member
Joined: Jun 2006
Posts: 106
Issue #1 is definitely a problem. Double content can get your site removed from Google!

Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
hmm.. I don't quite see it as such an issue, there's been links like that in both threads and classic for years, but I guess if your site lives and dies on google position...


- Allen
- ThreadsDev | PraiseCafe
#2047 07/30/2006 3:56 PM
Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
If you rely on Google for your traffic (like a lot of sites do) then you do live or die by their ever-changing standards wink...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Philipp #2049 07/30/2006 4:40 PM
Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
Originally Posted by Philipp
There are many links to non-content pages like new topic, send PM or the profile page. This could be easily fixed by using the rel="nofollow" parameter.

Sounds to me as an good idea. Spiders must not follow these links.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Philipp #2050 07/30/2006 4:51 PM
Joined: Jul 2006
Posts: 116
Likes: 4
P
Member
Member
P Offline
Joined: Jul 2006
Posts: 116
Likes: 4
Well, I was going through the main scripts/templates in the meantime and optimized them for search engines. Theoretically, search engines should index the pages much better with all those changes.

Here is what I have done so far:

scripts/cfrm.inc.php

Replace:
Code
 $lastpost = "<img src=\"{$config['BASE_URL']}/images/{$style_array['icons']}/$Icon\" alt=\"*\" /> <a href=\"{$config['FULL_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}$linker{$var_sep}Number{$var_eq}$lastnumber{$var_sep}Main{$var_eq}$lastmain{$var_extra}#Post$lastnumber\"> $Subject</a>";

with:
Code
 $lastpost = "<img src=\"{$config['BASE_URL']}/images/{$style_array['icons']}/$Icon\" alt=\"*\" /> <a href=\"{$config['FULL_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}$linker{$var_sep}Number{$var_eq}$lastnumber{$var_sep}Main{$var_eq}$lastmain{$var_extra}#Post$lastnumber\" rel=\"nofollow\"> $Subject</a>";

templates/default/cfrm.inc.php

Replace:

Code
 <a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}postlist{$var_sep}Board{$var_eq}{$forum[cats][fora].Keyword}">

with:

Code
 <a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}postlist{$var_sep}Board{$var_eq}{$forum[cats][fora].Keyword}{$var_sep}page{$var_eq}1">

scripts/postlist.inc.php

Replace:

Code
 			
			$midprint = "";
			if ($pages !=1) {
				$pageprint = " <br /><span class=\"small\">( <img style=\"vertical-align: middle;\" src=\"{$config['BASE_URL']}/images/{$style_array['general']}/page.gif\" alt=\"\" title=\"\" /> ";
				for ($prints = 1; $prints < ($pages + 1 ); $prints++) {
					if ($pages > 9) {
						if ( ($prints < 5) || ($prints > ($pages - 2) ) ) {
							$pageprint .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}$Post_ID{$var_sep}Board{$var_eq}$Board{$var_sep}page{$var_eq}$page{$var_sep}fpart{$var_eq}$prints\">$prints</a> ";
						}
						else {
							if (!$midprint) {
								$half = ($pages +1) / 2;
								@list($plink,$extra) = @split("\.",$half);
								$pageprint .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Post_ID{$var_eq}$Number{$var_sep}Board{$var_eq}$Board{$var_sep}page{$var_eq}$plink{$var_sep}fpart{$var_eq}$prints\">...</a> ";
								$midprint = 1;
							}
						}
					}
					else {
						$pageprint .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}$Post_ID{$var_sep}Board{$var_eq}$Board{$var_sep}page{$var_eq}$page{$var_sep}fpart{$var_eq}$prints\">$prints</a> ";
					}
				}
				$pageprint .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}$Post_ID{$var_sep}Board{$var_eq}$Board{$var_sep}page{$var_eq}$page{$var_sep}fpart{$var_eq}all{$var_sep}gonew{$var_eq}1#UNREAD\">{$ubbt_lang['TEXT_ALL']}</a> )</span>";
			}

with:

Code
 		$midprint = "";
			if ($pages !=1) {
				$pageprint = " <br /><span class=\"small\">( <img style=\"vertical-align: middle;\" src=\"{$config['BASE_URL']}/images/{$style_array['general']}/page.gif\" alt=\"\" title=\"\" /> ";
				for ($prints = 1; $prints < ($pages + 1 ); $prints++) {
					if ($pages > 9) {
						if ( ($prints < 5) || ($prints > ($pages - 2) ) ) {
							$pageprint .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}$Post_ID{$var_sep}page{$var_eq}$page{$var_sep}fpart{$var_eq}$prints\">$prints</a> ";
						}
						else {
							if (!$midprint) {
								$half = ($pages +1) / 2;
								@list($plink,$extra) = @split("\.",$half);
								$pageprint .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Post_ID{$var_eq}$Number{$var_sep}page{$var_eq}$plink{$var_sep}fpart{$var_eq}$prints\">...</a> ";
								$midprint = 1;
							}
						}
					}
					else {
						$pageprint .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}$Post_ID{$var_sep}page{$var_eq}$page{$var_sep}fpart{$var_eq}$prints\">$prints</a> ";
					}
				}
				$pageprint .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}$Post_ID{$var_sep}Board{$var_eq}$Board{$var_sep}page{$var_eq}$page{$var_sep}fpart{$var_eq}all{$var_sep}gonew{$var_eq}1#UNREAD\" rel=\"nofollow\">{$ubbt_lang['TEXT_ALL']}</a> )</span>";
			}

and:

Code
 		$Username = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$posterid\">$PUsername</a>";

with:

Code
		$Username = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$posterid\" rel=\"nofollow\">$PUsername</a>";

and:

Code
 			$modlist .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$modarray[$i]\">{$moderator[$modarray[$i]]}</a>";

with:

Code
 			$modlist .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$modarray[$i]\" rel=\"nofollow\">{$moderator[$modarray[$i]]}</a>";

templates/default/postlist.tpl

Replace:

Code
 <a style="text-decoration: none;" href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&amp;Board={$Board}">

with:

Code
 <a style="text-decoration: none;" href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&amp;Board={$Board}" rel="nofollow">

and:

Code
 <a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}{$mode}{$var_sep}Number{$var_eq}{$postrow[topic].Number}{$var_sep}an{$var_eq}{$postrow[topic].announce}{$var_sep}page{$var_eq}{$page}{$postrow[topic].goto}">{$postrow[topic].Subject}</a>

with:

Code
 {if $postrow[topic].announce}
<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}{$mode}{$var_sep}Number{$var_eq}{$postrow[topic].Number}{$var_sep}an{$var_eq}{$postrow[topic].announce}{$var_sep}page{$var_eq}{$page}{$postrow[topic].goto}">{$postrow[topic].Subject}</a>
{else}
<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}{$mode}{$var_sep}Number{$var_eq}{$postrow[topic].Number}{$var_sep}page{$var_eq}{$page}{$postrow[topic].goto}">{$postrow[topic].Subject}</a>
{/if}

and:

Code
 <a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}{$mode}{$var_sep}Number{$var_eq}{$postrow[topic].lastpostid}#Post{$postrow[topic].lastpostid}">{$postrow[topic].time}</a>
<br />
{$lang.TEXT_BY} 
{if $postrow[topic].lastposterid != 1}
<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showprofile{$var_sep}User{$var_eq}{$postrow[topic].lastposterid}">{$postrow[topic].lastpostername}</a>

with:

Code
 <a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}{$mode}{$var_sep}Number{$var_eq}{$postrow[topic].lastpostid}#Post{$postrow[topic].lastpostid}" rel="nofollow">{$postrow[topic].time}</a>
<br />
{$lang.TEXT_BY} 
{if $postrow[topic].lastposterid != 1}
<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showprofile{$var_sep}User{$var_eq}{$postrow[topic].lastposterid}" rel="nofollow">{$postrow[topic].lastpostername}</a>

and:

Code
 {if $newtopic == 1}
 
<a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&amp;Board={$Board}">
{/if}

with:

Code
 {if $newtopic == 1}
 
<a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&amp;Board={$Board}" rel="nofollow">
{/if}

scripts/showflat.inc.php

Replace:

Code
 			$modlist .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$modarray[$i]\">{$moderator[$modarray[$i]]}</a>";

with:

Code
 			$modlist .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$modarray[$i]\" rel=\"nofollow\">{$moderator[$modarray[$i]]}</a>";

and:

Code
 		$prevlinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}grabnext{$var_sep}Board{$var_eq}$Board{$var_sep}mode{$var_eq}showflat{$var_sep}sticky{$var_eq}$issticky{$var_sep}dir{$var_eq}new{$var_sep}posted{$var_eq}$posted{$var_sep}page{$var_eq}$page\">";
		$prevlinkstop = "</a>";

		$linktext = $ubbt_lang['INDEX_ICON'];
		$alttext = $ubbt_lang['ALL_THREADS'];

		$nextlinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}grabnext{$var_sep}Board{$var_eq}$Board{$var_sep}mode{$var_eq}showflat{$var_sep}sticky{$var_eq}$issticky{$var_sep}dir{$var_eq}old{$var_sep}posted{$var_eq}$posted{$var_sep}page{$var_eq}$page\">";

with:

Code
 		$prevlinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}grabnext{$var_sep}Board{$var_eq}$Board{$var_sep}mode{$var_eq}showflat{$var_sep}sticky{$var_eq}$issticky{$var_sep}dir{$var_eq}new{$var_sep}posted{$var_eq}$posted{$var_sep}page{$var_eq}$page\" rel=\"nofollow\">";
		$prevlinkstop = "</a>";

		$linktext = $ubbt_lang['INDEX_ICON'];
		$alttext = $ubbt_lang['ALL_THREADS'];

		$nextlinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}grabnext{$var_sep}Board{$var_eq}$Board{$var_sep}mode{$var_eq}showflat{$var_sep}sticky{$var_eq}$issticky{$var_sep}dir{$var_eq}old{$var_sep}posted{$var_eq}$posted{$var_sep}page{$var_eq}$page\" rel=\"nofollow\">";

and:

Code
 			$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$usernum\">{$ubbt_lang['VIEW_PROFILE']}</a></td></tr>";
			if ($accept_pm) {
				$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=sendprivate&amp;User=$usernum\">{$ubbt_lang['SEND_PM']}</a></td></tr>";
			} // end if
			if ($homepage) {
				$homepage = "http://$homepage";
				$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"$homepage\" target=\"_blank\">{$ubbt_lang['VIEW_HOME']}</a></td></tr>";
			} // end if		
			$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=addfavuser&amp;User=$usernum&amp;n=$Number&amp;p=$page&amp;f=$fpart\">$watch_text</a></td></tr>";
			$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=dosearch&amp;Forum=All_Forums&amp;Name=$usernum&amp;Limit=25&amp;fromprof=1&amp;fromsearch=1\">{$ubbt_lang['VIEW_POSTS']}</a></td></tr>";

with:

Code
 			$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$usernum\" rel=\"nofollow\">{$ubbt_lang['VIEW_PROFILE']}</a></td></tr>";
			if ($accept_pm) {
				$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=sendprivate&amp;User=$usernum\" rel=\"nofollow\">{$ubbt_lang['SEND_PM']}</a></td></tr>";
			} // end if
			if ($homepage) {
				$homepage = "http://$homepage";
				$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"$homepage\" target=\"_blank\">{$ubbt_lang['VIEW_HOME']}</a></td></tr>";
			} // end if		
			$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=addfavuser&amp;User=$usernum&amp;n=$Number&amp;p=$page&amp;f=$fpart\" rel=\"nofollow\">$watch_text</a></td></tr>";
			$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=dosearch&amp;Forum=All_Forums&amp;Name=$usernum&amp;Limit=25&amp;fromprof=1&amp;fromsearch=1\" rel=\"nofollow\">{$ubbt_lang['VIEW_POSTS']}</a></td></tr>";

and:

Code
 			$postrow[$i]['replylinkstart'] = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;what=showflat&amp;fpart=$fpart\">";
			$postrow[$i]['replylinkstop'] = "</a>";

			$postrow[$i]['quotelinkstart'] = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;what=showflat&amp;fpart=$fpart&amp;q=1\">";

with:

Code
 			$postrow[$i]['replylinkstart'] = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;what=showflat&amp;fpart=$fpart\" rel=\"nofollow\">";
			$postrow[$i]['replylinkstop'] = "</a>";

			$postrow[$i]['quotelinkstart'] = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;what=showflat&amp;fpart=$fpart&amp;q=1\" rel=\"nofollow\">";

and:

Code
 				<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=mailthread&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;fpart=$fpart&amp;what=showflat\">";
			}
			$postrow[$i]['notifylinkstart'] = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=notifymod&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;fpart=$fpart&amp;what=showflat\”>";

with:

Code
 				<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=mailthread&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;fpart=$fpart&amp;what=showflat\" rel=\"nofollow\">
				";
			}
			$postrow[$i]['notifylinkstart'] = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=notifymod&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;fpart=$fpart&amp;what=showflat\" rel=\"nofollow\">";

and:

Code
 			$postrow[$rownum]['replyto'] = "[Re: <a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}{$postrow[$rownum]['ParentPost']}{$var_sep}page{$var_eq}$page#Post{$postrow[$rownum]['ParentPost']}\" target=\"_new\" title=\"[Re: #{$postrow[$rownum]['ParentPost']}]\" alt=\"[Re: #{$postrow[$rownum]['ParentPost']}]\"> {$parentarray[$rowparent]}</a>]";

with:

Code
 			$postrow[$rownum]['replyto'] = "[Re: <a href=\"$page#Post{$postrow[$rownum]['ParentPost']}\" target=\"_new\" title=\"[Re: #{$postrow[$rownum]['ParentPost']}]\" alt=\"[Re: #{$postrow[$rownum]['ParentPost']}]\"> {$parentarray[$rowparent]}</a>]";

and:

Code
 		<span class="small"><a href="$newlink">{$ubbt_lang['JUMP_UNREAD']}</a></span>

with:

Code
 		<span class="small"><a href="$newlink" rel="nofollow">{$ubbt_lang['JUMP_UNREAD']}</a></span>

templates/default/showflat.tpl

Replace:

Code
 <a style="text-decoration: none;" href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&amp;Number={$first_post}">

with:

Code
 <a style="text-decoration: none;" href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&amp;Number={$first_post}" rel="nofollow">

and:

Code
 <a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}{$postrow[post].Number}#Post{$postrow[post].Number}"><img border="0" src="{$config.BASE_URL}/images/{$style_array.icons}/{$postrow[post].Icon}" {$images.icons} alt="" /></a>

with:

Code
 <a href="#Post{$postrow[post].Number}"><img border="0" src="{$config.BASE_URL}/images/{$style_array.icons}/{$postrow[post].Icon}" {$images.icons} alt="" /></a>

and:

Code
 <tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&amp;Number={$first_post}">{$lang.NEW_REPLY}</a></td></tr>
{/if}
{if $reply == "on"}
<tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&amp;Board={$Board}">{$lang.NEW_TOPIC}</a></td></tr>
{/if}
{$addfavoption}
<tr><td class="popup_menu_content"><a target="_blank" href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}printthread{$var_sep}Board{$var_eq}{$Board}{$var_sep}main{$var_eq}{$current}{$var_sep}type{$var_eq}thread">{$lang.PRINT_THREAD}</a></td></tr>
{if $config.TOPIC_DISPLAY_OPTIONS == "both" }
<tr><td class="popup_menu_content">
<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showthreaded{$var_sep}Number{$var_eq}{$threadnumber}{$var_sep}an{$var_eq}{$an}{$var_sep}page{$var_eq}{$page}">

with:

Code
 <tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&amp;Number={$first_post}" rel="nofollow">{$lang.NEW_REPLY}</a></td></tr>
{/if}
{if $reply == "on"}
<tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&amp;Board={$Board}" rel="nofollow">{$lang.NEW_TOPIC}</a></td></tr>
{/if}
{$addfavoption}
<tr><td class="popup_menu_content"><a target="_blank" href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}printthread{$var_sep}Board{$var_eq}{$Board}{$var_sep}main{$var_eq}{$current}{$var_sep}type{$var_eq}thread" rel="nofollow">{$lang.PRINT_THREAD}</a></td></tr>
{if $config.TOPIC_DISPLAY_OPTIONS == "both" }
<tr><td class="popup_menu_content">
<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showthreaded{$var_sep}Number{$var_eq}{$threadnumber}{$var_sep}an{$var_eq}{$an}{$var_sep}page{$var_eq}{$page}" rel="nofollow">

scripts/showthreaded.inc.php

Replace:

Code
 			$modlist .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$modarray[$i]\">{$moderator[$modarray[$i]]}</a>";

with:

Code
 			$modlist .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$modarray[$i]\" rel=\"nofollow\">{$moderator[$modarray[$i]]}</a>";

and:

Code
 		$Username1 = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$posterid\">$PUsername</a>";

with:

Code
 		$Username1 = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$posterid\" rel=\"nofollow\">$PUsername</a>";

and:

Code
 		$prevlinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}grabnext{$var_sep}Board{$var_eq}$Board{$var_sep}mode{$var_eq}showthreaded{$var_sep}sticky{$var_eq}$issticky{$var_sep}dir{$var_eq}new{$var_sep}posted{$var_eq}$lastpost{$var_sep}page{$var_eq}$page\">";
		$prevlinkstop = "</a>";

		$currentlinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}postlist{$var_sep}Board{$var_eq}$Board{$var_sep}page{$var_eq}$page\">";
		$linktext = $ubbt_lang['INDEX_ICON'];
		$currentlinkstop = "</a>";

		$nextlinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}grabnext{$var_sep}Board{$var_eq}$Board{$var_sep}mode{$var_eq}showthreaded{$var_sep}sticky{$var_eq}$issticky{$var_sep}dir{$var_eq}old{$var_sep}posted{$var_eq}$lastpost{$var_sep}page{$var_eq}$page\">";

with:

Code
 		$prevlinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}grabnext{$var_sep}Board{$var_eq}$Board{$var_sep}mode{$var_eq}showthreaded{$var_sep}sticky{$var_eq}$issticky{$var_sep}dir{$var_eq}new{$var_sep}posted{$var_eq}$lastpost{$var_sep}page{$var_eq}$page\" rel=\"nofollow\">";
		$prevlinkstop = "</a>";

		$currentlinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}postlist{$var_sep}Board{$var_eq}$Board{$var_sep}page{$var_eq}$page\">";
		$linktext = $ubbt_lang['INDEX_ICON'];
		$currentlinkstop = "</a>";

		$nextlinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}grabnext{$var_sep}Board{$var_eq}$Board{$var_sep}mode{$var_eq}showthreaded{$var_sep}sticky{$var_eq}$issticky{$var_sep}dir{$var_eq}old{$var_sep}posted{$var_eq}$lastpost{$var_sep}page{$var_eq}$page\" rel=\"nofollow\">";

and:

Code
 		$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$usernum\">{$ubbt_lang['VIEW_PROFILE']}</a></td></tr>";
		if ($accept_pm) {
			$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=sendprivate&amp;User=$usernum\">{$ubbt_lang['SEND_PM']}</a></td></tr>";
		} // end if
		if ($homepage) {
			$homepage = "http://$homepage";
			$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"$homepage\" target=\"_blank\">{$ubbt_lang['VIEW_HOME']}</a></td></tr>";
		} // end if		
		$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=addfavuser&amp;User=$usernum&n=$Number&p=$page\">$watch_text</a></td></tr>";
		$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=dosearch&amp;Forum=All_Forums&Name=$usernum&Limit=25&fromprof=1&amp;fromsearch=1\">{$ubbt_lang['VIEW_POSTS']}</a></td></tr>";

with:

Code
 		$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$usernum\" rel=\"nofollow\">{$ubbt_lang['VIEW_PROFILE']}</a></td></tr>";
		if ($accept_pm) {
			$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=sendprivate&amp;User=$usernum\" rel=\"nofollow\">{$ubbt_lang['SEND_PM']}</a></td></tr>";
		} // end if
		if ($homepage) {
			$homepage = "http://$homepage";
			$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"$homepage\" target=\"_blank\">{$ubbt_lang['VIEW_HOME']}</a></td></tr>";
		} // end if		
		$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=addfavuser&amp;User=$usernum&n=$Number&p=$page\" rel=\"nofollow\">$watch_text</a></td></tr>";
		$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=dosearch&amp;Forum=All_Forums&Name=$usernum&Limit=25&fromprof=1&amp;fromsearch=1\" rel=\"nofollow\">{$ubbt_lang['VIEW_POSTS']}</a></td></tr>";

and:

Code
 		$replylinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;what=showthreaded\">";
		$replylinkstop = "</a>";

		$quotelinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;what=showthreaded&amp;q=1\">";
		$quotelinkstop = "</a>";

with:

Code
 		$replylinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;what=showthreaded\" rel=\"nofollow\">";
		$replylinkstop = "</a>";

		$quotelinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;what=showthreaded&amp;q=1\" rel=\"nofollow\">";

and:

Code
 			$Username = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$UserNumber\">$PPoster</a>";

with:

Code
 			$Username = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&amp;User=$UserNumber\" rel=\"nofollow\">$PPoster</a>";

templates/default/showthreaded.tpl

Replace:

Code
 <a style="text-decoration: none;" href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&amp;Number={$first_post}">

with:

Code
 <a style="text-decoration: none;" href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&amp;Number={$Number}" rel="nofollow">

and:

Code
 <tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&amp;Number={$Number}">{$lang.REPLY_POST}</a></td></tr>
{/if}
<tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&amp;Board={$Board}">{$lang.NEW_TOPIC}</a></td></tr>
{$addfavoption}
<tr><td class="popup_menu_content"><a target="_blank" href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}printthread{$var_sep}Board{$var_eq}{$Board}{$var_sep}main{$var_eq}{$current}{$var_sep}type{$var_eq}thread">{$lang.PRINT_THREAD}</a></td></tr>
{if $config.TOPIC_DISPLAY_OPTIONS == "both" }
<tr><td class="popup_menu_content">
<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}{$Flat}{$var_sep}an{$var_eq}{$an}{$var_sep}page{$var_eq}{$page}">

with:

Code
 <tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&amp;Number={$Number}" rel="nofollow">{$lang.REPLY_POST}</a></td></tr>
{/if}
<tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&amp;Board={$Board}" rel="nofollow">{$lang.NEW_TOPIC}</a></td></tr>
{$addfavoption}
<tr><td class="popup_menu_content"><a target="_blank" href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}printthread{$var_sep}Board{$var_eq}{$Board}{$var_sep}main{$var_eq}{$current}{$var_sep}type{$var_eq}thread" rel="nofollow">{$lang.PRINT_THREAD}</a></td></tr>
{if $config.TOPIC_DISPLAY_OPTIONS == "both" }
<tr><td class="popup_menu_content">
<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}{$Flat}{$var_sep}an{$var_eq}{$an}{$var_sep}page{$var_eq}{$page}" rel="nofollow">

#2051 07/30/2006 4:53 PM
Joined: Jun 2006
Posts: 106
member
member
Joined: Jun 2006
Posts: 106
Originally Posted by Allen
hmm.. I don't quite see it as such an issue, there's been links like that in both threads and classic for years, but I guess if your site lives and dies on google position...


The only sites that don't are the ones NOT making money and if you're tossed out of Google you might as well close up shop.

usrbingeek #2069 07/31/2006 11:10 AM
Joined: Jun 2006
Posts: 196
I
enthusiast
enthusiast
I Offline
Joined: Jun 2006
Posts: 196
Are you guys sure that google doesn't understand anchors?

Ian Spence #2071 07/31/2006 11:16 AM
Joined: Jun 2006
Posts: 106
member
member
Joined: Jun 2006
Posts: 106
No, Google understands anchors. The problem is with the post number URLs, each has a unique URL that all go to the same page and google will see that as double content.

(See the example Philipp posted in the first post of this topic. Ignore the anchor completely. Despite the URLs being different all of the URLs go to the same page.)

usrbingeek #2076 07/31/2006 12:50 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I had to change it so the link to the individual post and anchor was a link to a new page. I can't remember the actual reason, really need to keep notes on that. I'll change it back on my devel site and see if it jogs my memory.

Rick #2298 08/03/2006 12:25 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Thanks for all of the changes Phillip. I changed the link to each post back to an anchor and so far it's not causing any problems like I remember. So I'll keep it that way for now.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
4 members (Gizmo, Baldeagle, Ruben, 1 invisible), 779 guests, and 156 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)