Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
User avatar
Kestral
Registered User
Posts: 18
Joined: Sun Jan 18, 2009 12:31 am

Re: Custom BBCodes

Post by Kestral »

This might've been added before but I'll use this: (A spoiler BBcode of mine)

Click a button and text will show:

Code: Select all

[spoiler]{TEXT}[/spoiler]

Code: Select all

<div style="margin:20px; margin-top:5px"><div class="quotetitle"><input class="button2 btnlite" type="button" value="Show" style="text-align:center;width:100px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';      this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" /></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>

survivalbill
Registered User
Posts: 64
Joined: Mon Dec 29, 2008 6:59 pm

Re: Custom BBCodes

Post by survivalbill »

OK found out this is browser specific so disregard the below stuff
--------------------------------------------------------------------------------

need help to colorize the iframe bars..
and i need it to be the url not an image...
can this be done or not ?

Code: Select all

this is my iframe code
<iframe src={URL} width="650" height="500" scrolling="yes" ></iframe>

this adds color to an iframe only is their any way to merge the two that works?

<span style="scrollbar-base-color: darkorchid; width: 200; height: 100; overflow-Y: auto; overflow-X: auto"><url src="http://ca.youtube.com/"></span>
Last edited by survivalbill on Fri Jan 23, 2009 5:27 am, edited 1 time in total.

User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Custom BBCodes

Post by rfforum »

I need a BBcode that does youtube.
You put in the FULL url of the youtube video then click the YOUTUBE BBcode
But Also it needs to have the youtube and au youtube in it also?? pls help
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net

muliadhi
Registered User
Posts: 3
Joined: Sat Jan 10, 2009 3:05 pm
Contact:

Re: Custom BBCodes

Post by muliadhi »

not to simple for new user, but its good

AcuteAngel
Registered User
Posts: 26
Joined: Wed Jan 14, 2009 7:24 pm

Re: Custom BBCodes

Post by AcuteAngel »

Wert wrote:
logan7133 wrote:Hey guys new to the board and just wanted to ask if anybody has bbcode for hulu video player if not can one be made.
http://www.hulu.com/

thanks in advance..

Code: Select all

[hulu]{SIMPLETEXT1}[/hulu]


<object width="520" height="295"><param name="movie" value="http://www.hulu.com/embed/{SIMPLETEXT1}"></param><embed src="http://www.hulu.com/embed/{SIMPLETEXT1}" type="application/x-shockwave-flash"  width="520" height="295"></embed></object>
Sample

Code: Select all

[hulu]xPyB2UBP6a87Du3mMismQg[/hulu]
Is there anyway that we can post the whole URL Address of Hulu.com rather than the ID code of the movie like in this thread?

Code: Select all

http://www.phpbb.com/community/viewtopic.php?f=70&t=695525

bigdaddyt
Registered User
Posts: 1
Joined: Fri Jan 23, 2009 2:55 pm

Help with Custom BBCode or Translation

Post by bigdaddyt »

Can someone please help me figure out how to post the excel sheet I have attached, to my forum...

Thanks!

TJ

http://hosensackpokerclub.org/tuesdaypoints.htm

User avatar
blackwatch_uk
Registered User
Posts: 258
Joined: Wed Dec 20, 2006 11:02 am
Location: UK
Contact:

Re: Custom BBCodes

Post by blackwatch_uk »

nicholas.alipaz wrote:Youtube BBCode, does all urls:
http://www.phpbb.com/community/viewtopi ... 5#p7711335
Is there a way to automaticly show adsense below each video?

wraith25
Registered User
Posts: 42
Joined: Sun Jan 11, 2009 8:01 pm

Re: Resize image by %

Post by wraith25 »

BlindDragon wrote:This is for adding a bbcode to change an image size (both height and width) by %. It's not constrained to 0-100 so you could increase an image size by using a number over 100.

I would just like to give credit to jobeard ( an admin on my forum ) for doing this one for me. Since I couldn't find this by searching the site I figured I would share what we came up with. Feel free to try it out on our site if you like ;)

BBCode usage

Code: Select all

[resizeimg={NUMBER}]{URL}[/resizeimg]
HTML Replacement:

Code: Select all

<img src="{URL}" alt="image" width="{NUMBER}%" border="0">
Help Line:

Code: Select all

Enter a number after the = that will represent the percentage to increase/decrease image size
example: [resizeimg=50]Image URL[/resizeimg] will reduce the pictures height and width by 50

Hope this helps somebody
certainly helped me :D
its only easy if you know the answer

SlevinKelevra
Registered User
Posts: 110
Joined: Fri Jan 09, 2009 4:41 pm

Re: Custom BBCodes

Post by SlevinKelevra »

Firstly - it rocks - thank you very much!

Secondly, is there a way to tweak the YouTube one?

I have done it - works a charm - but ideally - I would like it default set to the "HQ" version.

Also - can you stop it so it doesnt havent YouTube in the corner - and stop the You Tube search box from coming in when you do mouseover?

ytsejam
Registered User
Posts: 133
Joined: Sat Jan 13, 2007 9:18 pm
Location: Israel
Contact:

