Dear FireBoard users,
In order to further develope the need of Joomla for a robust forum, FireBoard component has been moved to its own new home and new name. You can find more information regarding the Kunena, the successor of FireBoard, at kunena.com. The current forum here will stay for some time more for referencing needs. You can find the FireBoard files under joomlacode.org and other files
Upgrading to Kunena is highly recommended!

Kunena! - To Speak!

A revolution is coming... Kunena - Swahili for: To Speak! THE Next generation of native Joomla based Forum ultra component. Forget what you know about Joomla based forums...
Amazingly Simple Lean and Clean Easier Customization
Kunena is about to redefine the world of Joomla! with the most simplistic ultra component out there. For ultimate performance based on state of the art development techniques, Kunena! is about to bring you... With an integrated plugin system that will allow you to extend Kunena beyond your wildest imaginations...
TOPIC: New Ebay Widget embedding
#4362
New Ebay Widget embedding 10 Years, 6 Months ago  
This article
[url]http://www.techcrunch.com/2007/04/30/ebay-launches-togo-widgets-for-any-listing/[/url]
presents a really nice tour of the new Ebay embedded widget.

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

It would be really sweet to be able to have these in postings!
#4362
New Ebay Widget embedding 10 Years, 6 Months ago  
This article
[url]http://www.techcrunch.com/2007/04/30/ebay-launches-togo-widgets-for-any-listing/[/url]
presents a really nice tour of the new Ebay embedded widget.

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

It would be really sweet to be able to have these in postings!
#4445
Re:New Ebay Widget embedding 10 Years, 6 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:1]
//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);
[/code:1]

Technically I should be able to call them like this,
[ebay]220106405083[/ebay]

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.

[img size=498]http://www.bestofjoomla.com/components/com_fireboard/uploaded/images/ebay_widget_demo__Small__copy.gif[/img]

Post edited by: Goanna, at: 2007/05/02 06:22
#4462
Re:New Ebay Widget embedding 10 Years, 6 Months ago  
Hmm, it\'s not working. Maybe it\'s because you have Stargate SG1 hardcoded into your code.

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

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

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
#4465
Re:New Ebay Widget embedding 10 Years, 6 Months ago  
[b]eli wrote:[/b]
[quote]Hmm, it\'s not working. Maybe it\'s because you have Stargate SG1 hardcoded into your code.

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

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

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[/quote]

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
#4467
Re:New Ebay Widget embedding 10 Years, 6 Months ago  
[b]owen93 wrote:[/b]
[quote]This article
[url]http://www.techcrunch.com/2007/04/30/ebay-launches-togo-widgets-for-any-listing/[/url]
presents a really nice tour of the new Ebay embedded widget.

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

It would be really sweet to be able to have these in postings![/quote]

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
#4472
Re:New Ebay Widget embedding 10 Years, 6 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
#4547
Re:New Ebay Widget embedding 10 Years, 6 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!
#4632
Re:New Ebay Widget embedding 10 Years, 6 Months ago  
[b]owen93 wrote:[/b]
[quote]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![/quote]

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:1] // italic

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

and before this line:
[code:1] // lists

$fb_message_txt = preg_replace(\"/(\\[ul\\])(.*?)(\\[\\/ul\\])/si\",\"<ul>\\\\2</ul>\",$fb_message_txt);[/code:1]
#4653
Re:New Ebay Widget embedding 10 Years, 6 Months ago  
Thanks
works perfectly
#5238
Re:New Ebay Widget embedding 10 Years, 6 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:1]
//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);
[/code:1]

You would use this in the following format.

[ebay=Item_Number]Search Term[/ebay]

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

[ebay=Item_Number][/ebay]
Page: 12