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\"


All times are GMT. The time now is 03:16 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.02643 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete