vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Advanced BBCode Permissions - now with custom BBcodes! (https://vborg.vbsupport.ru/showthread.php?t=103747)

Abe1 12-24-2005 10:00 PM

Advanced BBCode Permissions - now with custom BBcodes!
 
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 max
Updates:

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!
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

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

Quote:

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

Quote:

Originally Posted by apfparadise
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

Quote:

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

Quote:

Originally Posted by Yorixz
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

Quote:

Originally Posted by SnickersTK
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 ..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

Quote:

Originally Posted by quanvo81
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

Quote:

Originally Posted by Abe1
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

Quote:

Originally Posted by Luggruff
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

Quote:

Originally Posted by Abe1
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

Quote:

Originally Posted by Luggruff
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

Quote:

Originally Posted by Borgs8472
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

Quote:

Originally Posted by Borgs8472
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/showthrea...439#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

Quote:

Originally Posted by Luggruff
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/showthrea...439#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

Quote:

Originally Posted by Abe1
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/...chmentid=39911

I cant find it in the acp

Luggruff 02-18-2006 09:14 AM

Quote:

Originally Posted by wrang
Sorry but where can i find this
https://vborg.vbsupport.ru/attachmen...chmentid=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

Quote:

Originally Posted by tamborinegal
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

Quote:

Originally Posted by Abe1
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

Quote:

Originally Posted by Yorixz
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.


All times are GMT. The time now is 04:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02467 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete