hide text via custom bbcode ?

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Post Reply
the emperor
Registered User
Posts: 30
Joined: Sat Jun 17, 2006 3:34 pm
Contact:

hide text via custom bbcode ?

Post by the emperor »

hi,

can i add a custom bbcode like [hide]text[/hide]
and this will hide the 'text' for the users until they reply to the topic :?:
User avatar
Nicholas the Italian
Registered User
Posts: 659
Joined: Mon Nov 20, 2006 11:19 pm
Location: 46°8' N, 12°13' E
Contact:

Re: hide text via custom bbcode ?

Post by Nicholas the Italian »

Yes, if you just want the user to be forced to click the "reply" button (which also means he must have the permissions to do so - BUT he could also look at the page HTML code); but then he isn't forced to actually submit his reply.
I mean, if the HTML replacement for that code is something like

Code: Select all

<span style="display:none">{TEXT}</span>
then the text will not show in the page, but it'll be retrievable by either
- clicking the quote button
- looking into the page source code.
Not sure this is what you want though.
the emperor
Registered User
Posts: 30
Joined: Sat Jun 17, 2006 3:34 pm
Contact:

Re: hide text via custom bbcode ?

Post by the emperor »

thanks for your reply
but not this what i mean :(

i want the custom bbcode to do this
if we hide some text, and a user read the topic, instead of the hiding text he shoud see somthing like 'here is a hiding text, post a replay to view it' or see a small image telling him to post a reply

after the user submit his reply he will see the hiding text any time he visit that topic :D

i hope that i can do it using custom bbcode without needs of mods :mrgreen:
User avatar
jojobarjo32
Registered User
Posts: 164
Joined: Wed Jun 22, 2005 7:38 pm
Location: France

Re: hide text via custom bbcode ?

Post by jojobarjo32 »

Sorry but it can not be done with custom BBcodes. You'll need a MOD if you really want this feature.
Custom BBcodes can only output HTML content (and of course, CSS & Javascript) but the "Hide" BBcode needs a piece of PHP code.
Post Reply