PDA

View Full Version : Advanced BBCode Permissions - now with custom BBcodes!


Abe1
12-24-2005, 10:00 PM
Advanced BBCode Permissions 2.1

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 now for both standard AND custom BB code!

Installation information on hack:

Files edited: 0
Templates edited: 0
Files to upload: 1
Time to install: 1 minute maxUpdates:

Version 1.0 (12/25/05):

Initial release of this hack

Version 2.0 (2/24/06):

[ADDED] Added settings for custom BBCode!

Version 2.1 (2/25/06):

[FIXED] Fixed a few bugs including the settings for custom BBcodes not working.

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=103747)!
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&currency_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8)

Daniel
12-25-2005, 07:54 PM
Thank you Abe, I will be "donating" soon ;)

Anyway to get custom BBcodes incorporated with it?

patsalko
12-26-2005, 01:08 AM
This is cool.

akanevsky
12-26-2005, 01:10 AM
Good job. Very neatly done - the code, that is - and the interface too. Keep it up.

EDIT: One minor thing: I would call the actual admincp section "Enable BBCode Override for This Usergroup" - because "override" is easier to understand than "advanced options".

apfparadise
12-26-2005, 01:22 AM
This is interesting. Is there a way to use this to, for example, not let guests (unregistered users) see IMG images? Or is it just for "using" those tags?

akanevsky
12-26-2005, 01:26 AM
Is there a way to use this to, for example, not let guests (unregistered users) see IMG images?

I believe that if this hack works correctly, guests will not be able to see images inside IMG tags if the tag is set to off for guest usergroup. They will, however, be able to see the raw-text - which will essentially reveal the link or w/e. If you really want to hide something from guests, use HIDE Hack Resurrection (by posts=0 to hide stuff from guests) :)

Abe1
12-26-2005, 01:44 AM
This is interesting. Is there a way to use this to, for example, not let guests (unregistered users) see IMG images? Or is it just for "using" those tags?

This hack des not control IMG. (at least not yet) It contrals the usage of BB Code that is in the main vb settings group 'bb code settings'.

Snake
12-26-2005, 06:10 AM
This could be helpful on my forums. Thanks man!

Yorixz
12-26-2005, 09:14 AM
This is great, any change you'll also add support for custom bbcodes? I'd love to make some admin/mod-only bbcodes ;)

akanevsky
12-26-2005, 10:55 AM
This hack des not control IMG.
Since there is no IMG option in vBulletin, I don't think there is any point in adding it to your hack. Besides, an IMG can always be opened by copy-pasting the URL.. :)

As for custom admincp-added bbcodes - yes that would be great :)
And it would also be great if you could make a separate textarea where you could specify a list of custom bbcodes added into code via hacks - to be later parsed in your hack via a regex... :)

Yorixz
12-31-2005, 11:52 AM
Any news on custom bbcodes? :)

Abe1
12-31-2005, 10:28 PM
Any news on custom bbcodes? :)

Doesn't look like it's possable unless VB loads the custom bbcode admin PHP with hooks.

SnickersTK
01-15-2006, 05:45 PM
Is there anyway to make this work without uploading a file via ftp`?

Abe1
01-15-2006, 05:56 PM
Is there anyway to make this work without uploading a file via ftp`?

Nope.

djr
02-06-2006, 11:23 AM
Clicked Install for future reference. Thanks for the hack!

Luggruff
02-09-2006, 07:34 AM
would be nice if you gave examples of the codes that isn't standard..

Would be cool if you added THIS (https://vborg.vbsupport.ru/showthread.php?t=105253&page=2&pp=15) ..or an option to add own codes.
Since now anyone could figure the Mod and Admin codes out.. and well, they're a good add-on ^^

quanvo81
02-10-2006, 07:20 PM
Ok, it seem like a nice hack.
But
I have 2 more BBocde as [music] and [flash] which I don't see in the Advance BBcode option.
I want to allow only admin and supermoderator can be able to use [flash]
How do I do that with your Hack?

Abe1
02-10-2006, 07:43 PM
Ok, it seem like a nice hack.
But
I have 2 more BBocde as [music] and [flash] which I don't see in the Advance BBcode option.
I want to allow only admin and supermoderator can be able to use [flash]
How do I do that with your Hack?

You can't. This is only for the vb made BB codes. It's very complicated the custom ones.

Luggruff
02-11-2006, 12:06 PM
You can't. This is only for the vb made BB codes. It's very complicated the custom ones.

Where can we find the built in BB codes then?
And what does it look like?
(talking about the code that makes them)

Abe1
02-11-2006, 10:08 PM
Where can we find the built in BB codes then?
And what does it look like?
(talking about the code that makes them)

You can't edit vb's BBScodes. They are in a PHP file.

Luggruff
02-12-2006, 06:43 AM
You can't edit vb's BBScodes. They are in a PHP file.

huh, why wouldn't I because it's in a php file? Don't really follow here..

Abe1
02-12-2006, 01:16 PM
huh, why wouldn't I because it's in a php file? Don't really follow here..

They are coded into php files in more then one place. I would not recommend trying to alter them.

Luggruff
02-12-2006, 10:17 PM
Well now. Another question: I've learned that the custom bb code seem to have another prefix or whatever than the build in one.
(just check the bb code FAQ page and you'll find that its a seperate command for getting them)

so.. could you maybe include this into the hack? So that the custom bb codes are included in your hacks options?
Should be possible as I see it.. just that I can't code php..

PennylessZ28
02-12-2006, 10:33 PM
poofd

Borgs8472
02-13-2006, 12:28 AM
Excellent. I'm 'install'ing this for future reference. Finally flash and media player codes can be safer :)

Abe1
02-13-2006, 02:50 AM
Excellent. I'm 'install'ing this for future reference. Finally flash and media player codes can be safer :)

Sorry, as of now this hack only give options for the vB default codes. Not for custom ones.

Borgs8472
02-13-2006, 10:29 PM
bah!

Abe1
02-13-2006, 11:59 PM
bah!

I'm working on a way. Have faith.

Luggruff
02-15-2006, 09:47 PM
Hey again there abe.
Think someone found a solution to the [mod] and [admin] tags (as they are custom BB code).

https://vborg.vbsupport.ru/showthread.php?p=897439#post897439

Can you make any sence out of it and implement it in your hack maybe? I don't get it -_-

And if you could.. and if you understand more than me :p.. would that solution make it possible to add a feature that automaticly (or by selection) let new BB codes be settable.. without code altering?

Abe1
02-15-2006, 10:17 PM
Hey again there abe.
Think someone found a solution to the [mod] and [admin] tags (as they are custom BB code).

https://vborg.vbsupport.ru/showthread.php?p=897439#post897439

Can you make any sence out of it and implement it in your hack maybe? I don't get it -_-

And if you could.. and if you understand more than me :p.. would that solution make it possible to add a feature that automaticly (or by selection) let new BB codes be settable.. without code altering?

I see what you are saying. The only thing is, only thoughs 2 bbcods use the permissions. I am working on a way not to get it for all custom bbcodes.

quanvo81
02-16-2006, 09:13 AM
I'm working on a way. Have faith.

Man, that's the point, I am glad to hear things like that. It would be good if you can include custom BBcodes, like [flash] or [music] or [etc], because I think we should let all users be able to use allthe standard Vbulletin BBcodes, so it will not limit the posting features.
Just a thought.

wrang
02-18-2006, 06:17 AM
Sorry but where can i find this
https://vborg.vbsupport.ru/external/2006/02/1.php?attachmentid=39911

I cant find it in the acp

Luggruff
02-18-2006, 09:14 AM
Sorry but where can i find this
https://vborg.vbsupport.ru/attachment.php?attachmentid=39911

I cant find it in the acp

adminCP -> usergroups -> edit usergroup

tamborinegal
02-21-2006, 10:23 AM
Looks great. One question. If I use this and disallow a BBcode for a certain user group that has been able to use the BBcodes in the past, how will that look in the previous posts? Will it show the tag?

Thanks

Clancy

Abe1
02-21-2006, 11:59 AM
Looks great. One question. If I use this and disallow a BBcode for a certain user group that has been able to use the BBcodes in the past, how will that look in the previous posts? Will it show the tag?

Thanks

Clancy

I believe it will show the bbcode parsed. Only if the user edits his post will it not parse.

Also, if an admin or mod edits a posts, they will be able to use BB code that is restricted to the user of the post. If that user edits the post though, then the bb codew ill no longer be parsed. You will see the tags.

tamborinegal
02-22-2006, 02:47 AM
I believe it will show the bbcode parsed. Only if the user edits his post will it not parse.

Also, if an admin or mod edits a posts, they will be able to use BB code that is restricted to the user of the post. If that user edits the post though, then the bb codew ill no longer be parsed. You will see the tags.

Thanks Abe for the quick response. Installed. Thanks :)

Clancy

Abe1
02-24-2006, 05:24 PM
After hours and hours of work,

Version 2.0 (2/24/06):

[ADDED] Added settings for custom BBCode!

IrPr
02-24-2006, 05:31 PM
Thanks !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Yorixz
02-24-2006, 06:04 PM
Works pretty good, though you should make a little update so it also uses the database prefix, it was giving errors here.

Another suggestion; I think it would save quite some people a lot of time if you set the standard value of a bbcode to "yes" instead of "no" as most people will rather disable a few than the opposide.

Thanks a lot for your work though!

Abe1
02-24-2006, 06:18 PM
Works pretty good, though you should make a little update so it also uses the database prefix, it was giving errors here.

Another suggestion; I think it would save quite some people a lot of time if you set the standard value of a bbcode to "yes" instead of "no" as most people will rather disable a few than the opposide.

Thanks a lot for your work though!

Where am I not using a prefix????

The settings dont get used unless you edit them. There is no reason start them at Yes. Also, I can't start the custom ones at yes since they dont use a bitfield file.

Darat
02-24-2006, 06:46 PM
Abe1 - thanks for the work but I am getting an error when i try to use it "MySQL Error : Unknown column 'advanced_bbcode_usergroup_permissions_custom' in 'field list'
Error Number : 1054" - Looks as if the installation isn't creating the new fields?

Abe1
02-24-2006, 06:49 PM
Abe1 - thanks for the work but I am getting an error when i try to use it "MySQL Error : Unknown column 'advanced_bbcode_usergroup_permissions_custom' in 'field list'
Error Number : 1054" - Looks as if the installation isn't creating the new fields?

Can you get me the WHOLE error?

Abe1
02-24-2006, 06:50 PM
Can you get me the WHOLE error?

I see the problem. Give me a few min.

Abe1
02-24-2006, 06:53 PM
Abe1 - thanks for the work but I am getting an error when i try to use it "MySQL Error : Unknown column 'advanced_bbcode_usergroup_permissions_custom' in 'field list'
Error Number : 1054" - Looks as if the installation isn't creating the new fields?

Problem solved. Upload the new product XML.

Luggruff
02-24-2006, 07:37 PM
Gotta love you ! ;D *clicks install button again to overload*

Edit: Do I still need to hide the custom BB codes in the FAQ page if I don't want users to even be able to see them?

Edit2: I get this error when trying to access the usergroups:

Fatal error: Call to undefined function: bcpow() in /home/virtual/hlforum.net/public_html/admcp/usergroup.php(181) : eval()'d code on line 14

Darat
02-24-2006, 07:50 PM
Problem solved. Upload the new product XML.

Seven minutes to fix it? - What terrible service! :D

Again thanks for this it's really useful.

Abe1
02-24-2006, 07:57 PM
Gotta love you ! ;D *clicks install button again to overload*

Edit: Do I still need to hide the custom BB codes in the FAQ page if I don't want users to even be able to see them?

Edit2: I get this error when trying to access the usergroups:

Fatal error: Call to undefined function: bcpow() in /home/virtual/hlforum.net/public_html/admcp/usergroup.php(181) : eval()'d code on line 14

I think I know why. I'll fix it in a few min. I think I forgot to protect users who dont have custom bbcodes.

Darat
02-24-2006, 08:02 PM
Abe1 - the options to use advanced bbcode permissions is showing up in the Usergroup options page and I can switch custom codes to off but the usergroup can still use them?

Abe1
02-24-2006, 08:20 PM
Abe1 - the options to use advanced bbcode permissions is showing up in the Usergroup options page and I can switch custom codes to off but the usergroup can still use them?

You have to enable the advanced bbcode permissions for the group for the settings to be used.

Abe1
02-24-2006, 08:27 PM
Gotta love you ! ;D *clicks install button again to overload*

Edit: Do I still need to hide the custom BB codes in the FAQ page if I don't want users to even be able to see them?

Edit2: I get this error when trying to access the usergroups:

Fatal error: Call to undefined function: bcpow() in /home/virtual/hlforum.net/public_html/admcp/usergroup.php(181) : eval()'d code on line 14

Ok. I updated the zip. If you have no custom BB codes, you should not get any error.

Darat
02-24-2006, 08:29 PM
You have to enable the advanced bbcode permissions for the group for the settings to be used.

I'm doing that.

I.E.

Luggruff
02-24-2006, 08:58 PM
Ok. I updated the zip. If you have no custom BB codes, you should not get any error.

and what good does that do? I removed all custom BB codes.. worked fine, added one.. got the same error.

The version 2 of this hack is simply for custom BB codes to work too.. so why would it be good if it don't work with custom BB codes? S:

samsons
02-24-2006, 09:14 PM
does not work for me too :( only custom bb-codes work

Yorixz
02-25-2006, 07:49 AM
Database error in vBulletin 3.5.4:

Invalid SQL:
UPDATE vb3_usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Moderators',
`description` = '',
`usertitle` = 'Moderator',
`opentag` = '<span style=\"color: orange; font-weight: bold;\">',
`closetag` = '</span>',
`passwordexpires` = '0',
`passwordhistory` = '0',
`forumpermissions` = '782847',
`charlimit` = '0',
`attachlimit` = '0',
`pmquota` = '200',
`pmpermissions` = '1',
`pmsendmax` = '5',
`calendarpermissions` = '63',
`wolpermissions` = '3',
`adminpermissions` = '1',
`genericpermissions` = '204046031',
`genericoptions` = '31',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '100',
`avatarmaxheight` = '100',
`avatarmaxsize` = '20000',
`allowhtmlpermissions` = '0',
`dcp_permissions` = '1',
`arcadepermissions` = '31',
`advanced_bbcode_usergroup_on` = '1',
`advanced_bbcode_usergroup_permissions` = '1023',
`advanced_bbcode_usergroup_permissions_custom` = 'a6'
WHERE usergroupid=7;

MySQL Error : Unknown column 'advanced_bbcode_usergroup_permissions_custom' in 'field list'
Error Number : 1054
Date : Saturday, February 25th 2006 @ 10:47:41 AM
Script : /admincp/usergroup.php
Referrer : /admincp/usergroup.php?do=edit&usergroupid=7
Classname : vB_Database_MySQLi
When I try to edit the custom BBCode permissions; got this after I overwrote my old product with the one you released yesterday.

Darat
02-25-2006, 08:49 AM
Yorixz I had that error but Abel1 quickly fixed it and updated the installation files - download the 2.02 (or latest) version and reinstall.

Yorixz
02-25-2006, 06:59 PM
Weird, I already did so, now I tried uninstalling the old and reinstalling the new one and it seems to work, thanks anyway.

I got another problem it seems though, the settings for custom BBcodes aint respected it seems, it still allows me to use them. I'll do some more bugtracking to see if it isn't one of my other plugins.

edit; nope, tried disabling all other plugins/products and still it allows my usergroup (admin) to use the custom BBcodes, when I disable a "standard" one it wont let me, but custom ones aren't working it seems :ermm:

djr
02-25-2006, 10:21 PM
I got another problem it seems though, the settings for custom BBcodes aint respected it seems, it still allows me to use them. I'll do some more bugtracking to see if it isn't one of my other plugins.

edit; nope, tried disabling all other plugins/products and still it allows my usergroup (admin) to use the custom BBcodes, when I disable a "standard" one it wont let me, but custom ones aren't working it seems :ermm:
I have the same problem. Even though this hack is installed and I set up all correct permissions for that usergroup, it still allows me to use the (disabled for that usergroup) custom bbcodes :(

Abe1
02-26-2006, 01:26 AM
I"m going to d some tests. see why this is happening.

Abe1
02-26-2006, 02:23 AM
Version 2.1 (2/25/06):

[FIXED] Fixed a few bugs including the settings for custom BBcodes not working.

Smiry Kin's
02-26-2006, 04:07 AM
i get this error when posting.

Warning: arsort() expects parameter 1 to be array, null given in /includes/class_bbcode.php(149) : eval()'d code on line 27

Warning: Invalid argument supplied for foreach() in /includes/class_bbcode.php(149) : eval()'d code on line 29

Abe1
02-26-2006, 04:23 AM
i get this error when posting.

Warning: arsort() expects parameter 1 to be array, null given in /includes/class_bbcode.php(149) : eval()'d code on line 27

Warning: Invalid argument supplied for foreach() in /includes/class_bbcode.php(149) : eval()'d code on line 29
Can you tell me more info? How many BB codes do you have? Did you have a previus version installed?

Smiry Kin's
02-26-2006, 04:48 AM
just 2extras.. and i get it when posting, and it doesnt work for me.. im using 3.5.4 and no this is first time install

Abe1
02-26-2006, 04:55 AM
just 2extras.. and i get it when posting, and it doesnt work for me.. im using 3.5.4 and no this is first time install
Do you have version 2.1?

Smiry Kin's
02-26-2006, 05:05 AM
well i installed it about 4am GMT.. i donno if you upgraded since thn?

Yorixz
02-26-2006, 07:23 AM
Works like a champ here, thanks a lot Abe1!

samsons
02-26-2006, 07:36 AM
I dont get an error message but still can use the buttons or the code and it`s shown up as text

Luggruff
02-26-2006, 09:20 AM
still got the same error as before =\

Darat
02-26-2006, 11:23 AM
Abel1 - it is still allowing usergroups using advanced permissions to use custom bbcodes? (I uninstalled 2.02 and installed 2.1.)

Abe1
02-26-2006, 11:51 AM
Abel1 - it is still allowing usergroups using advanced permissions to use custom bbcodes? (I uninstalled 2.02 and installed 2.1.)

Are you looking at new posts or posts made already?

Darat
02-26-2006, 11:55 AM
New ones - even started new threads as a user without permissions.

Just checked and it does still stop that usergroup using the buil-in bbcodes i.e. [code]

Abe1
02-26-2006, 11:57 AM
still got the same error as before =\

I just looked at your error again. I see what the problem is. Your PHP is not installed with the advanced math fuctions. I need to use them so if you go over like bbcodeid 30 o around there I think, you can still use this hack. Try to see if you can get it installed into your PHP. All PHP installations after 4.1 I believe, have these functions installed automaticly. Before then, you would have to manualy say you wanted them.

Abe1
02-26-2006, 11:58 AM
New ones - even started new threads as a user without permissions.

Can I have access to your acp plugins, and usergroup settings? Also, I need anther account that I can test the settings on. If you can, please PM me the info.

Also, are there any errors you are getting?

Abe1
02-26-2006, 11:59 AM
well i installed it about 4am GMT.. i donno if you upgraded since thn?
Yes, I did just come out with an upgade.

Abe1
02-26-2006, 12:00 PM
I dont get an error message but still can use the buttons or the code and it`s shown up as text

Can I have access to your acp plugins, and usergroup settings? Also, I need anther account that I can test the settings on. If you can, please PM me the info.

Darat
02-26-2006, 12:07 PM
Abe1 - sent you a PM - thanks

Abe1
02-26-2006, 12:27 PM
Abe1 - sent you a PM - thanks

I found your problem. Conflicting with another plugin of yourse at the same location. I PMed you the details. With the plugin disabled, the hack worked great.

Darat
02-26-2006, 01:13 PM
I found your problem. Conflicting with another plugin of yourse at the same location. I PMed you the details. With the plugin disabled, the hack worked great.

Thanks!

Daniel
02-26-2006, 11:47 PM
When I move a thread I get this error at the top of the page:

Warning: arsort() expects parameter 1 to be array, null given in /includes/class_bbcode.php(149) : eval()'d code on line 5

Warning: Invalid argument supplied for foreach() in /includes/class_bbcode.php(149) : eval()'d code on line 7

Smiry Kin's
02-26-2006, 11:59 PM
When I move a thread I get this error at the top of the page:
i get some thing very similar, but when posting etc =-/

Warning: arsort() expects parameter 1 to be array, null given in /includes/class_bbcode.php(149) : eval()'d code on line 27

Warning: Invalid argument supplied for foreach() in /includes/class_bbcode.php(149) : eval()'d code on line 29

Pink-Lotus
03-01-2006, 11:35 AM
Maybe a truely stupid question. But where can I change the settings after installed? I can't seem to find it =/

Aesma Deva
03-01-2006, 12:35 PM
Usegroups > Usergroup manager
Thanks Abe, I was looking for something like that. Is there a way to have the checkboxes in the usergroup manager turn to on for default, though?
*Clicks install*

Yorixz
03-03-2006, 05:44 PM
Seems like everything is working here now, luckely no errors when moving a thread - one weird thing is that the custom bbcodes only show up after a reload of the page; using AJAX doesn't make it show here (either?).

Nathan2006
03-25-2006, 12:55 AM
Hi,

This is a great hack :)

Thank you install

The only this is Im getting this error once I click on any of the usergroups

Fatal error: Call to undefined function: bcpow() in /home/forum/public_html/admincp/usergroup.php(181) : eval()'d code on line 14


The only custom BBcodes that I have are the [admin] and [mod] ones

Thank you for any help :)

Abe1
03-26-2006, 12:52 AM
Your PHP was configured with out the advanced math library.

Nathan2006
03-26-2006, 04:19 AM
Your PHP was configured with out the advanced math library.

Hi,

I dont know what that is?

Is there anyway of adding this?

Thanks :)

Abe1
03-26-2006, 11:42 AM
You have to speek to the person who configured your server. Tell them to add the BC math library to PHP.

Stargesicht
04-04-2006, 03:45 PM
There ist a bug, or not???
When a user post with Tag`s and he has the permiossion to use Tags it works ok,
now read a User this Thread, and he has no permission, he see only the code...
(I tried it with the Moderator/Admin Tags)

The second user, should see the Tag (or the text between), but not execute it.
Is this a bug or feature???

Sorry for my bad englisch...

Abe1
04-04-2006, 05:15 PM
There ist a bug, or not???
When a user post with Tag`s and he has the permiossion to use Tags it works ok,
now read a User this Thread, and he has no permission, he see only the code...
(I tried it with the Moderator/Admin Tags)

The second user, should see the Tag (or the text between), but not execute it.
Is this a bug or feature???

Sorry for my bad englisch...
If you have permissions to use the tag, then it will parse. If you dont, then it wont parse.

If you make a post, an admin who has permision to use a bbcode edits your post and uses it in the edit, it will show parsed. If the origonal user edits the posts, it iwll show unparsed again.

Stargesicht
04-04-2006, 06:13 PM
If you make a post, an admin who has permision to use a bbcode edits your post and uses it in the edit, it will show parsed
but the Original Poster see it unparsed.
Only the Users with the permissions see the tags parsed.....
right???

Abe1
04-04-2006, 06:14 PM
but the Original Poster see it unparsed.
Only the Users with the permissions see the tags parsed.....
No, the permissions are not see it or not. It's to USE them or not.

Stargesicht
04-04-2006, 06:49 PM
No, the permissions are not see it or not. It's to USE them or not.
Sorry, in my Forum not....
I`ve tested it with every Tag.
Only user with permission see the text parsed...

Abe1
04-04-2006, 08:17 PM
Sorry, in my Forum not....
I`ve tested it with every Tag.
Only user with permission see the text parsed...
Do you have some setting that re-parses the posts every time they are viewed?

Stargesicht
04-04-2006, 08:18 PM
no, i don`t think so...

SaN-DeeP
04-05-2006, 12:06 AM
wonderful addon, i had been looking for this since a long time :)

Algren_San
04-05-2006, 12:22 AM
Sorry, in my Forum not....
I`ve tested it with every Tag.
Only user with permission see the text parsed...


same here if i make an usergroup with a custom bbcode is does not parse the code it just make him not to see others codes like that.

smdani
04-05-2006, 05:56 AM
same here if i make an usergroup with a custom bbcode is does not parse the code it just make him not to see others codes like that.
I’ve same problem


And one suggestion, ?may you include that the button to add certain bbcode will show or not conditioned by the permissions you have?


Thanks in advance

Abe1
04-05-2006, 12:14 PM
I’ve same problem


And one suggestion, ?may you include that the button to add certain bbcode will show or not conditioned by the permissions you have?


Thanks in advance
Are you saying that the buttons would still show even though they can't use the BB code. This should not be happening.

smdani
04-05-2006, 02:18 PM
Are you saying that the buttons would still show even though they can't use the BB code. This should not be happening.


Well… for me, that’s what happen I thought that it was normal.
?What could be the reason for it to occur?

By the way, I was trying to uninstall the hack to make some more testing, and I found that, after that, in usergruops, remains the table of permissions with no text in it, only the rows and the check boxes

Thanks Abe1

Abe1
04-05-2006, 02:29 PM
Well… for me, that’s what happen I thought that it was normal.
?What could be the reason for it to occur?

By the way, I was trying to uninstall the hack to make some more testing, and I found that, after that, in usergruops, remains the table of permissions with no text in it, only the rows and the check boxes

Thanks Abe1
Did you delete the file?

smdani
04-05-2006, 03:10 PM
Did you delete the file? Yes, I uninstalled and deleted the “bitfield_advancedbbcodepermissions.xml”
And now in each usergroup permissions have this
https://vborg.vbsupport.ru/external/2006/04/19.jpg

