PDA

View Full Version : Advanced BBCode Permissions


Pages : [1] 2

Abe1
03 Aug 2006, 22:28
Advanced BBCode Permissions 3.0

Click here to Nominate this Mod for Mod the Month (http://www.vbulletin.org/forum/vborg_miscactions.php?do=nominatehotm&t=122942)

About this hack:
This hack will give you advanced control on BBCode. You will be able to define for each usergroup what BBCode they may or may not use. This hack works for both standard AND custom BB code!

Installation information on hack:

Files edited: 0
Templates edited: 0
Files to upload: 0
Time to install: 10 seconds maxUpdates:

Version 3.0 (08/03/06):

Initial release of this hack for vb 3.6
[CHANGED] Re-did the way the permissions are stored to fix a lot of bugs.

Beta test version 4.0 here: http://www.vbulletin.org/forum/showthread.php?p=1159541

Please post your comments or suggestions for this hack. I read ALL posts.

MAKE SURE YOU CLICK INSTALL (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=122942)!
You will get an email when a new version is released.

This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation.
https://www.paypal.com/en_US/i/btn/x-click-but04.gif (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=bigware%40gmail%2ecom&item_name=Donation%20for%20Advanced%20BBCode%20Permissions&no_shipping=0&tax=0&currency_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8)

paul41598
03 Aug 2006, 22:34
does this new version solve this past issue:
http://www.vbulletin.org/forum/showpost.php?p=1031321&postcount=117

Also is it compatible for 3.5 series?

Abe1
03 Aug 2006, 22:47
does this new version solve this past issue:
http://www.vbulletin.org/forum/showpost.php?p=1031321&postcount=117

Also is it compatible for 3.5 series?
You have to un-install and re-install this one. There are major differances. This one fixes the issues of the vb3.5 version.

paul41598
03 Aug 2006, 22:48
Good thing I never installed the first one for 3.5. I will try this out tonight. Nice job, thanks again Abe

paul41598
04 Aug 2006, 01:22
hmmm



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Abe1
04 Aug 2006, 01:27
You can't install this on a vb3.5 forum. I attached a file that you can. I'm not officaly releasing it though.

paul41598
04 Aug 2006, 01:30
oh wow, so same features just ported to work with 3.5. Very cool. It imported fine...now time to test. Thanks Abe, that was very nice :D

Darkfire122333
04 Aug 2006, 21:04
The ony question I have before I install this, is what about in your screenshot. There is 2 [ALIGNMENT] tags. What would happen if you turned one on and one off? What would happen to it in general, also, what if there were more like that? Would they be turned on or off by default?

I am jst wondering becuase maybe there would be a conflict with selecting one off and one on, and making it unusable when I actually want it turned on, but the [LIST] code on, or the alignments on, but the [LIST] code off.

Sorry if I am not clear enough on what I mean.

Abe1
04 Aug 2006, 21:58
The ony question I have before I install this, is what about in your screenshot. There is 2 [ALIGNMENT] tags. What would happen if you turned one on and one off? What would happen to it in general, also, what if there were more like that? Would they be turned on or off by default?

I am jst wondering becuase maybe there would be a conflict with selecting one off and one on, and making it unusable when I actually want it turned on, but the [LIST] code on, or the alignments on, but the [LIST] code off.

Sorry if I am not clear enough on what I mean.
It makes sure both are off before disabling it.

Cajun
05 Aug 2006, 02:47
I see this in the usergroup manager after intall.

Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30

cheesegrits
05 Aug 2006, 06:10
Forgive the dumb question, but ...

Does this hack simply control who can create a given bbcode when they post, or does it also control who can see given bbcodes when viewing posts?

For instance, lets say I want a bbcode, where moderators can embed a note in a post which ONLY other admins or moderators can see. For instance ...

[modsonly]This cheesegrits guy is a major pain in the you know what, always wanting stuff he can't have, this is just another example of old cheesy rambling on about stuff nobody but him cares about!

I'm assuming this mod doesn't quite get me what I want, in that it looks like I can restrict a custom bbcode to allow only certain groups to create the code, but once that code is in a post, anyone can then see the rendered result. Correct?

Still a very useful mod, but I'd really like usergroup control over both creation and viewing of bbcodes.

-- hugh

Abe1
06 Aug 2006, 02:52
I see this in the usergroup manager after intall.

Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30
Can you give me more info so I can reproduce it? Also an image of where it's located might help.

Abe1
06 Aug 2006, 02:53
Forgive the dumb question, but ...

Does this hack simply control who can create a given bbcode when they post, or does it also control who can see given bbcodes when viewing posts?

For instance, lets say I want a bbcode, where moderators can embed a note in a post which ONLY other admins or moderators can see. For instance ...

[modsonly]This cheesegrits guy is a major pain in the you know what, always wanting stuff he can't have, this is just another example of old cheesy rambling on about stuff nobody but him cares about!

I'm assuming this mod doesn't quite get me what I want, in that it looks like I can restrict a custom bbcode to allow only certain groups to create the code, but once that code is in a post, anyone can then see the rendered result. Correct?

Still a very useful mod, but I'd really like usergroup control over both creation and viewing of bbcodes.

-- hugh
This is for using BBCode. If you dont have permissions to use the bbcode, then the post cannot use the bbcode. Even if an admin edits it.

cheesegrits
07 Aug 2006, 04:37
This is for using BBCode. If you dont have permissions to use the bbcode, then the post cannot use the bbcode. Even if an admin edits it.

Thanks for the reply. That's what I figured, but I had to ask.

I'll no doubt install it anyway, as it provides some of what I need.

-- hugh

Dutchytje
12 Aug 2006, 18:31
Great hack!

I've got just one question.
Can you make it so that I can disable custom BB code also in signatures only?

I got an bbcode for image thumbnails, but this means that they can also use that code in signatures.
In spite of the fact I have disabled the [img ] tag in sigs..

Thanks in advance. :)

Abe1
16 Aug 2006, 05:52
Great hack!

I've got just one question.
Can you make it so that I can disable custom BB code also in signatures only?

I got an bbcode for image thumbnails, but this means that they can also use that code in signatures.
In spite of the fact I have disabled the [img ] tag in sigs..

Thanks in advance. :)
I dont think I would add such an option.

Zelos
16 Aug 2006, 07:50
I noticed there's no option to disable the IMG tags...

Abe1
16 Aug 2006, 13:45
I noticed there's no option to disable the IMG tags...
I think it gets controled other ways.

rooshine
17 Aug 2006, 04:33
I think it gets controled other ways.
Maybe I'm just really dumb and missed it (it's a possibility), but I could not find IMG control on a usergroup basis other than for sigs.

tekstylez
21 Aug 2006, 01:54
I am getting the follwing error in my usergroup edit page



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Kirk Y
22 Aug 2006, 04:10
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



I get these whenever a User tries to Post w/out permission for the BBCode. It also shows up at the top of the Thread -- and it still lets them use the vBCode.

I'm using the "unreleased" 3.5.4 version you attached.

tekstylez
23 Aug 2006, 17:41
can i get some support on this?

Abe1
24 Aug 2006, 04:02
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



I get these whenever a User tries to Post w/out permission for the BBCode. It also shows up at the top of the Thread -- and it still lets them use the vBCode.

I'm using the "unreleased" 3.5.4 version you attached.
I can't support that version. It was only made so i can test once.

Abe1
24 Aug 2006, 04:02
I am getting the follwing error in my usergroup edit page



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


You have v 3.0 installed?

Kirk Y
24 Aug 2006, 20:32
I can't support that version. It was only made so i can test once.

Are you planning on updating your 3.5.4 version to reflect the changes made for the 3.6.0 version?

tekstylez
25 Aug 2006, 00:25
You have v 3.0 installed?

yes, 3.0 is installed

Abe1
25 Aug 2006, 04:56
Are you planning on updating your 3.5.4 version to reflect the changes made for the 3.6.0 version?
Nope.

Abe1
25 Aug 2006, 04:57
yes, 3.0 is installed
I would need access to you ACP to find the problem.

Mysticales
26 Aug 2006, 23:24
You can't install this on a vb3.5 forum. I attached a file that you can. I'm not officaly releasing it though.

Wish you would lol. Thanks, this was just what I was looking for to encode with the simple youtube embed =)

craig5320
29 Aug 2006, 16:05
I would need access to you ACP to find the problem.

Hi,

I too was getting this error, not on my local install of 3.6 but on the upgraded 3.06 -> 3.6 board.

Appears in the usergroup manager above where your permissions box is inserted.

However I've found when you insert a Custom BBCODE it dissappears, So i think it only happens before you add a custom one. That's what solved it for me, just thought it might give you a start.

Craig

EDIT: On further inspection I'm getting similar errors appearing on the frontpage vBadvanced CMPS and BBCODEs aren't being parsed even for admins or groups with custom permissions turned off. Looking into it further.

johnstires
30 Aug 2006, 02:24
How difficult would it be to restrict this hack on a per forum basis. I would like to restrict BBcode but only in certain forums.

I also have a question about restricting IMG tags. how else does one control this on a usergroup level.

Willing to pay for the enhancement:

http://www.vbulletin.org/forum/showthread.php?p=1063781#post1063781

bhxtyrant
30 Aug 2006, 07:03
You can't install this on a vb3.5 forum. I attached a file that you can. I'm not officaly releasing it though.

Hey abe,Sorry for the bother but i have 3.5.4 installed if i read the post correct then the file in this attachment is made to work with 3.5.4?If so there seems to be a problem because i get a database error that was posted on the first page of this thread after uninstalling the old version and installing the version in your post.

tekstylez
31 Aug 2006, 04:15
I would need access to you ACP to find the problem.

Abe... I will send a PM with login info...

G_Man
31 Aug 2006, 05:40
Brilliant.

thanks.

Stoebi
31 Aug 2006, 11:15
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



It happens only with PHP 5. My workaround (posted in vbhacks-germany, too):

Hook: admin_usergroup_edit

Search for


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Replace with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Hook: bbcode_parse_start

Search for


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Replace with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Regards, Stoebi

G_Man
05 Sep 2006, 04:36
I don't know if you would want to alter this hack any, but....

What would have been MUCH nicer for me is that the default be 'yes' instead of 'no'. Took me like 20 minutes to go through each Usergroup and turn ON all but two of the BBcodes...

Would have been great to just turn off those two codes for most of my groups.


Just a thought - again, brilliant hack. Cheers.

seg
09 Sep 2006, 03:39
Thank you much - this solved my problem!


It happens only with PHP 5. My workaround (posted in vbhacks-germany, too):

Hook: admin_usergroup_edit

Search for


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Replace with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Hook: bbcode_parse_start

Search for


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Replace with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Regards, Stoebi

Ziki
15 Sep 2006, 15:08
So there is no chance getting a 3.5 version huh

TCB
02 Oct 2006, 20:41
Wonderfull mod..... thanks a lot :D

Nathan2006
03 Oct 2006, 15:59
Thank you Abe :)

Install

RYoBiOS
03 Oct 2006, 18:43
How for 3.6.1 or 3.6.2?

JMH11788
03 Oct 2006, 22:10
How for 3.6.1 or 3.6.2?

Should work without any issues, especially considering the hack doesn't need any modified templates.

Mysticales
04 Oct 2006, 14:30
I have a question, The 3.5 version he posted on this thread works fine. However ONLY for "Primary" usergroup settings! It ignores Secondary totally. Is there a way to convert this to check for "is_member_of($bbuserinfo, X)" ?

This would save everything.. cause if "Registered users" are denied bbcode selected, but they ARE in a secondary that IS allowed, the code would see that and work correctly. Anyone know how I can do this?

Mysticales
06 Oct 2006, 02:28
No one knows?

Abe1
09 Oct 2006, 04:10
I have a question, The 3.5 version he posted on this thread works fine. However ONLY for "Primary" usergroup settings! It ignores Secondary totally. Is there a way to convert this to check for "is_member_of($bbuserinfo, X)" ?

This would save everything.. cause if "Registered users" are denied bbcode selected, but they ARE in a secondary that IS allowed, the code would see that and work correctly. Anyone know how I can do this?
I'll look into it.

Snyper
10 Oct 2006, 17:03
Hello,

www.yourforum.com/misc.php?do=bbcode display BB-Codes with no Permissions. ( Guest a.o. )

vB3.6.2

Greets

Abe1
10 Oct 2006, 19:35
Hello,

www.yourforum.com/misc.php?do=bbcode display BB-Codes with no Permissions. ( Guest a.o. )

vB3.6.2

Greets
I'll look into it.

kkKunan
12 Oct 2006, 01:29
This in Admincp



Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30


Sorry But i ave vbulletin 3.60 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!

!!!!!!|!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

kkKunan
12 Oct 2006, 01:32
* Files edited: 0
* Templates edited: 0
* Files to upload: 0
* Time to install: 10 seconds max


I dont thinl

Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30

Abe1
12 Oct 2006, 06:12
* Files edited: 0
* Templates edited: 0
* Files to upload: 0
* Time to install: 10 seconds max


I dont thinl

Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30
DOnt know why. I would have to look at your ACP.

boatdesign
16 Oct 2006, 03:38
vB 3.62 --

When I edit a usergroup I see above the advanced bb code options:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Something to worry about?

boatdesign
16 Oct 2006, 03:54
Uninstalled and reinstalled product file, and same thing in admin usergroup.

Then when a user tries to post (with URL not allowed for their usergroup) they get

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



The post is posted, but the result page has the same error on it too. The post then looks like [ url ]http://www.google.com[ /url ] (with [ url ] tags showing (no spaces), but not parsed.) I'm not sure if this is working as intended (it would be nicer if the [url] tags were not only not parsed, but also not displayed if a user doesn't have permission to use them.)

Uninstalling for now, but really really would love to use this if I can get past the error.

Abe1
16 Oct 2006, 05:27
Uninstalled and reinstalled product file, and same thing in admin usergroup.

Then when a user tries to post (with URL not allowed for their usergroup) they get

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



The post is posted, but the result page has the same error on it too. The post then looks like [ url ]http://www.google.com[ /url ] (with [ url ] tags showing (no spaces), but not parsed.) I'm not sure if this is working as intended (it would be nicer if the [url] tags were not only not parsed, but also not displayed if a user doesn't have permission to use them.)

Uninstalling for now, but really really would love to use this if I can get past the error.
Do you have any custom BB codes?

boatdesign
16 Oct 2006, 06:48
No custom BB codes.

Abe1
16 Oct 2006, 13:08
No custom BB codes.
Curius, if you add one, do you loose the error?

Mysticales
17 Oct 2006, 10:23
I'll look into it.

Any news or manual patch you know of?

Abe1
17 Oct 2006, 14:29
Any news or manual patch you know of?
Not right now.

Mysticales
17 Oct 2006, 20:15
Couldnt "is_member_of" be used? I dont know your code as well as you, but would think that should work somehow?

Abe1
17 Oct 2006, 20:53
Couldnt "is_member_of" be used? I dont know your code as well as you, but would think that should work somehow?
I may use that soon.

YabbaDabba
25 Oct 2006, 20:09
Thanks so much for your work on this.

I need to control the IMG tag on a group basis. I use vB 3.6.0.
AFAIK there is no way to control this tag in posts at the group level.
There are plenty of image permissions for attachments, sigs, avatars, etc.
Just not for posting. Jake Bunce has said the same over at vB.com.

Any chance of adding the IMG tag to your code?

Our problem is the occasional drive-by porn poster. By restricting new members' access to the IMG tag, we can virtually eliminate the problem.

wbear
02 Nov 2006, 11:11
Was working fine earlier until I upgraded and moved all at once. Using 3.6.2, I uninstalled the previous version, made sure the file was removed from includes/xml, and get the same error in the adminCP:
"Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30"

Bog standard install, nothing out of the ordinary. Any fix yet?

Mastar
03 Nov 2006, 14:53
Does anyone here that is having problems also have this installed:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



If so try this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

WebSpidey
06 Nov 2006, 06:20
I have installed this on vB 3.6.2 with no errors or problems at all.

I have about 5 or 6 custom BBCodes installed, and about 20 other forum hacks installed.

Again, 0 errors, so other people's issues shouldn't necessarily discourage anyone else from trying out this hack.

Thanks for the great product!

wbear
06 Nov 2006, 11:36
Hmm, I have no extras or BB codes installed, yet I do get the error. Strange. I certainly hope there is a fix for it, I loved this hack...:(

Abe1
07 Nov 2006, 02:52
Hmm, I have no extras or BB codes installed, yet I do get the error. Strange. I certainly hope there is a fix for it, I loved this hack...:(
I have to look in to it. It seems like if you have no custom BBCode you get an error.

wbear
07 Nov 2006, 03:05
That does it. Added a custom BB code, no more error. Testing functionality at the moment...spiffy.
I've always wondered, is there a way to make it supress the [ url ] ("b" and so on) tag pairs in the posts where it isn't allowed? I get the attempted BBcode, wrapped in [ url ] [/ url ] (spaces added)?

Ingmar
25 Nov 2006, 14:33
Thank you, Abe1!

*Clicks Install*

edit:

*Clicks Unistall*

Seems to be a conflict with code displayed in vBa CPMS modules. That's too bad because this is a great mod. :(

Keep up the great work!

brandon515
04 Dec 2006, 19:21
Any plan on adding the [IMG] tag to this mod? I think it is the most important one of all.

Abe1
06 Dec 2006, 02:35
Any plan on adding the [IMG] tag to this mod? I think it is the most important one of all.
I dont think so. There are many settings currently for this tag.

lukemax
08 Dec 2006, 03:26
I just installed this, where do I go in the admincp to get a screen like the screenshot?

Mysticales
09 Dec 2006, 09:20
Hey Abe, any luck on is_member_of permissions for the 3.5.x?

Abe1
09 Dec 2006, 23:49
I just installed this, where do I go in the admincp to get a screen like the screenshot?
usergroup edit

Abe1
09 Dec 2006, 23:50
Hey Abe, any luck on is_member_of permissions for the 3.5.x?
I didn't add that yet.

Murty
17 Dec 2006, 01:49
how hard would it be to make this, so you can also turn bbcode off and on for forums?

libertate
21 Dec 2006, 21:13
Excellent piece of tool!

Except... I have "Registered Users" as primary, and "Full Users" as additional.

"Registered" Users do not have permissions for URLs, "Full" do.

Yet, after promotion which adds the user to the "Full Users" additional group, they still are unable to post URLs.

What am I doing wrong?

It does work if I turn it off/on within the same group - but I want to use the promotion feature of user groups - restricting new and non-posting users to have URL privileges.

Maybe I should do it in reverse? Grant right through "Registered Users" primary, and remove rights with "New Users" additional group. Then remove them from "New Users" additional group once pass muster?

Abe1
24 Dec 2006, 14:03
Excellent piece of tool!

Except... I have "Registered Users" as primary, and "Full Users" as additional.

"Registered" Users do not have permissions for URLs, "Full" do.

Yet, after promotion which adds the user to the "Full Users" additional group, they still are unable to post URLs.

What am I doing wrong?

It does work if I turn it off/on within the same group - but I want to use the promotion feature of user groups - restricting new and non-posting users to have URL privileges.

Maybe I should do it in reverse? Grant right through "Registered Users" primary, and remove rights with "New Users" additional group. Then remove them from "New Users" additional group once pass muster?
It's on my list todo.

ginger22
26 Dec 2006, 11:42
How about IMG tag?

libertate
04 Jan 2007, 23:59
It's on my list todo.

Any update on this? Would $ome incentive help with the development?

Abe1
11 Jan 2007, 01:50
Any update on this? Would $ome incentive help with the development?
It may help but it really depends on my mood and time I have. I am in middle of a lot of coding projects right now with a full time job and college 3 nights a week.

libertate
12 Jan 2007, 19:14
Update your PayPal donation information in your CP, and I will encourage you.

Abe1
14 Jan 2007, 03:44
Update your PayPal donation information in your CP, and I will encourage you.
It was updated a few days ago.

Abe1
15 Jan 2007, 05:10
(libertate, apparently your donation helped :))

This is BETA test.

Version 4.0 beta 1

I'm just running through this beta so some of you guys can test the 2 changes before I make it an official release. There 'should' be no issue with this version but I just want it tested first.

1) If you dont have custom bbcodes, you should not get an error anywhere.

2) Additional usergroups are checked to see if they can use a BBCode if the Primary Usergroup has the permission turned off. If ANY of the user's usergroups have the setting 'enable advanced bbcode permissions' turned OFF, then it will be TURNED OFF for the user and he gets the forum default. If ALL a users usergroups have it set to ON, then it will check through all the usergroups and get a 'yes' even if only an additional usergroup has it set to yes.

Please post feedback quickly. I would like to release this ASAP.

Just import the new file into products. No need to uninstall.

libertate
17 Jan 2007, 01:32
I have custom BBCodes.

I installed it and recieved no errors.

I have one primary group (Registered Users), where ABBCode is enabled. No Links ([URL], [EMAIL], [THREAD], [POST]) BBCode allowed.

I also have a custom group (Established User), where ABBCode is also enabled. Links allowed.

When user is member of Registered User group (Default - Primary) only - no Links work in post.

When user is member of Registered User group (Default - Primary) and Established User (Custom group - additional group) - Links work in post.

To add the additional membership I use a simple "Promotions".


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

The custom BBCodes, although listed for "Yes/No" option of enable/disable are not enforced. All default BBCodes work!

Otherwise - YEAH!:D:D:D

libertate
17 Jan 2007, 01:45
hmmm... That was wierd... Now it does not work.

Does every group has to have ABBCode turned on, even if the user is not member, or just the ones the user is part of?

------------------

It works.

It does require some watching. Not enabling it in one group where the member belongs, would by default give the rights to the user. So for example if it is NOT enabled on Miserable User group - they GET the rights. :confused:

I think it should "ignore" a group if the user is member, and ABBCode is not enabled.
------

It would be sweet if the BBCodes would be "removed" or parsed out.
Would be really cool if we can replace the bbcode with a language variable.

Abe1
17 Jan 2007, 04:10
hmmm... That was wierd... Now it does not work.

Does every group has to have ABBCode turned on, even if the user is not member, or just the ones the user is part of?

------------------

It works.

It does require some watching. Not enabling it in one group where the member belongs, would by default give the rights to the user. So for example if it is NOT enabled on Miserable User group - they GET the rights. :confused:

I think it should "ignore" a group if the user is member, and ABBCode is not enabled.
------

It would be sweet if the BBCodes would be "removed" or parsed out.
Would be really cool if we can replace the bbcode with a language variable.
This had will not update any posts that have cached copies until they are re-done.

If a user is part of a usergroup that does NOT have 'use advanced permissions' on, then this is the BEST option for the user and the hack will use these settings. I would recommened turning this option to ON for all usergroups so you dont get any problems.

libertate
17 Jan 2007, 14:23
Maybe a "Global" setting for ABBCode?

It would not really be a "root" setting, only a 'mass copy from' settings...

Set all options, then it copies/propagates to all groups? Then one can go back to the specific ones and modify them?

Abe1
17 Jan 2007, 18:30
Maybe a "Global" setting for ABBCode?

It would not really be a "root" setting, only a 'mass copy from' settings...

Set all options, then it copies/propagates to all groups? Then one can go back to the specific ones and modify them?
Maybe.

jyajay
21 Jan 2007, 15:05
This mod destroyes bbcode like

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

by adding wired spaces to the url so that the whole code is broken, I checked and this only appears with advanced permissions activated for that group and also only with the product enabled. I do not have any other bbcode changing mods installed.

I had to add * into to code because code actually IS parsed inside of the "code" bbcode, is that a mistake?

Abe1
21 Jan 2007, 22:29
This mod destroyes bbcode like

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

by adding wired spaces to the url so that the whole code is broken, I checked and this only appears with advanced permissions activated for that group and also only with the product enabled. I do not have any other bbcode changing mods installed.

I had to add * into to code because code actually IS parsed inside of the "code" bbcode, is that a mistake?
You are missing the end quote for the URL

jyajay
22 Jan 2007, 11:52
This was just an example, forget about the quote ;) ... it isn't just happening once but on all linked images.

libertate
24 Jan 2007, 16:03
jyajay,

I do not understand. What is it doing that is not supposed to?

jyajay
25 Jan 2007, 11:07
It is destroying linked images, thats all i'm saying.

Mysticales
27 Jan 2007, 03:27
(libertate, apparently your donation helped :))

This is BETA test.

Version 4.0 beta 1

I'm just running through this beta so some of you guys can test the 2 changes before I make it an official release. There 'should' be no issue with this version but I just want it tested first.

1) If you dont have custom bbcodes, you should not get an error anywhere.

2) Additional usergroups are checked to see if they can use a BBCode if the Primary Usergroup has the permission turned off. If ANY of the user's usergroups have the setting 'enable advanced bbcode permissions' turned OFF, then it will be TURNED OFF for the user and he gets the forum default. If ALL a users usergroups have it set to ON, then it will check through all the usergroups and get a 'yes' even if only an additional usergroup has it set to yes.

Please post feedback quickly. I would like to release this ASAP.

Just import the new file into products. No need to uninstall.


Will this fix work for 3.5.x? Ive been waiting awhile for the additional usergroup check. =D

Unless you could PM me where to make the changes at in the plugin? Thanks tho. =)

Abe1
29 Jan 2007, 14:41
Will this fix work for 3.5.x? Ive been waiting awhile for the additional usergroup check. =D

Unless you could PM me where to make the changes at in the plugin? Thanks tho. =)
Not 100% sure it would work. Test it on a site first. Not sure it can be imported though.

johnstires
29 Jan 2007, 22:53
This mod conflicts with the news module for vba cmps. In the news module bbcode only gets parsed for the most recently entered thread. All other threads lose thier parsing. See here for an example:

http://www.prenatalyogacenter.com/cmps_index.php?page=press

When I disable ABBcode the module works fine. Anyone know how to fix this?

Sniper1
04 Mar 2007, 22:05
This mod conflicts with the news module for vba cmps. In the news module bbcode only gets parsed for the most recently entered thread. All other threads lose thier parsing. See here for an example:

http://www.prenatalyogacenter.com/cmps_index.php?page=press

When I disable ABBcode the module works fine. Anyone know how to fix this?

I have the same Problem. Turn this Mod off works the News Modul perfect. :confused:

zippokid
12 Mar 2007, 17:35
I am having a hard time trying to figure out why there is no hack to remove [IMG] permissions for usergroups. I would think that to be many times more relevant and useful than taking away someone's ability to make text in italics. I have porn trolls that I would really like to curb.

Abe1
12 Mar 2007, 20:22
I am having a hard time trying to figure out why there is no hack to remove [IMG] permissions for usergroups. I would think that to be many times more relevant and useful than taking away someone's ability to make text in italics. I have porn trolls that I would really like to curb.
Aren't there other image options right now per usergroup?

zippokid
13 Mar 2007, 00:19
None that restrict the use of [img] tags. Yes, you can restrict attachments, but denying a post from certain usergroups (aka porn flooders) if the post contains the [img] tag would take a huge load off the shoulders of my moderators.

thincom2000
13 Mar 2007, 00:28
You have a porn flooder usergroup? :-P

I have a hack called CES Parser Permissions that lets you set HTML, BB-code in general, IMG-code, smilies, and *anything-code* per usergroup.

zippokid
13 Mar 2007, 00:33
You have a porn flooder usergroup? :-P

I have a hack called CES Parser Permissions that lets you set HTML, BB-code in general, IMG-code, smilies, and *anything-code* per usergroup.

Hahah yes, sad I know. What happens is users can't stay away from the board when they need to do homework or study, so they request to be banned. I have grown tired of doing this and I refuse. Thus, they break the rules to force the ban. Which leads to a huge cleanup of images with people defecating on various unnatural portions of the countenance. IF I could hold over their heads that they'd never be able to post images again, even after their ban, this would stop. I'll check this parser permission hack. Thanks.

Staxed
22 Mar 2007, 02:21
I'm having a weird issue...

I have it installed...and most of it is working fine...

but for some strange reason...i have one bbcode that only admin should be able to use...but it lets the moderators use it as well...

I've checked everything i can think of and it all seems to be set correctly...any ideas?

Abe1
22 Mar 2007, 03:43
I'm having a weird issue...

I have it installed...and most of it is working fine...

but for some strange reason...i have one bbcode that only admin should be able to use...but it lets the moderators use it as well...

I've checked everything i can think of and it all seems to be set correctly...any ideas?
Are mods in a usergroup that does not have the setting set to us advanced settings?

Staxed
22 Mar 2007, 21:17
Are mods in a usergroup that does not have the setting set to us advanced settings?

nope, all the usergroups have the mod enabled

Greggg
23 Mar 2007, 19:08
thanks !

thincom2000
25 Mar 2007, 06:01
Haha, this Version 3.0 works much better than 2.1 did on 3.6. Thanks for letting me know, I thought that whole time that 2.1 was the newest version. I'm just sorry I spent my whole day making 2.1 work correctly on 3.6 now.

Tralala
31 Mar 2007, 06:02
This seems to be working fine for me... but has an unfortunate side effect. With it on, the BBcode list available to users here:

http://www.myforumname.com/forums/misc.php?do=bbcode

(vb.org's page here: http://www.vbulletin.org/forum/misc.php?do=bbcode)

...doesn't show the "example output" properly. None of the BBcodes listed show the examples. :(
With this hack disabled, the examples show properly.

(It also displays the "restricted" BBcodes. I wish it would only show the codes that the user's group is allowed.)

Any workaround or fix for this?

Abe1
01 Apr 2007, 14:33
This seems to be working fine for me... but has an unfortunate side effect. With it on, the BBcode list available to users here:

http://www.myforumname.com/forums/misc.php?do=bbcode

(vb.org's page here: http://www.vbulletin.org/forum/misc.php?do=bbcode)

...doesn't show the "example output" properly. None of the BBcodes listed show the examples. :(
With this hack disabled, the examples show properly.

(It also displays the "restricted" BBcodes. I wish it would only show the codes that the user's group is allowed.)

Any workaround or fix for this?
I'll look into it.

thincom2000
02 Apr 2007, 06:21
I looked into this on my own site and it seems the only way to fix it is to make some file edits. I'll need to look at what I did to my misc.php file to get around these issues.

Tralala
02 Apr 2007, 06:50
I looked into this on my own site and it seems the only way to fix it is to make some file edits. I'll need to look at what I did to my misc.php file to get around these issues.

Thanks, thincom2000. Your feedback will help everyone who is using this excellent hack. :up:

thincom2000
05 Apr 2007, 07:26
This post explains how to make misc.php?do=bbcode reflect these permissions. Disallowed codes will not appear.

In misc.php, find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace this segment with:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Tralala
05 Apr 2007, 17:11
This post explains how to make misc.php?do=bbcode reflect these permissions.

Thanks for this. I now see that the allowed codes do, in fact, show the "Example Output" properly... and the disallowed codes do not.

Is there a way to prevent the disallowed codes *from appearing at all?*



It also seemed to introduce a new "phantom" BBcode at the bottom of the list:
http://www.userfriendlyla.com/sharedimages/vbcode-20070405-091705.jpg
Any way to get rid of that?

thincom2000
07 Apr 2007, 17:36
Is there a way to prevent the disallowed codes *from appearing at all?*

Please see my above post again. I included the entire *find* code to clear up some problems you may be having.

Tralala
07 Apr 2007, 20:45
Thanks for the edit, thincom2000. That took care of the "phantom" BBcode at the bottom of the list.

But I still have a disallowed code showing up on Registered Users' misc.php?do=bbcode page. The example output doesn't display... but the code is still listed there.

Anything else I can try? I appreciate all the help and sharing!

Tulsa
14 Apr 2007, 04:27
This mod conflicts with the news module for vba cmps. In the news module bbcode only gets parsed for the most recently entered thread. All other threads lose thier parsing. See here for an example:

http://www.prenatalyogacenter.com/cmps_index.php?page=press

When I disable ABBcode the module works fine. Anyone know how to fix this?

Since I have this same issue, was there ever a solution to it?

thincom2000
14 Apr 2007, 17:24
But I still have a disallowed code showing up on Registered Users' misc.php?do=bbcode page.

What code is it?

Also not necessarily directed at you, but does anyone know what happens if we have more than 32 BB-codes? Integer overflow? I'm at 29 right now.

Tralala
14 Apr 2007, 18:31
What code is it?


This is one only allowed to Admins and mods:
http://www.vbulletin.org/forum/showthread.php?t=143468

And yet registered users still see it in that BBCode page. It just doesn't render an example. I'd rather that entry not appear at all, if that's possible.

thincom2000
14 Apr 2007, 21:34
If you are using the most recent code above, this is only possible if the BB-code still exists in the tag list. The BB-Code permissions hack removes forbidden BB-codes from the list. If you are having issues on the misc.php?do=bbcode page after making my edit, then most likely these users will be able to post this parsed bb-code as well.

First test with other BB-codes to make sure it is an issue only with your iframe code.

Make sure your Registered Users definitely have this tag turned off. Make sure the user you are testing isn't a member of any groups that are allowed to use the tag.

Make sure you have under 32 BB-codes in the permissions list, since I believe strange behavior may occur beyond this number.

Make sure you only have one instance of the BB-code in the BB-code Manager. If you have a version that uses an option and one that doesn't, you can run into problems.

Makc666
18 Apr 2007, 13:07
If will be wonderfull if there will be one more option in this mod.
If user is not allowed to use say bbcode [ B ] , then user is not allowed to EDIT post.
This one will be very-very cool!

Abe1
18 Apr 2007, 13:09
If will be wonderfull if there will be one more option in this mod.
If user is not allowed to use say bbcode [ B ] , then user is not allowed to EDIT post.
This one will be very-very cool!
Make your own add on. This feature really has nothing to do with this hack.

Tulsa
18 Apr 2007, 18:27
This mod conflicts with the news module for vba cmps. In the news module bbcode only gets parsed for the most recently entered thread. All other threads lose thier parsing. See here for an example:

http://www.prenatalyogacenter.com/cmps_index.php?page=press

When I disable ABBcode the module works fine. Anyone know how to fix this?

Since I have this same issue, was there ever a solution to it?

How about if I bump this one? I've had to disable this wonderful hack because I need the parsing of the bbcode on vbadvanced more. Is there anyway to make them play nice together?

thincom2000
18 Apr 2007, 23:20
This mod functions properly for the most part on showthread and in post preview; however,
disallowed BB-codes still parse in the WYSIWYG editor.

I have been investigating this on my own, and I'm not sure I see any way around it, since WYSIWYG seems to make direct text replacements rather than iterating through any sort of tag list.

Makc666
19 Apr 2007, 15:33
This feature really has nothing to do with this hack.
Why not?

1. User are not allowed to use [ MOD] [ /MOD]
1. User made a post.
2. Moderator came an left a note like [ MOD]WARNING![ /MOD] there.
3. User came back and hit EDIT the post.
4. But as user are not allowed to use [ MOD] [ /MOD] he was not able to edit that post.
5. User just removed [ MOD]WARNING![ /MOD] and saved the post.

Sorry there is some mess up here.
User are not allowed to use [ MOD] [ /MOD], bu he just removed it.
That is why I proposed "If user is not allowed to use say bbcode [ B ] , then user is not allowed to EDIT post".

thincom2000
19 Apr 2007, 18:19
Sounds like you need to use an external callback function for your [MOD] tag, rather than HTML replacement. Since you require the reverse of the Advanced Permissions while editing a post, you should probably just hardcode the checks into the function.

feldon23
25 Apr 2007, 22:15
Aren't there other image options right now per usergroup?
If only wishing made it so. IMG is the obvious oversight in this otherwise fantastic add-on.

mhmd1983
28 Apr 2007, 22:26
Installed , very nice hack man

princeedward
08 May 2007, 10:50
installed...thanks for this good hack... ;)

thincom2000
14 May 2007, 06:23
It seems this hack has some issues with the new 3.6.6, since they made some changes to class_bbcode.

Actually it's a conflict if do_parse() is called directly. The bbcode_parse_complete plugin needs a check before restoring $tag_list. Like this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Otherwise the BB-codes in following posts won't parse because you just successfully emptied $tag_list by jumping to do_parse() and skipping bbcode_parse_start.

Also I figured out why my misc.php?do=bbcode changes weren't working for some people. Just make the plugin change above (as well as the misc.php changes here) and disallowed bb-codes won't show there.

juan71287
14 May 2007, 23:08
It happens only with PHP 5. My workaround (posted in vbhacks-germany, too):

Hook: admin_usergroup_edit

Search for


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Replace with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Hook: bbcode_parse_start

Search for


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Replace with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




Regards, Stoebi

Worked like a charm, thanks.

Delphiprogrammi
07 Jun 2007, 11:35
this doesn't work on vBulletin 3.6.7PL1 foreach() errors in the admincp

sina1808
09 Jun 2007, 16:49
hi
I want to know how to disable showing [ url ] tags after activing the plugin
i have disable [ url ] tags !

and I see this in the usergroup manager after intall :

Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30

will using this file ( advanced_bbcode_permissions_4_0_b_1.zip ) solve my problem ?

Fungsten
09 Jun 2007, 20:36
Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30

Frozen Tears
10 Jun 2007, 07:53
Ooh! even custom bb codes, nice one man. thx.

Delphiprogrammi
11 Jun 2007, 21:38
To fix the foreach(); errors you have to make the changes explained here i did and it worked fine

Fungsten
11 Jun 2007, 22:38
To fix the foreach(); errors you have to make the changes explained here i did and it worked fine

Where do you find the Hooks? Thanks.

Delphiprogrammi
11 Jun 2007, 23:00
Where do you find the Hooks? Thanks.

it's in your admincp => products & plugin system => plugins manager => advanced bbcode permissions.There you'll see a list of all plugins used and at which hook ...

Fungsten
11 Jun 2007, 23:41
it's in your admincp => products & plugin system => plugins manager => advanced bbcode permissions.There you'll see a list of all plugins used and at which hook ...



print_yes_no_row("[" . strtoupper($bbcode) . "]",


When the first part of those instructions say to search for:


print_yes_no_row("[" . strtolower($bbcode) . "]",


Thanks again!

Delphiprogrammi
12 Jun 2007, 08:03
When the first part of those instructions say to search for:



Thanks again!

you must copy the hook code and paste it in an editor doin this it's much easier to find the lines you need secondly are you sure you are running 3.6.x and you have that version installed ?

Fungsten
12 Jun 2007, 21:11
you must copy the hook code and paste it in an editor doin this it's much easier to find the lines you need secondly are you sure you are running 3.6.x and you have that version installed ?

I still couldn't find the code though. I copied it to Word and it still can't find ". strtolower" or "strtolower".

On Edit:

Here's Hook Code:


require_once('./includes/class_bbcode.php');
new vB_BbCodeParser($vbulletin, fetch_tag_list());
print_table_header($vbphrase['advanced_bbcode_permissions']);
print_yes_no_row($vbphrase['advanced_bbcode_usergroup_on'], 'usergroup[advanced_bbcode_usergroup_on]', $usergroup['advanced_bbcode_usergroup_on']);
$advanced_bbcode_permissions = explode('|||', $usergroup['advanced_bbcode_permissions']);
foreach ($advanced_bbcode_permissions AS $key => $bbcode)
{
list($core, $bbcode, $yesno) = split("\|\|", $bbcode);
$abe1_bbcode[$core][$bbcode] = $yesno;
}
print_yes_no_row($vbphrase['allow_bbcode_basic'], 'abe1_bbcode[core][allow_bbcode_basic]', $abe1_bbcode['core']['allow_bbcode_basic']);
print_yes_no_row($vbphrase['allow_bbcode_color'], 'abe1_bbcode[core][allow_bbcode_color]', $abe1_bbcode['core']['allow_bbcode_color']);
print_yes_no_row($vbphrase['allow_bbcode_size'], 'abe1_bbcode[core][allow_bbcode_size]', $abe1_bbcode['core']['allow_bbcode_size']);
print_yes_no_row($vbphrase['allow_bbcode_font'], 'abe1_bbcode[core][allow_bbcode_font]', $abe1_bbcode['core']['allow_bbcode_font']);
print_yes_no_row($vbphrase['allow_bbcode_align'], 'abe1_bbcode[core][allow_bbcode_align]', $abe1_bbcode['core']['allow_bbcode_align']);
print_yes_no_row($vbphrase['allow_bbcode_list'], 'abe1_bbcode[core][allow_bbcode_list]', $abe1_bbcode['core']['allow_bbcode_list']);
print_yes_no_row($vbphrase['allow_bbcode_url'], 'abe1_bbcode[core][allow_bbcode_url]', $abe1_bbcode['core']['allow_bbcode_url']);
print_yes_no_row($vbphrase['allow_bbcode_code'], 'abe1_bbcode[core][allow_bbcode_code]', $abe1_bbcode['core']['allow_bbcode_code']);
print_yes_no_row($vbphrase['allow_bbcode_php'], 'abe1_bbcode[core][allow_bbcode_php]', $abe1_bbcode['core']['allow_bbcode_php']);
print_yes_no_row($vbphrase['allow_bbcode_html'], 'abe1_bbcode[core][allow_bbcode_html]', $abe1_bbcode['core']['allow_bbcode_html']);
foreach($vbulletin->bbcodecache AS $custom_bbcode)
{
$custom_bbcodes[$custom_bbcode['bbcodetag']] = $custom_bbcode['bbcodetag'];
}
foreach ($custom_bbcodes AS $bbcode)
{
print_yes_no_row("[" . strtoupper($bbcode) . "]", "abe1_bbcode[non_core][$bbcode]", $abe1_bbcode[non_core][$bbcode]);
}
print_table_break();
print_column_style_code(array('width: 70%', 'width: 30%'));

MoB Dudditz MD
21 Jun 2007, 19:12
I found that if the thread starter is by a user without a certain BBC permission,
it will pass the restriction to anyone that replies.
For instance:
Registered Usergroup cannot use [IMG] BBC

Registered User creates a thread in which an Admin (who can use [IMG]) replies.
If that admin reply contains an [IMG], it will not parse.
Does anyone have the same problem?

I used [IMG] as an example but the BBC in question does happen to be custom.

sidenote:
I also tried the misc.php modification as per this post (http://www.vbulletin.org/forum/showthread.php?p=1220164#post1220164)
and received an error at the top of my browser when viewing the BBC list page.
Warning: sprintf() [function.sprintf]: Too few arguments in /includes/class_bbcode.php on line 1115

thincom2000
22 Jun 2007, 17:19
While I was unable to solve your issue, I noticed there was a discrepancy in the misc.php changes listed here. I'm running 3.6.7 PL1 and have been unable to reproduce your sprintf() error. It likely has to do with another mod that uses the BB-code parser and doesn't check what script is actually running it.

Note the line:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



This should be:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Where FORUMID is the forum ID of any forum with full permissions. That is, it must allow HTML, BB-code, smilies, and IMG-code to parse all your BB-codes.

Fungsten
22 Jun 2007, 21:16
While I was unable to solve your issue, I noticed there was a discrepancy in the misc.php changes listed here. I'm running 3.6.7 PL1 and have been unable to reproduce your sprintf() error. It likely has to do with another mod that uses the BB-code parser and doesn't check what script is actually running it.

Note the line:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



This should be:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Where FORUMID is the forum ID of any forum with full permissions. That is, it must allow HTML, BB-code, smilies, and IMG-code to parse all your BB-codes.

Where is that? XML document? I couldn't find it.

dashed
25 Jun 2007, 04:47
Is there a way to change permissions of the bbcode according to forum instead of usergroup?

thincom2000
01 Jul 2007, 18:07
Easily. You would just copy the same field as in the usergroup table in the forum table. Then you would just need to copy the form plugins and modify them appropriately to use the forum data manager.

ABDALWAHID
07 Jul 2007, 21:22
Hi,

i have this plungins install, all Permissions ok and now i have not bbcode buttons:(

my vbulletin is (vBulletin 3.6.7 PL1)

ViViD
21 Jul 2007, 20:25
Hi ,
I installed your hack for preventing some users who abuse some bbcodes like size and colors, but after changing their usergroup all of their posts changed to garbage codes and the face of threads made dirty .

Is there a way to do not show the not permitted codes and just rendering the text ?
Thanks

TCB
07 Aug 2007, 18:50
This plugin doesn't work with vbgallery: none (besides the smilies) bbcode get parsed.

Now I have to disable this plugin only for the vbgallery product. Zachariah told that these lines have to be added:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Where do I have to add these lines?

(great mod by the way :D)

yoyoyoyo
05 Nov 2007, 13:41
this looks cool, but am not very comfortable installing it on a 3.6.8 forum due to the amount of people posting bugs, etc.. Can someone get this working properly?

jasculs
06 Nov 2007, 04:39
this looks cool, but am not very comfortable installing it on a 3.6.8 forum due to the amount of people posting bugs, etc.. Can someone get this working properly?

I am having the same problem with other add-ons too from this hack

Artes_Marciales
18 Nov 2007, 21:06
Great hack!
Thanks!

libertate
27 Dec 2007, 06:08
There are two problems I have found with this excellent modification.

Intermittently, (and I have not been able to figure it out how/why) the BBCode table gets corrupted, and then all BBCodes are ignored and displayed as text.

In RSS2 feeds it seems to not convert the default BBCodes to HTML within the snipet, nor will it strip it with the nohtml tag.

Caerydd
24 Feb 2008, 10:54
Is there any update coming to the bugs above? *curious* I wish to use this in conjunction with the [anything] tag to enable my admins to post complex html tables.

Eagle Creek
11 Mar 2008, 03:27
Maybe I've found three bugs:

1. When you've got 2 BB code's that share the same name, it only show's up once at the BBCode Permissions section.
2. When a code isn't allowed to be parsed, the user still can see his code parsed. Only other users see that user's code like normal text.
(eg: when usergroup A isn't allowed to use the "code"-tag, and a user of A makes a post and includes the code-tag, the tag is still being parsed when the user views the post. But when another user (let's say another usergroup) watches the post, it's just plain text).
3. When an admin edits the limited users post, the admin is the one who parses the post. But: since it's a limited user, the admin edit isn't being parsed!

Acido
17 Mar 2008, 23:33
Works in 3.7 ?

bwilky
19 Mar 2008, 20:24
Where do you go to edit the settings for this?

Goodman_2020
29 Mar 2008, 20:11
hello i got this warning message on usergroups since i've install this hack

Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30

do you know how i can solve this problem?


EDIT: i jsut tried to post a message and once i click on "new thead" or "reply" i get an error page. When Disable the hack, everything works fine. I'm using 3.6.8PL2

Help

shadowevil
30 Mar 2008, 08:24
mod not work in vbb 3.7.x. I hope abe1 update next version :)

Goodman_2020
30 Mar 2008, 15:19
I solved my problem installing the versdion 4.0 beta, everything works fine now!

Chadi
24 Apr 2008, 21:58
It seems one bbcode is missing from the list in the usergroup permissions.

attachments


Also, I see a few bbcodes that I do not recognize (or some from uninstalled plugins).

bible
flash
preview
preview length
more

Can you please explain this?

FatalBreeze
30 Apr 2008, 15:20
Great Hack!
I don't know if someone said it already but you should extend it to forum permissions as well as to specific user permissions.

John Stone
11 May 2008, 23:03
Great hack! I was using with 3.6.7 with no adverse issues. I'm about to deploy 3.7.0--will it still work? I've come to depend on this hack!

Antivirus
15 May 2008, 00:31
Really cool idea Abe1. I have a question however, are the permissions set in this mod also taken into consideration in /misc.php when generating the list of available BB Codes and examples?

For example, here: http://www.vbulletin.org/forum/misc.php?do=bbcode

thincom2000
15 May 2008, 15:15
Nope. That has always been an issue.

EDIT: But in vBulletin 3.7, some new hooks make it much easier to do. Look at hooks misc_bbcode_bit for custom and misc_bbcode_complete for default bbcodes. For misc_bbcode_bit a continue is not possible, so you must be clever and restore/truncate the templates on each pass.

thincom2000
15 May 2008, 16:57
I believe this only works in vBulletin 3.7.0, because earlier versions don't have these hooks.
If you see this post, Abe, you're free to integrate it into the product.

To handle custom BB-Code perms, plugin at: misc_bbcode_bit
Note: You will need to modify the forum ID for your own setup.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



To handle default BB-Code perms, plugin at: misc_bbcode_complete


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Antivirus
16 May 2008, 15:55
ah- thanks for explaining that thincom2000! hopefully Abe incorporates this into the mod.

Jamyn
29 May 2008, 18:37
Looking forward to a vb 3.7 version of this, because right now it doesn't seem like there's any other option to disable bbcode per usergroup. I can't believe the devs overlooked that, with the proliferation of IMG spam.

jojo77
29 May 2008, 19:08
I can't believe the devs overlooked that, with the proliferation of IMG spam.


Me too. Not giving us an option for only admins to post HTML poses a huge risk. Should be a no brainer addon.

anwar.abdullakh
02 Jun 2008, 00:47
looking forward to a 3.7 version too.
I have some custom BBcodes that I only want my staff to use, I hope you can find the time abe to release a 3.7 version soon.

Veo
07 Jun 2008, 17:50
I'm need it too.

Darkstarproject
09 Jun 2008, 22:53
I know this isnt made for vb 3.7, but I have installed it and tested it, and it is working just fine on vb 3.7.1. I have custom BB Code as well.

Chadi
09 Jun 2008, 23:24
Any reason why img bbcode is not there?

thincom2000
10 Jun 2008, 00:50
vBulletin's BB-Code Parser normally handles IMG code separately from other BB-codes, making it a pain to modify them using existing hooks.

fariborz
14 Jun 2008, 09:40
Hello thincom2000,
Thanks for your best product, because this product is not worked on vBulletin 3.7.1 PL 1 !!!
What can i do now?! Any more modification?!!

thincom2000
18 Jun 2008, 16:01
I'm not sure why it wouldn't work on 3.7.1 PL1. I have not had any problems...

Specifically what is the issue you are experiencing with this mod?

jailer
21 Jun 2008, 16:57
Yeah - probs here too.
After importing the XML and setting permissions for Admins to be able to post what Reg users can't, I find all work except FLV.
So I tried disabling FLV for Admins too, but I can still use it. Everything else is fine - just disabling FLV for any usergroup doesn't work.
:(
Sorry.

mA|tRiX
04 Jul 2008, 11:29
Works fine with VB 3.7.2 :)

mA|tRiX
04 Jul 2008, 13:50
Hello,

it seems work great but not with the cyb-Chatbox.

I cant use any bbcode in the box when this addon is active. When i turn it off, i can use bbcode in the chatbox.

What can it be?

Thx

thincom2000
04 Jul 2008, 19:09
The chatbox must be using the method do_parse() instead of parse(). If you can figure out how you should change it to parse()

mA|tRiX
05 Jul 2008, 10:54
Where i can find this code?

mA|tRiX
15 Jul 2008, 06:30
Hello? Have any one a solution for my problem?

rigodiaz
23 Jul 2008, 20:42
Hi.

I have the same problem, i need this to work with cyb-Chatbox, please help.

OmniBuzz
06 Aug 2008, 17:16
works great with the iframe code hack, thanks

Artes_Marciales
16 Aug 2008, 08:32
mod not work in vbb 3.7.x. I hope abe1 update next version :)
+1 .......

jGas
19 Aug 2008, 13:37
great mod! :D

but...is there a way to enable bbcodes only for some categories, and not for all the board?

thanks!

tewage
31 Aug 2008, 20:32
Has there been one created for 3.7.3?

Corsan
31 Aug 2008, 21:59
hey could you get this to work for 3.7.3 please also!!

LT Mote
01 Sep 2008, 05:02
Hey works great except minor problem. If a moderator (a usergruop that is allowed to use that bbcode) edits a user thats not approved for that BBCode for example it will block the bbcode from being used. If anyone has found a fix for this please advise.

Chris Sotier
14 Sep 2008, 02:17
Thanks Is there one for 3.7?

karlm
14 Sep 2008, 20:17
Doesn't this work on 3.7.x range? What the affects on the 3.7.x?

Simon Lloyd
21 Sep 2008, 02:05
I installed this in 3.7.3 and it gives this error when trying to set permissions:
Warning: Invalid argument supplied for foreach() in [path]/admincp/usergroup.php(201) : eval()'d code on line 30

Any ideas hw to fix this?

Simon Lloyd
21 Sep 2008, 20:02
Have sorted the above now, seems to work fine!

karlm
23 Sep 2008, 03:37
I have this installed on 3.7.3 but it doesn't appear to function - it's as if usergroups see right passed the settings.

Simon Lloyd
23 Sep 2008, 08:41
I have this installed on 3.7.3 but it doesn't appear to function - it's as if usergroups see right passed the settings.Yeah i found the same but what you have to do is turn the system on for each usergroup then only allow the bb code you want them to have, it's like this because the system will allow a user to use bb code by default the mod says if you leave it set to no then system default takes over!!

Regards,
SImon

karlm
23 Sep 2008, 11:27
Thanks for the tip, Simon. I'll investigate further :)

EcoCav
25 Sep 2008, 21:17
I am unable to use BB code in my chatbox with this. I had to block BB code from my chatbox. Is there a work around this?

Freddy.k
01 Oct 2008, 12:11
Merci

EcoCav
02 Oct 2008, 00:53
I am unable to use BB code in my chatbox with this. I had to block BB code from my chatbox. Is there a work around this?

I am still unable to to use any BB code in my chat box (cyb chatbox). if I disable this plugin my chatbox works fine. Some help would be nice...

karlm
02 Oct 2008, 01:26
This does not seem to be functioning for 3.7.3 (pl1).

I have set all permissions and now no one seems able to use even basic BBC's (B/I/U)

Simon Lloyd
02 Oct 2008, 06:55
This does not seem to be functioning for 3.7.3 (pl1).

I have set all permissions and now no one seems able to use even basic BBC's (B/I/U)

Karl, you need to turn on the BB permissions for each group and set what BB code they can actually use. i'm using 3.7.3 PL1 with no problems although i found that i did have to turn on the ones i wanted the users to use!

karlm
02 Oct 2008, 08:09
I did that, sadly all it does for me is disable everyone's BBCodes - even Administrators.

It may be a conflict with another (of the million or so) plugin I use...

Simon Lloyd
02 Oct 2008, 09:34
It shouldn't, here's what i mean, i went to AdminCp>Usergroups>Registered Users and here's the screen shot of how i configured them as they had no permission before i turned it on!
http://i384.photobucket.com/albums/oo282/simonwlloyd/VBAdsystem-1.jpg

karlm
02 Oct 2008, 21:15
Simon, I think you may have the wrong image? Sorry to state the obvious, but that's advertisements plugin, and I'm referring to BBCodes plugin.

When I disabled a groups' access - that group can use all bbcodes, which I don't want (as I use a couple reserved for admins, like warnings and help, etc.)

However, if I enabled a group's access and enable a subset of bbcodes, say for example (url,quote,b,i,u,youtube,img,etc.) - while disallowing certain others (html,code,php,warn,etc.) - for unknown reasons, ALL bbcodes within that group are disabled.

So when I then review posts made them, in which previously (prior to using this plugin) their post was perfectly formmated (with b,u,i,url, etc.) - suddenly, their posts are a mess with bbcodes all over their posts.

It changes from (prior to installing) looking like this:
This is an awesome url to try, http://mysiteisthebest.com - and it really does work!!!
to this
This is an awesome url to try, http://mysiteisthebest.com - and it really does work!!!
This affects not only their posts, but their signatures too.

The moment I uninstalled this plugin and rebuilt bitfields - all posts returned to normal (formatted fully).

It's got me stumped.. but unfortunately, I think it's just down to an incompatibility with another plugin maybe.

Simon Lloyd
02 Oct 2008, 21:36
Sorry, i was looking at another thread but then answered yours! lol!

I found that i had to turn on the advanced permissions and then allow the bb code i wanted them to have.

Simon Lloyd
02 Oct 2008, 21:52
You might also look at the case, i find its case sensitive, on my forum will not put code markers on if you have mixed case!

Simon Lloyd
03 Oct 2008, 21:30
As it happens i seem to have a problem with this and FireFox its not parsing the BB code in these plugin's:
bbcode_parse_complete
bbcode_parse_start

can anyone help!

Been Told
12 Oct 2008, 13:20
First of all: AWESOME Mod!!! This is something I've been looking for for ages!

Now here's a problem I'm having - I'll make an example:
I have disabled the COLOR BBCode (for testing purposes) for Usergroup A and enabled for Usergroup B.
Now a user in Usergroup A goes and types: Test
And when he looks at the post, that is just what he sees.
When a user in Usergroup B reads the post, he sees:
Test

That, of course, is not wanted. Am I doing something wrong?

I'm using vB 3.7 by the way.

DePhauEll
13 Oct 2008, 23:26
Hello Abe1,
great Add-on! I think it's must-have for vBulletin. Any chance to only block [URL] and not [THREAD], [POST] and [EMAIL]? Because I blocked [URL] for the normal users but now they can't even link to other threads or posts. vB is not much fun anymore, when you can#t even use internal links.

Simon Lloyd
25 Nov 2008, 09:06
I'm having trouble with some BBcode when using this hack, it seems that the URL tags don't parse properly in your posts, in other words it's like you dont have permission to use the tag as you can see the tags and a link doesn't show (it's not all the time just quite a lot of the time), any ideas?

Sunka
30 Nov 2008, 08:43
Is this Mod working on v3.7.4 PL1?

Harmachis
18 Dec 2008, 01:03
hello, im using vB 3.7.4 PL1 & it seems its not working. coz after install the product i couldn't find any Advan...BB.. option at adminCP

can u plz release a copy for vB 3.7.4 PL1

Sunka
21 Dec 2008, 01:02
Is this Mod working on v3.7.4 PL1?

BUMP :p

Hannan
29 Dec 2008, 02:44
It's not work with my custom BB codes!!
Any suggestions?!

Chadi
05 Jan 2009, 19:45
This is not working for me in 3.7.4 either.

I enabled img link for select forums, enabled all bbcode for admin group, disabled img link bbcode for member group but member group can still use that bbocde as it still shows up and goes through.

ErikTheRed
20 Jan 2009, 17:44
Working in 3.8.0 yet? This should be added to vB official release... I can't believe there's still not a way to grant link posting permissions based on usergroup in native vB.

Nightmare-GameZ
27 Jan 2009, 06:46
Great hack. I have custom BB codes that only forum moderation team can use and this hack just did that for me. Thanx!

Installed.

emperatour
27 Jan 2009, 09:41
I need to hide php tagh in posts from guests.

How is that possible ?

Sunka
27 Jan 2009, 11:18
Is someone have this MOD working in vBulletin v3.8.0?

|Jordan|
03 Feb 2009, 02:45
This mod works fine for me in 3.8.1 (i tested by logging in as user with and without permissions to certain bbcode).

schnups
03 Feb 2009, 13:54
I really like this hack, so i am really interessted if version 4 will be released one day?
http://www.vbulletin.org/forum/showthread.php?p=1159541

And i am getting the following error message:
Invalid argument supplied for foreach() in [path]/admincp/usergroup.php(201) : eval()'d code
Using vb 3.8, any suggestions how to fix this?

Chadi
05 Feb 2009, 00:15
Hey Abe,

Are you going to release this for 3.8?

Thanks

Sunka
05 Feb 2009, 09:29
Hey Abe,

Are you going to release this for 3.8?

Thanks

same question...:p

MrD3SAi
21 Feb 2009, 14:10
We installed it for our 3.81 board. It gets installed but I can't find the option on our ACP. Can anyone give hints please. Thanks in advance

gmerin
21 Feb 2009, 18:53
We installed it for our 3.81 board. It gets installed but I can't find the option on our ACP. Can anyone give hints please. Thanks in advance

look in AdminCP -> Usergroups -> Usergroup Manager -> BBCode Permissions

MrD3SAi
22 Feb 2009, 19:40
look in AdminCP -> Usergroups -> Usergroup Manager -> BBCode Permissions
Thanks alot my friend.
I found hte option. Thank you very very much.

FiMeTi
15 Mar 2009, 14:40
Thx very much!

Installed on vBulletin 3.8.1 Patch Level 1
Works perfect!

zero5854
26 Mar 2009, 13:49
ok heres a weird issue. I have a mod message bbcode that I only want admins and mods to use. with this mod that works fine BUT only on a NEW post. What about editing a post? The custom bbcodes do not show up? Anyone else have this?

nectons
12 Apr 2009, 01:49
To bad it affects the cyb_chatbox product i have. Every type it looks within the code. Is it possible to bypass it ?

Thanks

vbulletin 3.8.2

Sunka
12 Apr 2009, 02:19
Is this working like it should be on vBulletin 3.8.2?

down.low
13 Apr 2009, 02:06
Heads up- this works for vBulletin 3.8.1 without any problems.

tweakers
14 Apr 2009, 11:17
Running this now on 3.8.2 and it works fine on forum but it makes the lay-out disappear in my chatbox (Cyb - chatbox)

The first line is shown in the color and when somebody post a line above it, it just turns into the bbcode ( txt ) instead of just staying in color blabla

vbplusme
15 Apr 2009, 09:40
I really like this hack, so i am really interessted if version 4 will be released one day?
http://www.vbulletin.org/forum/showthread.php?p=1159541

And i am getting the following error message:
Invalid argument supplied for foreach() in [path]/admincp/usergroup.php(201) : eval()'d code
Using vb 3.8, any suggestions how to fix this?

Any fix for this?

RedPoint
23 Apr 2009, 14:00
Running this now on 3.8.2 and it works fine on forum but it makes the lay-out disappear in my chatbox (Cyb - chatbox)

The first line is shown in the color and when somebody post a line above it, it just turns into the bbcode ( txt ) instead of just staying in color blabla

I have the same problem (3.8.2 and Cyb-Chatbox)
...any solutions for this?

regards

princeedward
25 Apr 2009, 20:43
same here...this wonderful mod make trouble to cyb-chatbox 3.6.8...i hope someday abe will fix this....

thanks and best regards...

EidolonAH
03 May 2009, 09:20
And i am getting the following error message:
Invalid argument supplied for foreach() in [path]/admincp/usergroup.php(201) : eval()'d code
Using vb 3.8, any suggestions how to fix this?

I get same problem using 3.8.2, some one know how to fix please.

Sunka
04 May 2009, 01:20
I am using this Mod on vB 3.8.2 and all is OK.
But, one bug, whe I try to edit post of user who can not use some of BBcodes, that is replicate on me (but I have permision to use that BBcode).
I can manual write BBcode, but have not icon on editor.
Any fix for that?

thenutthouse
24 May 2009, 23:09
would really like to see this one updated for 3.8.+

Thnx,
~Nuttz

plubius
25 May 2009, 04:59
I second that emotion. Come on coder peepz, lay us on some ye magic, no?

thangluoi
29 May 2009, 22:03
Me too. Not giving us an option for only admins to post HTML poses a huge risk. Should be a no brainer addon.

I argee. no option for admin to post HTML only.

Andrewsha
04 Jun 2009, 11:01
Can you give me more info so I can reproduce it? Also an image of where it's located might help.
If there is no custom BB-code then in User-group gets message:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Thanks to seg. It resolve the problem:
http://www.vbulletin.org/forum/showpost.php?p=1071116&postcount=37

Acido
19 Jun 2009, 04:20
would really like to see this one updated for 3.8.+

Thnx,
~Nuttz

vote for it too.

inciarco
22 Jun 2009, 00:57
I Noticed that When You Activate the Mod for Usergroup 6 (Admin), the Basic BBCodes get Deactivated for Guests even if the Mod is Not Set to be Active for that Usergroup, (Bold, Size, Font, etc), so there should be some Code Lines that need to be Changed to Work on vB373 PL1.

Until a Solution can be Made by the Author, perhaps this can be Useful for some of You, (took me almost all day to Search for it).

Only Step:

You need to Create a Plugin:

Product: vBulletin
Hook Place: bbcode_parse_start
Title: BBCode Permissions For Usergroups - bbcode_parse_start
(or any you like)
Execution Order: 5
Plugin Active: Yes
PHP Code:

if (is_member_of($this->registry->userinfo, 1,3,4,8))

{

unset($this->tag_list['no_option']['nameofbbcodetag1'], $this->tag_list['option']['nameofbbcodetag1']);


}

-1. You need to Change the nameofbbcodetag1 to the name of the Tag you need to Disable, like youtube, in Lowercase, and also the BBCode Tag Name should be in Lowercase.

-2. If you want to Disable another Tag, simply Copy the Following Code as many Tags you wish to Disable.

unset($this->tag_list['no_option']['nameofbbcodetag1'], $this->tag_list['option']['nameofbbcodetag1']);

-3. For the Usergroups, you can see that I've Set 1,3,4,8, to be affected, but you can Choose the Usergroups that you Desire.

-4. To set another Rules for Disabling BBCode Tags for other Usergroup(s), simply Copy all the Code Below the Existing One in the same Plugin, and set the Usergroups and the Name of the BBCode Tags in the Code Line that I mentioned Above, for as many BBCode Tags as you need for those Specific Usergroups.

An so on, you can set Different Permissions for Different Usergroups.


This is a Way Around, but it Works. If somebody has a Better Solution, please Share it.

I Hope Abe1 can Share With Us an Update of this Great Mod compatible with vB373 PL1 and vB37x, because is very nice to be able to Select the Options for Each Usergroup and the Mod does.

My Best Regards.

:)

inciarco
24 Jun 2009, 07:07
This Can be Useful Too, for Users that are Searchig to Disable Images in the Posts but Not Links for Certain Usergroups.

I searched for it on the Forum, but there was No Answer for this, so I guess it'll be Useful for some of You.

I Just did a Little Research on a Mod from Cybernetec "Advanced Permissions Based on Post Count", and Found on the Plugin "Cyb - APBOUPC - P2 (PB)", the Code needed to Disable Images and Links in Posts and in Signatures; I Edited the Code to Leave Only the Code Lines to Remove Images but Leave the Links, (it was an Test and Error process because I'm not a Coder), and I Found that it can be done with the Help of that Useful Code from Cybernetec, (all Credits are His).

Only Step:

Create a Plugin.

Product: vBulletin
Hook Place: postbit_display_complete
Title: BBCode Permissions For Usergroups - IMG - postbit_display_complete
(or the Title that you wish)
Plugin Active: Yes
PHP Code:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



-1. Edit the usergroups 1,3,4,8 for the Ones You Wish that Can't See Images.

-2. Edit the Text of [[To See Images in Posts You Must Register and Activate Your Account]], to the One you Wish Users of those Usergroups to See instead of the Images.

That's it. Enjoy. ;)

My Best Regards.

:)

inciarco
05 Jul 2009, 19:13
I've Just Figured that the Previous Code for the BBCodes is for Disabling the Parsing Options when the BBCode is Being Posted, but Not to Avoid Viewing it; to Disable the Display of Custom BBCodes on Posts you should do the Following.

There should be some Extra Code that can be Removed from the Following Code Lines, but as I'm Not a Coder I Can't Optimize it; if You Find a Way to Remove the Extra Code that isn't needed, it'll be Just Great that You Post Your Solution Here for Everybody to Benefit.

First Step:

First You Need to Add at the Beginning of Each Custom BBCode You Wish to Restrict Viewind/Displaying the Following Text

<div id="private_bbcode">

and Add at the End of Each Custom BBCode You Added the Previous "div" Opening Tag Code.

</div>

to Close the "div" Tag.

Again, this Uses a small part of the Code of the Mod from Cybernetec "Advanced Permissions Based on Post Count", and Found on the Plugin "Cyb - APBOUPC - P2 (PB)", the Code needed to Disable Images and Links in Posts and in Signatures; I Edited the Code to Leave Only the Code Lines to Remove BBCodes, (it was an Test and Error process because I'm not a Coder), and I Found that it can be done with the Help of that Useful Code from Cybernetec, (all Credits are His).

This Can be Included in the Plugin I Posted Just Above "BBCode Permissions For Usergroups - IMG - postbit_display_complete", because it uses the same vBulletin Hook.

Second Step:

Create a Plugin.

Product: vBulletin
Hook Place: postbit_display_complete
Title: BBCode Permissions For Usergroups - Custom BBCodes - postbit_display_complete
(or the Title that you wish)
Plugin Active: Yes
PHP Code:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



-1. Edit the usergroups 1,3,4,8 for the Ones You Wish that Can't See Custom BBCodes.

-2. Edit the Text of [[To See BBCodes in Posts You Must Register and Activate Your Account]], to the One you Wish Users of those Usergroups to See instead of the Custom BBCodes.

That's it. Enjoy. ;)

My Best Regards.

:)

willy888
12 Jul 2009, 09:26
I think this mod must be update soon and insert in vb standard version

nightbloom
16 Jul 2009, 01:43
I am still unable to to use any BB code in my chat box (cyb chatbox). if I disable this plugin my chatbox works fine. Some help would be nice...

Sadly I used this on an older version of my forum and wanted to reinstitute it for a current project but the incompatibility with the chat box stopped that. My users would lynch me for taking away their chatbox.

I didnt see a work around for the Cyb chatbox either. =(

|Jordan|
23 Jul 2009, 17:46
Any chance this can mod can be updated for 3.8.x ? When i had it enabled i had weird problems where randomly bbcode wouldn't parse (tags would be visible).

inciarco
23 Jul 2009, 20:27
A Interesting Way to Hide Images and Display Only Smilies, From Thread "preg_replace - Exclude Text in Search Code Line (http://www.vbulletin.org/forum/showthread.php?p=1854196#post1854196)".

--------------- Added 1248376965 at 1248376965 ---------------

I'd like to Share a Solution I Found for the Previously Explained Problem; now the Images are Replaced by a Text and the Smilies and other Images on the image Folder are being Displayed. :up:

On the File /includes/class_postbit.php

you should add at the End of it, right after the "}" of the Last Function:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



You Should Create a Plugin as Follows:

Product: vBulletin
Hook Location: postbit_display_complete
Title: IMG BBCode Permissions For Usergroups - postbit_display_complete
(or the one you wish)
Execution Order: 5
Active Plugin: Yes

PHP Code:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



You can Replace the 1,3,4,8 with the Usergroup Numbers you wish the Images Not to be Displayed, but Yes the Smilies.

And Thats It... Enjoy. ;)

My Best Regards.

:)

--------------- Added 1248377122 at 1248377122 ---------------

I Appreciate the Help of Deceptor for Providing the Code I Could Take as a Great Idea to Edit and Post my Solution, and to Dismounted who gave me on his Post the Idea to Include the Function in the php File. :up:

Of course, if you could share a Better Way to do this I'd appreciate it a Lot. ;)

My Best Regards to Both of You. :up:

:)

Sidane
29 Jul 2009, 16:58
Any chance this can mod can be updated for 3.8.x ? When i had it enabled i had weird problems where randomly bbcode wouldn't parse (tags would be visible).

I'll echo this - I could make great use of this mod if it was 3.8 compatible...

crouzmind
30 Jul 2009, 20:25
can i use this on vbulletin 3.8.1 if i cant then please attach the mode for vbulletin 3.8.1 coz i need it urgently.

kent_lkc
02 Aug 2009, 12:46
work like a charm on 3.8.3. thanks.