Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
User avatar
ric323
Former Team Member
Posts: 22909
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Custom BBCodes

Post by ric323 » Sat Jul 31, 2010 5:20 am

Version one - fixed size

BBCode usage

Code: Select all

[videoweed]{IDENTIFIER}[/videoweed]
HTML replacement

Code: Select all

<iframe width='600' height='480' frameborder='0' src='http://embed.videoweed.com/embed.php?v={IDENTIFIER}&width=600&height=480' scrolling='no'></iframe>
Test post

Code: Select all

[videoweed]n82cy3l8rxrau[/videoweed]
Version two - variable size

BBCode usage

Code: Select all

[videoweed={NUMBER1},{NUMBER2}]{IDENTIFIER}[/videoweed]
HTML replacement

Code: Select all

<iframe width='{NUMBER1}' height='{NUMBER2}' frameborder='0' src='http://embed.videoweed.com/embed.php?v={IDENTIFIER}&width={NUMBER1}&height={NUMBER2}' scrolling='no'></iframe>
Test post

Code: Select all

[videoweed=640,480]n82cy3l8rxrau[/videoweed]
You can install both versions of the bbcode on your board.
It's a bit annoying that they force two popup ads every time you call up the video.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions

Spectral
Registered User
Posts: 28
Joined: Wed Jul 07, 2010 12:33 pm

Re: Custom BBCodes

Post by Spectral » Sat Jul 31, 2010 8:04 am

ric323 wrote: It's a bit annoying that they force two popup ads every time you call up the video.
Working fine thanks.Agreed thats annoying tho ummm not sure if will use this now damn the spammers lol.

LuxVeritatis
Registered User
Posts: 11
Joined: Sun Jul 25, 2010 6:05 pm

Re: Custom BBCodes

Post by LuxVeritatis » Sun Aug 01, 2010 3:33 pm

I'm working on a BBCode which makes a textbox that has a green background, for explanation purposes. I have two questions: first of all, if I try to put a border around it, it doesn't go around the top, so is there any way to remedy this? And secondly, is there any way of giving it curved corners using CSS?

This is it so far:

Code: Select all

<span style="background-color: #cfddd6; width: 100%; padding: 4px; height: 100%; border: 2px solid #006633;">{TEXT}</span>

Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: Custom BBCodes

Post by Pony99CA » Mon Aug 02, 2010 12:06 am

LuxVeritatis wrote:I'm working on a BBCode which makes a textbox that has a green background, for explanation purposes. I have two questions: first of all, if I try to put a border around it, it doesn't go around the top, so is there any way to remedy this? And secondly, is there any way of giving it curved corners using CSS?

This is it so far:

Code: Select all

<span style="background-color: #cfddd6; width: 100%; padding: 4px; height: 100%; border: 2px solid #006633;">{TEXT}</span>
I can't answer the first question, although I'd be suspicious of that height: 100% (why do you need it?).

The second is a definite NO with simple CSS. I read that rounded corners are coming in CSS 3, though.

If you want rounded corners now, you'll have to resort to the same trick that ProSilver uses or you can try something like Nifty Corners.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

LuxVeritatis
Registered User
Posts: 11
Joined: Sun Jul 25, 2010 6:05 pm

Re: Custom BBCodes

Post by LuxVeritatis » Mon Aug 02, 2010 4:43 pm

Ah, it's because I thought that the lack of a height setting was the problem with lack of borders. Thanks for your answer anyway!

coxie
Registered User
Posts: 10
Joined: Sat Jul 17, 2010 3:43 pm

Re: Custom BBCodes

Post by coxie » Mon Aug 02, 2010 5:51 pm

anyone think they are able to help me embed sopcast yet? I found a site that gives the embed code

<object id="SopPlayer" classid="clsid:8FEFF364-6A5F-4966-A917-A3AC28411659" width="300" codebase="http://download.sopcast.com/download/SO ... on=1,1,1,0"
name="SopPlayer" height="300">
<param value="1" name="AutoStart"/>
<param value="sopcast_channel" name="SopAddress"/>
<param value="ChannelName" name="CCTV5"/>
</object>

i need to make that into a bbcode, i assume the part i change is "sopcast_channel

User avatar
ric323
Former Team Member
Posts: 22909
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Custom BBCodes

Post by ric323 » Mon Aug 02, 2010 10:45 pm

coxie wrote:anyone think they are able to help me embed sopcast yet? I found a site that gives the embed code

<object id="SopPlayer" classid="clsid:8FEFF364-6A5F-4966-A917-A3AC28411659" width="300" codebase="http://download.sopcast.com/download/SO ... on=1,1,1,0"
name="SopPlayer" height="300">
<param value="1" name="AutoStart"/>
<param value="sopcast_channel" name="SopAddress"/>
<param value="ChannelName" name="CCTV5"/>
</object>

i need to make that into a bbcode, i assume the part i change is "sopcast_channel
Do you have another code for a different video?
I would assume the part specifying which video to play is the "CCTV5" in the above code.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions

User avatar
Linda Carter
Registered User
Posts: 514
Joined: Fri Feb 15, 2008 6:45 am

Re: Custom BBCodes

Post by Linda Carter » Wed Aug 04, 2010 12:53 pm

Is there a way to embed this site?

http://videolog.uol.com.br/home.php
"Whoever has not known himself has known nothing. But whoever has known himself has simultaneously achieved knowledge about the depth of all things."

unknown21
Registered User
Posts: 37
Joined: Sat Jul 31, 2010 7:09 pm

Re: Custom BBCodes

Post by unknown21 » Wed Aug 04, 2010 7:36 pm

will the new codes be added to the First page or do we have to follow here. ???

User avatar
ric323
Former Team Member
Posts: 22909
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Custom BBCodes

Post by ric323 » Wed Aug 04, 2010 10:33 pm

Linda Carter wrote:Is there a way to embed this site?

http://videolog.uol.com.br/home.php
If you go to that page, and click on the main video, it displays this as the embed code below the video:
<object id='playerFlash' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='500' height='375'><param name='movie' value='http://www.videolog.tv/ajax/codigoPlayer.php?id_video=562855&relacionados=S&default=S&lang=PT_BR&cor_fundo=FFFFFF&cor_titulo=777777&hd=S&swf=1&width=500&height=375' /><param name='flashvars' value='id_video=562855' /><param name='allowScriptAccess' value='always' /><param name='allowFullScreen' value='true' /><param name='wmode' value='opaque' /><embed src="http://www.videolog.tv/ajax/codigoPlayer.php?id_video=562855&relacionados=S&default=S&lang=PT_BR&cor_fundo=FFFFFF&cor_titulo=777777&hd=S&swf=1&width=500&height=375" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="375"></embed></object>
Note, I have highlighted what appears to be the "video ID" in red.
You could just make a bbcode using the above as the "HTML replacement, and replacing the red sections with an {IDENTIFIER} tag. Use the Youtube bbcode as a template for how to do this.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions

User avatar
ric323
Former Team Member
Posts: 22909
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Custom BBCodes

Post by ric323 » Wed Aug 04, 2010 10:36 pm

unknown21 wrote:will the new codes be added to the First page or do we have to follow here. ???
No, there have been all sorts of obscure codes asked for. You are better off using the search command to find them.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions

filmtotaal
Registered User
Posts: 8
Joined: Thu Aug 05, 2010 10:33 am

Re: Custom BBCodes

Post by filmtotaal » Fri Aug 06, 2010 12:44 pm

Hi Guys

We just migrated to phpBB3. For our movie board we need spoiler tags. I've added them as new bbcodes, and it seems to work, but only on new postings. Old postings don't seem the format. Any suggestions?

example new spoiler tag: http://www.filmtotaal.nl/forum/viewtopi ... 30#p555361

[spoiler]text[/spoiler]

but it doesn't work on old postings: http://www.filmtotaal.nl/forum/viewtopic.php?p=479783

User avatar
ric323
Former Team Member
Posts: 22909
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Custom BBCodes

Post by ric323 » Fri Aug 06, 2010 1:00 pm

You can use the "Reparse bbcodes" command in the Support Toolkit to fix that.
Make sure you backup your database first, just in case something goes wrong.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions

User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Custom BBCodes

Post by leviatan21 » Fri Aug 06, 2010 3:21 pm

filmtotaal wrote:Hi Guys

We just migrated to phpBB3. For our movie board we need spoiler tags. I've added them as new bbcodes, and it seems to work, but only on new postings. Old postings don't seem the format. Any suggestions?
Another option is create bbcodes before made the migration ;)
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español

cardboardhome
Registered User
Posts: 13
Joined: Thu Aug 05, 2010 4:54 pm

Re: Custom BBCodes

Post by cardboardhome » Fri Aug 06, 2010 9:38 pm

I added [youtube]http://www.youtube.com/watch?v={SIMPLETEXT}[/youtube] in the first box and this:

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

in the second but it won't show up. do you know why?

Locked

Return to “Custom BBCode Development and Requests”

cron