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
  #212  
Old 04-20-2008, 05:05 AM
ETDC ETDC is offline
 
Join Date: Aug 2007
Location: United Kingdom
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, a few days have passed and the code is confirmed as working.

However, as previously stated all URLs resolve to eBay US (even if it's a .co.uk or .de link. Therefore, only clicks (and subsequent purchases) by those in the US are registering and generating commission on the eBay partner Program.

Is there any way at all that the code can be modified to resolve to the clicker's default eBay location and thus generate commission?

This isn't a whinge; this is a superb mod but it could be so much better if the above was possible.

_
Reply With Quote
  #213  
Old 04-20-2008, 10:04 AM
sinucello sinucello is offline
 
Join Date: Apr 2006
Location: dutch-german border
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
Quote:
Originally Posted by ETDC View Post
However, as previously stated all URLs resolve to eBay US (even if it's a .co.uk or .de link. Therefore, only clicks (and subsequent purchases) by those in the US are registering and generating commission on the eBay partner Program.
I don`t have a solution for a dynamic - location aware - rewrite but here`s my changed code for the german program (warning, this has my affiliate ID hardcoded, please replace it with the config-var!):
PHP Code:
function rewrite_ebay($text '')
{
    if (!
$text)
    {
        return 
$text;
    }

    global 
$vbulletin;

    
$search $replace = array();
    
$anchor preg_quote('<a href="');

    if (
preg_match_all('/' $anchor '([^"]+)/i'$text$links))
    {
        if (!
$links)
        {
            return 
$text;
        }

        
$links array_unique($links[1]);
        
$parsed array_map('parse_url'array_map('strtolower'$links));

        foreach (
$parsed AS $key => $parsie)
        {
            if (!
$parsie['host'] OR !preg_match('/(.*)ebay\.[a-z0-9]+/i'$parsie['host']) OR preg_match('/partners\.webmasterplan\.com/i'$parsie['host']))
            {
                unset(
$links[$key]);
                continue;
            }
        }

        if (!
$links)
        {
            return 
$text;
        }

        foreach (
$links AS $url)
        {
            
$newurl 'http://partners.webmasterplan.com/click.asp?ref=372170&site=1382&type=text&tnb=23&diurl=' rawurlencode(str_replace('&amp;''&'$url));
            
$search[] = '<a href="' $url;
            
$replace[] = '<a href="' $newurl;
        }
    }

    if (
$search)
    {
        
$text str_replace($search$replace$text);
    }

    return 
$text;

Ciao,
Sacha
Reply With Quote
  #214  
Old 04-20-2008, 01:24 PM
ETDC ETDC is offline
 
Join Date: Aug 2007
Location: United Kingdom
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.

Dismounted; do you think it's possible? It's important enough that I'm willing to consider making it a paid job...
Reply With Quote
  #215  
Old 04-21-2008, 06:08 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As I see it, sinucello's URL is using a completely different affiliate program.
Reply With Quote
  #216  
Old 04-21-2008, 02:21 PM
ETDC ETDC is offline
 
Join Date: Aug 2007
Location: United Kingdom
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ Ok, I'm assuming a multi-national code isn't possible. Even a paid job?

What about one which will recognise the original URL typed in the forum? Therefore ebay.co.uk would register as a UK click/sale, ebay.fr French, ebay.de German etc etc.

Possible?
Reply With Quote
  #217  
Old 04-22-2008, 07:33 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But what about the prefix?

Also, EPN also says that it will automatically handle localisation.
Reply With Quote
  #218  
Old 04-22-2008, 05:31 PM
ETDC ETDC is offline
 
Join Date: Aug 2007
Location: United Kingdom
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope.

From eBay:

Quote:
Thank you for contacting us regarding your question on what you could do so that clicks by users from other countries would register clicks and revenue.

I would like to inform you that program-specific links only track actions for the corresponding site (i.e., eBay US links track actions on eBay.com).

If affiliates have visitors from different countries, consider using our Geotargeted links or creatives, which will automatically track for relevant programs.

I hope this information answers your question. Thank you for using eBay.

Kind regards,

eBay Partner Network Support
Geotargetted links won't work in my case because people just cut and paste the URL from ebay (and it's usually either US or UK links they post).

I accept though that geo-targetted URL conversions may be impossible but it must be possible to recognise what people have typed (or cut n' pasted) on the forum, no?

Reply With Quote
  #219  
Old 04-23-2008, 01:24 AM
oldengine oldengine is offline
 
Join Date: Mar 2004
Posts: 257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unintalled
Reply With Quote
  #220  
Old 04-23-2008, 11:26 PM
oldford's Avatar
oldford oldford is offline
 
Join Date: Feb 2003
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A couple of days ago eBay came out in their blog saying that the URL's in their links needed to be encoded. Previously their own affiliate link creator was not doing this. (it appears to be fixed and is encoding now)

Does this mod do this currently? I'm just wondering if we're basing everything on how eBay was previously telling us to do it, which has now changed.

My sales and commissions went down about 75% when I switched to the new eBay system, so for now I've switch back to CJ, at least until the end of the month.

Here's a quote from eBay and a link to the blog:
http://www.ebaypartnernetworkblog.com/category/english/

Quote:
2. Make sure you ‘url encode’ the eBay destination url (after mpre= ) and if you are using the customid and you have any special characters within it, this will need to be url encoded too.
Reply With Quote
  #221  
Old 04-23-2008, 11:49 PM
ETDC ETDC is offline
 
Join Date: Aug 2007
Location: United Kingdom
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's working fine here for me.
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 12:58 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.08231 seconds
  • Memory Usage 2,329KB
  • 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
  • (1)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