MyBB Community Forums

Full Version: cloak affliate links?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any way to shorten or cloak affiliate links?
Any mods/plugins to do it?
this might help
I tried thAT THREAD but the demo and support seems to be in different language, so will try to install and check, what the plugin actually does
^
Quote:posting http://www.123.com will be automatically converted to http://www.yoursite.com/go/?url=www.123.com

however, a coder has come up with an excellent idea in your new thread
If you have FTP access to your forum I think this is the simplest code: I use it all the time.

1. Open your note pad and insert this php code:
<? header ("location: youraffiliateurl"); ?>

2. Name the file to anything you want but remember to include the php extention (eg myaffiliatecode.php)

3. Upload the file to your host (you may also create a special folder eg. yoursite(dot)anything/affiliatefolder

4. Your cloaked affiliate link is now yoursite(dot)anything/affiliatefolder/myaffiliatecode.php

Hope that helps