Page 1 of 1

BBcode in custom BBcode

Posted: Thu May 21, 2009 2:16 pm
by tomy91
I'm trying to include [hide] bbcode in other bbcode. When putting the [hide]content[/hide] tags somewhere in html replacement, it results as just a text, not a bbcode command to hide content. Is it possible somehow to include one bbcode into another?

Re: BBcode in custom BBcode

Posted: Thu May 21, 2009 2:22 pm
by Pit$Bull

Re: BBcode in custom BBcode

Posted: Thu May 21, 2009 2:37 pm
by tomy91
Didn't find anything related to my problem. So it looks for me that it's impossible to add bbcode inside html replacement. Here's the code what has to be put for hidden and unhidden content:

Code: Select all

<!-- BEGIN unhide_open -->
<div class="unhidetitle"><b>{L_MESSAGE_UNHIDE}:</b></div><div class="hidecontent">
<!-- END unhide_open -->
<!-- BEGIN unhide_close -->
</div>
<!-- END unhide_close -->

<!-- BEGIN hide -->
<div class="hidetitle"><b>{L_MESSAGE_HIDDEN}:</b></div><div class="hidecontent">{L_MESSAGE_HIDDEN_DESCRIPTION}</div>
<!-- END hide -->
Tried to put it in html replacement, works but it does not work how it has to be.

Entered only the

Code: Select all

<!-- BEGIN hide -->
<div class="hidetitle"><b>{L_MESSAGE_HIDDEN}:</b></div><div class="hidecontent">{L_MESSAGE_HIDDEN_DESCRIPTION}</div>
<!-- END hide -->
and replaced the

Code: Select all

{L_MESSAGE_HIDDEN_DESCRIPTION}
with content that i need to hide, but the hidden content is still visible, even if i haven't posted there.

Re: BBcode in custom BBcode

Posted: Thu May 21, 2009 2:53 pm
by Brf
I am not seeing any bbcode inside your bbcode. What are you talking about?

Re: BBcode in custom BBcode

Posted: Thu May 21, 2009 3:04 pm
by tomy91
That's because in previous post i'm trying an alternative way.

The main idea was, can i create a bbcode [lol]{text}[/lol] and in the html replacement goes image and other things and somewhere in that code i need a [hide]<html code>[/hide] but it doesn't hide the content because it understands the tags as simple txt.

Ok, here's the original code:

Code: Select all

<div style="width:423px;height:100px;border:1px dashed black;">
<p align="center">
<img src="images/zippyshare.jpg"></br>
<embed allowScriptAccess="never" 
src="{TEXT}/mediaplayer/mediaplayer.swf?file={TEXT}/downloadMusic?key={NUMBER}aa&type=flv" 
menu="false" 
quality="high"
width="400"
height="20"
name="mp3player"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
wmode="transparent"
border="0"
style="margin-bottom: 6px;" />
<br />
<a href="{TEXT}/v/{NUMBER}/file.html" target="_blank">
<img src="images/download.jpg"></a>
</div>
</p>
</div>
i want to hide this content:

Code: Select all

<a href="{TEXT}/v/{NUMBER}/file.html" target="_blank">
<img src="images/download.jpg"></a>
by adding hide tags like this:

Code: Select all

[hide]<a href="{TEXT}/v/{NUMBER}/file.html" target="_blank">
<img src="images/download.jpg"></a>[/hide]
But it wont work and results like this
hide_error.png
hide_error.png (19.61 KiB) Viewed 221 times

Re: BBcode in custom BBcode

Posted: Thu May 21, 2009 3:22 pm
by Brf
No. You cannot put a bbcode inside of an HTML replacement.
What you would want to do is put the HTML replacemnt for old bbcode inside the HTML replacement of the new bbcode

Re: BBcode in custom BBcode

Posted: Thu May 21, 2009 3:25 pm
by tomy91
There begins the problem because hide bbcode mod has to put nothing in html replacement window, but i don't want to hide all the previous content, just download link with image.

Re: BBcode in custom BBcode

Posted: Thu May 21, 2009 3:32 pm
by Brf
Why use a mod?
There are plenty of "Hide" bbcode replacements in the Custom BBCode topic. Just use one of them.

Re: BBcode in custom BBcode

Posted: Thu May 21, 2009 4:14 pm
by tomy91
Yeah, but i want members can see the info behind hide only after reply.