Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
New Ebay Widget embedding (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: New Ebay Widget embedding
#4362
New Ebay Widget embedding 1 Year, 4 Months ago  
This article
www.techcrunch.com/2007/04/30/ebay-launc...ets-for-any-listing/
presents a really nice tour of the new Ebay embedded widget.

Ebays site for creating the embed code is here:
http://togo.ebay.com/

It would be really sweet to be able to have these in postings!
owen93 (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#4445
Re:New Ebay Widget embedding 1 Year, 4 Months ago  
I tried making some bbcode to do this but it's not working. I am not getting any errors but nothing shows up when I try to use it.

I added the following to the default templates smile.class.php file.

Code:


//ebay widget
$fb_message_txt = preg_replace("/\[ebay\](.*?)\[\/ebay\]/si","<object width=\"355\" height=\"300\"><param name=\"movie\" value=\"http:\/\/togo.ebay.com\/togo\/togo.swf\" \/><param name=\"flashvars\" value=\"base=http:\/\/togo.ebay.com\/togo\/ &lang=en&mode=normal&itemid=$1\" \/><embed src=\"http:\/\/togo.ebay.com\/togo\/togo.swf\" type=\"application\/x-shockwave-flash\" width=\"355\" height=\"300\" flashvars=\"base=http:\/\/togo.ebay.com\/togo\/&lang=en&mode=normal&itemid=$1\"><\/embed><\ /object>",$fb_message_txt);

//ebay search
$fb_message_txt = preg_replace("/\[ebaysearch\](.*?)\[\/ebaysearch\]/si","<object width=\"355\" height=\"300\"><param name=\"movie\" value=\"http:\/\/togo.ebay.com\/togo\/togo.swf\" \/><param name=\"flashvars\" value=\"base=http:\/\/togo.ebay.com\/ togo\/&lang=en&mode=search&query=$1\" \/><embed src=\"http:\/\/togo.ebay.com\/togo\/togo.swf\" type=\"application\/x-shockwave-flash\" width=\"355\" height=\"300\" flashvars=\"base=http:\/\/togo.ebay.com\/togo\/&lang=en&mode=search&query=$1\"><\/ embed><\/object>",$fb_message_txt);    



Technically I should be able to call them like this,


or

[ebaysearch]Stargate SG1[/ebaysearch]

If anyone sees any mistakes in the code I posted above please let me know. I would like to get this working just for the hell of it, lol. I'll probably wind up using it every now and then on my forums.

CODE EDITED: Removed hardcoded search term and item number, removed un-needed character, Above code now works.



Post edited by: Goanna, at: 2007/05/02 06:22
Goanna (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#4462
Re:New Ebay Widget embedding 1 Year, 4 Months ago  
Hmm, it's not working. Maybe it's because you have Stargate SG1 hardcoded into your code.

Right here
Code:

<param name=\"flashvars\" value=\"base=http:\/\/togo.ebay.com\/togo\/&lang=en&mode=normal&itemid=220106405083&query=Stargate%20SG1\" \/>


and here
Code:

<param name=\"flashvars\" value=\"base=http:\/\/togo.ebay.com\/togo\/&lang=en&mode=search&query=Stargate%20SG1\" \/>


Post edited by: eli, at: 2007/05/02 05:23

Post edited by: eli, at: 2007/05/02 05:23

Post edited by: eli, at: 2007/05/02 05:23
Eli (User)
Senior Boarder
Posts: 56
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#4465
Re:New Ebay Widget embedding 1 Year, 4 Months ago  
eli wrote:
Hmm, it's not working. Maybe it's because you have Stargate SG1 hardcoded into your code.

Right here
Code:

<param name=\"flashvars\" value=\"base=http:\/\/togo.ebay.com\/togo\/&lang=en&mode=normal&itemid=220106405083&query=Stargate%20SG1\" \/>


and here
Code:

<param name=\"flashvars\" value=\"base=http:\/\/togo.ebay.com\/togo\/&lang=en&mode=search&query=Stargate%20SG1\" \/>


Post edited by: eli, at: 2007/05/02 05:23

Post edited by: eli, at: 2007/05/02 05:23<br><br>Post edited by: eli, at: 2007/05/02 05:23


Lol I dont know how I missed that. I removed the hardcoded information and also removed an extra ] that I mistakedly included in both examples. It now works fine on my demo site.

Post edited by: Goanna, at: 2007/05/02 06:13
Goanna (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#4467
Re:New Ebay Widget embedding 1 Year, 4 Months ago  
owen93 wrote:
This article
www.techcrunch.com/2007/04/30/ebay-launc...ets-for-any-listing/
presents a really nice tour of the new Ebay embedded widget.

Ebays site for creating the embed code is here:
http://togo.ebay.com/

It would be really sweet to be able to have these in postings!


Here you go. My site's running on my local machine so I cant link you to it but heres a screenshot of the ebay widgets running in fireboard.

EDIT: Well I tried uploading an image but it seems if you upload and the attempt is failed due to improper image size, it takes away the field and doesnt allow you to upload again on the same post.

Post edited by: Goanna, at: 2007/05/02 06:21
Goanna (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#4472
Re:New Ebay Widget embedding 1 Year, 4 Months ago  
Upload it on imageshack or photobucket, or on your own website.

Anyways, I updated my code and it does work now. Thank you. Not sure if I'd ever use this, but it's something to keep just for kicks.
Eli (User)
Senior Boarder
Posts: 56
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#4547
Re:New Ebay Widget embedding 1 Year, 4 Months ago  
sorry for being such a rank newbie - but i'm a Unix Admin - not much of a coder.

"where" in smile.class.php would be a good place to add these two bits?

can you suggest a good "after this line -and before this line" reference for the PHP challenged!
owen93 (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#4632
Re:New Ebay Widget embedding 1 Year, 4 Months ago  
owen93 wrote:
sorry for being such a rank newbie - but i'm a Unix Admin - not much of a coder.

"where" in smile.class.php would be a good place to add these two bits?

can you suggest a good "after this line -and before this line" reference for the PHP challenged!


Location isnt too important as long as its grouped with the otherbbcode functions and you dont interupt any of the other code.

But for example I put mine after this line:

Code:

 // italic

                   $fb_message_txt = preg_replace("/(\[i\])(.*?)(\[\/i\])/si","<em>\\2</em>",$fb_message_txt);



and before this line:
Code:

  // lists

                   $fb_message_txt = preg_replace("/(\[ul\])(.*?)(\[\/ul\])/si","<ul>\\2</ul>",$fb_message_txt);

Goanna (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#4653
Re:New Ebay Widget embedding 1 Year, 4 Months ago  
Thanks
works perfectly
owen93 (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#5238
Re:New Ebay Widget embedding 1 Year, 4 Months ago  
I edited the code for the single item slightly, figured I would post it here in case you guys want to update your's as well.

The ebay widgets walkthrough specifies listing a search term to use on the single item search widget, so that after 90 days the widget will turn into a search widget instead.

So, I have changed to code to enable that usage.

Code:


//ebay widget
$fb_message_txt = preg_replace("/\[ebay=(.*?)\](.*?)\[\/ebay\]/si","<object width=\"355\" height=\"300\"><param name=\"movie\" value=\"http:\/\/togo.ebay.com\/togo\/togo.swf\" \/><param name=\"flashvars\" value=\"base=http:\/\/togo.ebay.com\/togo\/ &lang=en&mode=normal&itemid=$1&query=$2\" \/><embed src=\"http:\/\/togo.ebay.com\/togo\/togo.swf\" type=\"application\/x-shockwave-flash\" width=\"355\" height=\"300\" flashvars=\"base=http:\/\/togo.ebay.com\/togo\/&lang=en&mode=normal&itemid=$1\"><\ /embed><\/object>",$fb_message_txt);



You would use this in the following format.



Or, if you dont care to enter the search term just like this

[ebay=Item_Number][/ebay]
Goanna (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top
Powered by FireBoard - Creditsget the latest posts directly to your desktop