vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   eBay Integration Mod (https://vborg.vbsupport.ru/showthread.php?t=97450)

Creed 10-02-2005 10:00 PM

eBay Integration Mod
 
This extension allows users to enter their eBay username, and will then have a link in postbit that will show all the users current eBay Auctions.

Does require a couple of template edits, and edit of a file (not native to vB).

Based off of the idea and hack from 3.0.x which can be seen: here.


1.0.1 Updated XML to parse two templates, saving two queries (thanks to Zachariah).

1.0.0 Initial Release


*To Update*
Reupload all files, Re-import product, making sure to allow overwrite.
-- Make sure you replace fieldx with your field# in the XML before updating.

Colejo 10-03-2005 12:55 PM

I'm trying this out but I don't see this part in the eBay sniplet:

When adding your Ebay Sniplet Source Code to the template, find this bit &si=whatever and add your profile field: &si=$userinfo[fieldx]

Colejo 10-03-2005 01:07 PM

I looked at the original hack and I think I have it right now. Thanks.

KidneyBoy 10-03-2005 01:26 PM

This hack works GREAT. Thanks so much for releasing this great modification!!!

Take it easy
KidneyBoy

Colejo 10-03-2005 01:56 PM

Is there a way to get that same ebay icon that is in the postbit to show up in the other locations that the yahoo and aim icons show up?
And how about a way to list all of your users with ebay auctions on one page?

The Realist 10-03-2005 04:19 PM

Ok finally got this to work.

When you create the ebay snippet find this in the code "siteid=" and replace it with this "si=$userinfo[fieldX]"

Remember to change the X to what your userfield is.

laters

Creed 10-03-2005 04:19 PM

Sorry, should have clarified that a bit more.

The Realist 10-03-2005 04:45 PM

Well I thought I did but all I get is a blank page with just a search bar?

Anyone?

Quote:

Originally Posted by The Realist
Ok finally got this to work.

When you create the ebay snippet find this in the code "siteid=" and replace it with this "si=$userinfo[fieldX]"

Remember to change the X to what your userfield is.

laters


Vizionz 10-03-2005 05:51 PM

nevermind that ..

is this stable and works ?

Creed 10-03-2005 09:53 PM

Quote:

Originally Posted by The Realist
Well I thought I did but all I get is a blank page with just a search bar?

Anyone?

That would mean whatever user's profile you were viewing doesn't have any current auctions.

Creed 10-03-2005 09:53 PM

Quote:

Originally Posted by Vizionz
nevermind that ..

is this stable and works ?


I haven't had any problems with it yet, but I'll leave that up to everyone else :)

The Realist 10-04-2005 01:43 PM

But I have setup an auction for myself and using that as an example.

Laters

Quote:

Originally Posted by Creed
That would mean whatever user's profile you were viewing doesn't have any current auctions.


Zachariah 10-04-2005 01:54 PM

Yes it works.
Need to change "fieldX" in 2 places to the user field you create in the AdminCP.

EX: field5 -- etc . Then the user fills in there Ebay user name. All should work fine.

The Realist 10-04-2005 01:59 PM

2 places where?

Zachariah 10-04-2005 02:03 PM

2 places in what?

Quote:

1. Go here http://cgi3.ebay.com/ws/eBayISAPI.dll?EKCreate to create your Ebay Sniplet Source Code (you have to have an ebay account and have a ebay user ID available)

2. Edit ebay_member Template, replace with your new code.

**NOTE** When adding your Ebay Sniplet Source Code to the template, find this bit &si=whatever and add your profile field: &si=$vbulletin->userinfo[fieldx]

3. Edit template: posbit or postbit_legacy:

find:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]

add after:
<if condition="$post['fieldX']"><a href="member.php?&do=memberauctions&userid=$post[userid]"><img src="$stylevar[imgdir_misc]/ebay.gif" alt="$post[username]'s Ebay Auctions" border="0" /></a></if>

The Realist 10-04-2005 02:10 PM

But my snippet from Ebay says this: &siteid=0

Not this: &si=

Laters

Zachariah 10-04-2005 05:58 PM

@ Creed
Add this to your XML file.

Executed 12 queries (2 queries for uncached templates)

Code:

<plugins>
        <plugin active="1">
                <title>Ebay - Member - Cache</title>
                <hookname>cache_templates</hookname>
                <phpcode><![CDATA[$globaltemplates  = array_merge($globaltemplates, array('ebay_main_member','ebay_member',));]]></phpcode>
        </plugin>
</plugins>


csidlernet 10-05-2005 02:35 AM

thankyou this'll work fine!
/me hits install

Creed 10-05-2005 06:20 AM

Quote:

Originally Posted by Zachariah
@ Creed
Add this to your XML file.

Executed 12 queries (2 queries for uncached templates)

Code:

<plugins>
        <plugin active="1">
                <title>Ebay - Member - Cache</title>
                <hookname>cache_templates</hookname>
                <phpcode><![CDATA[$globaltemplates  = array_merge($globaltemplates, array('ebay_main_member','ebay_member',));]]></phpcode>
        </plugin>
</plugins>


Done! 1.0.1 Updated!

The Realist 10-05-2005 08:59 AM

Im lost on this hack.

Milez 10-05-2005 01:35 PM

This hack would kick butt if the webmaster could integrate his ebay affiliate link into the auctions...This way you would get revenue off users who actually click through and bid. Can't be too hard to do this.

Just a suggestion ;)

tokenyank 10-05-2005 04:11 PM

I have this running for 3.0.8 and as soon as the Trader Ratings hack is ported to 3.5, I'll be upgrading so this being done makes me :D

But, will my exsisting 3.0.8 ebay postbit enteries be the same, or will the users have to re-edit their profile to put in their name again?

Quote:

Originally Posted by Milez
This hack would kick butt if the webmaster could integrate his ebay affiliate link into the auctions...This way you would get revenue off users who actually click through and bid. Can't be too hard to do this.

Just a suggestion ;)

I've already done this (and the same on the hack where people can put their feedback in the postbit) and it's earnt me a whole ?6! :D

Creed 10-05-2005 06:37 PM

Quote:

Originally Posted by Milez
This hack would kick butt if the webmaster could integrate his ebay affiliate link into the auctions...This way you would get revenue off users who actually click through and bid. Can't be too hard to do this.

Just a suggestion ;)


I'll see what I can do.

pcoskat 10-06-2005 06:46 PM

Quote:

Originally Posted by Zachariah
2 places in what?

If I am an ebay affiliate, will my ID be somehow integrated into this?
(If so, this will be awesome!)

Magma 10-06-2005 07:51 PM

I installed the hack, went through this whole thread and I still dont have it showing up, could it be im using a custom style?

I edited all my files as said, still wont show up in the postbit, I do use the old style post bit as well not the new one would that make a difference?

Creed 10-06-2005 09:14 PM

Quote:

Originally Posted by pcoskat
If I am an ebay affiliate, will my ID be somehow integrated into this?
(If so, this will be awesome!)


Not yet, but I am currently working on that.

Quote:

Originally Posted by Magma
I installed the hack, went through this whole thread and I still dont have it showing up, could it be im using a custom style?

I edited all my files as said, still wont show up in the postbit, I do use the old style post bit as well not the new one would that make a difference?


There should not be a problem, I as well use postbit legacy.

Magma 10-06-2005 11:11 PM

Ya should there not be an Icon of some sort beside the yahoo icon? because I dont have anything

spaghie 10-06-2005 11:48 PM

Great mod! thank you so much!!
(clicked install).

tokenyank 10-07-2005 11:36 AM

Quote:

Originally Posted by Creed
Not yet, but I am currently working on that.

Erm... When making your snippet code, if you put at the bottom of the form your Commission Junction ID, the code that the Snippet Creator makes will already have your affiliate link embedded into the code.

Nothing that you, the hack maker, has to do... It's merely down to the user having an affiliate account...

Creed 10-07-2005 04:00 PM

The problem was, I wasn't sure how the affiliate id worked, as I'm not an eBay affiliate. I'll update the readme with that information. Thanks

Colejo 10-08-2005 06:20 AM

I wanted this to show up in the Member's list so I added this to the memberlist_resultbit template. I haven't done this long so if there is a better way please let me know.

Code:

<if condition="$userinfo[field12] != ''"><a href="member.php?&do=memberauctions&userid=$userinfo[userid]"><img src="images/misc/ebay.gif" border="0" title="$userinfo[field12]" align="center"/></a></if>

pcoskat 10-14-2005 04:18 AM

Quote:

Originally Posted by Creed
The problem was, I wasn't sure how the affiliate id worked, as I'm not an eBay affiliate. I'll update the readme with that information. Thanks

Creed, I'll be keeping an eye out for the affiliate addition. That will be great.

I've been using an Amazon.com hack on my site that has upped sales: any time someone posts an Amazon link, it automatically adds my affiliate id.

Get your hack going for eBay in the same way, and that will be WAY cool!

MRGTB 10-28-2005 04:07 PM

the file for download is corrupted when you try to unzip it with winrar

silurius 10-28-2005 05:15 PM

I agree that adding the affiliate stuff would elevate this cool hack quite a bit. One other thought occurs to me. How to ensure that the user is entering their own eBay ID? With no authentication, I can see the potential for abuse.

Edit: So I got this working and it's great, only when I go to the member's auctions I just see random auctions. Secondly, I could not get this to work by entering the eBay ID into the profile via the admincp, only via the usercp (says that the user did not specify a member ID).

Creed 10-29-2005 05:48 PM

Quote:

Originally Posted by Gary Bolton
the file for download is corrupted when you try to unzip it with winrar

It was created using winzip 9, which has new compression I'll reup it using winrar to zip it.

xtreme-mobile 10-30-2005 10:20 AM

ok ive installed this and can see the ebay icon and when i clik it it shows a banner with a load of crap in it? is taht right?

ill upload screenie in a min

Creed 10-30-2005 03:19 PM

Unless the user currently has auctions running, thats generally what is displayed. Usually an add, etc. That is customizable using the ebay snipet.

xtreme-mobile 10-30-2005 03:50 PM

ok thanks mate for the reply

very neat hack by the way ;)

xtreme-mobile 10-30-2005 04:03 PM

ok ive just added a auction on ebay and its not showing up on my list in the hack any one know why this would not be showing? Creed?

cheers

tokenyank 10-30-2005 10:34 PM

when an auction is just listed, it doesn't always show up in the 'users' list until some time after... Remember, eBay has HUGE data farms so it will take a bit of time for one server to update them all.. If it isn't there after a few hours, then it could be a problem.

As the the affiliate thing, just to re-iterate, if you have a Commision Junction account, when you generate snippet, simply add your PID to the options before you render the code... It'll automatically embed your eBay affiliate code to the snippet code... Add the snippet code to your template as per instructions and Bob's your uncle.

(Oh, and yes, depending on how you configure the snippet, if the member isn't currently running an auction, it'll display random auctions, auctions from a defined catagory, or just a blank box with an ebay ad in it... If you don't like what it looks like, rebuild your snippet)


All times are GMT. The time now is 04:46 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.01362 seconds
  • Memory Usage 1,827KB
  • 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
  • (3)bbcode_code_printable
  • (14)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
  • (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