PDA

View Full Version : Administrative and Maintenance Tools - Advanced BBCode Permissions


Pages : 1 [2]

krozar
08-20-2009, 03:16 AM
I had problem suddenly pop up with another addon (username request). For some reason the PM data manager (class_dm_pm.php) was clashing with class_bbcode.php of all things. It was happening at the hook location in that file.

I isolated it to this addon's bbcode_parse_start hook code.

The error given by PHP is this:

Fatal error: Cannot use object of type vB_DataManager_PM as array in /var/www/includes/class_bbcode.php(360) : eval()'d code on line 41

Still trying to debug this one. If anyone has any information it would be a big help.

Pcwolfx?
08-21-2009, 09:20 PM
we want only dont show in signature.

xgromx
08-29-2009, 06:45 PM
This installed find, seemed to be working. I have one selected group that i wanted to be able to use a custom bbcode. So i went in and turn this freature on in all the groups and left that custom code set to no. the only group it is set to on is the group i wanted. Now, I have only a few code options on the Post Menu.

Dosn't seem to be working right. Is it somthing i am over looking is the settings or is the hack broken?

3.6.8

ppretn
10-02-2009, 12:51 PM
Im using vBulletin 3.8.3 and it throws alot of warning and errors. :/
This addon is great! Please update it. thx anyway and good work.

DariuS7
10-26-2009, 11:33 PM
Agreed, I'd really like to have this but I'm afraid to install it because knowing me I'd render my forum unusable in a matter of minutes if I started getting a bunch of errors.

BadgerDog
11-20-2009, 10:45 AM
Uninstalled .... :(

Interferes complete with vBClassifieds advertisement system and disables all vBCodes that appear in those members ads.

Thanks anyway for the effort to program this .... :)

Regards,
Badger

Emmmmrz
01-05-2010, 03:07 AM
:( Had to disable due to some interesting clashing with Coroner's vBulletin Diary (https://vborg.vbsupport.ru/showthread.php?t=223880) mod. Very disappointed.

tafreeh
01-13-2010, 03:35 AM
Requesting this mod for vb4.1, Please.

DCX000
01-14-2010, 04:32 AM
I would love to use this on my 4.0 suite. I've heard of one owner using it on 4.0 and they say it works fine. Maybe I'll give that a go if I feel brave enough. However, please cast my vote for a VB4.x update. Thanks!

OcR Envy
01-15-2010, 12:54 PM
I would love to use this on my 4.0 suite. I've heard of one owner using it on 4.0 and they say it works fine. Maybe I'll give that a go if I feel brave enough. However, please cast my vote for a VB4.x update. Thanks!


I can confirm it does not work with 4.x

AWJunkies
01-15-2010, 02:41 PM
Seems to work fine with 4.0.1. The options are removed in any message window and when trying to use it it will show the bbcode brackets and info like text like it should and not execute the bbcode.

The messenger above me please state what is NOT working. As adminCP saving and options so on all working and functionality so please post what you saw as not working.

ioio1
02-15-2010, 11:32 AM
The chatbox must be using the method do_parse() instead of parse(). If you can figure out how you should change it to parse()

I do not succeed to make to work this add-on with Cyb chatbox.
You can give a suggestion to me in order to resolve?

Thanks

Charlie98902
02-15-2010, 09:43 PM
Can you please port this over to vb4? It clashes right now with the VSA Chatbox.

ioio1
02-16-2010, 05:43 AM
I do not succeed to make to work this add-on with Cyb chatbox.
You can give a suggestion to me in order to resolve?

Thanks

The my version of vbulletin is the 3.8.x .

Help

ioio1
02-18-2010, 04:46 AM
I do not succeed to make to work this add-on with Cyb chatbox.
You can give a suggestion to me in order to resolve?

Thanks

up :(

B@Zzz...
03-05-2010, 05:44 PM
I realy like this mod, but does it work good with 3.8.1?
And is it possible to uninstall?
Because my forum is running for a year now, and I can't have errors in my forum (the users won't appreciate that ;))

Tnx

B@Zzz...
03-06-2010, 10:43 AM
I installed the mod, but I can't find the page to change the settings?
Where can I find them?



EDIT:
Oops, just found it a few minutes ago... stupid... ;)

Makc666
03-09-2010, 10:23 AM
This one conflicts with
Cyb - ChatBox for v3.8.*
https://vborg.vbsupport.ru/showthread.php?t=201283

The pages where Cyb - ChatBox is used only the hook
bbcode_parse_complete
is called.

So when this one is used:
<plugin active="1" executionorder="5">
<title>Advanced BBCode Permissions</title>
<hookname>bbcode_parse_complete</hookname>
<phpcode><![CDATA[$this->tag_list = $this->bbcode_tag_list;]]></phpcode>
</plugin>

There 2nd,3rd, etc. messages in ChatBox loose their BBCode parsing.

I found a quick fix around this one.
Just replace the above one code in product's XML file with this one:

<plugin active="1" executionorder="5">
<title>Advanced BBCode Permissions</title>
<hookname>bbcode_parse_complete</hookname>
<phpcode><![CDATA[if ($this->bbcode_tag_list)
{
$this->tag_list = $this->bbcode_tag_list;
}]]></phpcode>
</plugin>

lpetrich
03-10-2010, 03:32 PM
I realy like this mod, but does it work good with 3.8.1?
And is it possible to uninstall?
Because my forum is running for a year now, and I can't have errors in my forum (the users won't appreciate that ;))
At our board, we've been running it in 3.8.4, and it's been no problem.

Looks like it works OK as long as one does not specify options. But if one does, its BBCodes won't get rendered. I think that there was some change in the code that it calls. I *might* be able to recommend a fix by studying the code.

B@Zzz...
03-10-2010, 05:31 PM
It works good! We don't have any problems during install!

