View Full Version : Administrative and Maintenance Tools - Advanced BBCode Permissions
Advanced BBCode Permissions 3.0
Click here to Nominate this Mod for Mod the Month (https://vborg.vbsupport.ru/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: https://vborg.vbsupport.ru/showthread.php?p=1159541
Please post your comments or suggestions for this hack. I read ALL posts.
MAKE SURE YOU CLICK INSTALL (https://vborg.vbsupport.ru/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://vborg.vbsupport.ru/external/2010/02/12.gif (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=bigware%40gmail%2ecom&item_name=Donation%20for%20Advanced%20BBCode%20Per missions&no_shipping=0&tax=0¤cy_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8)
paul41598
08-03-2006, 08:34 PM
does this new version solve this past issue:
https://vborg.vbsupport.ru/showpost.php?p=1031321&postcount=117
Also is it compatible for 3.5 series?
does this new version solve this past issue:
https://vborg.vbsupport.ru/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
08-03-2006, 08:48 PM
Good thing I never installed the first one for 3.5. I will try this out tonight. Nice job, thanks again Abe
paul41598
08-03-2006, 11:22 PM
hmmm
Database error in vBulletin 3.5.4:
Invalid SQL:
### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Advanced BBCode Permissions', 'admin_usergroup_edit', 'require_once(\'./includes/class_bbcode.php\');\r\nnew vB_BbCodeParser($vbulletin, fetch_tag_list());\r\n\r\nprint_table_header($vbph rase[\'advanced_bbcode_permissions\']);\r\nprint_yes_no_row($vbphrase[\'advanced_bbcode_usergroup_on\'], \'usergroup[advanced_bbcode_usergroup_on]\', $usergroup[\'advanced_bbcode_usergroup_on\']);\r\n\r\n$advanced_bbcode_permissions = explode(\'|||\', $usergroup[\'advanced_bbcode_permissions\']);\r\nforeach ($advanced_bbcode_permissions AS $key => $bbcode)\r\n{\r\n list($core, $bbcode, $yesno) = split(\"\\|\\|\", $bbcode);\r\n $abe1_bbcode[$core][$bbcode] = $yesno;\r\n}\r\n\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_basic\'], \'abe1_bbcode[core][allow_bbcode_basic]\', $abe1_bbcode[\'core\'][\'allow_bbcode_basic\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_color\'], \'abe1_bbcode[core][allow_bbcode_color]\', $abe1_bbcode[\'core\'][\'allow_bbcode_color\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_size\'], \'abe1_bbcode[core][allow_bbcode_size]\', $abe1_bbcode[\'core\'][\'allow_bbcode_size\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_font\'], \'abe1_bbcode[core][allow_bbcode_font]\', $abe1_bbcode[\'core\'][\'allow_bbcode_font\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_align\'], \'abe1_bbcode[core][allow_bbcode_align]\', $abe1_bbcode[\'core\'][\'allow_bbcode_align\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_list\'], \'abe1_bbcode[core][allow_bbcode_list]\', $abe1_bbcode[\'core\'][\'allow_bbcode_list\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_url\'], \'abe1_bbcode[core][allow_bbcode_url]\', $abe1_bbcode[\'core\'][\'allow_bbcode_url\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_code\'], \'abe1_bbcode[core][allow_bbcode_code]\', $abe1_bbcode[\'core\'][\'allow_bbcode_code\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_php\'], \'abe1_bbcode[core][allow_bbcode_php]\', $abe1_bbcode[\'core\'][\'allow_bbcode_php\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_html\'], \'abe1_bbcode[core][allow_bbcode_html]\', $abe1_bbcode[\'core\'][\'allow_bbcode_html\']);\r\n\r\nforeach($vbulletin->bbcodecache AS $custom_bbcode)\r\n{\r\n $custom_bbcodes[$custom_bbcode[\'bbcodetag\']] = $custom_bbcode[\'bbcodetag\'];\r\n}\r\n\r\nforeach ($custom_bbcodes AS $bbcode)\r\n{\r\n print_yes_no_row(\"[\" . strtoupper($bbcode) . \"]\", \"abe1_bbcode[non_core][$bbcode]\", $abe1_bbcode[non_core][$bbcode]);\r\n}\r\n\r\nprint_table_break();\r\nprint_colum n_style_code(array(\'width: 70%\', \'width: 30%\'));', 'advancedbbcodepermissions');
MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Thursday, August 3rd 2006 @ 07:19:45 PM
Script : admincp/plugin.php
Referrer : plugin.php?do=productadd
Username : JonB
Classname : vb_database
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
08-03-2006, 11:30 PM
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
08-04-2006, 07:04 PM
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.
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
08-05-2006, 12:47 AM
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
08-05-2006, 04:10 AM
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
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.
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
08-07-2006, 02:37 AM
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
08-12-2006, 04:31 PM
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. :)
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
08-16-2006, 05:50 AM
I noticed there's no option to disable the IMG tags...
I noticed there's no option to disable the IMG tags...
I think it gets controled other ways.
rooshine
08-17-2006, 02:33 AM
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
08-20-2006, 11:54 PM
I am getting the follwing error in my usergroup edit page
Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30
Kirk Y
08-22-2006, 02:10 AM
Warning: Invalid argument supplied for foreach() in \includes\class_bbcode.php(284) : eval()'d code on line 109
Warning: Invalid argument supplied for foreach() in \includes\class_bbcode.php(284) : eval()'d code on line 109
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
08-23-2006, 03:41 PM
can i get some support on this?
Warning: Invalid argument supplied for foreach() in \includes\class_bbcode.php(284) : eval()'d code on line 109
Warning: Invalid argument supplied for foreach() in \includes\class_bbcode.php(284) : eval()'d code on line 109
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.
I am getting the follwing error in my usergroup edit page
Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30
You have v 3.0 installed?
Kirk Y
08-24-2006, 06:32 PM
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
08-24-2006, 10:25 PM
You have v 3.0 installed?
yes, 3.0 is installed
Are you planning on updating your 3.5.4 version to reflect the changes made for the 3.6.0 version?
Nope.
yes, 3.0 is installed
I would need access to you ACP to find the problem.
Mysticales
08-26-2006, 09:24 PM
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
08-29-2006, 02:05 PM
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
08-30-2006, 12:24 AM
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:
https://vborg.vbsupport.ru/showthread.php?p=1063781#post1063781
bhxtyrant
08-30-2006, 05:03 AM
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
08-31-2006, 02:15 AM
I would need access to you ACP to find the problem.
Abe... I will send a PM with login info...
G_Man
08-31-2006, 03:40 AM
Brilliant.
thanks.
Stoebi
08-31-2006, 09:15 AM
Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30
It happens only with PHP 5. My workaround (posted in vbhacks-germany, too):
Hook: admin_usergroup_edit
Search for
foreach ($custom_bbcodes AS $bbcode)
{
print_yes_no_row("[" . strtolower($bbcode) . "]", "abe1_bbcode[non_core][$bbcode]", $abe1_bbcode[non_core][$bbcode]);
}
Replace with
if ($custom_bbcodes)
{
foreach ($custom_bbcodes AS $bbcode)
{
print_yes_no_row("[" . strtolower($bbcode) . "]", "abe1_bbcode[non_core][$bbcode]", $abe1_bbcode[non_core][$bbcode]);
}
}
Hook: bbcode_parse_start
Search for
foreach ($abe1_bbcode[non_core] AS $bbcode => $yesno)
{
if ($yesno == 0)
{
unset($this->tag_list['no_option']["$bbcode"]);
unset($this->tag_list['option']["$bbcode"]);
}
}
Replace with
if ($abe1_bbcode[non_core])
{
foreach ($abe1_bbcode[non_core] AS $bbcode => $yesno)
{
if ($yesno == 0)
{
unset($this->tag_list['no_option']["$bbcode"]);
unset($this->tag_list['option']["$bbcode"]);
}
}
}
Regards, Stoebi
G_Man
09-05-2006, 02:36 AM
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.
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
foreach ($custom_bbcodes AS $bbcode)
{
print_yes_no_row("[" . strtolower($bbcode) . "]", "abe1_bbcode[non_core][$bbcode]", $abe1_bbcode[non_core][$bbcode]);
}
Replace with
if ($custom_bbcodes)
{
foreach ($custom_bbcodes AS $bbcode)
{
print_yes_no_row("[" . strtolower($bbcode) . "]", "abe1_bbcode[non_core][$bbcode]", $abe1_bbcode[non_core][$bbcode]);
}
}
Hook: bbcode_parse_start
Search for
foreach ($abe1_bbcode[non_core] AS $bbcode => $yesno)
{
if ($yesno == 0)
{
unset($this->tag_list['no_option']["$bbcode"]);
unset($this->tag_list['option']["$bbcode"]);
}
}
Replace with
if ($abe1_bbcode[non_core])
{
foreach ($abe1_bbcode[non_core] AS $bbcode => $yesno)
{
if ($yesno == 0)
{
unset($this->tag_list['no_option']["$bbcode"]);
unset($this->tag_list['option']["$bbcode"]);
}
}
}
Regards, Stoebi
So there is no chance getting a 3.5 version huh
Wonderfull mod..... thanks a lot :D
Nathan2006
10-03-2006, 01:59 PM
Thank you Abe :)
Install
RYoBiOS
10-03-2006, 04:43 PM
How for 3.6.1 or 3.6.2?
JMH11788
10-03-2006, 08:10 PM
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
10-04-2006, 12:30 PM
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
10-06-2006, 12:28 AM
No one knows?
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-10-2006, 03:03 PM
Hello,
www.yourforum.com/misc.php?do=bbcode display BB-Codes with no Permissions. ( Guest a.o. )
vB3.6.2
Greets
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
10-11-2006, 11:29 PM
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
10-11-2006, 11:32 PM
* 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
* 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
10-16-2006, 01:38 AM
vB 3.62 --
When I edit a usergroup I see above the advanced bb code options:
Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30
Something to worry about?
boatdesign
10-16-2006, 01:54 AM
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 Warning: Invalid argument supplied for foreach() in /includes/class_bbcode.php(326) : eval()'d code on line 98
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.
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 Warning: Invalid argument supplied for foreach() in /includes/class_bbcode.php(326) : eval()'d code on line 98
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
10-16-2006, 04:48 AM
No custom BB codes.
No custom BB codes.
Curius, if you add one, do you loose the error?
Mysticales
10-17-2006, 08:23 AM
I'll look into it.
Any news or manual patch you know of?
Any news or manual patch you know of?
Not right now.
Mysticales
10-17-2006, 06:15 PM
Couldnt "is_member_of" be used? I dont know your code as well as you, but would think that should work somehow?
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
10-25-2006, 06:09 PM
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
11-02-2006, 09:11 AM
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
11-03-2006, 12:53 PM
Does anyone here that is having problems also have this installed:
https://vborg.vbsupport.ru/showthread.php?t=122939
If so try this:
https://vborg.vbsupport.ru/showpost.php?p=1044091&postcount=7
WebSpidey
11-06-2006, 04:20 AM
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
11-06-2006, 09:36 AM
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...:(
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
11-07-2006, 01:05 AM
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
11-25-2006, 12:33 PM
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
12-04-2006, 05:21 PM
Any plan on adding the [IMG] tag to this mod? I think it is the most important one of all.
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
12-08-2006, 01:26 AM
I just installed this, where do I go in the admincp to get a screen like the screenshot?
Mysticales
12-09-2006, 07:20 AM
Hey Abe, any luck on is_member_of permissions for the 3.5.x?
I just installed this, where do I go in the admincp to get a screen like the screenshot?
usergroup edit
Hey Abe, any luck on is_member_of permissions for the 3.5.x?
I didn't add that yet.
Murty
12-16-2006, 11:49 PM
how hard would it be to make this, so you can also turn bbcode off and on for forums?
libertate
12-21-2006, 07:13 PM
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?
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
12-26-2006, 09:42 AM
How about IMG tag?
libertate
01-04-2007, 09:59 PM
It's on my list todo.
Any update on this? Would $ome incentive help with the development?
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
01-12-2007, 05:14 PM
Update your PayPal donation information in your CP, and I will encourage you.
Update your PayPal donation information in your CP, and I will encourage you.
It was updated a few days ago.
(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
01-16-2007, 11:32 PM
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".
Reputation Comparison Type : Greater or Equal to
Reputation Level : 10 (Default setting for registered user)
Days Registered :30
Posts : 10
Promotion Strategy : Posts and Reputation and Date
Promotion Type: Additional Usergroups
Move User to Usergroup : Established User
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
01-16-2007, 11:45 PM
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.
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
01-17-2007, 12:23 PM
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 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
01-21-2007, 01:05 PM
This mod destroyes bbcode like [*URL="http://www.url1.com/picture1.jpg][IMG*]http://www.url1.com/picture2.jpg[/IMG*][/URL*] 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?
This mod destroyes bbcode like [*URL="http://www.url1.com/picture1.jpg][IMG*]http://www.url1.com/picture2.jpg[/IMG*][/URL*] 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
01-22-2007, 09:52 AM
This was just an example, forget about the quote ;) ... it isn't just happening once but on all linked images.
libertate
01-24-2007, 02:03 PM
jyajay,
I do not understand. What is it doing that is not supposed to?
jyajay
01-25-2007, 09:07 AM
It is destroying linked images, thats all i'm saying.
Mysticales
01-27-2007, 01:27 AM
(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. =)
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
01-29-2007, 08:53 PM
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
03-04-2007, 08:05 PM
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
03-12-2007, 03:35 PM
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.
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
03-12-2007, 10:19 PM
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
03-12-2007, 10:28 PM
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
03-12-2007, 10:33 PM
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
03-22-2007, 12:21 AM
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?
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
03-22-2007, 07:17 PM
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
03-23-2007, 05:08 PM
thanks !
thincom2000
03-25-2007, 04:01 AM
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
03-31-2007, 04:02 AM
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: https://vborg.vbsupport.ru/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?
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: https://vborg.vbsupport.ru/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
04-02-2007, 04:21 AM
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
04-02-2007, 04:50 AM
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
04-05-2007, 05:26 AM
This post explains how to make misc.php?do=bbcode reflect these permissions. Disallowed codes will not appear.
In misc.php, find:
$specialbbcode[] = array();
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$bbcodes = $db->query_read_slave("SELECT * FROM " . TABLE_PREFIX . "bbcode ORDER BY bbcodetag, twoparams");
while ($bbcode = $db->fetch_array($bbcodes))
{
$bbcode['output'] = $bbcode_parser->do_parse($bbcode['bbcodeexample'], false, false, true, false, true);
$bbcode['bbcodeexample'] = htmlspecialchars_uni($bbcode['bbcodeexample']);
if ($bbcode['twoparams'])
{
$bbcode['tag'] = '[' . $bbcode['bbcodetag'] . '=<span class="highlight">' . $vbphrase['option'] . '</span>]<span class="highlight">' . $vbphrase['value'] . '</span>[/' . $bbcode['bbcodetag'] . ']';
}
else
{
$bbcode['tag'] = '[' . $bbcode['bbcodetag'] . ']<span class="highlight">' . $vbphrase['value'] . '</span>[/' . $bbcode['bbcodetag'] . ']';
}
($hook = vBulletinHook::fetch_hook('misc_bbcode_bit')) ? eval($hook) : false;
eval('$template[\'bbcodebits\'] .= "' . fetch_template('help_bbcodes_bbcode') . '";');
eval('$template[\'bbcodelinks\'] .= "' . fetch_template('help_bbcodes_link') . '";');
}
Replace this segment with:
$specialbbcode[] = array();
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$bbcode_parser->set_parse_userinfo($vbulletin->userinfo);
$bbcodes = $db->query_read_slave("SELECT * FROM " . TABLE_PREFIX . "bbcode ORDER BY bbcodetag, twoparams");
while ($bbcode = $db->fetch_array($bbcodes))
{
$bbcode['output'] = $bbcode_parser->parse($bbcode['bbcodeexample'], 2); // , false, false, true, false, true);
$has_option = $bbcode['twoparams'] ? "option" : "no_option";
if ($bbcode_parser->tag_list["$has_option"]["$bbcode[bbcodetag]"])
{
$bbcode['bbcodeexample'] = htmlspecialchars_uni($bbcode['bbcodeexample']);
if ($bbcode['twoparams'])
{
$bbcode['tag'] = '[' . $bbcode['bbcodetag'] . '=<span class="highlight">' . $vbphrase['option'] . '</span>]<span class="highlight">' . $vbphrase['value'] . '</span>[/' . $bbcode['bbcodetag'] . ']';
}
else
{
$bbcode['tag'] = '[' . $bbcode['bbcodetag'] . ']<span class="highlight">' . $vbphrase['value'] . '</span>[/' . $bbcode['bbcodetag'] . ']';
}
($hook = vBulletinHook::fetch_hook('misc_bbcode_bit')) ? eval($hook) : false;
eval('$template[\'bbcodebits\'] .= "' . fetch_template('help_bbcodes_bbcode') . '";');
eval('$template[\'bbcodelinks\'] .= "' . fetch_template('help_bbcodes_link') . '";');
}
}
Tralala
04-05-2007, 03:11 PM
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:
https://vborg.vbsupport.ru/external/2007/04/25.jpg
Any way to get rid of that?
thincom2000
04-07-2007, 03:36 PM
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
04-07-2007, 06:45 PM
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
04-14-2007, 02:27 AM
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
04-14-2007, 03:24 PM
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
04-14-2007, 04:31 PM
What code is it?
This is one only allowed to Admins and mods:
https://vborg.vbsupport.ru/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
04-14-2007, 07:34 PM
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
04-18-2007, 11:07 AM
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!
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
04-18-2007, 04:27 PM
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
04-18-2007, 09:20 PM
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
04-19-2007, 01:33 PM
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
04-19-2007, 04:19 PM
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
04-25-2007, 08:15 PM
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
04-28-2007, 08:26 PM
Installed , very nice hack man
princeedward
05-08-2007, 08:50 AM
installed...thanks for this good hack... ;)
thincom2000
05-14-2007, 04:23 AM
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:
if (!empty($this->bbcode_tag_list) AND (THIS_SCRIPT != 'misc'))
{
$this->tag_list = $this->bbcode_tag_list;
}
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
05-14-2007, 09:08 PM
It happens only with PHP 5. My workaround (posted in vbhacks-germany, too):
Hook: admin_usergroup_edit
Search for
foreach ($custom_bbcodes AS $bbcode)
{
print_yes_no_row("[" . strtolower($bbcode) . "]", "abe1_bbcode[non_core][$bbcode]", $abe1_bbcode[non_core][$bbcode]);
}
Replace with
if ($custom_bbcodes)
{
foreach ($custom_bbcodes AS $bbcode)
{
print_yes_no_row("[" . strtolower($bbcode) . "]", "abe1_bbcode[non_core][$bbcode]", $abe1_bbcode[non_core][$bbcode]);
}
}
Hook: bbcode_parse_start
Search for
foreach ($abe1_bbcode[non_core] AS $bbcode => $yesno)
{
if ($yesno == 0)
{
unset($this->tag_list['no_option']["$bbcode"]);
unset($this->tag_list['option']["$bbcode"]);
}
}
Replace with
if ($abe1_bbcode[non_core])
{
foreach ($abe1_bbcode[non_core] AS $bbcode => $yesno)
{
if ($yesno == 0)
{
unset($this->tag_list['no_option']["$bbcode"]);
unset($this->tag_list['option']["$bbcode"]);
}
}
}
Regards, Stoebi
Worked like a charm, thanks.
Delphiprogrammi
06-07-2007, 09:35 AM
this doesn't work on vBulletin 3.6.7PL1 foreach() errors in the admincp
sina1808
06-09-2007, 02:49 PM
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
06-09-2007, 06:36 PM
Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30
Frozen Tears
06-10-2007, 05:53 AM
Ooh! even custom bb codes, nice one man. thx.
Delphiprogrammi
06-11-2007, 07:38 PM
To fix the foreach(); errors you have to make the changes explained here i did and it worked fine
Fungsten
06-11-2007, 08:38 PM
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
06-11-2007, 09:00 PM
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
06-11-2007, 09:41 PM
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
06-12-2007, 06:03 AM
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
06-12-2007, 07:11 PM
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
06-21-2007, 05:12 PM
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 (https://vborg.vbsupport.ru/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
06-22-2007, 03:19 PM
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:
$bbcode['output'] = $bbcode_parser->parse($bbcode['bbcodeexample'], 2); // , false, false, true, false, true);
This should be:
$bbcode['output'] = $bbcode_parser->parse($bbcode['bbcodeexample'], FORUMID); // , false, false, true, false, true);
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
06-22-2007, 07:16 PM
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:
$bbcode['output'] = $bbcode_parser->parse($bbcode['bbcodeexample'], 2); // , false, false, true, false, true);
This should be:
$bbcode['output'] = $bbcode_parser->parse($bbcode['bbcodeexample'], FORUMID); // , false, false, true, false, true);
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
06-25-2007, 02:47 AM
Is there a way to change permissions of the bbcode according to forum instead of usergroup?
thincom2000
07-01-2007, 04:07 PM
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-07-2007, 07:22 PM
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
07-21-2007, 06:25 PM
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
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:
if (PP_SCRIPT != 'vBGallery'){
// plugin data here
}
Where do I have to add these lines?
(great mod by the way :D)
yoyoyoyo
11-05-2007, 11:41 AM
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
11-06-2007, 02:39 AM
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
11-18-2007, 07:06 PM
Great hack!
Thanks!
libertate
12-27-2007, 04:08 AM
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
02-24-2008, 08:54 AM
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
03-11-2008, 01:27 AM
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
03-17-2008, 09:33 PM
Works in 3.7 ?
bwilky
03-19-2008, 06:24 PM
Where do you go to edit the settings for this?
Goodman_2020
03-29-2008, 06:11 PM
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
03-30-2008, 06:24 AM
mod not work in vbb 3.7.x. I hope abe1 update next version :)
Goodman_2020
03-30-2008, 01:19 PM
I solved my problem installing the versdion 4.0 beta, everything works fine now!
Chadi
04-24-2008, 07:58 PM
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
04-30-2008, 01:20 PM
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
05-11-2008, 09:03 PM
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
05-14-2008, 10:31 PM
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: https://vborg.vbsupport.ru/misc.php?do=bbcode
thincom2000
05-15-2008, 01:15 PM
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
05-15-2008, 02:57 PM
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.
if (empty($full_parse))
{
if (!defined('BBCODE_ENABLED_FORUM'))
{
define('BBCODE_ENABLED_FORUM', 2);
}
$full_parse = array(
$vbulletin->templatecache['help_bbcodes_bbcode'],
$vbulletin->templatecache['help_bbcodes_link']
);
}
$bbcode['output'] = $bbcode_parser->parse($bbcode['bbcodeexample'], BBCODE_ENABLED_FORUM);
if (empty($bbcode_parser->tag_list[($bbcode['twoparams'] ? 'option' : 'no_option')][$bbcode['bbcodetag']]))
{
$vbulletin->templatecache['help_bbcodes_bbcode'] = '';
$vbulletin->templatecache['help_bbcodes_link'] = '';
}
else
{
$vbulletin->templatecache['help_bbcodes_bbcode'] = $full_parse[0];
$vbulletin->templatecache['help_bbcodes_link'] = $full_parse[1];
}
To handle default BB-Code perms, plugin at: misc_bbcode_complete
$show['bbcodebasic'] = (!empty($bbcode_parser->tag_list['no_option']['b'])) ? true : false;
$show['bbcodecolor'] = (!empty($bbcode_parser->tag_list['option']['color'])) ? true : false;
$show['bbcodesize'] = (!empty($bbcode_parser->tag_list['option']['size'])) ? true : false;
$show['bbcodefont'] = (!empty($bbcode_parser->tag_list['option']['font'])) ? true : false;
$show['bbcodealign'] = (!empty($bbcode_parser->tag_list['no_option']['left'])) ? true : false;
$show['bbcodelist'] = (!empty($bbcode_parser->tag_list['option']['list'])) ? true : false;
$show['bbcodeurl'] = (!empty($bbcode_parser->tag_list['option']['url'])) ? true : false;
$show['bbcodecode'] = (!empty($bbcode_parser->tag_list['no_option']['code'])) ? true : false;
$show['bbcodephp'] = (!empty($bbcode_parser->tag_list['no_option']['php'])) ? true : false;
$show['bbcodehtml'] = (!empty($bbcode_parser->tag_list['no_option']['html'])) ? true : false;
Antivirus
05-16-2008, 01:55 PM
ah- thanks for explaining that thincom2000! hopefully Abe incorporates this into the mod.
Jamyn
05-29-2008, 04:37 PM
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
05-29-2008, 05:08 PM
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
06-01-2008, 10:47 PM
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.
Darkstarproject
06-09-2008, 08:53 PM
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
06-09-2008, 09:24 PM
Any reason why img bbcode is not there?
thincom2000
06-09-2008, 10:50 PM
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
06-14-2008, 07:40 AM
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
06-18-2008, 02:01 PM
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
06-21-2008, 02:57 PM
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
07-04-2008, 09:29 AM
Works fine with VB 3.7.2 :)
mA|tRiX
07-04-2008, 11:50 AM
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
07-04-2008, 05:09 PM
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
07-05-2008, 08:54 AM
Where i can find this code?
mA|tRiX
07-15-2008, 04:30 AM
Hello? Have any one a solution for my problem?
rigodiaz
07-23-2008, 06:42 PM
Hi.
I have the same problem, i need this to work with cyb-Chatbox, please help.
OmniBuzz
08-06-2008, 03:16 PM
works great with the iframe code hack, thanks
Artes_Marciales
08-16-2008, 06:32 AM
mod not work in vbb 3.7.x. I hope abe1 update next version :)
+1 .......
great mod! :D
but...is there a way to enable bbcodes only for some categories, and not for all the board?
thanks!
tewage
08-31-2008, 06:32 PM
Has there been one created for 3.7.3?
Corsan
08-31-2008, 07:59 PM
hey could you get this to work for 3.7.3 please also!!
LT Mote
09-01-2008, 03:02 AM
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
09-14-2008, 12:17 AM
Thanks Is there one for 3.7?
karlm
09-14-2008, 06:17 PM
Doesn't this work on 3.7.x range? What the affects on the 3.7.x?
Simon Lloyd
09-21-2008, 12:05 AM
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
09-21-2008, 06:02 PM
Have sorted the above now, seems to work fine!
karlm
09-23-2008, 01:37 AM
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
09-23-2008, 06:41 AM
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
09-23-2008, 09:27 AM
Thanks for the tip, Simon. I'll investigate further :)
EcoCav
09-25-2008, 07:17 PM
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
10-01-2008, 10:11 AM
Merci
EcoCav
10-01-2008, 10:53 PM
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
10-01-2008, 11:26 PM
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
10-02-2008, 04:55 AM
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
10-02-2008, 06:09 AM
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
10-02-2008, 07:34 AM
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
10-02-2008, 07:15 PM
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
10-02-2008, 07:36 PM
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
10-02-2008, 07:52 PM
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
10-03-2008, 07:30 PM
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
10-12-2008, 11:20 AM
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
10-13-2008, 09:26 PM
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
11-25-2008, 07:06 AM
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
11-30-2008, 06:43 AM
Is this Mod working on v3.7.4 PL1?
Harmachis
12-17-2008, 11:03 PM
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
12-20-2008, 11:02 PM
Is this Mod working on v3.7.4 PL1?
BUMP :p
Hannan
12-29-2008, 12:44 AM
It's not work with my custom BB codes!!
Any suggestions?!
Chadi
01-05-2009, 05:45 PM
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
01-20-2009, 03:44 PM
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
01-27-2009, 04:46 AM
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
01-27-2009, 07:41 AM
I need to hide php tagh in posts from guests.
How is that possible ?
Sunka
01-27-2009, 09:18 AM
Is someone have this MOD working in vBulletin v3.8.0?
|Jordan|
02-03-2009, 12:45 AM
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
02-03-2009, 11:54 AM
I really like this hack, so i am really interessted if version 4 will be released one day?
https://vborg.vbsupport.ru/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
02-04-2009, 10:15 PM
Hey Abe,
Are you going to release this for 3.8?
Thanks
Sunka
02-05-2009, 07:29 AM
Hey Abe,
Are you going to release this for 3.8?
Thanks
same question...:p
MrD3SAi
02-21-2009, 12:10 PM
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
02-21-2009, 04:53 PM
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
02-22-2009, 05:40 PM
look in AdminCP -> Usergroups -> Usergroup Manager -> BBCode Permissions
Thanks alot my friend.
I found hte option. Thank you very very much.
FiMeTi
03-15-2009, 12:40 PM
Thx very much!
Installed on vBulletin 3.8.1 Patch Level 1
Works perfect!
zero5854
03-26-2009, 11:49 AM
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
04-11-2009, 11:49 PM
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
04-12-2009, 12:19 AM
Is this working like it should be on vBulletin 3.8.2?
down.low
04-13-2009, 12:06 AM
Heads up- this works for vBulletin 3.8.1 without any problems.
tweakers
04-14-2009, 09:17 AM
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
04-15-2009, 07:40 AM
I really like this hack, so i am really interessted if version 4 will be released one day?
https://vborg.vbsupport.ru/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
04-23-2009, 12:00 PM
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
04-25-2009, 06:43 PM
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
05-03-2009, 07:20 AM
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
05-03-2009, 11:20 PM
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
05-24-2009, 09:09 PM
would really like to see this one updated for 3.8.+
Thnx,
~Nuttz
plubius
05-25-2009, 02:59 AM
I second that emotion. Come on coder peepz, lay us on some ye magic, no?
thangluoi
05-29-2009, 08:03 PM
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
06-04-2009, 09:01 AM
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:
Warning: Invalid argument supplied for foreach() in G:\home\unatashi\www\admincp\usergroup.php(201) : eval()'d code on line 30
Thanks to seg. It resolve the problem:
https://vborg.vbsupport.ru/showpost.php?p=1071116&postcount=37
Acido
06-19-2009, 02:20 AM
would really like to see this one updated for 3.8.+
Thnx,
~Nuttz
vote for it too.
inciarco
06-21-2009, 10:57 PM
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
06-24-2009, 05:07 AM
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:
if (is_member_of($this->registry->userinfo, 1,3,4,8))
{
$this->post['message'] = preg_replace('!(\\[img)(.*)(\\[\/img\\])|<img[^>]*(src|border|title)(.*)(</img>|\/>)|[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b!siU', construct_phrase('<br /><span class="smallfont"><i>'.'[[To See Images in Posts You Must Register and Activate Your Account]]'.'</i></span><br />', $forum[linkview_nb], $cyb_apboupc_viewlinks_userpostsnr), $this->post['message'].' ');
}
-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
07-05-2009, 05:13 PM
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:
if (is_member_of($this->registry->userinfo, 1,3,4,8))
{
$this->post['message'] = preg_replace('!(<div id="private_bbcode">)(.*)(<\/div>)|[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b!siU', construct_phrase('<br />[[To See BbCodes in Posts You Must Register and Activate Your Account]]<br />', $forum[linkview_nb], $cyb_apboupc_viewlinks_userpostsnr), $this->post['message'].' ');
}
-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
07-12-2009, 07:26 AM
I think this mod must be update soon and insert in vb standard version
nightbloom
07-15-2009, 11:43 PM
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|
07-23-2009, 03:46 PM
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
07-23-2009, 06:27 PM
A Interesting Way to Hide Images and Display Only Smilies, From Thread "preg_replace - Exclude Text in Search Code Line (https://vborg.vbsupport.ru/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:
// ################################################## ###########################
function check_img_src($tag, $src)
{
$whitelisted = array(
'website.com/forum/images',
'website.com/forum/location2',
'website.com/forum/location3',
);
foreach ($whitelisted as $bl)
{
if (strstr($src, $bl))
{
return stripslashes($tag);
}
}
return 'Text Or Code Displayed Instead Of The Images Inserted With IMG Tag';
}
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:
if (is_member_of($this->registry->userinfo, 1,3,4,8))
{
$this->post['message'] = preg_replace("#(<img[^>](.*)(</img>|\/>))#e", "check_img_src('\\1', '\\2')", $this->post['message']);
}
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
07-29-2009, 02:58 PM
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
07-30-2009, 06:25 PM
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
08-02-2009, 10:46 AM
work like a charm on 3.8.3. thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.