View Full Version : 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.
Slynderdale
02-12-2003, 01:05 AM
Theres also always this hack:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=48492
You could do ==6)]Hidden Text Here
Originally posted by Slynderdale
Theres also always this hack:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=48492
You could do ==6)]Hidden Text Here
Martin64
02-12-2003, 01:43 AM
Originally posted by Slynderdale
Theres also always this hack:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=48492
You could do ==6)]Hidden Text Here
Yeah, that was the one. I was going to comment that there already was a similar hack to this one, but couldn't remember which one it was. Either way, good job both of you. :glasses:
empreur76
02-12-2003, 09:23 AM
thanks !
empreur76
02-12-2003, 10:01 AM
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:
$bbcode = eregi_replace("","",$bbcode);
$bbcode = eregi_replace(","",$bbcode);
to
$bbcode = str_replace("","",$bbcode);
$bbcode = str_replace("","",$bbcode);
stupid error on my part, text file updated
Slynderdale
02-12-2003, 02:41 PM
Originally posted by nicksaunders
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
The hack I made is easy to use, i even have it so you can do Text and if there usergroup isnt 6 (admin) the text wont show.
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.
Slynderdale
02-12-2003, 08:55 PM
Originally posted by nicksaunders
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.
Hmm, Yea your right, sorry for my post, Your hack is different, also I have an idea for it, instead of using a text file and so on, how about ir using a template instead?
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:
$bbcode = eregi_replace("\\[ahide\\]([^\\[]*)\\[/ahide\\]",gettemplate("templatename"),$bbcode);
chipheodeptrai
05-23-2003, 03:05 AM
it is working for vbb2.3.0?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.