vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Rewrite eBay Links (https://vborg.vbsupport.ru/showthread.php?t=144214)

Dabbi 04-08-2008 11:18 AM

Jusst downloaded the updated version.. thanks so much for doing this so quickly! :)

Maybe I've missed this in my skimming through but is there a way to fix the problem where any link with eBay in it's url is seen as "ebay" and goes to their homepage instead of the one intended? (for instance: tamebay.com goes to ebay.com)

Thanks! :)

Dismounted 04-09-2008 06:02 AM

I have not gotten around to fix that bug yet. I pushed out this release quickly because it is a major structural change (in eBay).

creativepart 04-09-2008 03:13 PM

All my "old" posts made prior to my switchover to the new EPN system show the old CJ coding. How can I go about "rewriting" these old posts to carry the new EPN link content?

Dismounted 04-10-2008 05:34 AM

You will need to rebuild the post cache. This can be done in the Admin CP.

mdvaldosta 04-12-2008 01:36 PM

Has anybody noticed a change in clicks or revenue, good or bad, since moving the the eBay powered affiliate program?

creativepart 04-12-2008 01:45 PM

My revenue is equal to or higher than before. I did add some new Ebay banners etc at the same time I changed my links.

It does take 3 to 5 days at least for commissions to start ramping up. But I had sales on day one and was at normal CJ levels by day 4.

Many users at the EPN website are complaining of no sales. I can only assume they botched the conversion coding on their pages.

pete_brady 04-13-2008 09:00 AM

latest version installed and working fine, but it's still rewriting links to any URL ending with ebay.com

Dismounted 04-13-2008 09:45 AM

Quote:

Originally Posted by creativepart (Post 1489057)
Many users at the EPN website are complaining of no sales. I can only assume they botched the conversion coding on their pages.

I don't blame them, the EPN developer documentation is wrong. If it wasn't for you guys, I'd always have the wrong code.
Quote:

Originally Posted by pete_brady (Post 1489611)
latest version installed and working fine, but it's still rewriting links to any URL ending with ebay.com

This has been discussed before, as you well know. :)

pete_brady 04-13-2008 10:21 AM

Quote:

Originally Posted by Dismounted (Post 1489626)
This has been discussed before, as you well know. :)

Well... it's been pointed out and noted as being an issue with a previous version before. I wouldn't go so far as to say it's been 'discussed'. :)

Great, great mod, even if i only clocked up an unclaimable $15 on CJ. I know this has been discussed before, but you should look into integrating other affiliate schemes (amazon, buy.at, tradedoubler etc). I'd be happy to pay for a mod like that.

I'm running it successfully on 3.7.0 Release Candidate 3 btw

ETDC 04-17-2008 12:14 AM

Great job!. 'Seems' to be working. :cool::up:

Thanks very much for your hard work. :)

ETDC 04-20-2008 05:05 AM

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. :)

_

sinucello 04-20-2008 10:04 AM

Hi,
Quote:

Originally Posted by ETDC (Post 1494920)
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

ETDC 04-20-2008 01:24 PM

Thanks.

Dismounted; do you think it's possible? It's important enough that I'm willing to consider making it a paid job...

Dismounted 04-21-2008 06:08 AM

As I see it, sinucello's URL is using a completely different affiliate program.

ETDC 04-21-2008 02:21 PM

^ 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? :)

Dismounted 04-22-2008 07:33 AM

But what about the prefix? ;)

Also, EPN also says that it will automatically handle localisation.

ETDC 04-22-2008 05:31 PM

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?

:)

oldengine 04-23-2008 01:24 AM

Unintalled

oldford 04-23-2008 11:26 PM

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.

ETDC 04-23-2008 11:49 PM

It's working fine here for me.

Dismounted 04-24-2008 06:42 AM

The "URL Encode" bug was discovered ages ago with one of my other modifications, and I have had the fix in every version since 1.1 for this modification.

oldford 04-24-2008 01:16 PM

