PDA

View Full Version : Miscellaneous Hacks - eBay Partner Network Links by ForumSetup.net


tpearl5
10-05-2014, 10:00 PM
eBay Partner Network Links will automatically rewrite links (on the fly) to eBay that contain your EPN ID's. Existing links that you've created will not be overwritten and any special linking parameters will be maintained.

Features:

Turn the whole mod on/off
Inserts EPN tracking pixel under ebay link
Automatically rewrites based on EPN program (ebay.it, ebay.de, ebay.ca, etc)
Exclude certain usergroups
Include/Exclude specific forums
Exclude specific styles
Rewrite links in PM's


Installation:

Unzip the package
upload functions_ebay_links.php to your includes directory
Install the product XML
Navigate to Settings > Options > eBay Partner Network Links to set your IDs and other options


Note: The mod will not work without BOTH your EPN ID and campain ID filled in.

Enjoy!

Reece^B
10-06-2014, 02:15 PM
vB3?

tpearl5
10-06-2014, 04:43 PM
vB3?

It should work, give it a try.

Reece^B
10-06-2014, 07:55 PM
Will do tomorrow, does Skimlinks require disabling too?

tpearl5
10-06-2014, 11:36 PM
Will do tomorrow, does Skimlinks require disabling too?

It shouldn't, no. As far as I know they will not rewrite affiliate links.

tommyxv
12-10-2014, 05:07 PM
Can you offer the option to set target="_blank" so the link opens in a new tab instead of taking the user off site? All non-ebay links open in a new tabs for me. Some of my members are asking for this. Thanks

tommyxv
12-10-2014, 11:35 PM
I think I figured it out. Does this look right?

//build new link
$out[1][$i] = 'http://rover.ebay.com/rover/1/' . $programid . '/1?pub=' . $vbulletin->options['ebay_links_partnerid'] . '&campid=' . $vbulletin->options['ebay_links_campid'] . $customid . '&toolid=10001&mpre=' . urlencode($out[1][$i]) . '" target=\"_blank\">

tpearl5
12-11-2014, 12:07 AM
I think I figured it out. Does this look right?

//build new link
$out[1][$i] = 'http://rover.ebay.com/rover/1/' . $programid . '/1?pub=' . $vbulletin->options['ebay_links_partnerid'] . '&campid=' . $vbulletin->options['ebay_links_campid'] . $customid . '&toolid=10001&mpre=' . urlencode($out[1][$i]) . '" target=\"_blank\">



Try replacing that line with this:

$out[1][$i] = 'http://rover.ebay.com/rover/1/' . $programid . '/1?pub=' . $vbulletin->options['ebay_links_partnerid'] . '&campid=' . $vbulletin->options['ebay_links_campid'] . $customid . '&toolid=10001&mpre=' . $out[1][$i] . '" TARGET="_blank"><img style="text-decoration:none;border:0;padding:0;margin:0;" src="http://rover.ebay.com/roverimp/1/' . $programid . '/1?pub=' . $vbulletin->options['ebay_links_partnerid'] . '&toolid=10001&campid=' . $vbulletin->options['ebay_links_campid'] . $customid . '&mpt=[CACHEBUSTER]';

tommyxv
12-11-2014, 12:10 AM
I can't see the php code box, can you re-post it using code /code

Nevermind, I just copy and pasted in dreamweaver to see it all. :)

tommyxv
12-11-2014, 12:16 AM
OK, i tested it and it works both ways. Does it matter which one I use?

TARGET="_blank"
OR
target=\"_blank\"

tommyxv
12-11-2014, 12:24 AM
I just noticed that your code snippet had another part removed.

Original
urlencode($out[1][$i]) . '">

Works
urlencode($out[1][$i]) . '" target=\"_blank\">

Also Works
$out[1][$i] . '" TARGET="_blank">

Does it matter which one? Will one mess up the re-write?

bosanci28
12-11-2014, 12:33 AM
Sorry to ask by installing this mod , and imputing those id's , what will it produce? a link to a product ,banner? or... Thanks for clarification.

tpearl5
12-11-2014, 01:14 AM
I just noticed that your code snippet had another part removed.

Original
urlencode($out[1][$i]) . '">

Works
urlencode($out[1][$i]) . '" target=\"_blank\">

Also Works
$out[1][$i] . '" TARGET="_blank">

Does it matter which one? Will one mess up the re-write?

It was having issues with some characters that were contained in some URLs, so I took out urlencode.

OK, i tested it and it works both ways. Does it matter which one I use?

TARGET="_blank"
OR
target=\"_blank\"

It shouldn't matter, no.

Sorry to ask by installing this mod , and imputing those id's , what will it produce? a link to a product ,banner? or... Thanks for clarification.
Whatever page is linked to on ebay will still be linked to, just with your partner id inserted.

tommyxv
12-11-2014, 01:35 AM
Awesome. I will use your code. Thanks for the quick response!

tommyxv
02-03-2015, 07:16 PM
Someone posted this ebay link but its not getting re-written.

http://r.ebay.com/nknFRQ

sub_ubi
02-15-2016, 11:53 PM
Love your mods, thank you. Nice to not have a middleman.

oldengine
03-27-2018, 04:20 PM
This used to turn links into rover links. It no longer appears to be functional.