Affiliate links

Karl

Member
If an affiliate link is submitted is it possible to have only the site url display instead of the full affiliate url on the stats page?
 

Mark

Administrator
Staff member
anything is possible :)

you could remove the URL completely from the stats page, or create a plugin to display only the domain name.

make a plugin with the following filename: stats_build_page.php

PHP:
$TMPL['karls_url'] =  parse_url($TMPL['url'], PHP_URL_HOST);
then in your stats template replace:

Code:
        <a href="{$url}" onclick="out(this,'{$username}');" rel="nofollow">{$url}</a>
with
Code:
        <a href="{$url}" onclick="out(this,'{$username}');" rel="nofollow">{$karls_url}</a>
and that should do it :) untested code, so let me know if you have any troubles.
 
Top