[BETA] Custom BBCode Permissions - (who can use them)

MODs and Styles for phpBB3.

To post your MOD or style, go to the STG MOD Manager
Forum rules
Go to http://startrekguide.com/mods to submit your MOD or style

[BETA] Custom BBCode Permissions - (who can use them)

Postby Gonculator » 25 Apr 2008, 19:55

MOD Title: Custom BBCode Permissions - (who can use them)
MOD Author: poppertom69
MOD Description: This mod will replace bbcodes that the user does not have permission to use. To set which bbcodes the user has permission to use you have to add them to a bbcode extension group in the acp then set permissions like normal in the permissions tab. This mod doesn't take long to set up but it is very good when installed.

Credits to T50 for the preg replace
MOD Version: 0.1.2B3
MOD Status: BETA

Tested on phpBB version: 3.0.1
Released: 10 Jul 2008

Installation Level: easy
Installation Time: ~ 10 Minutes

Demo: [url]Click here to visit the demo website[/url]

Download:
custom_permissions.zip
(43.14 KiB) Downloaded 1865 times


This is an automated message posted by STG?s MOD Manager version 0.2.0 DEV
Last edited by Gonculator on 10 Jul 2008, 04:17, edited 3 times in total.
Reason: MOD Updated
I am Gonculator, the STG Forum Robot -- Please do not PM me, I will not answer, but I will eat users who PM me. :twisted:
User avatar
Gonculator
Forum Robot
Forum Robot
 
Posts: 640
Joined: 16 Nov 2006, 21:52
Location: Forum Robot
Gender: Male


Re: [DEV] BBcode Permissions

Postby poppertom69 » 27 Apr 2008, 20:55

Included in this release so you need to upgrade
Last edited by poppertom69 on 15 May 2008, 07:40, edited 3 times in total.
Image
Image
poppertom69    
Supporter
Supporter
 
Posts: 326
Joined: 13 Apr 2007, 08:08
Location: bucks, UK
Favorite Team: STG
Gender: Male
phpBB Knowledge: 8

Re: [DEV] BBcode Permissions

Postby Handyman » 27 Apr 2008, 21:05

oh, totally awesome! :yahoo:

Let me know when a download is available and I'll either attach it for you or hopefully I'll have the update capability fixed. (working on it right now)
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7457
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [DEV] BBcode Permissions

Postby poppertom69 » 28 Apr 2008, 07:52

Right a quick update, I have changed how the bbcodes work so it is a much less of a hassle. You now have to add the bbcodes into a extension group e.g. Moderators extension group and if the user has permission to use that extension group the bbcodes now display. this saves on a lot of permissions and time when saving them.

The extension groups come with 4 preset groups
  1. Administrators
  2. Moderators
  3. Supporters
  4. Standard users

If you add a new group it displays the code you need to add to the language file, thats the only way I can think of getting around the language problem I was having!

The installation file automatically gets all your custom codes and adds them to the extensions table, then all you have to do is Select which group they belong to and then your done!

Can you think of anything else I need to add?

Edit: Just working on the installation script now hopefully have it available for alpha testing soon
Image
Image
poppertom69    
Supporter
Supporter
 
Posts: 326
Joined: 13 Apr 2007, 08:08
Location: bucks, UK
Favorite Team: STG
Gender: Male
phpBB Knowledge: 8

Re: [DEV] BBcode Permissions

Postby poppertom69 » 28 Apr 2008, 14:29

Ok everybody the first beta is released please install this on a local or test board first if you find any bugs please post in this topic and I will look into it as soon as possible

here is a download until the first topic is updated
Download: BBCode permission
Image
Image
poppertom69    
Supporter
Supporter
 
Posts: 326
Joined: 13 Apr 2007, 08:08
Location: bucks, UK
Favorite Team: STG
Gender: Male
phpBB Knowledge: 8

Re: [DEV] BBcode Permissions

Postby Handyman » 28 Apr 2008, 15:20

download has been attached.
I won't have time to test it for some time,

One question though, is it possible to assign different groups to each bbcode?
I saw there are 4 by default, but I didn't look into how they were assigned.
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7457
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [DEV] BBcode Permissions

Postby poppertom69 » 28 Apr 2008, 15:31

Not at the moment I hope to add this in the next version that I am working on! The only reason it wasn't added to this version was that it would take to long to to assign all the bbcodes, but I think I may have a way around this!
Image
Image
poppertom69    
Supporter
Supporter
 
Posts: 326
Joined: 13 Apr 2007, 08:08
Location: bucks, UK
Favorite Team: STG
Gender: Male
phpBB Knowledge: 8

Re: [DEV] BBcode Permissions

Postby killer-kurt » 10 May 2008, 07:12

gRRRRRR i got SQL errors on this.

Something to do with the posting.php

I could not find:

Code: Select all
if (isset($post_data['post_text']))
{
   $message_parser->message = &$post_data['post_text'];
   {


BUT could find:

Code: Select all
if (isset($post_data['post_text']))
{
   $message_parser->message = &$post_data['post_text'];
   unset($post_data['post_text']);
}


So i put it after this and it just dident work. Suggestion?
Ultimate Online Advertising! for all your advertising needs!
I am the Confused about deck 15 Crew! Wann join?
User avatar
killer-kurt    
Ensign
Ensign
 
Posts: 99
Joined: 03 Jan 2008, 13:52
Gender: Male

Re: [DEV] BBcode Permissions

Postby poppertom69 » 10 May 2008, 07:19

I will look into it for you
Image
Image
poppertom69    
Supporter
Supporter
 
Posts: 326
Joined: 13 Apr 2007, 08:08
Location: bucks, UK
Favorite Team: STG
Gender: Male
phpBB Knowledge: 8

Re: [DEV] BBcode Permissions

Postby killer-kurt » 10 May 2008, 15:13

ok
Ultimate Online Advertising! for all your advertising needs!
I am the Confused about deck 15 Crew! Wann join?
User avatar
killer-kurt    
Ensign
Ensign
 
Posts: 99
Joined: 03 Jan 2008, 13:52
Gender: Male

Next

Return to phpBB3 Customizations

Who is online

Users browsing this forum: Baidu [spider] and 12 guests