?may this problem to be connected with the other issues?

Abe1
04-06-2006, 12:13 AM
Yes, I uninstalled and deleted the “bitfield_advancedbbcodepermissions.xml”
And now in each usergroup permissions have this
https://vborg.vbsupport.ru/attachment.php?attachmentid=45227&stc=1&d=1144253385

?may this problem to be connected with the other issues?
Re build you bitfields. I'm not sure the link but it would have done it automatically if you would have deleted the file before you uninstalled.

smdani
04-06-2006, 11:44 AM
Re build you bitfields. I'm not sure the link but it would have done it automatically if you would have deleted the file before you uninstalled.
How do I do this?

And What could I do to solve the issues of buttons and phrase noticed before https://vborg.vbsupport.ru/showpost.php?p=941967&postcount=96

I would like to use this hack
thanks

Abe1
04-06-2006, 11:53 AM
How do I do this?

And What could I do to solve the issues of buttons and phrase noticed before https://vborg.vbsupport.ru/showpost.php?p=941967&postcount=96

I would like to use this hack
thanks
It shows buttons for you even though there is no permission to use them?

smdani
04-06-2006, 12:51 PM
It shows buttons for you even though there is no permission to use them?
Yes, it is one of my problems

Nathan2006
04-06-2006, 10:11 PM
You have to speek to the person who configured your server. Tell them to add the BC math library to PHP.

Thank you for the information Abe.

It was installed today and is working great!

Thank you :D

OOPS!

Just found this when I edit a thread dont know what it means tho?

Warning: arsort() expects parameter 1 to be array, null given in /includes/class_bbcode.php(149) : eval()'d code on line 13

Warning: Invalid argument supplied for foreach() in /includes/class_bbcode.php(149) : eval()'d code on line 15

Abe1
04-07-2006, 02:32 AM
Thank you for the information Abe.

It was installed today and is working great!

Thank you :D

OOPS!

Just found this when I edit a thread dont know what it means tho?
I see why you would hve the error. I will try to release a fix soon.

Nathan2006
04-07-2006, 11:26 AM
I see why you would hve the error. I will try to release a fix soon.

Thanks Abe :)

MThornback
04-09-2006, 04:14 AM
I'm getting it too....but only when I move a thread...

Thanks Abe, this hack rocks :D


Warning: arsort() expects parameter 1 to be array, null given in /includes/class_bbcode.php(149) : eval()'d code on line 66

Warning: Invalid argument supplied for foreach() in /includes/class_bbcode.php(149) : eval()'d code on line 68

Nathan2006
04-25-2006, 12:23 AM
I'm getting it too....but only when I move a thread...

Thanks Abe, this hack rocks :D

It also does it when you have used the edit thread.

Abe,

When do you think the errors will be fixed?

Thanks :)

bashy
06-30-2006, 05:11 PM
Hi abe...just installed this and when its turned on i (as admin) cannot post bbcodes, they show as e.g. blahblah
permissions are default for me, i have tried this with a mod account
and i get the same issue, permissions are correc...

Any ideas please as i really need this for the admin and mod warning bbcodes?

Abe1
07-05-2006, 12:23 PM
Hi abe...just installed this and when its turned on i (as admin) cannot post bbcodes, they show as e.g. blahblah
permissions are default for me, i have tried this with a mod account
and i get the same issue, permissions are correc...

Any ideas please as i really need this for the admin and mod warning bbcodes?
Did you do the usergroup settings?

Gbml2u
07-11-2006, 02:37 PM
Thank Abe1 .
(Sorry for my bad English)

But , i can't have effect with custon BBcode , ex. [admin] , [mod] .
Registered Users still uses that , while I Set Registered Users can't .

Hope You Fix it soon

Abe1
07-11-2006, 03:04 PM
Thank Abe1 .
(Sorry for my bad English)

But , i can't have effect with custon BBcode , ex. [admin] , [mod] .
Registered Users still uses that , while I Set Registered Users can't .

Hope You Fix it soon
Not sure it would not work.

ConqSoft
07-12-2006, 08:39 PM
Sorry if I missed it, but is there a 3.6.0 version of this?

Thanks

Abe1
07-13-2006, 01:54 AM
Sorry if I missed it, but is there a 3.6.0 version of this?

Thanks
Not yet.

Click install here and you will get an email when the version is released.

bashy
07-15-2006, 04:05 PM
hi abe...sorry for the delay, been sorting out other things...

Yeah in the usergroup settings all i enalbed apart from the ones i dont want to use (this is just for testing)

The ones that are disable the buttons still show in newthread?

EDIT
Your hack does not seem to stop usergroups using the code thats disable


The images below are just examples... its the mod and admin buttons that i want to add but i cant
cause they show for all groups despite disabling it

Cut a long story short....can you do this so that it disables the buttons as well please?

Did you do the usergroup settings?

Abe1
07-16-2006, 02:06 AM
hi abe...sorry for the delay, been sorting out other things...

Yeah in the usergroup settings all i enalbed apart from the ones i dont want to use (this is just for testing)

The ones that are disable the buttons still show in newthread?

EDIT
Your hack does not seem to stop usergroups using the code thats disable


The images below are just examples... its the mod and admin buttons that i want to add but i cant
cause they show for all groups despite disabling it

Cut a long story short....can you do this so that it disables the buttons as well please?
I hope my next version will fix all of this. I hope to use a new method to stop the use of bb code.

bashy
07-24-2006, 08:19 PM
Ok Abe...thanks :)

Abe1
08-03-2006, 08:54 PM
A new version for vB 3.6 was released here: https://vborg.vbsupport.ru/showthread.php?t=122942

Ziki
08-29-2006, 02:29 PM
Abe please can you fix it cause I really need it.Thank you

Abe1
08-31-2006, 09:07 PM
Abe please can you fix it cause I really need it.Thank you
I'm noy releasing any more versions for vb3.5. You have to install the vb3.6 one.

Ziki
09-01-2006, 10:31 AM
For 3.5?

[email protected] vbmenu_register("postmenu_1065532", true);
09-01-2006, 12:34 PM
I checked out the thread for the vb3.6 version of this plugin. Early on in the thread there was a post about an update for the 3.5.4 version with an attachment, I tried using it. But when I installed that 'final' release of the 3.5.4 version, on the default BBCODEs showed up in the usergroup admin. Custom BBCODEs did not show up, so I couldn't choose to turn them off.

If I use the latest 3.5.4 version released here in this thread, the custom BBCODEs show up, but it doesn't matter if I choose to hide them from a usergroup, they still show up when a user goes to post something.

Ziki
09-24-2006, 05:54 PM
Nah screw this hack I did it with a simple template edit :D

TosaInu
01-04-2007, 07:26 PM
Hello,

When trying to edit a usergroup:

Fatal error: Call to undefined function: bcpow()

Our PHP may have disabled that function, is there a workaround?

Abe1
01-10-2007, 11:51 PM
Hello,

When trying to edit a usergroup:

Fatal error: Call to undefined function: bcpow()

Our PHP may have disabled that function, is there a workaround?
The only work around is to use the vb3.6.x version. It uses a different method if I remember correct.

TosaInu
01-24-2007, 02:52 PM
Thank you Abe1. PHP is upgraded and the hack is working now. It generates this


Warning: arsort() expects parameter 1 to be array, null given in /includes/class_bbcode.php(149) : eval()'d code on line 77

Warning: Invalid argument supplied for foreach() in /includes/class_bbcode.php(149) : eval()'d code on line 79

when the report post function, or some mod functions are used.

Abe1
01-29-2007, 12:42 PM
Thank you Abe1. PHP is upgraded and the hack is working now. It generates this


Warning: arsort() expects parameter 1 to be array, null given in /includes/class_bbcode.php(149) : eval()'d code on line 77