Excellent. I just thought I would check since it seems this is something new, at least to eBay.

ETDC 04-24-2008 04:04 PM

Any thoughts yet, Dismounted? :)

ashley76 04-25-2008 01:01 PM

quick question. I put my new campaign ID in there but, it takes the last four numbers of it and converts them to zeros. Is that the way it is supposed to work?

creativepart 04-25-2008 09:07 PM

Quote:

Originally Posted by ashley76 (Post 1498995)
quick question. I put my new campaign ID in there but, it takes the last four numbers of it and converts them to zeros. Is that the way it is supposed to work?

In a word NO! You should see "campid=" with your complete campaign ID.

ashley76 04-26-2008 01:48 AM

Well why would it change it? In the settings field I put my number and click save and when it comes back to the page it shows my first 6 numbers and the last four are 0000...

If I put 1234567890 in there it will keep it but, when I put my number in there, after saving it changes the last four digits to 0000

Dismounted 04-26-2008 10:26 AM

To be honest, I don't know. There is nothing wrong with the option's code, as the only requirement is that it has to be a number.

ashley76 04-26-2008 11:32 AM

Can I just change the line in product-rewrite_ebay_links.php that says

$vbulletin->options['rewrite_ebay_links_campid']

and replace 'rewrite_ebay_links_campid' with my id?

Something weird... I have to sites and the second one is doing the same thing...

Dismounted 04-26-2008 02:03 PM

You *could* replace $vbulletin->options['rewrite_ebay_links_campid'] with your ID, but I don't recommend you doing so.

ashley76 04-26-2008 03:39 PM

Yeah it doesn't work... tried that already :)

Dismounted 04-27-2008 07:16 AM

What did you try?

ashley76 04-27-2008 03:35 PM

tried replacing this 'rewrite_ebay_links_campid' with my number... Is there another way to work around this?

lem 04-27-2008 09:59 PM

Can someone tell me how to get this to work for eBay RSS Feeds. I do eBay RSS feeds on my forum and all of the links from those rss feeds just take you to the ebay home page instead of taking you to the product. For normal links it works fine.

Thanks!

Dismounted 04-28-2008 06:08 AM

Quote:

Originally Posted by ashley76 (Post 1500762)
tried replacing this 'rewrite_ebay_links_campid' with my number... Is there another way to work around this?

You need to replace:
PHP Code:

" . $vbulletin->options['rewrite_ebay_links_campid'] . " 

Quote:

Originally Posted by lem (Post 1501008)
Can someone tell me how to get this to work for eBay RSS Feeds. I do eBay RSS feeds on my forum and all of the links from those rss feeds just take you to the ebay home page instead of taking you to the product. For normal links it works fine.

Thanks!

eBay RSS Feeds? :confused:

ashley76 04-28-2008 03:18 PM

Thanks! That works!

lem 04-28-2008 08:17 PM

Quote:

Originally Posted by Dismounted (Post 1501254)
eBay RSS Feeds? :confused:

Yeah, vBulletin lets you setup RSS feeds for your forum. So, I have eBay RSS feeds show up on my forum so that I dont have to manually post all the latest and greatest things on ebay.

Does anyone know how to mod the Rewrite file to rewrite the RSS feeds and take you to the products page? As of now it just takes you to eBays home page. It breaks the RSS feeds link.

Andy

Dismounted 04-29-2008 07:56 AM

They *should* parse correctly, if they are posts.

bplinson 05-01-2008 03:38 AM

Is this working ok with 3.6.10? Just wondering because I usually make between $10 - $40 a day with this and since I upgraded I have been making less.

I am running version 1.1 of this product.

Dismounted 05-01-2008 05:56 AM

Are you still using CJ or are you on EPN?

bplinson 05-03-2008 05:05 AM

CJ. I am good though. Just had a bad day and it was a coincidence that it happened at the same time I upgraded.


All times are GMT. The time now is 06:56 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.01573 seconds
  • Memory Usage 1,838KB
  • 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
  • (2)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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