BBcode in custom BBcode

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
tomy91
Registered User
Posts: 41
Joined: Wed Apr 16, 2008 11:13 am

BBcode in custom BBcode

Post by tomy91 » Thu May 21, 2009 2:16 pm

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?

Pit$Bull
Former Team Member
Posts: 23099
Joined: Sat Dec 02, 2006 4:08 pm
Name: Can't Remember

Re: BBcode in custom BBcode

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


tomy91
Registered User
Posts: 41
Joined: Wed Apr 16, 2008 11:13 am

Re: BBcode in custom BBcode

Post by tomy91 » Thu May 21, 2009 2:37 pm

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.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51833
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: BBcode in custom BBcode

Post by Brf » Thu May 21, 2009 2:53 pm

I am not seeing any bbcode inside your bbcode. What are you talking about?

tomy91
Registered User
Posts: 41
Joined: Wed Apr 16, 2008 11:13 am

Re: BBcode in custom BBcode

Post by tomy91 » Thu May 21, 2009 3:04 pm

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

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51833
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: BBcode in custom BBcode

Post by Brf » Thu May 21, 2009 3:22 pm

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

tomy91
Registered User
Posts: 41
Joined: Wed Apr 16, 2008 11:13 am

Re: BBcode in custom BBcode

Post by tomy91 » Thu May 21, 2009 3:25 pm

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.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51833
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: BBcode in custom BBcode

Post by Brf » Thu May 21, 2009 3:32 pm

Why use a mod?
There are plenty of "Hide" bbcode replacements in the Custom BBCode topic. Just use one of them.

tomy91
Registered User
Posts: 41
Joined: Wed Apr 16, 2008 11:13 am

Re: BBcode in custom BBcode

Post by tomy91 » Thu May 21, 2009 4:14 pm

Yeah, but i want members can see the info behind hide only after reply.

Locked

Return to “[3.0.x] Support Forum”