Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 For those of you with affiliate links...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

beerman
Starting Member

10 Posts

Posted - 24 March 2004 :  21:55:22  Show Profile
I found that the forum software doesn't like affiliate links from Commission Junction, specifically those that redirect the user to an individual page.

I have the CMS/Portal mod installed and wanted to use it to showcase products that my audience would make use of.

Example: the code I tried using looks like this: [UR_L="neutered://qksrv.net/xxxxxxx-xxxxxxx?url=neutered://merchant.com?merchantlandingpage=productnum"]Link to product at merchant[/UR_L] (obviously one needs to change "neutered" to "http" for the links to work)

Basically, I ended up with links that look like this: <a href="neutered://qksrv.net/xxxxxxx-xxxxxxx?url=<a href=", etc.

The fix?

Around line 133 in the "inc_func_common.asp" file, one needs to change
	fString = ChkURLs(fString, "http://", 1)
	fString = ChkURLs(fString, "https://", 2)
	fString = ChkURLs(fString, "www.", 3)
	fString = ChkMail(fString)
	fString = ChkURLs(fString, "ftp://", 5)
	fString = ChkURLs(fString, "file:///", 6)


to this:
	fString = ChkURLs(fString, " http://", 1)
	fString = ChkURLs(fString, " https://", 2)
	fString = ChkURLs(fString, " www.", 3)
	fString = ChkMail(fString)
	fString = ChkURLs(fString, " ftp://", 5)
	fString = ChkURLs(fString, " file:///", 6)


You don't lose "automatic link generation" functionality (as long as your audience can remember to put a space before their links) and the affiliate links work, too.

I invite comments and criticism.
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07