![]() |
Hide text from certain usergroups
Before I begin, I must stress that this is not a lockdown hack and is not even easily made into a lockdown hack. Don't try it - we don't support lockdown here.
What it does I can think of several uses for this hack. It alters your bbcodeparse2() function so that you can hide certain text from certain usergroups and replace it with a message read from a text file. Screenshot? Nope. Just trust that I know what I'm doing. :) Instructions attached. |
Theres also always this hack:
https://vborg.vbsupport.ru/showthrea...threadid=48492 You could do [if($userinfo[usergroup]==6)]Hidden Text Here[/if] |
Quote:
|
Quote:
|
thanks !
|
i'm install it but don't worg !! i have this message :
Parse error: parse error, unexpected '\"' in /home/forum/www/upload/admin/functions.php on line 829 |
that's true (and i wasn't aware of that hack), but keep in mind that Slynderdale's hack requires some effort to use (and to replace the hidden text with something else, at that).
empreur76, please post line 829 of functions.php |
empreur76, try changing:
PHP Code:
PHP Code:
|
Quote:
|
slynderdale, i don't mean to imply that your hack isn't way more versatile than mine; i'm only trying to say that i think mine may suit some people better. for example, i run articles off my vB database, and i want to hide parts of them from non-paying members. but in place of the hidden text, i want to have a standard html advertisement to entice them to become a pay member. for that purpose, this works better because i needn't go to the trouble of re-coding the html time and time again.
your hack certainly surpasses mine in such things as security and options, but i think that in many ways it is a completely different hack than this. good job on that btw. i'm sorry if you felt you needed to defend your work. |
Quote:
|
i wasn't sure whether it was possible to do that in a function of functions.php...how would i do it? only thing i could think of is:
PHP Code:
|
it is working for vbb2.3.0?
|
All times are GMT. The time now is 01:23 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:
|