The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vb eBay user integration Details »» | |||||||||||||||||||||||||
This little hack will allow you and your members to access your ebay information and do other functions from within your website. It is a very small and light on features hack and later I might add to it.
Step 1: Upload vbebay.php to your root (example http://www.yoursite.com/vbebay.php ) Step 2: Add a profile field. Go to your admincp => User Profile Fields => Add New User Profile Field => Single-Line Text Box => [Continue] Code:
Title = Your ebay username Description = This is your eBay Username Default Value = blank Max length of allowed user input = 100 Field Length = 40 Display Order = your choice Field Required = No Field Editable by User = Yes Private Field = your choice Field Searchable on Members List = your choice Show on Members List = your choice Which page displays this option? = Edit Profile Step 3: Edit the product: Find both instances of fieldxx and replace xx with the field number you just got from the recently created profile field number. Step 4: Import the product. Go to Plugins & Products => Manage Products => Add/Import Product Step 5: (Optional navigation bar insertion) Go to Styles & Templates => Style Manager => Style Choice Drop down All Style Options and choose Edit Templates - Click Go. Navigation / Breadcrumb Templates >> => navbar Find: Code:
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td> Code:
<td class="vbmenu_control"><a href="vbebay.php$session[sessionurl_q]">vB eBay</a></td> Show Your Support
|
Comments |
#2
|
|||
|
|||
very nice, will give it a try
|
#3
|
||||
|
||||
Wow, Looks cool!
Will test it out |
#4
|
||||
|
||||
note: typo
Step 1: Upload vbebay.php to your root (example http://www.yoursite.com/vbebay.com ) surely, you mean: Step 1: Upload vbebay.php to your root (example http://www.yoursite.com/vbebay.php ) |
#5
|
||||
|
||||
aw shucks i got excited. I thought this was going to be an api of some sort, not an iframe
oh well, good mod anyhoo |
#6
|
||||
|
||||
I've been typing .com all morning (when testing) lol
|
#7
|
|||
|
|||
i started getting a error when i installed this mod on my online.php page.
error: Quote:
|
#8
|
||||
|
||||
What other modifications do you have installed? I have this installed on two sites and neither one have this error - however, they also do not have many modifications installed either.
|
#9
|
|||
|
|||
Yep, same error here as well
|
#10
|
|||
|
|||
Quote:
Code:
<plugins> <plugin active="1" executionorder="5"> <title><![CDATA[vB eBay WOL Part 2]]></title> <hookname>online_location_process</hookname> <phpcode><![CDATA[if ($filename == 'vbebay.php'){ $userinfo['activity'] = 'vbebay'; } ]]></phpcode> </plugin> <plugin active="1" executionorder="5"> <title><![CDATA[vB eBay WOL Part 1]]></title> <hookname>online_location_unknown</hookname> <phpcode><![CDATA[if ($userinfo['activity'] == 'vbebay'){ $handled = true; $userinfo['action'] = 'Viewing a member's auctions'; $userinfo['where'] = "<a href=\"vbebay.php?{$vbulletin->session->vars['sessionurl_q']}\">vB eBay</a>"; } ]]></phpcode> </plugin> </plugins> Code:
<plugins> <plugin active="1" executionorder="5"> <title><![CDATA[vB eBay WOL Part 2]]></title> <hookname>online_location_process</hookname> <phpcode><![CDATA[if ($filename == 'vbebay.php'){ $userinfo['activity'] = 'vbebay'; } ]]></phpcode> </plugin> <plugin active="1" executionorder="5"> <title><![CDATA[vB eBay WOL Part 1]]></title> <hookname>online_location_unknown</hookname> <phpcode><![CDATA[if ($userinfo['activity'] == 'vbebay'){ $handled = true; $userinfo['action'] = 'Viewing a member\'s auctions'; $userinfo['where'] = "<a href=\"vbebay.php?{$vbulletin->session->vars['sessionurl_q']}\">vB eBay</a>"; } ]]></phpcode> </plugin> </plugins> Also, if you want to integrate eBay's Partner Network with this, simply search&replace Code:
http:// Code:
http://WHATEVER-YOUR-CAMPAIGN-URL-IS-FROM-EPN=http:// Code:
http://rover.ebay.com/rover/1/711-53200-19255-0/1?type=3&campid=5335851551&toolid=10001&mpre=http:// Code:
http://rover.ebay.com/rover/1/711-53200-19255-0/1?type=3&campid=5335851551&toolid=10001&mpre=http://my.ebay.com/ws/eBayISAPI.dll?MyeBay |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|