hyperlink out page?? - Posted (651 Views)
Starting Member
shirdisaibaba
Posts: 18
18
When there is a hyperlink in the post, it opens that link in a new window and redirect to that website. In general, it should first go to some page (snitzout.asp?url=http://www.linkxyz.com) and then this page finally redirect to the actual link. This has become very important to boost your page rank in Google. Please suggest if someone already implemented this?
<moved to="MOD Add-On Forum (W/O Code)" by="Shaggy" />
<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Starting Member
shirdisaibaba
Posts: 18
18
What about using of "nofollow" tag for every link in the forum?
Originally posted by Rocket468
redirects are very bad.
I see exactly what your trying to do. Probley the best way is to have a list or db table of accepted outbound domains. If the
link in a post does not point to a domain in your list there should be a no follow tag 'rel="nofollow"'added to that link. If it is in the list then right the tag the default way. With the no follow tag you will not loose pr.

shirdisaibaba I love snitz, still use it on some of my boards, but its leaps and bounds behind when it comes to SEO If you have 300 us i would look into http://www.vbulletin.com/ along with http://www.vbseo.com/. It will not do the nofollow deal you would have to add that. But it uses mod rewrite so your topic names become the link names vers topic_id=4456 it would be hyperlink_out_page_t-4456


<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
OK, first bear in mind that the following changes will be applied to all links posted on your forums, even those linking to other pages on your forum or site which will impede the ability of spiders to index your forum properly.
Find the following on line 916 of inc_func_common.asp:
Code:
rc1Tag = """ target=""_blank"">"
And add the code in green:
Code:
rc1Tag = """ target=""_blank"" rel=""nofollow"">"
Find the following on line 964:
Code:
ReplaceURLs = ReplaceURLs & "<a href=""" & strArray2(0) & """ target=""_blank"">" & strFirstPart & "</a>" & strSecondPart
And add the code in green:
Code:
ReplaceURLs = ReplaceURLs & "<a href=""" & strArray2(0) & """ target=""_blank"" rel=""nofollow"">" & strFirstPart & "</a>" & strSecondPart
Find the following beginning on line 1535:
Code:
if (iType == 1) {
sOutput = sOutput.replace(/\b(http\:\/\/[\w+\.]+[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
"<a href=\"$1\" target=\"_blank\">$1<\/a>");
} else if (iType == 2) {
sOutput = sOutput.replace(/\b(https\:\/\/[\w+\.]+[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
"<a href=\"$1\" target=\"_blank\">$1<\/a>");
} else if (iType == 3) {
sOutput = sOutput.replace(/\b(www\.[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
"<a href=\"http://$1\" target=\"_blank\">$1<\/a>");
} else if (iType == 4) {
sOutput = sOutput.replace(/\b([\w+\-\'\#\%\.\_\,\$\!\+\*]+@[\w+\.?\-\'\#\%\~\_\.\;\,\$\!\+\*]+\.[\w+\.?\-\'\#\%\~\_\.\;\,\$\!\+\*]+)/gi,
"<a href=\"mailto\:$1\">$1<\/a>");
} else if (iType == 5) {
sOutput = sOutput.replace(/\b(ftp\:\/\/[\w+\.]+[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
"<a href=\"$1\" target=\"_blank\">$1<\/a>");
} else if (iType == 6) {
sOutput = sOutput.replace(/\b(file\:\/\/\/[\w+\:\/\\]+[\w+\/\w+\.\:\/\\\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
"<a href=\"$1\" target=\"_blank\">$1<\/a>");
}
And add the code in green:
Code:
if (iType == 1) {
sOutput = sOutput.replace(/\b(http\:\/\/[\w+\.]+[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
"<a href=\"$1\" target=\"_blank\" rel=\"nofollow\">$1<\/a>");
} else if (iType == 2) {
sOutput = sOutput.replace(/\b(https\:\/\/[\w+\.]+[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
"<a href=\"$1\" target=\"_blank\" rel=\"nofollow\">$1<\/a>");
} else if (iType == 3) {
sOutput = sOutput.replace(/\b(www\.[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
"<a href=\"http://$1\" target=\"_blank\" rel=\"nofollow\">$1<\/a>");
} else if (iType == 4) {
sOutput = sOutput.replace(/\b([\w+\-\'\#\%\.\_\,\$\!\+\*]+@[\w+\.?\-\'\#\%\~\_\.\;\,\$\!\+\*]+\.[\w+\.?\-\'\#\%\~\_\.\;\,\$\!\+\*]+)/gi,
"<a href=\"mailto\:$1\" rel=\"nofollow\">$1<\/a>");
} else if (iType == 5) {
sOutput = sOutput.replace(/\b(ftp\:\/\/[\w+\.]+[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
"<a href=\"$1\" target=\"_blank\" rel=\"nofollow\">$1<\/a>");
} else if (iType == 6) {
sOutput = sOutput.replace(/\b(file\:\/\/\/[\w+\:\/\\]+[\w+\/\w+\.\:\/\\\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
"<a href=\"$1\" target=\"_blank\" rel=\"nofollow\">$1<\/a>");
}
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
You Must enter a message