Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
kabo0m
Registered User
Posts: 9
Joined: Sun Mar 16, 2008 2:46 am

Re: Custom BBCodes

Post by kabo0m »

Pony99CA wrote:
kabo0m wrote:Oh .. is it because the text I am putting where it says simpletext has other characters in it? Is that why it isn't working?

I had small links working yesterday but today even a test link to google isn't working and I don't know why. Looking at the source revealed nothing ..

Okay I think I am onto something there .. what should I use instead of simpletext? Identifier??
{TEXT}

That will NOT cause the security problem. (The security concern is if {TEXT} is inside an HTML tag, like in an attribute, not between starting and ending tags.)

Steve
Oh okay. All I knew was when I put in text when I created my youtube code that it freaked out at me but I couldn't remember what it said or why. But that is probably it. Okay I will put that in. Thanks.
Rodrigo_
Registered User
Posts: 1
Joined: Sat Jan 08, 2011 12:39 am

Re: Custom BBCodes

Post by Rodrigo_ »

It will sound like a 'thousand' time that somebody ask this question, but i can't get the right spoiler code to work on my forum...

What i'm looking for it's a spoiler that let put a title and the hide text.. something simple. I don't know why, but all the codes here that i tried, doesn't work for me.

Please someone who can help me with such spoiler.
If it's relevant, my board version is 3.0.8.

Thanks,

Rodrigo_
User avatar
Hippie459MN
Registered User
Posts: 966
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA

Re: Custom BBCodes

Post by Hippie459MN »

Rodrigo_ wrote:It will sound like a 'thousand' time that somebody ask this question, but i can't get the right spoiler code to work on my forum...

What i'm looking for it's a spoiler that let put a title and the hide text.. something simple. I don't know why, but all the codes here that i tried, doesn't work for me.

Please someone who can help me with such spoiler.
If it's relevant, my board version is 3.0.8.

Thanks,

Rodrigo_
Here is mine and it works and looks great!

BBCode Usage:

Code: Select all

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

Code: Select all

<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em;"><div style="text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block;"><span 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.innerHTML = '<b>Hidden Content: </b><a href=\'#\' onclick=\'return false;\'>hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Hidden Content: </b><a href=\'#\' onclick=\'return false;\'>show</a>'; }" /><b>Hidden Content: </b><a href="#" onClick="return false;">show</a></span></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>
Help Line:

Code: Select all

Spoiler/Hide content: [spoiler]ENTER TEXT HERE[/spoiler] 
;)
nozem
Registered User
Posts: 27
Joined: Tue Sep 28, 2010 3:17 pm

Re: Custom BBCodes

Post by nozem »

Can anybody help me with a breakingspace bbcode (in html < /br>?
User avatar
Jaymie1989
Registered User
Posts: 1991
Joined: Thu Aug 02, 2007 5:21 pm
Name: Jaymie

Re: Custom BBCodes

Post by Jaymie1989 »

nozem wrote:Can anybody help me with a breakingspace bbcode (in html < /br>?
That would just be;

BBCode:

Code: Select all

[br][/br]
HTML Replacement:

Code: Select all

<br />
Example:

Code: Select all

Test [br][/br] this
But you could just press enter/return and it will do a new line for you.
Dear creators of Sesame Street,
Kids are still fat. Can I come back now?
Sincerely, Cookie Monster.

View my MODs - Need phpBB help with MODs and Styles? Take a look at my phpBB3 services
nozem
Registered User
Posts: 27
Joined: Tue Sep 28, 2010 3:17 pm

Re: Custom BBCodes

Post by nozem »

thanks, it works.
(I use static pages and just a return wouldn't work at the end of the page.)
jameskever
Registered User
Posts: 37
Joined: Sun Jan 09, 2011 12:35 pm

Custom BBCode Help

Post by jameskever »

Hello.

I was hoping someone could help me with a custom BBCode that I'm having some trouble with.

I've read the instructions on how to implement custom BBCode, and I've looked at the common BBCode examples like youtube and align, but I've got a particularly difficult example I'm working on myself and I was hoping someone could help me with it, and in the process, I'll better learn how to do this myself next time.

The custom code comes from Prezi.com. Prezi is an online presentation application that puts powerpoint to shame.

Here's the code...

Code: Select all

<div class="prezi-player"><style type="text/css" media="screen">.prezi-player { width: 550px; } .prezi-player-links { text-align: center; }</style><object id="prezi_ueonw6hvqirk" name="prezi_ueonw6hvqirk" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400"><param name="movie" value="http://prezi.com/bin/preziloader.swf"/><param name="allowfullscreen" value="true"/><param name="allowscriptaccess" value="always"/><param name="bgcolor" value="#ffffff"/><param name="flashvars" value="prezi_id=ueonw6hvqirk&lock_to_path=0&color=ffffff&autoplay=no&autohide_ctrls=0"/><embed id="preziEmbed_ueonw6hvqirk" name="preziEmbed_ueonw6hvqirk" src="http://prezi.com/bin/preziloader.swf" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="550" height="400" bgcolor="#ffffff" flashvars="prezi_id=ueonw6hvqirk&lock_to_path=0&color=ffffff&autoplay=no&autohide_ctrls=0"></embed></object><div class="prezi-player-links"><p><a title="DINFOS
December 13
Team A" href="http://prezi.com/ueonw6hvqirk/dvd-authoring/">DVD Authoring</a> on <a href="http://prezi.com">Prezi</a></p></div></div>
I'm having a hard time figuring out what are the tokens. I'm pretty sure the id=prezi_ueonw6hvqirk is one of them, but then there is also embed_id=preziEmbed_ueonw6hvqirk. Can't I dumb it down even farther to just one token being ueonw6hvqirk? Also, what do I do with that html stuff at the end of the code? Are there two strings and one URL I need to tokenize?

I would just really appreciate seeing how the best way to do this would be. And I really feel like if I can see this example properly implemented, I will be able to grasp this. Thanks a lot.
jameskever
Registered User
Posts: 37
Joined: Sun Jan 09, 2011 12:35 pm

Re: Custom BBCodes

Post by jameskever »

I was also wondering what's wrong with this code?

Code: Select all

[strike]{text}[/strike]
and...

Code: Select all

<div style="text-decoration:line-through; display:inline;">{text}</div>
I started reading this forum from start to finish and it's 209 pages!!! I'm just starting page 6. If I come across the answer, I'll come back and answer myself. But if not, this isn't working for me. I'm seeing the code...

Code: Select all

[strike]{text}[/strike]
in my posts.
jameskever
Registered User
Posts: 37
Joined: Sun Jan 09, 2011 12:35 pm

Re: Custom BBCodes

Post by jameskever »

I figured out the Prezi Custom BBCode.

Code: Select all

[Prezi={SIMPLETEXT}][/Prezi]

and

Code: Select all

<object id="prezi_{SIMPLETEXT}" 
name="prezi_{SIMPLETEXT}" 
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
width="550" height="400">
<param name="movie" 
value="http://prezi.com/bin/preziloader.swf"/>
<param name="allowfullscreen" value="true"/>
<param name="allowscriptaccess" value="always"/>
<param name="bgcolor" value="#ffffff"/>
<param name="flashvars" value="prezi_id={SIMPLETEXT}&lock_to_path=0&color=ffffff&autoplay=no&autohide_ctrls=0"/>
<embed id="preziEmbed_{SIMPLETEXT}" 
name="preziEmbed_{SIMPLETEXT}" 
src="http://prezi.com/bin/preziloader.swf" 
type="application/x-shockwave-flash" 
allowfullscreen="true" 
allowscriptaccess="always" 
width="550" height="400" bgcolor="#ffffff" flashvars="prezi_id={SIMPLETEXT}&lock_to_path=0&color=ffffff&autoplay=no&autohide_ctrls=0">
</embed>
</object>
I need to test it more, but It all boiled down to that one SIMPLETEXT variable.

There is a problem though. It lists the Prezi button as Prezi= in the post window. I tried putting spaces, and visually that fixed the button label, but the code didn't work.

Any ideas?
jameskever
Registered User
Posts: 37
Joined: Sun Jan 09, 2011 12:35 pm

Re: Custom BBCodes

Post by jameskever »

Correction... I made a mistake and looked at the wrong presentation, with different privacy settings. I got that one working easy. But now I think I can pull it off.
Cosmopolitan
Registered User
Posts: 236
Joined: Sat Nov 20, 2010 5:42 am

Re: Custom BBCodes

Post by Cosmopolitan »

Hi guys,

I've been installing some BB codes and everything's working fine.
My question would be if I can type pure HTML code in the text box?
I found somewhere that phpBB forums don't support that option but I'd like to have that option enabled if it's anyhow possible.

Regards ;)
User avatar
tbackoff
Former Team Member
Posts: 7068
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: Custom BBCodes

Post by tbackoff »

Raw HTML was removed from phpBB3 for security reasons. So no, it's not possible.
Flying is the second best thrill to cheerleaders; being caught is the first.
Cosmopolitan
Registered User
Posts: 236
Joined: Sat Nov 20, 2010 5:42 am

Re: Custom BBCodes

Post by Cosmopolitan »

Hi,

Thanks for the answer, however, this is what I'd like to do.
Any suggestion is more than welcome.

Regards,
Cosmo
Last edited by Cosmopolitan on Mon Jan 17, 2011 7:23 am, edited 1 time in total.
Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve

Re: Custom BBCodes

Post by Pony99CA »

jameskever wrote:I was also wondering what's wrong with this code?

Code: Select all

[strike]{text}[/strike]
and...

Code: Select all

<div style="text-decoration:line-through; display:inline;">{text}</div>
I'm seeing the code...

Code: Select all

[strike]{text}[/strike]
in my posts.
Using the following HTML works for me:

Code: Select all

<span style="text-decoration: line-through;">{TEXT}</span>
I'm not sure why you would use a DIV instead of SPAN.

You can see an example on my site.

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.
User avatar
AmigoJack
Registered User
Posts: 6126
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン

Re: Custom BBCodes

Post by AmigoJack »

jameskever wrote:I was also wondering what's wrong with this code?

Code: Select all

[strike]{text}[/strike]
You need to use {TEXT} (all uppercase).
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28

Return to “Custom BBCode Development and Requests”