Page 82 of 267

Re: Custom BBCodes

Posted: Thu Aug 07, 2008 4:42 pm
by avillabon
jimdunn wrote:
avillabon wrote:this is probably getting to be boring for everyone to see me post one time after the other but i just realized i would like to post sputnik videos using the whole address instead of just the number since the search in that site is really bad and i were to need the url again. What modifications do i have to make to the code for it to work?

Alex
I can't see an easy way to do that because the url for the embedded player is different format to the url for the full pageitself,

full page url:

Code: Select all

http://sputnik7.com/file/3666-artifex-build-an-elephant-for-nissan.html
source for the embedded video:

Code: Select all

http://sputnik7.com/v/3666

But hey, guess what - you don't need to do it anyway - because once you have embedded a video in a post with the existing code, the little grey Sputnik logo on the player is a "link" to the full video page. ;)
you are a true master sir! :lol: no need to change the code indeed! many thanks!

Alex

Re: Custom BBCodes

Posted: Thu Aug 07, 2008 4:44 pm
by jimdunn
avillabon wrote:many thanks!
You're more than welcome, Alex-Glad I could help

Jim

BBC Code: Videos

Posted: Fri Aug 08, 2008 6:22 pm
by dinopc
Hello,

I am a neophyte to the bbc world, and trying to develop a bbc for funny or die videos, which is just a flash video player. I have tried to develop the bbc code below, but it is not quite working. I would appreciate any guidance/suggestions/corrections.

BBC Code Usage:

Code: Select all

[fodvid]http://www.funnyordie.com/videos/{SIMPLETEXT}[/fodvid]
HTML Replacement:

Code: Select all

<object width="464" height="388"><param name="movie" 
value="http://www.funnyordie.com/videos/{SIMPLETEXT}"></param><param name="flashvars" value="key={SIMPLETEXT}"></param><embed src="http://www2.funnyordie.com/public/flash/fodplayer.swf" type="application/x-shockwave-flash" wmode="transparent" width="464" height="388"></embed></object>


For reference, the funny or die html and embed source code:

Code: Select all

http://www.funnyordie.com/videos/64ad536a6d

Code: Select all

<object width="464" height="388" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="movie" value="http://www2.funnyordie.com/public/flash/fodplayer.swf" /><param name="flashvars" value="key=64ad536a6d" /><param name="allowfullscreen" value="true" /><embed width="464" height="388" flashvars="key=64ad536a6d" allowfullscreen="true" quality="high" src="http://www2.funnyordie.com/public/flash/fodplayer.swf" type="application/x-shockwave-flash"></embed></object><noscript>See <a href="http://www.funnyordie.com/videos/64ad536a6d">Paris Hilton Responds to McCain Ad</a> and more <a href="http://www.funnyordie.com">funny videos</a> on <a href="http://www.funnyordie.com">FunnyOrDie.com</a></noscript><div style="text-align:center;width:464px;">See more <a href="http://www.funnyordie.com">funny videos</a> at Funny or Die</div>

Re: Custom BBCodes

Posted: Fri Aug 08, 2008 6:58 pm
by jimdunn
Try this:

BBcode:

Code: Select all

[fodvid]{SIMPLETEXT}[/fodvid]
HTML Replacement:

Code: Select all

<object width="464" height="388" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="movie" value="http://www2.funnyordie.com/public/flash/fodplayer.swf?96d0a705" /><param name="flashvars" value="key={SIMPLETEXT}" /><param name="allowfullscreen" value="true" /><embed width="464" height="388" flashvars="key={SIMPLETEXT}" allowfullscreen="true" quality="high" src="http://www2.funnyordie.com/public/flash/fodplayer.swf?96d0a705" type="application/x-shockwave-flash"></embed></object>
Use like:

Code: Select all

[fodvid]64ad536a6d[/fodvid]

Re: Custom BBCodes

Posted: Fri Aug 08, 2008 7:11 pm
by RMcGirr83
...or to use the link as a full link, try this

BBCode:

Code: Select all

[fodvid]http://www.funnyordie.com/videos/{TEXT}[/fodvid]
HTML Replacement

Code: Select all

<object width="464" height="388" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="movie" value="http://www2.funnyordie.com/public/flash/fodplayer.swf" /><param name="flashvars" value="key={TEXT}" /><param name="allowfullscreen" value="true" /><embed width="464" height="388" flashvars="key={TEXT}" allowfullscreen="true" quality="high" src="http://www2.funnyordie.com/public/flash/fodplayer.swf" type="application/x-shockwave-flash"></embed></object>
use like

Code: Select all

[fodvid]http://www.funnyordie.com/videos/64ad536a6d[/fodvid]

Re: Custom BBCodes

Posted: Fri Aug 08, 2008 7:14 pm
by Luchtzak
How do you program a bbcode that underlines a text, text size small and makes it bold at the same time?

Re: Custom BBCodes

