Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Rewrite eBay Links Details »»
Rewrite eBay Links
Version: 1.4, by Dismounted Dismounted is offline
Developer Last Online: Apr 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.x Rating:
Released: 04-06-2007 Last Update: 10-12-2008 Installs: 186
Uses Plugins
Additional Files  
No support by the author.

Rewrite eBay Links

Description:
This mod rewrites eBay links so they link to an affiliate.

Request:
Requested in a paid deal by brookelyn, this modification's idea can also be accredited to brookelyn. Also requested by various other members.

Installation:
All the installation information is in the package.

Changes:
2 Plugins
1 File

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #162  
Old 04-02-2008, 02:15 PM
ferreo ferreo is offline
 
Join Date: Oct 2004
Location: New York City
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I fixed this by changing line 111 in the product-rewrite_ebay_links.xml file from

Code:
<validationcode><![CDATA[return (strlen($data) == 9);]]></validationcode>
to

Code:
<validationcode><![CDATA[return (strlen($data) == 10);]]></validationcode>
This took care of the admin CP error, but it wouldn't display the &campid=XXXXXXXXXX bit in the rewritten links. I just hardcoded my campaign ID in the XML file. Ready to keep on rocking.

Thanks for the quick update dismounted.
Reply With Quote
  #163  
Old 04-02-2008, 03:54 PM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so u got it working ferreo?
Reply With Quote
  #164  
Old 04-02-2008, 04:08 PM
creativepart creativepart is offline
 
Join Date: Jun 2006
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The campid is not being added. I changed the error look up to 10 so I'm not getting the error but it's not adding the campid to the link in the forum. It's just campid=&.....

I modifed the XML file by hard coding the CampID but I just wanted to let Dismounted know of this problem.
Reply With Quote
  #165  
Old 04-02-2008, 04:10 PM
creativepart creativepart is offline
 
Join Date: Jun 2006
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've made a donation to Dismounted for his great work on this. I think everyone else that's earned anything from this mod should do the same.

So, come on. Don't be selfish. It's time to reward the author.

There is a donation button above under his Avatar.
Reply With Quote
  #166  
Old 04-02-2008, 04:24 PM
siliconfinance siliconfinance is offline
 
Join Date: Mar 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Modification Updated!

2/04/2007 - Version 1.2
- Updated URL Format
- Updated ReadMe

The URL format is as specified in the developer documents. Please note that you MUST re-enter your Campaign ID in the options page!
Hi Dismounted,

Previously, someone tweaked your code on my site to work with vBseo. I would like to manually implement the changes you made to the script since the time that ebay changed its affiliate program.

Can you provide some sort of guidance?

Thank you in advance.
Reply With Quote
  #167  
Old 04-02-2008, 06:07 PM
ferreo ferreo is offline
 
Join Date: Oct 2004
Location: New York City
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by creativepart View Post
The campid is not being added. I changed the error look up to 10 so I'm not getting the error but it's not adding the campid to the link in the forum. It's just campid=&.....

I modifed the XML file by hard coding the CampID but I just wanted to let Dismounted know of this problem.
I modified line 57 of the XML file from

Code:
$newurl = 'http://rover.ebay.com/rover/1/711-1751-2978-71/1?toolid=10013&campid=' . $vbulletin->options['rewrite_ebay_links_pid'] . '&mpre=' . rawurlencode(str_replace('&amp;', '&', $url));
to

Code:
$newurl = 'http://rover.ebay.com/rover/1/711-1751-2978-71/1?toolid=10013&campid=XXXXXXXXXX' . '&mpre=' . rawurlencode(str_replace('&amp;', '&', $url));
and it's working fine now. Don't forget to replace XXXXXXXXXX with your 10 digit campaign ID.

I'm going to send a donation to dismounted as well, his plugin has done very well for me.
Reply With Quote
  #168  
Old 04-02-2008, 06:09 PM
siliconfinance siliconfinance is offline
 
Join Date: Mar 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is that all I would need to do to make this work again?
Reply With Quote
  #169  
Old 04-02-2008, 06:12 PM
ferreo ferreo is offline
 
Join Date: Oct 2004
Location: New York City
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by siliconfinance View Post
Hi Dismounted,

Previously, someone tweaked your code on my site to work with vBseo. I would like to manually implement the changes you made to the script since the time that ebay changed its affiliate program.

Can you provide some sort of guidance?

Thank you in advance.

How does it conflict with vbseo? I use both dismounted's ebay rewrite and vbseo in parallel without any issues on my end.
Reply With Quote
  #170  
Old 04-02-2008, 06:17 PM
ferreo ferreo is offline
 
Join Date: Oct 2004
Location: New York City
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, I found some discrepancy between dismounted's code and the one the link generator at EPN provides:


Code:
http://rover.ebay.com/rover/1/711-53200-19255-0/1?type=4&campid=XXXXXXXXXX&toolid=10001&customid=&mpre=
is the prefix that the generator spits out (eBay US Network),

Code:
http://rover.ebay.com/rover/1/711-1751-2978-71/1?toolid=10013&campid=XXXXXXXXXX&mpre=
is dismounted's code. I'll switch things around in the XML file, just to make sure. For now, I don't see any clicks or revenue tracked yet, this may be due to the reporting delay though.
Reply With Quote
  #171  
Old 04-02-2008, 06:23 PM
ferreo ferreo is offline
 
Join Date: Oct 2004
Location: New York City
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the file I am currently using. I have matched the prefix URL to the one from the generator for my campaign, the ID is hardcoded in line 57. Replace Xs with your campID.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:42 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08367 seconds
  • Memory Usage 2,312KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete