|
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
|
|
|
#2044
07/30/2006 11:01 AM
|
Joined: Jul 2006
Posts: 116 Likes: 4
Member
|
Member
Joined: Jul 2006
Posts: 116 Likes: 4 |
Actually, it has nothing to do with the threaded mode; this issue is in the flat mode . After playing a little more with the templates, I saw that this could be easily fixed by changing the following line in Showflat.tpl: <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: <a href="#Post{$postrow[post].Number}"><img border="0" src="{$config.BASE_URL}/images/{$style_array.icons}/{$postrow[post].Icon}" {$images.icons} alt="" /></a>
|
|
|
|
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...
|
|
|
|
Joined: Jun 2006
Posts: 16,300 Likes: 116
|
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 ...
|
|
|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
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.
|
|
|
|
Joined: Jul 2006
Posts: 116 Likes: 4
Member
|
Member
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.phpReplace: $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: $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.phpReplace: <a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}postlist{$var_sep}Board{$var_eq}{$forum[cats][fora].Keyword}"> with: <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.phpReplace:
$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: $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: $Username = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$posterid\">$PUsername</a>"; with: $Username = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$posterid\" rel=\"nofollow\">$PUsername</a>"; and: $modlist .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$modarray[$i]\">{$moderator[$modarray[$i]]}</a>"; with: $modlist .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$modarray[$i]\" rel=\"nofollow\">{$moderator[$modarray[$i]]}</a>"; templates/default/postlist.tplReplace: <a style="text-decoration: none;" href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&Board={$Board}"> with: <a style="text-decoration: none;" href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&Board={$Board}" rel="nofollow"> and: <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: {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: <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: <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: {if $newtopic == 1}
<a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&Board={$Board}">
{/if} with: {if $newtopic == 1}
<a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&Board={$Board}" rel="nofollow">
{/if} scripts/showflat.inc.phpReplace: $modlist .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$modarray[$i]\">{$moderator[$modarray[$i]]}</a>"; with: $modlist .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$modarray[$i]\" rel=\"nofollow\">{$moderator[$modarray[$i]]}</a>"; and: $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: $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: $popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&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&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&User=$usernum&n=$Number&p=$page&f=$fpart\">$watch_text</a></td></tr>";
$popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=dosearch&Forum=All_Forums&Name=$usernum&Limit=25&fromprof=1&fromsearch=1\">{$ubbt_lang['VIEW_POSTS']}</a></td></tr>"; with: $popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&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&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&User=$usernum&n=$Number&p=$page&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&Forum=All_Forums&Name=$usernum&Limit=25&fromprof=1&fromsearch=1\" rel=\"nofollow\">{$ubbt_lang['VIEW_POSTS']}</a></td></tr>"; and: $postrow[$i]['replylinkstart'] = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&Board=$Board&Number=$Number&page=$page&what=showflat&fpart=$fpart\">";
$postrow[$i]['replylinkstop'] = "</a>";
$postrow[$i]['quotelinkstart'] = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&Board=$Board&Number=$Number&page=$page&what=showflat&fpart=$fpart&q=1\">"; with: $postrow[$i]['replylinkstart'] = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&Board=$Board&Number=$Number&page=$page&what=showflat&fpart=$fpart\" rel=\"nofollow\">";
$postrow[$i]['replylinkstop'] = "</a>";
$postrow[$i]['quotelinkstart'] = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&Board=$Board&Number=$Number&page=$page&what=showflat&fpart=$fpart&q=1\" rel=\"nofollow\">"; and: <a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=mailthread&Board=$Board&Number=$Number&page=$page&fpart=$fpart&what=showflat\">";
}
$postrow[$i]['notifylinkstart'] = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=notifymod&Board=$Board&Number=$Number&page=$page&fpart=$fpart&what=showflat\”>"; with: <a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=mailthread&Board=$Board&Number=$Number&page=$page&fpart=$fpart&what=showflat\" rel=\"nofollow\">
";
}
$postrow[$i]['notifylinkstart'] = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=notifymod&Board=$Board&Number=$Number&page=$page&fpart=$fpart&what=showflat\" rel=\"nofollow\">"; and: $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: $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: <span class="small"><a href="$newlink">{$ubbt_lang['JUMP_UNREAD']}</a></span> with: <span class="small"><a href="$newlink" rel="nofollow">{$ubbt_lang['JUMP_UNREAD']}</a></span> templates/default/showflat.tplReplace: <a style="text-decoration: none;" href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&Number={$first_post}"> with: <a style="text-decoration: none;" href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&Number={$first_post}" rel="nofollow"> and: <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: <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: <tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&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&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: <tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&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&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.phpReplace: $modlist .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$modarray[$i]\">{$moderator[$modarray[$i]]}</a>"; with: $modlist .= "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$modarray[$i]\" rel=\"nofollow\">{$moderator[$modarray[$i]]}</a>"; and: $Username1 = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$posterid\">$PUsername</a>"; with: $Username1 = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$posterid\" rel=\"nofollow\">$PUsername</a>"; and: $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: $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: $popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&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&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&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&Forum=All_Forums&Name=$usernum&Limit=25&fromprof=1&fromsearch=1\">{$ubbt_lang['VIEW_POSTS']}</a></td></tr>"; with: $popups .= "<tr><td class=\"popup_menu_content\"><a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&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&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&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&Forum=All_Forums&Name=$usernum&Limit=25&fromprof=1&fromsearch=1\" rel=\"nofollow\">{$ubbt_lang['VIEW_POSTS']}</a></td></tr>"; and: $replylinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&Board=$Board&Number=$Number&page=$page&what=showthreaded\">";
$replylinkstop = "</a>";
$quotelinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&Board=$Board&Number=$Number&page=$page&what=showthreaded&q=1\">";
$quotelinkstop = "</a>"; with: $replylinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&Board=$Board&Number=$Number&page=$page&what=showthreaded\" rel=\"nofollow\">";
$replylinkstop = "</a>";
$quotelinkstart = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=newreply&Board=$Board&Number=$Number&page=$page&what=showthreaded&q=1\" rel=\"nofollow\">"; and: $Username = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$UserNumber\">$PPoster</a>"; with: $Username = "<a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$UserNumber\" rel=\"nofollow\">$PPoster</a>"; templates/default/showthreaded.tplReplace: <a style="text-decoration: none;" href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&Number={$first_post}"> with: <a style="text-decoration: none;" href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&Number={$Number}" rel="nofollow"> and: <tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&Number={$Number}">{$lang.REPLY_POST}</a></td></tr>
{/if}
<tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&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: <tr><td class="popup_menu_content"><a href="{$config.BASE_URL}/ubbthreads.php?ubb=newreply&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&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">
|
|
|
|
Joined: Jun 2006
Posts: 106
member
|
member
Joined: Jun 2006
Posts: 106 |
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.
|
|
|
|
Joined: Jun 2006
Posts: 196
enthusiast
|
enthusiast
Joined: Jun 2006
Posts: 196 |
Are you guys sure that google doesn't understand anchors?
|
|
|
|
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.)
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
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.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
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.
|
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
4 members (Gizmo, Baldeagle, Ruben, 1 invisible),
779
guests, and
156
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|