I installed it because of the bbcode voor moderatorwarnings ([ mod] [ /mod], can't find the topic anymore :( )
When I post the bbcode [mod] in my own reply, it works, but when I edit a reply of an user, the mod-bbcode doesn't work (logical, because the user doesn't have the rights to use that code).
Is it possible to change that? When I edit an reply of an user, the [mod] works on my editted text?
(I hope it's clear what I mean, I'm from holland, my english is bad... :( )

Andreas
03-19-2010, 07:29 AM
This Add-on has a serious bug:
The Code on Hook bbcode_parse_complete assumes that

$this->bbcode_tag_list

does always exist, which is not necessarily the case if do_parse() is being called directly (PhotoPost vBGallery for example does that).

So this causes the Tag-List to become empty after the first call to do_parse().

Changing the code it

if (isset($this->bbcode_tag_list))
{
$this->tag_list = $this->bbcode_tag_list;
}

lpetrich
04-21-2010, 10:59 AM
I tried to research this question of what might be going wrong with this add-on in 4.0, but I couldn't find any documentation for either the 3.8 or 4.0 vBulletin API's.

Alecsmith
05-11-2010, 05:55 AM
Not working in VSA Chat Box of VB 4 :( uninstalled check out screenshot added below

dr.tawy
05-16-2010, 04:14 PM
Working Perfectly on Vbulletin 4.x

Amazing Mod

lpetrich
05-16-2010, 05:59 PM
Does it work even with BBCodes that use options?

BBCodes where one does contents

Bravo
05-16-2010, 08:59 PM
It works good! We don't have any problems during install!

I installed it because of the bbcode voor moderatorwarnings ([ mod] [ /mod], can't find the topic anymore :( )
When I post the bbcode [mod] in my own reply, it works, but when I edit a reply of an user, the mod-bbcode doesn't work (logical, because the user doesn't have the rights to use that code).
Is it possible to change that? When I edit an reply of an user, the [mod] works on my editted text?
(I hope it's clear what I mean, I'm from holland, my english is bad... :( )

Same happens to me

BirdOPrey5
05-17-2010, 08:33 PM
It's not working at all for me in vB 3.8.4 PL2... it installs no problem but it isn't blocking any bb codes... I just setup an iframe code I wanted to restrict to admins and super-mods...I set the primary usergroup of my regular users to "yes" use advanced BB Code and "Yes" to all Bb Codes but "No" for Iframe... I set all the secondary usergroups (additional usergroups) my users are members of to "yes" use advanced bb code and "no" to all options... but all users are able to use all bbcode, including iframe.

BirdOPrey5
05-17-2010, 11:12 PM
OK I got it working but it's weird, I wouldn't believe it if i didn't do it myself- I had to kind of force the hack to work by turning off the basic bb code (for bold, italics, and underline) saving changes, then turning them back on... only then would the iframe be disabled- and I had to do this for each usergroup I had. I wish I knew why it didn't work right to begin with so I can trust that it doesn't stop blocking codes again.

mk craig 42
05-27-2010, 07:40 PM
It works good! We don't have any problems during install!

I installed it because of the bbcode voor moderatorwarnings ([ mod] [ /mod], can't find the topic anymore :( )
When I post the bbcode [mod] in my own reply, it works, but when I edit a reply of an user, the mod-bbcode doesn't work (logical, because the user doesn't have the rights to use that code).
Is it possible to change that? When I edit an reply of an user, the [mod] works on my editted text?
(I hope it's clear what I mean, I'm from holland, my english is bad... :( )

Likewise.. Is there any fix to this?

lpetrich
05-28-2010, 03:57 PM
It's from how this add-on works -- it renders a tag only in the posts of someone who has the permission to do so, and not otherwise.

To render a tag in a quote of someone with the appropriate permissions would require some fancy parsing, and it would be very easy to make a fake quote for rendering such a tag.

So I think that we are stuck with tags being unrendered in quotes of those with the permissions to render them.

BirdOPrey5
06-11-2010, 03:57 PM
OK, I've come across another problem... when using this mod with vBadvanced Links Directory the bb code in the category description doesn't parse, but when viewing the link directly it does parse. I've brought the issue up on their site as well but was wondering if anyone had any ideas on why this might be the case. When I disable this mod it works fine. Example attached.

BirdOPrey5
06-11-2010, 04:00 PM
This Add-on has a serious bug:
The Code on Hook bbcode_parse_complete assumes that

$this->bbcode_tag_list

does always exist, which is not necessarily the case if do_parse() is being called directly (PhotoPost vBGallery for example does that).

So this causes the Tag-List to become empty after the first call to do_parse().

Changing the code it

if (isset($this->bbcode_tag_list))
{
$this->tag_list = $this->bbcode_tag_list;
}


Making this change to the bbcode_parse_complete plugin fixed the issue I was having with code not parsing in vbadvanced links directory- THANK YOU.

slipkot
06-23-2010, 08:58 PM
Finally, because other said that they have problems and other not, if i use it with 3.8.5 will i have any problem?

BirdOPrey5
06-23-2010, 09:38 PM
Finally, because other said that they have problems and other not, if i use it with 3.8.5 will i have any problem?

Well it works for me on 3.8.4 PL2 but I have to disable each code in each usergroup and then re-enable each one for the permissions to take... When I add new bbcodes I have to redo this for each group and new code as well as by default new codes are 'off' for all groups but they still work for all groups until I enable/disable again.

slipkot
06-23-2010, 09:43 PM
OK i will test it and come back with news! Thanks for the help...

slipkot
06-24-2010, 01:12 PM
Well, i installed it but i have a problem. I am using cyb chatbox. And when the modification is active bbcode on chatbox doesn't work... Any suggestions?

Edit: Fixed using the code mention here (https://vborg.vbsupport.ru/showpost.php?p=2006325&postcount=271)! Thanks

BirdOPrey5
06-24-2010, 01:56 PM
I would try the fix I used in post #282, I also had bbcode disabled in another mod until I did that.

Galkon
07-20-2010, 02:37 AM
Will this work on Vbulletin 3.8.2?

rootsxrocks
08-03-2010, 06:28 PM
I belive this plug in has caused me some confusing issues in 4.04 as posted here I may have mistaken your beta 4 to be for the new cms. Other than this issue with articles it works pretty good with 4.04 Unfortunitly It means I will have to remove my Iframe bbcode that i had reserved for just myself and I had given other BB codes for privledged users Please advise ?
http://www.vbulletin.com/forum/showthread.php?358654-vBCms-Comments-Display-Settings-on-CMS-article-Revert-to-No
Warning: Invalid argument supplied for foreach() in [path]/includes/functions_editor.php(487) : eval()'d code on line 122 and you do not have permission.

BirdOPrey5
08-03-2010, 09:38 PM
Will this work on Vbulletin 3.8.2?

It should, it works for me on 3.8.6... but I have to turn each bb code from 'on' to 'off' then 'on' again to get the permissions to work right, seems the first time they aren't actually 'set' for lack of a better term so I need to cycle them once to force them to work... could just be me though.

lpetrich
08-09-2010, 05:13 AM
I'm confused. What's the status of this mod for 4.0? What works and what doesn't? Do BBCodes with options work?

I'm asking that because at our board, we use it to create messages from staff members with a special appearance, so it won't be possible to counterfeit them.
Will that still work?
Will it still work if one has an option in it? That's what we use to make titles of our messages.

rootsxrocks
08-17-2010, 12:36 AM
It needs a little work for 4.0X

Black Tiger
10-11-2010, 02:42 PM
I would like to install this mod, but I'm missing a very importand bbcode permission.
And that's the img code permission. Can this be added to this mod please?

Christophe_O
10-28-2010, 05:05 AM
Hello! I do not even know PhP. I had a run-in with Bank of America because someone posted phishing links. So I want to enable active links in signatures only--and for "premium" usergroups only. Such signature-only links are easy to monitor and control. Also, signature links are essential to reward participation by serious forum members.

I greatly respect this tidy modification. But all I want is to enable active links in signatures--and nowhere else.

...Ironically... the standard Vbulletin 3.0 options (I am not yet upgraded to 4.0) "almost" supply what I want. "Edit Usergroup" can specify link-in-signature permissions for specific groups... But... the only way to turn off links in posts will override the link-in-signature settings--disabling all links in all signatures for all groups...!

(Admin --> Options --> BB Code Settings --> Allow link BB Code --> "...Disabling a bbcode will prevent it from working anywhere on the forum, including signatures...")

Instead of using a PhP mod--can I perhaps just modify a template--so that disabling a link BBcode will not affect signatures...?
Otherwise, can you please add to Advanced BBcode Permissions: two separate "Links" permissions for "Posts" and "Signatures"...?
(If you want to go beyond perfect, perhaps someday we could specify a precise number of links allowed in signatures, between 0 and 9.)
Two weeks later, November 15, 2010:

P.S. I met my needs with no PhP modifications. I decided there is no need to separate message links from signature links. Instead, simply limit all links to "premium" members who pay a nominal fee. I disabled [url] links forum-wide, and "announced" that members must pay $1/year to enable links. These 'premium' members then receive a 'custom' BB code for links. All do-able with standard Vbulletin features. However it is clumsy to post hypertext links without the link button. It would certainly be best to use Advanced BBcode Permissions. I intend to do so when my forum has more members.

Anyway, thank you for your hard work. (Everyone who uses good things like this should please donate at least $5 or $10!)

Gato
11-07-2010, 10:30 PM
In the 3.8.2 version the plugin works fine, but produce conflicts with anothers packages from CYB, like the chatbox.

Anyone had similar problems with others mods and this one?
Thanks in advance.

iRO Wiki
11-09-2010, 04:06 PM
I'm going to put my hat in here on the adding support for img tags!

Or perhaps just the code to do so, I may try to figure it out.

BirdOPrey5
12-27-2010, 12:36 PM
I installed this on 4.0.8 and it works perfectly for me.

bulldog51981
12-27-2010, 09:07 PM
I installed this on 4.0.8 and it works perfectly for me.

Installed 3.0 or Beta Version on 4.0.8

Also, where do I modify the php code in the post from the last page? I can't seem to find it anywhere.:confused:

BirdOPrey5
12-27-2010, 09:11 PM
I installed the version currently in the first/top post: advanced_bbcode_permissions_3_0.zip (version 3.0).
The "Beta" link is to the exact same file.



Also, where do I modify the php code in the post from the last page? I can't seem to find it anywhere.:confused:

I don't know what you're asking?

bulldog51981
12-27-2010, 09:18 PM
I installed the version currently in the first/top post: advanced_bbcode_permissions_3_0.zip (version 3.0).
The "Beta" link is to the exact same file.




I don't know what you're asking?

Your post #282

bulldog51981
12-27-2010, 09:22 PM
I'm a little lost on this one (I usually don't have a problem adding the fixes to things) and my chatbox now looks like the example in post#273 (page 19)

BirdOPrey5
12-27-2010, 09:24 PM
Just to be clear I tested this with regular BB codes and BB Codes with options, I read what people reported earlier they were having issues but it works fine for me. I don't have many mods on my 4.0.8 forum so if someone was having problems I'd guess they either made a mistake or more than likely have a conflict with another mod.

BirdOPrey5
12-27-2010, 09:29 PM
Ahh yes, go to your Admin CP -> Plugin manager, go to the Advanced BB Code Permissions mod and go to the plugin: Advanced BBCode Permissions on hook: bbcode_parse_complete

Find the line: (It should be the only line)
$this->tag_list = $this->bbcode_tag_list;

Replace it with:
if (isset($this->bbcode_tag_list))
{
$this->tag_list = $this->bbcode_tag_list;
}

And you're set... it should work with other add-ons if you do this... it works within normal vbulletin pages without this change however.

mk craig 42
01-01-2011, 01:39 PM
Is there any way this mod can be edited so that Admins/mods can edit a regular members post who DOES NOT have permission for a certain BB Code and make the bb code work on that post.
As at the moment, when I try to edit a usergroups post who I disabled a BB Code for, it also doesn't work for me when I try to edit their post, which is logical.

So basically I want to be able to edit users post and allow the BB Code to work when an admin/mod edits it?

Thanks.

To give you more info.. I have the [mod] BB Code added.. and I want only mod's and Admins to be able to use it, which is why it is disabled on every other usergroup... But the idea of MOD message is to edit a users post and warn them on their own post whilst possibly deleting some of their content that breaches the rules... and obviously with this mod I can't edit their post with the [mod] bb code :(

beduino
01-03-2011, 12:35 PM
Thank you !
I'm looking for if this hack works in last vB 4.1.0 ... maybe with this will work :)
Ahh yes, go to your Admin CP -> Plugin manager, go to the Advanced BB Code Permissions mod and go to the plugin: Advanced BBCode Permissions on hook: bbcode_parse_complete

Find the line: (It should be the only line)
$this->tag_list = $this->bbcode_tag_list;

Replace it with:
if (isset($this->bbcode_tag_list))
{
$this->tag_list = $this->bbcode_tag_list;
}

And you're set... it should work with other add-ons if you do this... it works within normal vbulletin pages without this change however.

OldSchoolDSL
01-05-2011, 07:55 PM
Ahh yes, go to your Admin CP -> Plugin manager, go to the Advanced BB Code Permissions mod and go to the plugin: Advanced BBCode Permissions on hook: bbcode_parse_complete

Find the line: (It should be the only line)
$this->tag_list = $this->bbcode_tag_list;

Replace it with:
if (isset($this->bbcode_tag_list))
{
$this->tag_list = $this->bbcode_tag_list;
}

And you're set... it should work with other add-ons if you do this... it works within normal vbulletin pages without this change however.

Thank you :)

Tested and working

4.1 PL2 :cool:

rootsxrocks
01-06-2011, 04:53 PM
Thank you :)

Tested and working

4.1 PL2 :cool:
Good to Know I was wanting to re install this

abdulbasitsaeed
01-13-2011, 06:35 PM
(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.

Works on 4.0.4.

Abe1, would you like to release the 4.0 version of this mod as a separate mod thread? :)

Thought I'd add that I had to make these changes mentioned earlier to get it fully functional.

Ahh yes, go to your Admin CP -> Plugin manager, go to the Advanced BB Code Permissions mod and go to the plugin: Advanced BBCode Permissions on hook: bbcode_parse_complete

Find the line: (It should be the only line)
$this->tag_list = $this->bbcode_tag_list;Replace it with:
if (isset($this->bbcode_tag_list))
{
$this->tag_list = $this->bbcode_tag_list;
} And you're set... it should work with other add-ons if you do this... it works within normal vbulletin pages without this change however.

RK KINGKONG
01-24-2011, 06:25 AM
working perfect on vb 4.1.1 installed

BirdOPrey5
01-25-2011, 01:43 AM
I know this is unusual but for some reason this mod is conflicting with 3 or the 4 bb codes listed in this mod: https://vborg.vbsupport.ru/showthread.php?t=235328

With this mod enabled only 1 of those 4 icons show in the editor window even when users have permission to use them.

Found this bug in vb 4.1.1

RK KINGKONG
01-25-2011, 03:53 PM
I had to correct myself yes it works with 4.1.1 but as birdofprey. Has found it
Conflicts with the BB code mod he listed. Be a nice fix cause this is a great mod






working perfect on vb 4.1.1 installed

whyiteasy
01-30-2011, 07:53 PM
Yeah its working perfect in vb 4.1.1 :D

RK KINGKONG
02-01-2011, 08:16 AM
@ Abe1 - any update as to why with installing this other mod TW7S - [ Information - Tip - Note - Warning ] BBCode (https://vborg.vbsupport.ru/showthread.php?t=235328&page=8) it only shows one of the editor button images even for people with permissions . however if i disable your bb code permissions then they all show up , but then again everyone has access to them . which i dont want ? can you help . I have also posted in the other authors thread for his mod

bulldog51981
02-22-2011, 02:15 PM
Still only getting some of the icons to show up in editor (even with the modified plugin code from post #303)

Of 8 Custom BBCodes, only 5 are showing even with all set to 'Yes'. One of the above TW7S's are not, an interactive google map one and a photobucket one are the one's that don't appear in the editor. Disabling for now, will watch for any other updates.

TITAN-UZ
03-29-2011, 08:14 PM
nice mod!

Thanks Abe1!

Full support 4.0.x

RK KINGKONG
04-18-2011, 02:19 AM
Is anyone running this on 4.1.3 ? also has the issue with it only showing 1 icon in the editor fixed when using this other mod with it https://vborg.vbsupport.ru/showthread.php?t=235328&page=8 TW7S - [ Information - Tip - Note - Warning ] BBCode

Gn_Snake
05-10-2011, 08:11 PM
Work on 4.1.3 Great Mod..thanks

Gn_Snake
05-11-2011, 06:28 PM
Work on 4.1.3 Great Mod..thanks

I edited because I activated the plugin to all user groups and I chose the options yes or no depending on how I preferred.

But although I have put the spoiler bbcode ON everyone, this does not appear to anyone.

It 's strange that not only what is displayed.

Any ideas?

TheHack3r
05-20-2011, 04:11 PM
The Beta test version 4.0 It's works on my vbulletin v.4.1.3, thx, good job

Gn_Snake
05-20-2011, 06:40 PM
My problem is an error in the edit Article of the CMS Home Page.

The error is:
Warning: Invalid argument supplied for foreach() in [path]/includes/functions_editor.php(487) : eval()'d code on line 122


If disable the plugin the system works

Any idea Please? :confused:

BirdOPrey5
05-20-2011, 06:50 PM
My problem is an error in the edit Article of the CMS Home Page.

The error is:
Warning: Invalid argument supplied for foreach() in [path]/includes/functions_editor.php(487) : eval()'d code on line 122


If disable the plugin the system works

Any idea Please? :confused:

Did you do the fix I mentioned in post #303?

RK KINGKONG
05-20-2011, 06:56 PM
Work on 4.1.3 Great Mod..thanks

it worked for me before the problem is the conflict between this mod and TW7S - [ Information - Tip - Note - Warning ] BBCode

when you try to use both some of the 2nd mod options wont display unless you disable one of them

Gn_Snake
05-20-2011, 07:12 PM
it worked for me before the problem is the conflict between this mod and TW7S - [ Information - Tip - Note - Warning ] BBCode

when you try to use both some of the 2nd mod options wont display unless you disable one of them

To disable want to remove the bbcode?

Gn_Snake
05-20-2011, 07:35 PM
Did you do the fix I mentioned in post #303?

Yes I did.
The only way to bring up the error is to disable the plugin, but I will not do it. sigh :erm:

//EDIT
I removed the bbcode of TW7, but he does it again

RK KINGKONG
05-20-2011, 08:12 PM
To disable want to remove the bbcode?


i understand that but i want to use both of these , the permissions to not allow the other members to use the other mod but oh well lol , cant have it all right

Gn_Snake
05-23-2011, 10:03 AM
Only gives me this error?
For my board have active the plugin is very useful, I would be grateful to those who could help me.

Warning: Invalid argument supplied for foreach() in [path]/includes/functions_editor.php(487) : eval()'d code on line 122

Thanks

HouseAddict
06-23-2011, 11:21 PM
Ahh yes, go to your Admin CP -> Plugin manager, go to the Advanced BB Code Permissions mod and go to the plugin: Advanced BBCode Permissions on hook: bbcode_parse_complete

Find the line: (It should be the only line)
$this->tag_list = $this->bbcode_tag_list;

Replace it with:
if (isset($this->bbcode_tag_list))
{
$this->tag_list = $this->bbcode_tag_list;
}

And you're set... it should work with other add-ons if you do this... it works within normal vbulletin pages without this change however.

I tried that too... and no go.

I am still getting the same error message as others:

Warning: Invalid argument supplied for foreach() in [path]/includes/functions_editor.php(470) : eval()'d code on line 122


Could it have anything to do with custom BBCodes? I've added a few of them, and they are not showing up on the CKE Editor on the page that I am getting this error on. And on other pages where I am not getting this error, those custom BBCodes do show up.

And it only shows up on the Article pages that have CKE Editor for comments enabled (at the bottom of the article)... nowhere else.

That might be a hint...

BirdOPrey5
06-23-2011, 11:58 PM
I have no idea if this would even work with the new CKE Editor... that change broke a lot of mods.

HouseAddict
06-24-2011, 12:01 AM
I have no idea if this would even work with the new CKE Editor... that change broke a lot of mods.

Well, I'm telling you it does work on 4.1.4 just fine. Except on that single page where CKE Editor is included at the bottom of the Article (in CMS) as means of commenting for users... which is weird.

8thos
06-24-2011, 12:44 AM
smh

rootsxrocks
06-28-2011, 12:54 AM
do you have gameroom installed House? I would like to have this be a perrmission that was paid by credits.

HouseAddict
07-04-2011, 03:51 PM
I tried that too... and no go.

I am still getting the same error message as others:



Could it have anything to do with custom BBCodes? I've added a few of them, and they are not showing up on the CKE Editor on the page that I am getting this error on. And on other pages where I am not getting this error, those custom BBCodes do show up.

And it only shows up on the Article pages that have CKE Editor for comments enabled (at the bottom of the article)... nowhere else.

That might be a hint...

Anyone?

BirdOPrey5
07-04-2011, 04:26 PM
I am not able to reproduce the error. I got my hands on a 4.1.4 suite and I have a custom bbcode and it is showing/working in all the editors- include the article editor and article comments.

How many custom BB Codes do you have?

Nevermind- I see it- I didn't have the mod enabled for my usergroup... investigating now.

HouseAddict
07-04-2011, 11:11 PM
Nevermind- I see it- I didn't have the mod enabled for my usergroup... investigating now.

Ahhh, so I'm not actually crazy...

Let us know if you figure out what the issue is, or more importantly the workaround...

BirdOPrey5
07-04-2011, 11:23 PM
I can get rid of the error by editing the plugin editor_toolbar_start...

finding the code:

foreach ($bbcodecache AS $bbcode)
{
if($abe1_bbcode[non_core][$bbcode['bbcodetag']] == 0)
{
unset($vbulletin->bbcodecache[$bbcode['bbcodeid']]);
}
}

and changing it to :

if ($bbcodecache !== null)
{
foreach ($bbcodecache AS $bbcode)
{
if($abe1_bbcode[non_core][$bbcode['bbcodetag']] == 0)
{
unset($vbulletin->bbcodecache[$bbcode['bbcodeid']]);
}
}
}


But none of the custom bbcode icons will show in the cms article editor.

HouseAddict
07-04-2011, 11:40 PM
Ouch!

And that's the only place I need those custom bbcodes - in the CMS Articles (not the comments, just the original article HTML editor).

Is there an alternative way to simply disable custom bbcodes for certain usergroups (or for non-mods and non-admins)?

BirdOPrey5
07-04-2011, 11:52 PM
Ouch!

And that's the only place I need those custom bbcodes - in the CMS Articles (not the comments, just the original article HTML editor).

They work in the Article Creation, but they aren't shown in article comments with my "fix."

HouseAddict
07-04-2011, 11:56 PM
They work in the Article Creation, but they aren't shown in article comments with my "fix."

Damn!

You are correct!

That's exactly what I needed... perfect!

Thank you...

datoneer
07-21-2011, 10:07 PM
I need this for my version 3.8.3 please.
Thanks!

BirdOPrey5
07-22-2011, 12:21 AM
I need this for my version 3.8.3 please.
Thanks!

This works fine on 3.8.x as is.

datoneer
07-22-2011, 07:36 PM
installed without problems but when i turn it on for guests, links [code] are still showing.
That means that this actually doesn't work. I have a custom theme. Is that maybe a problem?

BirdOPrey5
07-22-2011, 09:39 PM
Are you saying guests can still SEE links or guests can POST links?

datoneer
07-23-2011, 03:41 AM
Guests can still SEE links!

BirdOPrey5
07-24-2011, 12:32 PM
Guests can still SEE links!

This is expected behavior. This mod would stop guests from POSTING links assuming you let guests post.

This prevents usergroups from USING BBCodes... If a registered user has permission to post a link then anyone viewing the post will see the link.

I believe there are other mods out there to specifically stop guests from SEEING links. Should be easy to find with a search.

FReeSTER
08-02-2011, 06:50 AM
Ahh yes, go to your Admin CP -> Plugin manager, go to the Advanced BB Code Permissions mod and go to the plugin: Advanced BBCode Permissions on hook: bbcode_parse_complete

Find the line: (It should be the only line)
$this->tag_list = $this->bbcode_tag_list;

Replace it with:
if (isset($this->bbcode_tag_list))
{
$this->tag_list = $this->bbcode_tag_list;
}

And you're set... it should work with other add-ons if you do this... it works within normal vbulletin pages without this change however.

Bro you have rescue me again, thank you so much
Confirm working on vb4.1.3

UDPride
08-19-2011, 02:10 AM
Does this mod still ignore the IMG tag usergroup perm functionality? Unfortunately I had to uninstall as thats the function I really need. Easiest way to extinguish the porn spammers. I dont care if anyone posts with bold or italics.

If something else is out there that address the IMG tag for usergroups, let me know. Thanks.

Jaffery
02-09-2012, 01:02 PM
I am seeing here that its working for vb 4.x series, but I installed it on vb4.1.7 , guests can still post links .. am I missing something ?
I changed their permission from
usergroup-> usergroup manager --> edit user group

disabled LINK / EMAIL bbcode , but still guests can post link !!!

muffel
05-11-2012, 08:29 AM
I have installed this add-on yesterday.

We want to use it, to restrict the use of the URL-BB-Code. But when I turn on the add-on - Users are still able to make postings with the BB-Code in - but the Code won't be parsed. After such an user has posted something with a link, it looks like:

[*URL]blablablabla.com[/URL*]
(without the *)

And that is not so nice. Is there a possibily just to show the url as text, without the bb-code-tags around?
So - if this user will get in another usergroup where Links are allowed, that the old links will not turn over to real links.

BirdOPrey5
05-11-2012, 11:35 AM
Almost anything is possible muffel but what you ask is a big change from the existing mod and since the original coder hasn't updated it in 6 years (yes years) and it's not "Re-Usable" code, there is about no chance it is going to happen. I would suggest you use it as is or make other arrangements.

muffel
05-11-2012, 12:26 PM
Thank you for your fast answer.

Is there maybe another mod, you can do this?
Or is there a way to change this mode a little? :)

BirdOPrey5
05-11-2012, 12:48 PM
I know of no other mods that do what this mod does.

And my original point is this is NOT a "little change" in terms of coding, it's not as easy as you think it would be.

Good luck though in your search. :)

Syxguns
05-19-2012, 09:02 PM
Just found out that this mod is working in vB 4.1.12 PL1 :)

lordtopcat
05-24-2012, 02:52 AM
Just installed on 4.2. Works perfectly.

Syxguns
05-24-2012, 03:01 AM
Installing 4.2 on test forum now! Hoping I have as much luck! :)

Chadi
06-05-2012, 03:15 AM
Doesn't work on 4.2. Its missing table features too.

djbaxter
06-05-2012, 11:05 AM
Doesn't work on 4.2. Its missing table features too.

What's not working for you specifically?

qpurser
06-05-2012, 11:18 AM
Works for me in 4.2.0.
For test purposes I deactivated some BBcodes and they just don't show in the editor

Remember the turn on/off the permissions in the user group manager.

Thanks for this mod

Chadi
06-06-2012, 06:09 PM
What's not working for you specifically?

Like I said, its missing table features for example.

It works partially, not with 4.2x newly added features

tambo
06-17-2012, 08:14 AM
^ Can somebody who is using this on a v4.1.x installation, tell me if this handles VIDEO tags?

cstreater
06-18-2012, 01:44 PM
^ Can somebody who is using this on a v4.1.x installation, tell me if this handles VIDEO tags?

No it doesn't.

aam
07-07-2012, 10:27 AM
BBcode permissions is in the vbulletin.com tracker as a feature request, so if more people vote for it maybe it will be added as a core feature:

http://tracker.vbulletin.com/browse/VBIV-4332

Makaveli007
07-26-2012, 12:16 PM
works in 4.2, however the one core feature that is needed is [IMG] tags.

removed this mod and installed the below, which does have the IMG features

https://vborg.vbsupport.ru/showthread.php?t=232543

Pure Dope
07-28-2012, 05:52 PM
can we get this for 4.2??

YankForum
11-10-2012, 01:49 AM
just installed , it's working now , no bug reported from my users thanks

serhwee
08-01-2013, 11:26 AM
Installed in 4.2 and it have a line of error in the php code. I think I will uninstall it.

goxy63
09-02-2013, 08:29 PM
did anyone install this on VB 4.2 ???

can this mod help me to stop guests to see whats within bb codes [custom bb codes] as that is why I need something like this, if this mod can do that at all ???? or it simply stop certain usergroups to see it in editor or to use it?

in first post it says "Beta test version 4.0 here:" but link is pointing to this thread not somewhere else?

Rollmodl
03-24-2014, 05:31 PM
I've installed it on 4.2.2. When posting in the front end, this message appears.

Warning: Function split() is deprecated in ..../includes/functions_editor.php(467) : eval()'d code on line 37

Please advise.

Alan_SP
03-24-2014, 07:45 PM
change it to explode (just change text split to text explode).

Rollmodl
03-24-2014, 08:09 PM
change it to explode (just change text split to text explode).

Where do I do this?

Alan_SP
03-24-2014, 10:09 PM
Check mod's code and change it there. Mod's code is actually plain text, you can view and edit it with any editor, even windows notepad.

Alan_SP
11-18-2015, 06:20 PM
Does anyone know how to change this mod that it allows by default use of BBcodes to usergroups?

At the moment, whenever I add custom BBCode, I need to change for all usergroups permissions that they can use it. It would be easier that I need to disable use of certain BBcodes, not enable.