• Welcome to Simple Machines Community Forum. Please login or sign up.
November 28, 2021, 03:52:53 AM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


BBC Ebay Tag

Started by snork13, March 15, 2006, 08:33:36 AM

Previous topic - Next topic

snork13

Link to Mod

adds a bbc ebay tag to the post template. Just enter the ebay item in the post and select the ebay bbc tag. It will return the full link to the ebay auction!
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Wittsend

March 26, 2006, 03:42:47 AM #1 Last Edit: March 28, 2006, 08:01:43 AM by Wittsend
Just been playing with this mod...


Great idea...well done snork13


Here's a couple of enhancements to tidy it up.....at least for SMF 1.1 RC2 - Theme Green

Place this Ebay graphic into your theme's bbc folder:-

Themes -
default theme -
images -
bbc -

This will give you a proper "Ebay" button....

Next open the theme's Post.template.php file (save a copy of the original)
seach for "ebay" along that line replace "Ebay Item" with something like "Insert Ebay item number"...
Save and upload to your smf folder....

This will give more info for your users on the mouseover....

This works on our forum here...

S2C forum [nofollow]

reposted 'cos I put it in the "wrong" place....

What we see depends mainly on what we look for.

Wittsend

March 27, 2006, 09:00:05 AM #2 Last Edit: March 27, 2006, 09:08:59 AM by Wittsend
....further enhancements......

Maybe you want the Ebay Item to come up within "Ebay.co.uk" instead of Ebay.com [nofollow]

and maybe instead of displaying Ebay Item #12345678 on your forum a nice little Ebay graphic...

Item #12345678



Here's what to do....

Make a copy of the Subs.php file in the Sources folder...

Search for this section in Subs.php (this is the only place "ebay" crops up, so put that in the find field)

Quotearray(
                                'tag' => 'ebay',
                                'type' => 'unparsed_content',
                                'content' => '<a href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=$1 [nofollow]" target="_blank">Ebay Item #$1</a>',
                   
                        ),
                        array (
                                'tag' => 'ebay',
                                'type' => 'unparsed_equals',
                                'before' => '<a href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=$1 [nofollow]">',
                                'after' => '</a>',
                        ),

Edit the .com to .co.uk
If you want the graphic add the image tag as shown here....

Quote'content' => '<a href="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=$1 [nofollow]" target="_blank"> <IMG SRC="http://www. [nofollow]URL for your smf forum/Themes/green/images/bbc/ebay.gif">Item #$1</a>',
       
                        ),
                        array (
                                'tag' => 'ebay',
                                'type' => 'unparsed_equals',
                                'before' => '<a href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=$1 [nofollow]">',
                                'after' => '</a>',
                        ),

