![]() |
bb code modification
hello,
here's one for you. i'd like to have a bb-code which works like this: [noguest]this text won't appear to guests even if they are allowed to view a thread[/noguest] i think the bb code speaks for itself. the idea is to have a bb code which hides text or pictures and anything within the text to guests. i think thats not possible with just adding a complicated bb-code in the bb-code manager. i hope that someone else also finds this useful and is encouraged to make a modification for it. if it is possible without modifying any code or if there already is a hack, please tell me where to find it. thanks a lot. :) ps: would be cool instead of displaying nothing to guests showing text telling them to register to view the hidden message. |
anyone? :)
|
tralalala.
|
Just a quick solution, not tested!!!
Open file includes/functions_bbcodeparse.php. Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Quote:
Edit: now that I think about it, I do... have a look at the hide hacks floating around. What you want to do should be rather similiar, except that it's a different condition. |
No need to think Colin, just read back :D
|
wow. thanks a lot! :) works perfectly fine! you may want to publish it as a hack! i like it!
and thanks colin too for being helpful. :) |
Quote:
|
Hmm, I wonder if this won't cause problems with the postcache ...
|
Why would it Kirby?
Am i missing something? |
All times are GMT. The time now is 04:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|