Warning: Invalid argument supplied for foreach() in /includes/class_bbcode.php(149) : eval()'d code on line 79

when the report post function, or some mod functions are used.
Sorry, I dont support this version. This was fixed in the vb3.6 version.

(If you want a quick fix, try enabling Advanced Math Features in PHP.)

Pcparts
02-25-2007, 11:08 PM
Thanks for this hack. I installed it today.
But there are a few issues.

It does work for all new posts/threads. But some older threads dont show the properly. Even if it is allowed for a usergroup, still the BB code is disabled some times. Specially in the journals, almost all old entries only show the BB code in plain text format, but not the actual content (like youtube or google videos)

Any idea, How can I fix this?

Abe1
02-25-2007, 11:23 PM
Thanks for this hack. I installed it today.
But there are a few issues.

It does work for all new posts/threads. But some older threads dont show the properly. Even if it is allowed for a usergroup, still the BB code is disabled some times. Specially in the journals, almost all old entries only show the BB code in plain text format, but not the actual content (like youtube or google videos)

Any idea, How can I fix this?
You have to install the vb3.6 version for support.

Pcparts
02-27-2007, 05:12 PM
You have to install the vb3.6 version for support.
But I am still using vb 3.5.5. wont that be any problem?

Abe1
02-28-2007, 01:56 AM
But I am still using vb 3.5.5. wont that be any problem?
I guess so. But I fixed a lot of things that was released in the vb3.6 version.

Pcparts
02-28-2007, 05:10 AM
Thanks. It works fine for me now :)

AcidX
03-20-2007, 03:38 PM
Thanks. Installed.

thincom2000
03-21-2007, 09:01 PM
Nevermind. I thought I found a bug, but really I just forgot to rebuild the bbcodecache.

Took all day, but just figured out how to install custom bb-codes via products and give them their own class_bbcode handler functions, utilizing this hack for permissions, without making any file edits. ^_^

thincom2000
03-24-2007, 01:19 AM
Is there a reason why [highlight], [img], [quote], [noparse], [sigpic], and [attach] aren't included in the Advanced Permissions area?

I'm pretty sure you can still do these, you just may need to use the hook bbcode_parse_start instead.

thincom2000
03-24-2007, 06:49 PM
I just realized this when I started viewing the forum as a guest. This hack is written so that if the logged in user doesn't have permission then they can't VIEW those BB-codes parsed. However, they can still include them in posts themselves, and users who do have permission to use them, will then see the parsed code posted by the disallowed users.

I see this as a big security risk depending on the BB-Code in question.

I developed a fix for this, so that vBulletin standard BB-Codes also work correctly. Will post later tonight, I have to run right now.

Abe1
03-24-2007, 11:36 PM
I just realized this when I started viewing the forum as a guest. This hack is written so that if the logged in user doesn't have permission then they can't VIEW those BB-codes parsed. However, they can still include them in posts themselves, and users who do have permission to use them, will then see the parsed code posted by the disallowed users.

I see this as a big security risk depending on the BB-Code in question.

I developed a fix for this, so that vBulletin standard BB-Codes also work correctly. Will post later tonight, I have to run right now.
Please use the vb3.6 for support. I dont even remember how this one runs. I totally re-wrote the hack for vb3.6

princeedward
05-08-2007, 08:36 AM
okay ...thanks bro.... ;)

intricatic
07-31-2007, 05:03 PM
You have to speek to the person who configured your server. Tell them to add the BC math library to PHP.
In other words, add bcmath flag to gentoo's make.conf and recompile php?

Abe1
08-01-2007, 10:55 AM
In other words, add bcmath flag to gentoo's make.conf and recompile php?
Something like that. You dont need to do that if you install the latest version that is for 3.6.x

FelixFlow
10-17-2007, 06:12 AM
installed, using vb 3.6.8


i added a custom code (iframe) that i got from here https://vborg.vbsupport.ru/showthread.php?t=113423


the iframe code works fine....


i then installed this permissions mod...and when i change the usergroup permissions, iframe tag doesnt work, at all




i'm trying to make it so only admins/mods can use iframe tag....so far no luck with that :(

is this a bug????

Abe1
10-21-2007, 02:30 AM
installed, using vb 3.6.8


i added a custom code (iframe) that i got from here https://vborg.vbsupport.ru/showthread.php?t=113423


the iframe code works fine....


i then installed this permissions mod...and when i change the usergroup permissions, iframe tag doesnt work, at all




i'm trying to make it so only admins/mods can use iframe tag....so far no luck with that :(

is this a bug????
This is an old version. Go search for the 3.6 version.

pujabrang
12-11-2009, 12:41 AM
does it work on vb 3.8.3

Strategos
11-29-2011, 10:10 PM
Can someone please fix this :(

uninvited13th
12-02-2011, 08:40 AM
can I already use admin only bbcode when editing non-admin posts?