Re: Custom BBCodes

Post by ytsejam »

Multi-language youtube embeding
As far as I know, the current way to embed a youtube video is by using either the ID or by posting the full URL.
For my forum I decided to go the full URL way, because it is easier for most users. However,

- youtube now support lots of languages and it re-directs users to their language, and most users simply agree to the change. This causes a problem because now some users will post a video that goes like this: http://www.youtube.com/... and others will post a video that goes like this: http://il.youtube.com/... but my BBCode can support - currently - only the www version.

Can someone please extend the follow to support multi-language youtube video embeding? :)

Code: Select all

[youtube]http://www.youtube.com/watch?v={SIMPLETEXT}[/youtube]

Code: Select all

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
BTW, sometimes, a youtube link will have this highlighted part (in different variations): http://www.youtube.com/watch?v=bqsMCiYn ... eature=dir[/b], and when using full URL linking, sometimes this is a problem too. Is there a way to overcome this not-manually?

some blind fool
Registered User
Posts: 409
Joined: Sat Aug 19, 2006 5:28 pm

Re: Custom BBCodes

Post by some blind fool »

ytsejam wrote:- youtube now support lots of languages and it re-directs users to their language, and most users simply agree to the change. This causes a problem because now some users will post a video that goes like this: http://www.youtube.com/... and others will post a video that goes like this: http://il.youtube.com/... but my BBCode can support - currently - only the www version.
i think the fix for this was to replace the "www" in the url with an identifier or simpletext token. try,

Code: Select all

[youtube]http://{IDENTIFIER}.youtube.com/watch?v={SIMPLETEXT}[/youtube]

Code: Select all

<object width="425" height="350"><param name="movie" value="http://{IDENTIFIER}.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://{IDENTIFIER}.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
as for the highlighted part.. the only bb token that allows the & and = is the text token, which can cause any number of security problems. even if it makes for the simplest fix for this.

Code: Select all

[youtube]http://{IDENTIFIER}.youtube.com/watch?v={SIMPLETEXT}{TEXT}[/youtube]

Code: Select all

<object width="425" height="350"><param name="movie" value="http://{IDENTIFIER}.youtube.com/v/{SIMPLETEXT}{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://{IDENTIFIER}.youtube.com/v/{SIMPLETEXT}{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
a quick test says this code should work for having or not having the extra part, but it would probably be a much better idea to use a second youtube bbcode that uses multiple identifier or simpletext tokens instead. perhaps something like this, which also appears to work with a quick testing..

Code: Select all

[youtube2]http://{IDENTIFIER1}.youtube.com/watch?v={SIMPLETEXT}&{IDENTIFIER2}={IDENTIFIER3}[/youtube2]

Code: Select all

<object width="425" height="350"><param name="movie" value="http://{IDENTIFIER1}.youtube.com/v/{SIMPLETEXT}&{IDENTIFIER2}={IDENTIFIER3}"></param><param name="wmode" value="transparent"></param><embed src="http://{IDENTIFIER1}.youtube.com/v/{SIMPLETEXT}&{IDENTIFIER2}={IDENTIFIER3}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
if you use both bbcodes, use the helpline to show the difference between the two.
please do not PM me to ask for help. thanks.

damienhbg
Registered User
Posts: 255
Joined: Thu May 08, 2008 8:45 pm
Location: Central PA
Contact:

Re: Custom BBCodes

Post by damienhbg »

Trying to figure out the appropriate html/replacement for a .flv video.....

Want it to be

Code: Select all

[VIDEO]http://tormented.tv/video.php?id={SIMPLETEXT}&p=[/VIDEO]
tried using something similar to youtubes code, but didnt work...

here is invalid replacement code:

Code: Select all

<object width="600" height="300"><param name="movie" value="http://www.tormented.tv/video.php?id={SIMPLETEXT}&p="></param><param name="wmode" value="transparent"></param><embed src="http://www.tormented.tv/video.php?id={SIMPLETEXT}&p=" type="application/x-shockwave-flash" wmode="transparent" width="600" height="300"></embed></object>
please help!
My coolest mods: My Page; User Reminder; PJIRC CHAT

ytsejam
Registered User
Posts: 133
Joined: Sat Jan 13, 2007 9:18 pm
Location: Israel
Contact:

Re: Custom BBCodes

Post by ytsejam »

i think the fix for this was to replace the "www" in the url with an identifier or simpletext token. try,
...
...
Your first fix works great. Thanks a lot. :)

mitkodelibaltov
Registered User
Posts: 17
Joined: Mon Oct 20, 2008 12:29 pm

Re: Custom BBCodes

Post by mitkodelibaltov »

Can you give me tablic code like this one here

--> http://www.league.fifa-trophy.net/index ... wtopic=404

please

Lord Kane
Registered User
Posts: 1
Joined: Fri Jan 30, 2009 1:14 am

Re: Custom BBCodes

Post by Lord Kane »

i have a question i watn to make a BBCode

[Narration]Kane jumps down[/Narration]

now it would make it after i post

*Kane jumps down* and the color would be #FFBF00

Locked

Return to “Custom BBCode Development and Requests”