The red bit is the URL of where your forum is...
The green bit is your default theme folder and/or the theme folder you are using...
(I'm using Theme Green)

Upload your edited version of Subs.php and bob's your uncle.....

(please make sure you have a working copy of Subs.php before you play)






What we see depends mainly on what we look for.

beemer

March 27, 2006, 09:06:26 AM #3 Last Edit: March 27, 2006, 09:45:20 AM by beemer
Very useful Snork & Wittsend shall be adding this later, as users seem to have so many problems adding a url  :(

Thanx Guys

I'm assuming change both instances of ebay.com to .co.uk  ;)

'content' => '<a href="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=$1" target="_blank"> <IMG SRC="http://www.URL for your smf forum/Themes/green/images/bbc/ebay.gif">Item #$1</a>',
       
                        ),
                        array (
                                'tag' => 'ebay',
                                'type' => 'unparsed_equals',
                                'before' => '<a href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=$1">',
                                'after' => '</a>',
                        ),
http://www.bmw7resource.co.uk
SMF 1.1 RC1
MKP 1.1 RC1
Helios Multi RC1
-------------------------------------------------------
http://www.thefishsheadnhorsesarse.co.uk
SMF 1.1 RC2
TinyPortal 0.8.6

Wittsend

Yes, change both instances, sorry should have made that bit clearer...

What we see depends mainly on what we look for.

beemer

Works atreat guys thanx

Added a border="0" to the image for the light background themes

SRC="http://www.yourdomain/Forum/Themes/tp_amber11rc2/images/bbc/ebay.gif" border="0"
http://www.bmw7resource.co.uk
SMF 1.1 RC1
MKP 1.1 RC1
Helios Multi RC1
-------------------------------------------------------
http://www.thefishsheadnhorsesarse.co.uk
SMF 1.1 RC2
TinyPortal 0.8.6

aussieholden

Sound like this mod need to be updated to work on RC2 with these added changes.

aussieholden

Mine doesn't display like this in the post's

Item #12345678

Instead it comes out like this

[logo]Ebay Item #http://cgi.ebay.com.au/1998-VS-SERIES-III-V6-HOLDEN-STATESMAN_W0QQitemZ4627892020QQcategoryZ102246QQrdZ1QQcmdZViewItem


Wittsend

Hi aussieholden,


I'm running with SMF 1.1 RC2

I downloaded the mod and it installed just fine with the package installer in the ACP.
My forum has a heavily customised theme.

It all works fine.

So perhaps that's the starting point. Get the original mod installed and working, then work on the extras.

I'm afraid I can offer no real practical help with why the mod isn't working with your setup.




What we see depends mainly on what we look for.

aussieholden

The mod was installed then the changes made and was still the same long link.

beemer

It is also working fine on both my RC2 installs

Post up the changes you made or else I can take a look for you
http://www.bmw7resource.co.uk
SMF 1.1 RC1
MKP 1.1 RC1
Helios Multi RC1
-------------------------------------------------------
http://www.thefishsheadnhorsesarse.co.uk
SMF 1.1 RC2
TinyPortal 0.8.6

snork13

Quote from: aussieholden on April 05, 2006, 08:44:31 AM
The mod was installed then the changes made and was still the same long link.

@aussieholden

This mod was made for 1.1rc2, so no update needed. If you have other mods installed it may be the problem. This mod changes two files, they are:

$themedir/Post.template.php
$sourcedir/Subs.php

The mod only changes the default theme, so if you have a custom theme you will need to change the code manually. Please refer to the ebay_tag.xml file for modifications.

You may want to check your files against the modifications .xml


-snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Vinspire

This mod is awesome .... Great additional function on SMF .... Wee ... SMF rock !

bassbass

I am using Enhanced Quick Reply (EQR), it shows the tag button in the regular reply box but not in the EQR box, can some one give me the code and tell me where to insert it so it shoes in the EQR box.  thanks in advance.

GazOutEast

Running SMF 1.1.4

Just tried to install this and got a "package zip is either corrupt or not compatible with SMF - install cancelled" error

When will the zip get updated?  I'd really like to have this one on our forum.

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

sparky33

I think it would be better if you were able to enter the URL, and then the mod changed it to the action title?

That is what I thought it was going to do when I installed it.
www.dublinforums.org

www.renaultforums.co

Eclipse16V

Great Mod.

Run it on SMF 2.0 Beta 3.1 Public ? ? ?

Thx
I worked with:
SMF 2 in German

Shop:
SID Giessen

willerby

Can anyone update this to work with SMF 2.0RC1.1 ?

Post.Template.php file works in a different way...

Thanks
What type of washing machine is September?

An autumnatic. :)

rodrico101

Is there an update for 1.1.11 ??

Thanks,
Rod

kokett

Hi,

it should same code for 1.1.11

I've changed code a bit to use new Ebay Widget "ToGo" - Just insert this into Subs.php instead of original code out of the mod:

        array(
                                'tag' => 'ebay',
                                'type' => 'unparsed_content',
                                'content' => '<object width="355" height="300"><param name="movie" value="http://togo.ebay.de/togo/togo.swf" /><param name="flashvars" value="base=http://togo.ebay.de/togo/&lang=de-de&mode=normal&itemid=$1" /><embed src="http://togo.ebay.de/togo/togo.swf" type="application/x-shockwave-flash" width="355" height="300" flashvars="base=http://togo.ebay.de/togo/&lang=de-de&mode=normal&itemid=$1"></embed></object>',
                        ),
                array (
                                'tag' => 'ebay',
                                'type' => 'unparsed_equals',
                                'before' => '<a href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=$1">',
                                'after' => '</a>',
                        ),



Advertisement: