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
  #322  
Old 10-29-2008, 05:05 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I haven't had any time to look at anything.
Reply With Quote
  #323  
Old 10-29-2008, 01:46 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ShadMan View Post
Same thing is happening on mine, starting today. Here is the original link posted on my forum:

Code:
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&ssPageName=STRK:MEWAX:IT&item=140159953844
And here is what the link was re-written to, which gives the "Invalid Item" page:

Code:
http://rover.ebay.com/rover/1/711-53200-19255-0/1?campid=5335887982&toolid=10001&mpre=http%3A%2F%2Fcgi.ebay.com%2Fws%2FeBayISAPI.dll%3FViewItem%26amp%3BssPageName%3DSTRK%3AMEWAX%3AIT%26amp%3Bitem%3D140159953844
This results in some additional characters being placed into the URL (see bold and compare to original link above):

Code:
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&ssPageName=STRK:MEWAX:IT&item=140159953844
The problem is the encoded ampersand on the item URL var.

urlencode is doing it. I had this issue in an eBay Developer Application I run.

In the functions file on like line 57, add one line of code after the urlencode that looks like this.

PHP Code:
    // encode URL
    
$encodedlink urlencode($rightlink);
    
$encodedlink str_replace("%26amp%3B""&" $encodedlink); 
That fixed it for us. YMMV.
Reply With Quote
  #324  
Old 10-29-2008, 06:03 PM
ashley76 ashley76 is offline
 
Join Date: Jan 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Noppid! That did the trick!
Reply With Quote
  #325  
Old 10-29-2008, 06:06 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ashley76 View Post
Thanks Noppid! That did the trick!
Glad to help. When I saw the bug and that dismounted was busy, I had to do something. I use this hack and it's important to us. So, hopefully this can be the permanent fix.

This is shorter.

PHP Code:
$encodedlink str_replace("%26amp%3B""&" urlencode($rightlink)); 
Reply With Quote
  #326  
Old 10-31-2008, 01:19 PM
dwessell dwessell is offline
 
Join Date: Aug 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Noppid, much appreciated!
Reply With Quote
  #327  
Old 11-19-2008, 04:12 AM
rinkrat's Avatar
rinkrat rinkrat is offline
 
Join Date: Jan 2002
Location: Long Beach
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great!
Reply With Quote
  #328  
Old 11-24-2008, 12:42 PM
benFF benFF is offline
 
Join Date: Jul 2004
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This goes horribly wrong if someone posts up an already rovered link or forwards a PM which has been pre-rovered as it then double rovers them, which breaks all the links..

It should really look if the link has been rovered and if so, strip the url out and rover it with your own settings.
Reply With Quote
  #329  
Old 11-24-2008, 12:57 PM
benFF benFF is offline
 
Join Date: Jul 2004
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh and if a user edits a post which has an ebay link and had already been changed - it completely destroys it.
Reply With Quote
  #330  
Old 11-24-2008, 01:27 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by benFF View Post
This goes horribly wrong if ...... <snip>
Are you referring to noppid's fix?

... or, v1.4 of the mod itself without the fix?

Thanks ...

Regards,
Badger
Reply With Quote
  #331  
Old 11-24-2008, 04:12 PM
benFF benFF is offline
 
Join Date: Jul 2004
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Both. The fix doesn't stop double / triple rewrites.

We need a v1.5 which doesn't rewrite the link if a rover address already exists - and if it does, make sure it's using thr right rover settings and modify if appropriate.
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 01:17 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.05117 seconds
  • Memory Usage 2,313KB
  • 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
  • (3)bbcode_code
  • (2)bbcode_php
  • (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