Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Custom tag - too advanced?

Quote Reply
Custom tag - too advanced?
Hi,

I wanted to add a "youtube" tag in the forum ... so added:

youtube()

Code:
<br />
<p><object height="250" width="415"><param name="movie" value="%1%"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="%1%" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="250" width="415"></embed></object>]
</p>

This works fine when showing the post - but when you go to "edit" it, the page breaks - it shows up as:

Code:
Doing a test re[;y



]




]

..instead of:

Code:
[youtube http://www.youtube.com/v/a52sSrzJSHs?fs=1&amp;hl=en_GB]

Is this tag just too complicated? I really wanna get this to work :)

BTW, I've also tested it with "quotes" around it, but the same happens:

Code:
[youtube "http://www.youtube.com/v/a52sSrzJSHs?fs=1&amp;hl=en_GB"]


TIA

Andy

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

Last edited by:

Andy: Oct 15, 2010, 1:16 AM
Quote Reply
Re: [Andy] Custom tag - too advanced? In reply to
Ok, so maybe this is a bug with the beta then :(

Cos even doing:

Code:
foo %1%

..works fine, and prints in the post:

Code:
foo http://www.youtube.com/v/a52sSrzJSHs?fs=1&amp;hl=en_GB

..but when you go to edit it, you get:

Code:
foo http://www.youtube.com/v/a52sSrzJSHs?fs=1&amp;hl=en_GB

..instead of:

Code:
[youtube http://www.youtube.com/v/a52sSrzJSHs?fs=1&amp;hl=en_GB]

Maybe I will just have to use a custom global for that then :(

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Custom tag - too advanced? In reply to
I have this in my test copy:

Tag: youtube()

HTML:
Code:
<object width="560" height="340">
<param name="movie" value="http://www.youtube.com/v/%1%&hl=en_US&fs=1&"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/%1%&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed>
</object>

Adrian
Quote Reply
Re: [brewt] Custom tag - too advanced? In reply to
Hi,

Thanks for the reply.

Is this in 1.99.1, or 1.2.1?

Also, that looks a little difrferent to mine - I was just letting them send the whole URL to the video ... hows your one work?

Thanks again

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Custom tag - too advanced? In reply to
Shouldn't make a difference which version. You just put the video id (the filename of random characters).

Adrian
Quote Reply
Re: [brewt] Custom tag - too advanced? In reply to
Hi,

Definatly doesn't work on my copy :(

Will shoot you over GForum admin + sample login, and maybe you could take a look? (no rush - as I'm finished for the day now anyway)

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates