vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   By Request - Ebay Affilliate Conversion (https://vborg.vbsupport.ru/showthread.php?t=72566)

amykhar 12-05-2004 10:00 PM

By Request - Ebay Affilliate Conversion
 
OK. This one is a quick knock-off of the amazon hack. It takes links to items on ebay and converts them to use your commission junction affilliate id.

It is very much a beta and has only been tested for about 5 minutes.

It was requested in this thread:

https://vborg.vbsupport.ru/showthread.php?t=72564

Please report any bugs.

sabret00the 12-07-2004 03:51 PM

nice work :)

dwh 12-10-2004 12:49 AM

how do you determine what your number is?

dwh 12-10-2004 01:09 AM

Looking at it more, it looks like this one and the amazon hack change the link when it's posted, but doesn't change old historical links?

amykhar 12-10-2004 12:29 PM

Quote:

Originally Posted by dwh
Looking at it more, it looks like this one and the amazon hack change the link when it's posted, but doesn't change old historical links?

Right. In the old vb2 version, it did because vbulletin parsed links when they were displayed, not when they were inserted in the database. (If I remember correctly. It's been a while.)

Now, the links are processed when a message is posted or when a message is edited.

It might be interesting to put together a script to go through old posts and change the links, but I don't have time to do that right now.

Amy

amykhar 12-10-2004 12:30 PM

Quote:

Originally Posted by dwh
how do you determine what your number is?

When you go to commission junction, in the section for ebay there is a link to a tool at ebay that allows you to create a link to any item. Create one link and then grab the number from that link.

Amy

dwh 12-10-2004 12:57 PM

Quote:

Originally Posted by amykhar
Right. In the old vb2 version, it did because vbulletin parsed links when they were displayed, not when they were inserted in the database. (If I remember correctly. It's been a while.)

Now, the links are processed when a message is posted or when a message is edited.

It might be interesting to put together a script to go through old posts and change the links, but I don't have time to do that right now.

Amy

I wonder why they changed the system. It seems crazy. Links should be parsed when displayed so if there's a change in how you want links displayed (like here), you only need to deal with it once. sigh.

Quote:

Originally Posted by amykhar
When you go to commission junction, in the section for ebay there is a link to a tool at ebay that allows you to create a link to any item. Create one link and then grab the number from that link.

Amy

Yes, but it looks like this:

http://www.cj.com/blahblah/click-yourid-itemid/bla

is it enough to just put in yourid? Looking at the code, it doesn't seem to pull the itemid from the links and insert it into your code?

I haven't studied CJ's/ebay's system much so I'm not sure of the syntax but that's what it looks like to me.

amykhar 12-10-2004 01:11 PM

It does pull the item id from the links and puts it into the correct format. And yes, it's enough to get your id by using that tool I mentioned and then paste it in.

It DOESN'T work if you snag the id number from an ebay banner ad, etc. You need to get the id from the link generated by the tool or you'll end up on a generic ebay page.

The code takes the id number and the item number and generates a fresh link - so you won't have to worry about somebody else's affiliate id being there too or a session id or anything goofy.

Amy

hankster 12-14-2004 03:06 AM

Doesn't seem to work for me... nothing gets changed in the link. A question: In the second part of the hack do you put the eBay hack ABOVE the $DB_site->query(" line?

[edited] A little experementing shows it adds the corrected link if I edit the post but does not add it when a new link is posted.

dwh 12-14-2004 09:29 AM

Quote:

Originally Posted by amykhar
And yes, it's enough to get your id by using that tool I mentioned and then paste it in.

I looked all over but cannot find this tool.


All times are GMT. The time now is 01:47 PM.

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.01127 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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