Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
Locked
avillabon
Registered User
Posts: 68
Joined: Mon Jul 14, 2008 3:51 am
Location: Venezuela
Contact:

Re: Custom BBCodes

Post by avillabon » Thu Aug 07, 2008 4:42 pm

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

User avatar
jimdunn
Registered User
Posts: 1570
Joined: Tue Mar 25, 2008 11:49 am
Location: Australia

Re: Custom BBCodes

Post by jimdunn » Thu Aug 07, 2008 4:44 pm

avillabon wrote:many thanks!
You're more than welcome, Alex-Glad I could help

Jim

dinopc
Registered User
Posts: 8
Joined: Wed May 28, 2008 10:21 pm

BBC Code: Videos

Post by dinopc » Fri Aug 08, 2008 6:22 pm

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>

User avatar
jimdunn
Registered User
Posts: 1570
Joined: Tue Mar 25, 2008 11:49 am
Location: Australia

Re: Custom BBCodes

Post by jimdunn » Fri Aug 08, 2008 6:58 pm

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]

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Custom BBCodes

Post by RMcGirr83 » Fri Aug 08, 2008 7:11 pm

...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]
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Luchtzak
Registered User
Posts: 261
Joined: Sat Jul 20, 2002 7:13 pm
Contact:

Re: Custom BBCodes

Post by Luchtzak » Fri Aug 08, 2008 7:14 pm

How do you program a bbcode that underlines a text, text size small and makes it bold at the same time?

User avatar
jimdunn
Registered User
Posts: 1570
Joined: Tue Mar 25, 2008 11:49 am
Location: Australia

Re: Custom BBCodes

Post by jimdunn » Fri Aug 08, 2008 7:38 pm

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.

W@mer
Registered User
Posts: 9
Joined: Sun May 27, 2007 5:58 am

Re: Custom BBCodes

Post by W@mer » Fri Aug 08, 2008 7:51 pm

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.

dinopc
Registered User
Posts: 8
Joined: Wed May 28, 2008 10:21 pm

Re: BBCode Videos

Post by dinopc » Fri Aug 08, 2008 7:55 pm

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>

User avatar
jimdunn
Registered User
Posts: 1570
Joined: Tue Mar 25, 2008 11:49 am
Location: Australia

Re: Custom BBCodes

Post by jimdunn » Fri Aug 08, 2008 7:58 pm

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.

W@mer
Registered User
Posts: 9
Joined: Sun May 27, 2007 5:58 am

Re: Custom BBCodes

Post by W@mer » Fri Aug 08, 2008 8:05 pm

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.

User avatar
jimdunn
Registered User
Posts: 1570
Joined: Tue Mar 25, 2008 11:49 am
Location: Australia

Re: Custom BBCodes

Post by jimdunn » Fri Aug 08, 2008 8:12 pm

Wierd :?
Does [kombinovatelne] code work on its own ?

What should it do ?

Luchtzak
Registered User
Posts: 261
Joined: Sat Jul 20, 2002 7:13 pm
Contact:

Re: Custom BBCodes

Post by Luchtzak » Fri Aug 08, 2008 8:13 pm

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?

User avatar
jimdunn
Registered User
Posts: 1570
Joined: Tue Mar 25, 2008 11:49 am
Location: Australia

Re: Custom BBCodes

Post by jimdunn » Fri Aug 08, 2008 8:16 pm

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 :)

W@mer
Registered User
Posts: 9
Joined: Sun May 27, 2007 5:58 am

Re: Custom BBCodes

Post by W@mer » Fri Aug 08, 2008 8:23 pm

Og, i figured it out. Thanks a forget variable between [kombinovatelne] and [/kombinovatelne].

Locked

Return to “Custom BBCode Development and Requests”