vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - eBay Partner Network Links by ForumSetup.net (https://vborg.vbsupport.ru/showthread.php?t=314726)

tpearl5 10-05-2014 10:00 PM

eBay Partner Network Links by ForumSetup.net
 
1 Attachment(s)
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

Quote:

Originally Posted by Reece^B (Post 2517881)
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

Quote:

Originally Posted by Reece^B (Post 2517929)
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?

Code:

//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

Quote:

Originally Posted by tommyxv (Post 2526677)
I think I figured it out. Does this look right?

Code:

//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:
PHP Code:

$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?

Code:

TARGET="_blank"
OR
Code:

target=\"_blank\"

tommyxv 12-11-2014 12:24 AM

I just noticed that your code snippet had another part removed.

Original
Code:

urlencode($out[1][$i]) . '">
Works
Code:

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

$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

Quote:

Originally Posted by tommyxv (Post 2526682)
I just noticed that your code snippet had another part removed.

Original
Code:

urlencode($out[1][$i]) . '">
Works
Code:

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

$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.

Quote:

Originally Posted by tommyxv (Post 2526681)
OK, i tested it and it works both ways. Does it matter which one I use?

Code:

TARGET="_blank"
OR
Code:

target=\"_blank\"

It shouldn't matter, no.

Quote:

Originally Posted by bosanci28 (Post 2526683)
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.

PHP Code:

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.


All times are GMT. The time now is 05:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02312 seconds
  • Memory Usage 1,761KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete