![]() |
Usergroup Tags
This hack allows you to selectively display text to certain usergroups wherever BB code is parsed. For example, this tag:
[ugid1]Only guests will see this[/ugid1] ...will only appear to guests. All other usergroups just won't see the text at all. This is not meant to be secure! Anybody who quotes or edits a given post will see all the [ugidn] tags in plan text. This hack works for all usergroupids, including custom ones. |
My signature (note the tags at the bottom):
|
What an admin sees:
|
What a guest sees:
|
Interesting :)
|
hey nice :)
|
Very cool hack turtle!!!
|
Awesome work..
|
Great idea!:)
*installs:) Satan |
Couldn't you make it so it is secure? :D
|
I could pretty easily but it would require a lot more code editing and third-party hacks would have to be edited, too.
|
Well there is one way of making it secure that he has already pointed out...Disable the "quote post" option;):p
Satan |
What about PMs, editing a post, etc.?
|
Thx filburt1 !
/me cliks install, it could be fun to use :P |
Filb, good point about the amount of editing required to do so, good hack nonetheless though :).
|
Nice idea but what about in 'get all posts from this user'.
Wont it show them what they said? Or part of it? Dave. |
This is part of bbcodeparse2(). Whenever that is called, then ugid tags for all other usergroups will be stripped. Otherwise they'll be right there. So anytime BB code is parsed, this will be, too.
|
Ah okay just checking :).
Dave. |
hrmmmm... Correct me if im wrong. Im taking this off the top of my head. Wouldn't this fix that quote problem?
Edit newreply.php and find PHP Code:
PHP Code:
I think that may only work if its a real bbcode tag. Im not sure. I dont have access to my home pomputer so i cant try it just yet. |
The whole point is that you don't have to have so much redundant code. That's why I invented loops :D
Yes it would fix it but the problem is there are so many other places in vB where you can see the raw BB code. |
Theres a hack similar to this here, and its secure:
https://vborg.vbsupport.ru/showthrea...threadid=48492 |
How is that one secure?
|
I have it so it removes any rouge php functions you dont allow and have it set to admin only and also have it so no one can view it unless they have permission too, it checks it during search, quoting, editing and so on. But nice hack filburt, yours is slightly esier to use to those who dont php santax.
Also I wasnt trying to put down your hack with my previous post, I respect all hackers. If you want, you can delete it. |
i know i've tried somewhat of the same kind of hack a while back... didn't feel like bypassing so many different places that i just added in another field to the post table...
https://vborg.vbsupport.ru/showthrea...threadid=42444 thats just what i did to try to acheive the effects but it was only a user to user based and im sure it can be modified to a usergroup to usergroup based... g-force2k2 |
All times are GMT. The time now is 07:29 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:
|