Posted: Fri Aug 08, 2008 7:38 pm
by jimdunn
Luchtzak wrote:How do you program a bbcode that underlines a text, text size small and makes it bold at the same time?
Use the existing ones like this:
How do you program a bbcode that underlines a text, text size small and makes it bold at the same time?

Code: Select all

[size=85][u][b]How do you program a bbcode that underlines a text, text size small and makes it bold at the same time?[/b][/u][/size]
Or a code to do it all at once:

bbcode:

Code: Select all

[sbu]{TEXT}[/sbu]
HTML Replacement:

Code: Select all

<span style="text-decoration: underline; font-weight:bold; font-size: 75%">{TEXT}</span>
Adjust the 75% to get your desired size.

Re: Custom BBCodes

Posted: Fri Aug 08, 2008 7:51 pm
by W@mer
Hello. How can i make custom bbcode working in custom bbcode? Something like:

Code: Select all

[custom1][custom2]teeext[/custom2][/custom1]
Pls help me solve this.

Re: BBCode Videos

Posted: Fri Aug 08, 2008 7:55 pm
by dinopc
Many thanks to those who have posted help before me. I spent some more time reading this forum and figured out how to create the BBCode for the funny or die video player. It was quite simple. The best (and simplest) advice for my problem came from jimdunn's post:
Really these video BBcodes are all the same and very easy to do - you just copy the Embed code they give on the website, find the unique ID and replace it with a {TEXT} variable
In case anybody is interested, here is the BBC for funny or die videos:

BBCode Usage

Code: Select all

[fodvid]http://www.funnyordie.com/videos/{TEXT}[/fodvid]
HTML Replacement

Code: Select all

<object width="464" height="388" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="movie" 
value="http://www2.funnyordie.com/public/flash/fodplayer.swf" /><param name="flashvars" value="key={TEXT}" /><param name="allowfullscreen" value="true" /><embed width="464" height="388" flashvars="key={TEXT}" allowfullscreen="true" quality="high" src="http://www2.funnyordie.com/public/flash/fodplayer.swf" type="application/x-shockwave-flash"></embed></object>

Re: Custom BBCodes

Posted: Fri Aug 08, 2008 7:58 pm
by jimdunn
W@mer wrote:Hello. How can i make custom bbcode working in custom bbcode? Something like:

Code: Select all

[custom1][custom2]teeext[/custom2][/custom1]
Pls help me solve this.
Can you describe exactly what you are trying to do ?
I don't really understand your question.

BBcodes can be nested - see my example in the post before yours:

Code: Select all

[size=85][u][b]How do you program a bbcode that underlines a text, text size small and makes it bold at the same time?[/b][/u][/size]
You can nest custom BBcodes too - I just wrapped the [sbu] example I gave above on my test board in a [color] code and it worked fine.

Re: Custom BBCodes

Posted: Fri Aug 08, 2008 8:05 pm
by W@mer
I have created tvo new bbcodes in ACP.
"kombinovatelne" (in english: combinable) and "download".
If iam trying to do this:

Code: Select all

[kombinovatelne]
[download]test[/download]
[/kombinovatelne]
The html output is:

Code: Select all

[kombinovatelne]<br><div class="quotetitle">Download:</div><div class="codecontent">test</div><br>[/kombinovatelne]
It parse just download bbcode.

Re: Custom BBCodes

Posted: Fri Aug 08, 2008 8:12 pm
by jimdunn
Wierd :?
Does [kombinovatelne] code work on its own ?

What should it do ?

Re: Custom BBCodes

Posted: Fri Aug 08, 2008 8:13 pm
by Luchtzak
jimdunn wrote:
Luchtzak wrote:How do you program a bbcode that underlines a text, text size small and makes it bold at the same time?
Use the existing ones like this:
How do you program a bbcode that underlines a text, text size small and makes it bold at the same time?

Code: Select all

[size=85][u][b]How do you program a bbcode that underlines a text, text size small and makes it bold at the same time?[/b][/u][/size]
Or a code to do it all at once:

bbcode:

Code: Select all

[sbu]{TEXT}[/sbu]
HTML Replacement:

Code: Select all

<span style="text-decoration: underline; font-weight:bold; font-size: 75%">{TEXT}</span>
Adjust the 75% to get your desired size.
thanks!

and text size small, italic and bold in one?

Re: Custom BBCodes

Posted: Fri Aug 08, 2008 8:16 pm
by jimdunn
Luchtzak wrote:thanks!

and text size small, italic and bold in one?
It's all CSS :)

Use

Code: Select all

font-style: italic;
instead of:

Code: Select all

text-decoration: underline;
Mix and match to your heart's content :)

Re: Custom BBCodes

Posted: Fri Aug 08, 2008 8:23 pm
by W@mer
Og, i figured it out. Thanks a forget variable between [kombinovatelne] and [/kombinovatelne].