The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]() Quote:
|
#12
|
|||
|
|||
![]()
So I am lost guys with these plugins. What should the hook location of this plugin be?
Will this not parse images unless they are usergroup X Y Z? Does this code work for sure? if(!is_member_of($this->registry->userinfo, X, Y, Z)) { $dobbimagecode = false; } |
#13
|
|||
|
|||
![]()
The code Psionic posted assumes you've set your forums up to always allow bbcode and you only want to disable it for users that are in a specific usergroup. IIRC your requirement was the other way around.
The foreach loop is also useless since it is unnecessary to use a foreach loop (one already exists in is_member_of). The best way, is to either use the code i posted (which will disable all img codes for everyone except special users in a specific usergroup - regardless of the settings of the forum) PHP Code:
PHP Code:
|
#14
|
|||
|
|||
![]()
That doesn't do what I wanted.
Let me try to clarify myself better. The problem I have are users signing up and then posting pornography. So I set it up so you get promoted after 30 days and 50 posts. What I need is a plugin that does not allow the parsing of a certain user group's IMG tags site and user group wide. So if user group 1 posts an IMG tag, it won't parse for any user group, it will just show up as a link. Make sense? |
#15
|
|||
|
|||
![]()
My mistake.
PHP Code:
|
#16
|
|||
|
|||
![]()
That doesn't work either. That just doesn't parse the IMG tag for whatever usergroup I put in there but all the other user groups the IMG tag parses for which I don't want.
I need a check that per post does this for all user groups: Is this poster part of the user group listed as not able to use IMG tags? If so then do not allow their IMG tags to be parsed for ANY user group. Right now if a user signs up they can post porn which they can't see but everyone else can. |
#17
|
|||
|
|||
![]()
Ah.
Gotta look for more hooks, will get back to you ![]() |
#18
|
|||
|
|||
![]()
Thanks for all the help Merk I really do appreciate it!
|
#19
|
|||
|
|||
![]()
For the life of my I cant work out how to do it without hacking code. I hate hacking code :ninja:
Hrm. Damnit. Cant find a way in without hacking. Oh well, best way I can think of: Inside class_postbit.php, replace function parse_bbcode() with PHP Code:
PHP Code:
|
#20
|
|||
|
|||
![]() Quote:
Parse error: parse error in /home/httpd/vhosts/jeepforum.com/httpdocs/forum/includes/class_postbit.php on line 799 Fatal error: Cannot instantiate non-existent class: vb_bbcodeparser in /home/httpd/vhosts/jeepforum.com/httpdocs/forum/showthread.php on line 982 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|