Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 No Follow links in user posts

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Loyola05 Posted - 10 July 2007 : 21:09:27
I haven't seen this MOD posted, but I thought it could be valuable. As users often post links to their own websites, this prevents your forum from sharing your page rank with moochers.

In the file inc_func_common.asp, there is a JavaScript function at the very end of the file (this is the last 27 or so lines).

Replace the exisiting code with the following:


<script language="javascript1.2" runat="server">
function edit_hrefs(sURL, iType) {
	sOutput = new String(sURL);

	if (iType == 1) {
		sOutput = sOutput.replace(/\b(http\:\/\/[\w+\.]+[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
			"<a href=\"$1\" rel=\"nofollow\" target=\"_blank\">$1<\/a>");
	} else if (iType == 2) {
		sOutput = sOutput.replace(/\b(https\:\/\/[\w+\.]+[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
			"<a href=\"$1\" rel=\"nofollow\" target=\"_blank\">$1<\/a>");
	} else if (iType == 3) {
		sOutput = sOutput.replace(/\b(www\.[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
			"<a href=\"http://$1\" rel=\"nofollow\" 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\" rel=\"nofollow\" target=\"_blank\">$1<\/a>");
	} else if (iType == 6) {
		sOutput = sOutput.replace(/\b(file\:\/\/\/[\w+\:\/\\]+[\w+\/\w+\.\:\/\\\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
		  	"<a href=\"$1\" rel=\"nofollow\" target=\"_blank\">$1<\/a>");
	}

	return sOutput;
}
</script>


If you look carefully, the only thing I have added is rel=\"nofollow\" to several of the links.

As far as I can tell, this only works for links posted in the message area and footer - if you allow users to post a Homepage in their profile, the homepage icon (displayed in their post) will not have this rel="nofollow" attribute.

I'd love some feedback on this MOD - let me know if there are more suggestions. My site's forum (http://www.whyilovechicago.com/forum) implements this MOD, so you can see it in action (although, since it's new, I don't think any users have posted links yet). I have also used this MOD on my former company's forum (http://www.fathomseo.com/forum).

Thanks!<
3   L A T E S T    R E P L I E S    (Newest First)
blackinwhite Posted - 14 July 2007 : 07:38:13
quote:
Originally posted by Loyola05

I figured someone had to have done that before... but I searched for like 20 minutes trying to find it here and I couldn't locate that thread.

Anyways, the post you link to speaks of parsing URLs for hyperlinked text, and doesn't mention the reasons behind using rel="nofollow" in terms of SEO or link crawlers/spiders. Maybe this can/should be listed as a specific MOD for that reason, and not lumped in with parsed URLs.



thank you, I start to use it. ;)<
Loyola05 Posted - 11 July 2007 : 10:03:05
I figured someone had to have done that before... but I searched for like 20 minutes trying to find it here and I couldn't locate that thread.

Anyways, the post you link to speaks of parsing URLs for hyperlinked text, and doesn't mention the reasons behind using rel="nofollow" in terms of SEO or link crawlers/spiders. Maybe this can/should be listed as a specific MOD for that reason, and not lumped in with parsed URLs.<
Podge Posted - 11 July 2007 : 05:45:31
Been done before - http://forum.snitz.com/forum/topic.asp?TOPIC_ID=59382#336266<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.07