Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Advanced BBCode Permissions Details »
Advanced BBCode Permissions
Mod Version: 3.0, by Abe1 (Coder) Abe1 is offline
Developer Last Online: Jun 2010 I like it Show Printable Version Email this Page

vB Version: 3.6.8 Rating: (33 votes - 4.64 average) Installs: 628
Released: 03 Aug 2006 Last Update: 25 Aug 2006 Downloads: 3211
Not Supported DB Changes Uses Plugins  

Advanced BBCode Permissions 3.0



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 max
Updates:

Version 3.0 (08/03/06):
  • Initial release of this hack for vb 3.6
  • [CHANGED] Re-did the way the permissions are stored to fix a lot of bugs.

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

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

MAKE SURE YOU CLICK INSTALL!
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.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	image.JPG
Views:	6888
Size:	41.7 KB
ID:	51439  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Advanced BBCode Permissions - now with custom BBcodes! Abe1 vBulletin 3.5 Add-ons 145 02 Dec 2011 08:40

  #241  
Old 21 Jun 2009, 23:57
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Lightbulb

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.

Reply With Quote
  #242  
Old 24 Jun 2009, 06:07
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Lightbulb

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Reply With Quote
  #243  
Old 05 Jul 2009, 18:13
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Lightbulb

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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


Last edited by inciarco; 05 Jul 2009 at 18:20.
Reply With Quote
  #244  
Old 12 Jul 2009, 08:26
willy888 willy888 is offline
 
Join Date: Apr 2006
I think this mod must be update soon and insert in vb standard version
Reply With Quote
  #245  
Old 16 Jul 2009, 00:43
nightbloom's Avatar
nightbloom nightbloom is offline
 
Join Date: Mar 2008
Originally Posted by EcoCav View Post
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. =(
Reply With Quote
  #246  
Old 23 Jul 2009, 16:46
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
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).
Reply With Quote
  #247  
Old 23 Jul 2009, 19:27
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Lightbulb

A Interesting Way to Hide Images and Display Only Smilies, From Thread "preg_replace - Exclude Text in Search Code Line".

Originally Posted by inciarco View Post
--------------- Added 23 Jul 2009 at 19:22 ---------------

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.

On the File /includes/class_postbit.php

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 23 Jul 2009 at 19:25 ---------------

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.

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.

Reply With Quote
  #248  
Old 29 Jul 2009, 15:58
Sidane Sidane is offline
 
Join Date: Jan 2003
Originally Posted by |Jordan| View Post
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...
Reply With Quote
  #249  
Old 30 Jul 2009, 19:25
crouzmind's Avatar
crouzmind crouzmind is offline
 
Join Date: Feb 2009
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.
Reply With Quote
  #250  
Old 02 Aug 2009, 11:46
kent_lkc kent_lkc is offline
 
Join Date: Feb 2009
work like a charm on 3.8.3. thanks.
Reply With Quote
  #251  
Old 20 Aug 2009, 04:16
krozar krozar is offline
 
Join Date: May 2009
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.
Reply With Quote
  #252  
Old 21 Aug 2009, 22:20
Pcwolfx's Avatar
Pcwolfx Pcwolfx is offline
 
Join Date: Dec 2007
Real name: Tayfun
we want only dont show in signature.
__________________
appleforum.org
Reply With Quote
  #253  
Old 29 Aug 2009, 19:45
xgromx xgromx is offline
 
Join Date: Aug 2005
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
Reply With Quote
  #254  
Old 02 Oct 2009, 13:51
ppretn ppretn is offline
 
Join Date: Aug 2009
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.
Reply With Quote
  #255  
Old 27 Oct 2009, 00:33
DariuS7 DariuS7 is offline
 
Join Date: Mar 2009
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:42.

Layout Options | Width: Wide Color: