Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: winrules on September 01, 2006, 12:08:38 PM

Title: BBC Permissions Mod
Post by: winrules on September 01, 2006, 12:08:38 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=449)
Rate this Mod (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=449)

This mod will add permissions for every BBC tag. They can be changed in the global permissions for each membergroup. If a member is in a group that isn't allowed to use a tag, the tag won't be parsed. This mod also works for custom tags added in other mods.
Title: Re: BBC Permissions Mod
Post by: vbgamer45 on September 01, 2006, 12:14:49 PM
Excellent idea for a mod! I can see this being used many people. Good job!
Title: Re: BBC Permissions Mod
Post by: londonhogfan on September 01, 2006, 12:21:03 PM
beautiful.  you have made my day.

anyway to get it for RC2 also?  I am waiting for TinyPortal to release an update for RC3.  If not I can wait... Its worth it.

Thanks soo much for the mod.

lHf
Title: Re: BBC Permissions Mod
Post by: 1948Pal on September 01, 2006, 12:50:45 PM
Great idea. great mod. Great job. Makes many people happy :)
Title: Re: BBC Permissions Mod
Post by: L.G.S on September 01, 2006, 12:51:37 PM
Hey great mod.

For some reason I cannot pick codes though, it just says "Allow all tags" with a tick box, if I untick it nothing happens and I cannot pick which to use.

If I untick it and save, it reticks itself.

I've checked all the files, the mod installed properly.
Title: Re: BBC Permissions Mod
Post by: winrules on September 01, 2006, 02:32:32 PM
Quote from: londonhogfan on September 01, 2006, 12:21:03 PM
beautiful.  you have made my day.

anyway to get it for RC2 also?  I am waiting for TinyPortal to release an update for RC3.  If not I can wait... Its worth it.

Thanks soo much for the mod.

lHf
Try adding ";version_emulate=1.1 RC3" to th epackage manager URL.

Quote from: L.G.S on September 01, 2006, 12:51:37 PM
Hey great mod.

For some reason I cannot pick codes though, it just says "Allow all tags" with a tick box, if I untick it nothing happens and I cannot pick which to use.

If I untick it and save, it reticks itself.

I've checked all the files, the mod installed properly.
Does it show individual checkboxes for each BBC tag (like the screenshot on the mod site page)?
Title: Re: BBC Permissions Mod
Post by: L.G.S on September 01, 2006, 02:41:10 PM
No, just "Allow all tags" where they should be
Title: Re: BBC Permissions Mod
Post by: winrules on September 01, 2006, 02:44:08 PM
Wierd...Can you go to the BBC manager (Admin -> Posts and Topics -> Bulletin Board Code) and see if there's checkboxes for each tag there?
Title: Re: BBC Permissions Mod
Post by: L.G.S on September 01, 2006, 03:32:33 PM
http://img235.imageshack.us/img235/323/bbbbil5.jpg

Nope, just like the permissions
Title: Re: BBC Permissions Mod
Post by: winrules on September 01, 2006, 03:38:09 PM
Quote from: L.G.S on September 01, 2006, 03:32:33 PM
http://img235.imageshack.us/img235/323/bbbbil5.jpg

Nope, just like the permissions
OK it's not a problem with the mod then. Can you pm me the parse_bbc function in Subs.php?
Title: Re: BBC Permissions Mod
Post by: L.G.S on September 01, 2006, 03:49:36 PM
sent ;)
Title: Re: BBC Permissions Mod
Post by: winrules on September 01, 2006, 04:22:58 PM
Quote from: L.G.S on September 01, 2006, 03:49:36 PM
sent ;)
OK Thanks. If anyone else has issues with this mod and has the Hide Tag Special Mod installed, see my post here (http://www.simplemachines.org/community/index.php?topic=32954.msg710886#msg710886).
Title: Re: BBC Permissions Mod
Post by: L.G.S on September 01, 2006, 05:35:53 PM
Thanks for sorting my problem out.
Title: Re: BBC Permissions Mod
Post by: Poreman on September 07, 2006, 04:12:12 PM
Quote from: winrules on September 01, 2006, 12:08:38 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=449)
Rate this Mod (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=449)

This mod will add permissions for every BBC tag. They can be changed in the global permissions for each membergroup. If a member is in a group that isn't allowed to use a tag, the tag won't be parsed. This mod also works for custom tags added in other mods.

I have a member who seems to think we don't know the meaning of any words so he links multiple words to the wiki dictionary thing.  I installed the BBC tag mod, made a new usergroup, added the user to the group, turned off the IURL and the URL tags in permissions. But the URL link still works in his posts. Will the new usergroup override the members group?  I don't know if I understand all of the functionality of this mod. 

Any help explaining what needs to be done to make this work would be Great

Thanks
Title: Re: BBC Permissions Mod
Post by: londonhogfan on September 07, 2006, 04:26:12 PM
I don't have the mod yet because TinyPortal hasn't upgraded for rc3 yet, but my guess would be that he is in another group that allows the BBC.

Might be nice if the mod is updated again to have an allow | disallow | deny to the permissions.
Title: Re: BBC Permissions Mod
Post by: winrules on September 07, 2006, 04:51:51 PM
Quote from: Poreman on September 07, 2006, 04:12:12 PM
Quote from: winrules on September 01, 2006, 12:08:38 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=449)
Rate this Mod (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=449)

This mod will add permissions for every BBC tag. They can be changed in the global permissions for each membergroup. If a member is in a group that isn't allowed to use a tag, the tag won't be parsed. This mod also works for custom tags added in other mods.

I have a member who seems to think we don't know the meaning of any words so he links multiple words to the wiki dictionary thing.  I installed the BBC tag mod, made a new usergroup, added the user to the group, turned off the IURL and the URL tags in permissions. But the URL link still works in his posts. Will the new usergroup override the members group?  I don't know if I understand all of the functionality of this mod. 

Any help explaining what needs to be done to make this work would be Great

Thanks

Has he made any new posts? Because this won't work on any old posts. Maybe I'll rewrite it so it does.
Title: Re: BBC Permissions Mod
Post by: Poreman on September 08, 2006, 08:49:57 AM
Quote from: londonhogfan on September 07, 2006, 04:26:12 PM
I don't have the mod yet because TinyPortal hasn't upgraded for rc3 yet, but my guess would be that he is in another group that allows the BBC.

Might be nice if the mod is updated again to have an allow | disallow | deny to the permissions.

Not sure, Seems the Global Permissions overides this.  Don't know.  All I know is the permission select box's are in the usergroup permissions, but whether checked or unchecked seems don't Change anything, I'll keep an eye on this thread and see if anyone comes up with instructions on how to use this

Thanks
Title: Re: BBC Permissions Mod
Post by: winrules on September 08, 2006, 03:51:24 PM
Did you see my previous post?
Title: Re: BBC Permissions Mod
Post by: Poreman on September 08, 2006, 05:25:58 PM
Ok, I thought it would work on previous post as well as future post. my error, but if you can make it retro-active to all, that would be nice. :)

Thanks
Title: Re: BBC Permissions Mod
Post by: Gobo on October 29, 2006, 08:39:01 PM
hi this mod is good but it fails in certain aspects...

#1 the links are still visible as text within the URL tags
Suggestion: It would be better to have an replacement?

#2 if i post my link straight like this http://path-to-peace.net
it shows up as a hyperlink so the purpose of URL BB code is defeated

Any solutions for this?

Thanks
Title: Re: BBC Permissions Mod
Post by: winrules on October 30, 2006, 03:49:12 PM
I'll have to revisit this mod...Right now it only checks for things on posting not in realtime, which can be a problem.
Title: Re: BBC Permissions Mod
Post by: Gobo on October 30, 2006, 05:06:45 PM
its a great mod all the same :D thanks

lookin forward to ur next version
Title: Re: BBC Permissions Mod
Post by: Gobo on October 31, 2006, 07:26:24 AM
h winrules

just to let u know i noticed a small error in this mod

after installing EVERYONE (except the admin) were unable to use the "quote" tag anymore.

I checked and double checked the permissions for each and every group individually (I have advanced permissions for post based membergroups on) and all the permissions were proper. Yet this was occuring.

Just to let u know
aku
Title: Re: BBC Permissions Mod
Post by: Poreman on October 31, 2006, 08:04:21 AM
Quote from: akulion on October 31, 2006, 07:26:24 AM
h winrules

just to let u know i noticed a small error in this mod

after installing EVERYONE (except the admin) were unable to use the "quote" tag anymore.

I checked and double checked the permissions for each and every group individually (I have advanced permissions for post based membergroups on) and all the permissions were proper. Yet this was occuring.

Just to let u know
aku

I found this true at my forums to, so I had to un-install the mod. Now waiting to see if the bugs get worked out in new versions before I try it again.

Poreman
Title: Re: BBC Permissions Mod
Post by: winrules on October 31, 2006, 03:39:45 PM
What happens when they try to quote? Does it not show the quote button, or does it not parse the quote?
Title: Re: BBC Permissions Mod
Post by: Poreman on October 31, 2006, 05:51:48 PM
Quote from: winrules on October 31, 2006, 03:39:45 PM
What happens when they try to quote? Does it not show the quote button, or does it not parse the quote?
It Doesn't parse the qoute? you get something like


[quote]
Context of qoute
[/quote]



Showing in the text message
Title: Re: BBC Permissions Mod
Post by: Gobo on October 31, 2006, 07:05:24 PM
same it dosent get parsed
Title: Re: BBC Permissions Mod
Post by: Amicus on November 01, 2006, 11:21:58 AM
Quote from: akulion on October 31, 2006, 07:05:24 PM
same it dosent get parsed
Same for me.

And another one interested in deactivating automatic URL parsing:

Quote from: akulion on October 29, 2006, 08:39:01 PM
#2 if i post my link straight like this http://path-to-peace.net
it shows up as a hyperlink so the purpose of URL BB code is defeated

Any possibility preventing this automatic parsing for "newbie" members, but not for "normal" users?
Title: Re: BBC Permissions Mod
Post by: bebe on November 02, 2006, 02:32:40 AM
The "quote" tag works at my site. It parsed.

I have problem in activating or de-activating the BBC Permission initially, but i found the way to make it works.
I have to uncheck the "Allow all tags" first, then check on those tags that i want to allow.
If i don't do it this way but just uncheck those tags that i don't want to allow, the permission won't work correctly.

Hope this helps.
Title: Re: BBC Permissions Mod
Post by: Amicus on November 02, 2006, 08:04:53 AM
Found a possible solution to the quote problem:

If a group is edited, and all bbc tags are selected (to allow all tags), the row for that group should be deleted in the db-table bbc_permissions.
Instead the db-row of that group gets cleared, with no bbc tags left in this row.
This results in all bbc tags disallowed instead of no tags.

So the solution is to replace those 4 lines in ManagePermissions.php:


db_query("
REPLACE {$db_prefix}bbc_permissions
(ID_GROUP, disallowed)
VALUES ($_GET[group], '$disallowed')", __FILE__, __LINE__);


with this block:


if ($disallowed != '') {
db_query("
REPLACE {$db_prefix}bbc_permissions
(ID_GROUP, disallowed)
VALUES ($_GET[group], '$disallowed')", __FILE__, __LINE__);
} else {
db_query("
DELETE FROM {$db_prefix}bbc_permissions
WHERE ID_GROUP = $_GET[group]", __FILE__, __LINE__);
}
Title: Re: BBC Permissions Mod
Post by: Amicus on November 02, 2006, 08:10:35 AM
Anyway, im still searching for a solution to the automatic url-code parsing...
Title: Re: BBC Permissions Mod
Post by: Gobo on November 02, 2006, 03:13:47 PM
thanks for the solution

but im not trying it out on my live board (http://path-to-peace.net/forum/Smileys/default/crylaugh.gif) im afraid ill break everything
Title: Re: BBC Permissions Mod
Post by: winrules on November 02, 2006, 04:27:58 PM
Amicus, that should have no effect on the quote problem. Currently it will just insert a blank row. The automatic url parsing isn't a bug, but rather a limitation of the current way it does it.

I am completely unable to reproduce the problem with the quote tag. Can someone having that problem send me a test user with the abbillity to manage permissions, or a dump of the bbc_permissions table.
Title: Re: BBC Permissions Mod
Post by: Amicus on November 03, 2006, 11:34:19 AM
Hi winrules,

ok youre right, the url parsing isnt a bug. im anyway searching for a solution to this "problem"..

But the quote-bug..ok it isnt a "quote"-bug. It's an "all-tags"-bug..or something like this:
Freshly installed BBC Permissions mod, on SMF 1.1 RC3.
Go to Group Admincenter -> Members -> Permissions.
Select "modify" for "regular members", go to end of page and click on "save changes" without making any changes...

And now try to post any bbc tag as a regular member - doesn't work anymore. No bbc tags are parsed.
Only solution is to deselect at least one bbc-tag in the permissions, to get the other tags "back"...

That is the bug my posted code-changes fixed...

Greets,
Amicus
Title: Re: BBC Permissions Mod
Post by: londonhogfan on December 07, 2006, 05:56:56 PM
could we get an update for 1.1 when you have time.  I have been wanting to put this mod to use for a long time.

Thanks.
Title: Re: BBC Permissions Mod
Post by: Visualcode on January 11, 2007, 06:02:01 PM
Winrules, there seems to be some problem with your mod. I as administrator was having trouble being able to use ANY BBC codes. If I logged on a non-admin everything was fine. Sometimes my codes as an admin would work, but the tag would appear outside the code, for example:

[img]http://www.google.com/images/firefox/google.gif[/img]
would show as
[img](http://www.google.com/images/firefox/google.gif)[/img]

Other times, it would show as:
[img]http://www.google.com/images/firefox/google.gif[/img]

After uninstalling this modification, everything seems to work fine. So, I assume there is some error in handling administrators with this mod.

For more information, visit my previous topic:
http://www.simplemachines.org/community/index.php?topic=141184
Title: Re: BBC Permissions Mod
Post by: Lanthan on February 23, 2007, 04:21:57 AM
Hai Winrules and Visualcode,
I've got the same Problem... and solved it.

It's in subs-post.php.

Search for this:
   // Now do the actual finding and replacing.
   $message = str_replace($find, $replace, $message);

and replace it with:
   // Now do the actual finding and replacing.
   if (!empty($disallowed))
      $message = str_replace($find, $replace, $message);


This should fix it.

@Winrules, perhaps you could fix it in your mod too.

Best Regards
Lanthan
Title: Re: BBC Permissions Mod
Post by: nami_eiku on March 18, 2007, 04:20:22 PM
I have had an issue with this mod.
I installed it in a 1.1.1 smf upgraded to 1.1.2 to prohibit guests from posting urls and images (I was trying to control spam), but since I configured those permissions, no-one on other membergroups could post images nor urls (I have'nt try with other bbcodes). It just displayed the bbcode without parsing it.
At first I didn't know what was causing that, since my forum has more mods installed, so, I re-installed the whole forum, fresh 1.1.2 version.
Then, I went installing all the mods I had before and tested them, and when I installed this mod the trouble came back.
Fortunately, after uninstallation all went OK again.
Title: Re: BBC Permissions Mod
Post by: Poreman on May 07, 2007, 11:28:45 PM
seems to have a problem made a test usergroup put a test user in it. unchecked the http in permissions.  Made a post with the test user using a http://www.anysite.com it still showed as a link didn't turn the http off.  went back and checked the permissions in test usergroup, http still unchecked but didn't make a change in the posting any reasoning behind this or do I need to uninstall anf forget this mod?

Poreman
Title: Re: BBC Permissions Mod
Post by: BlinkyBill01 on June 03, 2007, 03:50:11 PM
Problem:

If an Administrator does not belong to another usergroup, the administrator can not use any [ tags ] due to not being able to set permissions on himself. This is very problematic for the board admins.

Also, all of the tags seem to not work correctly, even when all permissions are set as all available to all users/groups. Example:

the IMG tag changes the image link to : http://hxxp: www1. istockphoto. com/file_thumbview_approve/424975/2/istockphoto_424975_doesn_t_work. jpg

it spaces out the URL and removes the slash
Title: Re: BBC Permissions Mod
Post by: AfroSamurai on July 20, 2007, 11:18:50 AM
Hi everyone!  :)

So, I just wanted to know if the work on this wonderful MOD is still in progress? Are all the bugs fixed? I would really like to use it on my forum when it will be functioning correctly.

Thanks for your answers.

AfroSamurai.
Title: Re: BBC Permissions Mod
Post by: TrueSatan on July 20, 2007, 11:50:07 AM
@ AfroSamurai

The developer, winrules, indicates that he is on hiatus so my advice to you would be to take that as an indication that he may not have time to make the number of changes replies on this topic indicate may be required. At some, undetermined, time in the future this may change and the requests may all be answered but for now either use the mod as it is or not...the choice is yours.
Title: Re: BBC Permissions Mod
Post by: AfroSamurai on July 20, 2007, 02:30:51 PM
OK thanks for your answer TrueSatan...

Just would like to know if some of you people have tested it with the corrections that some users have put in the topic... is it enough to make it work fine or is there still some issues? Because if its just the changes of codes that where posted, I can manage to copy/past it on my own.
Title: Re: BBC Permissions Mod
Post by: TrueSatan on July 20, 2007, 05:06:52 PM
If I were you I'd open a test forum...a fresh install of SMF 1.1.3 on a fresh database...and try it in that. The modifications posted may be perfectly fine but seeing as we've no way to judge how well or extensively they've been tested, and the developer of this mod may not have had time to review them, you would be using them at your own risk. Unfortunately code that may work on the posters configuration of SMF may not work on your forum so try it with all the mods you want to use added to that test forum before you add it to a live/production forum.
Title: Re: BBC Permissions Mod
Post by: James Z. on September 15, 2007, 05:35:52 PM
this mod fails to install for me,
the system says it's not a package or it's corrupted

I use SMF 1.1.3 with default theme
Title: Re: BBC Permissions Mod
Post by: TrueSatan on September 16, 2007, 05:48:42 AM
 The mod download page clearly states that it is for SMF 1.1.2 In this topic you will find a lot of discussion about problems with the mod and a number of suggested bug fixes...you would need to apply them for yourself if you were to use the mod...to get it to install then you can use version emulate...at your own risk as the mod is not intended for the version of SMF that you use and has known issues:

Put ;emulate_version=1.1.2 at the end of the Package Manager URL
Title: Re: BBC Permissions Mod
Post by: James Z. on September 17, 2007, 04:16:53 PM
Quote from: TrueSatan on September 16, 2007, 05:48:42 AM
The mod download page clearly states that it is for SMF 1.1.2 In this topic you will find a lot of discussion about problems with the mod and a number of suggested bug fixes...you would need to apply them for yourself if you were to use the mod...to get it to install then you can use version emulate...at your own risk as the mod is not intended for the version of SMF that you use and has known issues:

Put ;emulate_version=1.1.2 at the end of the Package Manager URL

I'm not very good with these things :(

thanks...
Title: Re: BBC Permissions Mod
Post by: Krysia on April 05, 2008, 01:50:06 PM
Anyone know if this mod is still inactive?
Title: Re: BBC Permissions Mod
Post by: Harvester on April 06, 2008, 08:53:21 AM
I really wish this mod would be updated for 1.1.4 and the developer would continue work on it. It sounds like just what I am searching for.

I want a way that guests can NOT see any images or links...
Title: Re: BBC Permissions Mod
Post by: Krysia on April 27, 2008, 08:09:31 PM
I also wish this mod could be in effect for 1.1.4. I have members who constantly insist on changing the color of their text, which is distracting, annoying, and inevitably clashes with whatever color scheme the site uses.

I'm sure I'm not the only Admin who's experienced this. ;)
Title: Re: BBC Permissions Mod
Post by: Atheo on June 01, 2008, 09:13:02 PM
Anyone know if this works on 1-1-5?
Title: Re: BBC Permissions Mod
Post by: Krysia on June 14, 2008, 08:16:09 PM
Is this mod in limbo?
Title: Re: BBC Permissions Mod
Post by: Alpay on July 18, 2008, 05:51:19 AM
hi;
do you thinkin adaptation for modification on smf version 2.0 beta 3.1 ?
Title: Re: BBC Permissions Mod
Post by: techster on July 21, 2008, 10:45:08 AM
I have this MOD installed, but when spammers use uppercase URL BBCode tags, the links work.  Lowercase does not.  Does anyone know of a way to fix this?

Thanks.
Title: Re: BBC Permissions Mod
Post by: Hoochie Coochie Man on August 12, 2008, 10:52:57 AM
Thanks for this beautiful mod.
Title: Re: BBC Permissions Mod
Post by: Sander on October 04, 2008, 05:11:31 PM
Oh please, make it work for 1.1.6...
Title: Re: BBC Permissions Mod
Post by: s_bastian on October 09, 2008, 05:08:36 PM
I'm trying this on a fresh 1.1.6 and it actually works BUT:

- there is a bug in the enabling/disabling system: in you press "check all" and save, everything gets disabled, even if it stays checked when reloading. eg:

I disable a tag -> make a post -> tag won't get parsed
I enable the tag by single cliking it -> make a new post -> tag GET parsed
BUT
I enable the tag (and all other) by pressing "check all" -> NO TAG get parsed, as if I had disabled them all.

in NO CASE posts get changed, if tag is enabled when a post is done, it continue to get parsed (this mod acts when post is saved on DB, so it is not "retroactive") ;)

if by mistake you press "check all" and save, no tag will be parsed anymore. To reenable the tags you must deselect them ALL, save, and re-select them ONE BY ONE, then save. Everything will work.

If you know this, you can use it on 1.1.6. And I hope this will also help to fix it ;)
Title: Re: BBC Permissions Mod
Post by: Sabre™ on October 11, 2008, 08:06:16 PM
hmmm strange.
I just installed into SMF 1.1.6, and have no problems as previously stated by other users.
This is as admin.
I will try user group that is restricted. If I do not return to reply, then consider me one of the lucky ones :D lol
Title: Re: BBC Permissions Mod
Post by: Sabre™ on October 14, 2008, 09:46:35 PM
Well, Im not one of the lucky ones!! lol

A day or so later, and EVERYONE except me "the Admin" can use bbcodes.  They just dont parse for me! LOL

Dagnabbit!!
Is there some way to change this is the db, or somewhere else??
Its rather embarrassing when even your guests can out bbcode you! LOL

signed
            Non BBcode Admin
Title: Re: BBC Permissions Mod
Post by: Sander on October 16, 2008, 07:53:19 AM
The problem is, that something goes wrong, when an 'empty' record for a membergroup exists in the smf_bbc_permissions table. With 'empty' I mean, that there's nothing in the disallowed-column.

So, the check for the disallowed-field being empty should be enhanced, or you should delete the record for a membergroup from the smf_bbc_permissions table, when all permissions are enabled.


Title: Re: BBC Permissions Mod
Post by: Krysia on December 04, 2008, 11:14:27 AM
Does anyone know off the top of their head if this kind of feature is built into 2.0?
Title: Re: BBC Permissions Mod
Post by: hofdiggity on December 04, 2008, 11:28:44 PM
I have tried installing it on 2.0 beta 4, and it did not work with simple click install.

However, I have managed to conclude that the only major issue is a db inquiry issue.  There is some trouble with installing the correct tables, querying the correct tables, or some combination of creating and query-ing the correct tables.

I believe the issue is that the coding is refering to a table's old alias, and due to the upgrade, the table has been renamed, but I have yet to figure out which table is labeled incorrect.


And if you can't tell, I am really excited about this mod.  It is such a GREAT tool!  Awesome Job to  WinRules!
Title: Re: BBC Permissions Mod
Post by: hofdiggity on December 05, 2008, 12:29:51 AM
This is the error I receive:

Fatal error: Call to undefined function db_query() in /home/content/d/i/g/diggitydog1/html/Forum/Packages/temp/install.php on line 3

And the only differences I could see (keep in mind I am a noob coder), is in SMF 1.x the table was 'ID_GROUP', and in SMF 2.x it is 'id_group'.  Also, there is a reference to 'boardid' in 1.x, but in 2.x it seems to be 'pid'.

I am going to try a different php database installer to see if that will make any difference.
Title: Re: BBC Permissions Mod
Post by: hofdiggity on December 05, 2008, 01:44:40 AM
After many attempts at modding this, I realize the database queries must be re-written in smf 2.0 language, and I am not smart enough to figure it out.

Any help would be greatly appreciated.
Title: Re: BBC Permissions Mod
Post by: ZeUsSaN on February 01, 2009, 08:03:32 PM
2.0 beta 4?
Title: Re: BBC Permissions Mod
Post by: Krysia on February 22, 2009, 09:09:49 PM
Oh, drag.

This kind of thing would be ideal to have built into the admin section of SMF...

*hint, hint to the Smarter Peeps, lol*
Title: Re: BBC Permissions Mod
Post by: sharingsunshine on August 12, 2009, 05:37:23 PM
Hello,

I have installed your mod on a 1.1.10 installation.  I seem to have the same problem as the gentleman on the first page of this thread.     

For some reason I cannot pick codes though, it just says "Allow all tags" with a tick box, if I untick it nothing happens and I cannot pick which BBC code to use.

Consequently, it doesn't show individual checkboxes for each BBC tag (like the screenshot on the mod site page)?

If I go to the admin and post and topics then bbc code it does show the individual bbc codes listed and with many of them ticked.  I have tried it with the url tag and make links an url ticked and with both unticked I still seem to get the same result.  It doesn't work, properly.

Please advise.

Thanks

Randal
Title: Re: BBC Permissions Mod
Post by: ac19189 on February 18, 2010, 03:12:15 PM
Trying to get this mod to work on 1.1.11 anyone have some tips? You cant access the mod at all under the admin area. I thought as much might happen but as of now its my only option. :)
Title: Re: BBC Permissions Mod
Post by: OnlineFunCorner on August 20, 2010, 08:47:50 AM
Great Work
Please Guide Me
I Want This MOD For 2.0 RC1
Or
Tell Me Manual Instructions For 2.0 RC1
Please Please Please
Title: Re: BBC Permissions Mod
Post by: OnlineFunCorner on August 22, 2010, 01:48:53 AM
Quote from: Dr.IT on August 20, 2010, 08:47:50 AM
Great Work
Please Guide Me
I Want This MOD For 2.0 RC1
Or
Tell Me Manual Instructions For 2.0 RC1
Please Please Please
Please AnyBody There For Help?
Title: Re: BBC Permissions Mod
Post by: dabears on September 02, 2010, 08:41:23 AM
The biggest issue without looking too deep is the queries need re-writing as mentioned by a previous poster.
Title: Re: BBC Permissions Mod
Post by: qubbah on October 29, 2010, 01:12:13 PM
any update/similar with this mod?
Title: Re: BBC Permissions Mod
Post by: gbsothere on October 29, 2010, 02:04:40 PM
Yagiz has ported it to RC3, but he's waiting to hear back from the Custom Team before formally presenting the update.   :)
Title: Re: BBC Permissions Mod
Post by: Phat^Trance on January 23, 2011, 04:25:57 PM
cannot get this mod work with smf 1.1.11. installation went ok, but i cannot use bbc
Title: Re: BBC Permissions Mod
Post by: snyperthugs on January 26, 2011, 05:05:42 PM
This mod interferes with the [HTML] BBC Tag mod  :(     Anybody know how to fix that?
Title: Re: BBC Permissions Mod
Post by: Biology Forums on March 15, 2011, 10:50:38 PM
Thank you, it works now.
Title: Re: BBC Permissions Mod
Post by: bfallgren on April 07, 2011, 03:50:06 PM
Any chances this mod will get updated? I currently cannot use it on my forums, it takes away everyone's right to use bbc, even if I give them permission to use all bbcode.
Title: Re: BBC Permissions Mod
Post by: virtualdave on June 14, 2011, 11:03:22 PM
This could be a very useful tool for many of us. I had it working, somewhat on an older version of SMF. Having the bbc code for url assignable to specific membergroups would be valuable. I have a constant problem with members posting links to everything under the sun. If I had an inbound link for every out bound one that gets attempted I'd be golden.
Title: Re: BBC Permissions Mod
Post by: Zagdul on July 03, 2011, 02:40:27 AM
Quote from: gbsothere on October 29, 2010, 02:04:40 PM
Yagiz has ported it to RC3, but he's waiting to hear back from the Custom Team before formally presenting the update.   :)
Any update on a 2.0 release?

Title: Re: BBC Permissions Mod
Post by: 017 on September 15, 2011, 08:47:01 PM
Would anyone be willing to convert this to SMF 2.0? I (and a lot of other people I bet) could really use this. (Honestly, this should be a standard feature on SMF...)
Title: Re: BBC Permissions Mod
Post by: Biology Forums on September 15, 2011, 10:43:19 PM
Quote from: 017 on September 15, 2011, 08:47:01 PM
Would anyone be willing to convert this to SMF 2.0? I (and a lot of other people I bet) could really use this. (Honestly, this should be a standard feature on SMF...)

Downgrade to 1.x :P ha ha Just kidding
Title: Re: BBC Permissions Mod
Post by: 017 on September 16, 2011, 12:13:48 AM
Haha, but yeah. It'd be good to have. Hell, I think I'm willing to pay for it, if that helps any.
Title: Re: BBC Permissions Mod
Post by: Iomega0318 on October 30, 2011, 06:45:26 PM
Anyone ever take a stab at a 2.0 version of this?

I might try but I am not very familiar with the smf database queries.. modding the files are one thing but the database coding would be something new for me.. anyways I have read through all the posts and it seems the database parts are all that need fixing so I will try my luck..
Title: Re: BBC Permissions Mod
Post by: Iomega0318 on November 01, 2011, 09:44:21 PM
So I found out it's not just the database info that has changed but the templates as well, the following is supposed to be changed in /Themes/default/ManagePermissions.template.php.. if anyone can help me "convert" this lol I can continue, so far I have made the database edits and a few other errors were fixed but I can not test it without this section of code..

Quote from: (Find)echo '
</tr><tr class="windowbg2">
<td colspan="2" align="right"><input type="submit" value="', $txt['permissions_commit'], '" />&nbsp;</td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';

Quote from: (Replace)// Show checkboxes for every BBC tag.
if (!$context['local'])
{
echo '
</tr>
<tr class="catbg">
<td colspan="2" align="center">
BBC Permissions - <span style="color: red;">', $context['group']['name'], '</span>
</td>
</tr>
<tr class="windowbg2">
<td colspan="2" align="left">
<fieldset id="allowedBBCTags">
<legend>' . $txt['permissions_bbc_select'] . '</legend>
<table width="100%"><tr>';
foreach ($context['bbc_tags'] as $column)
{
echo '
<td valign="top">';
foreach ($column as $tag)
echo '
<input type="checkbox" name="bbc_allowed[]" id="tag_' . $tag['tag'] . '" value="' . $tag['tag'] . '"' , $tag['disallowed'] ? '' : ' checked="checked"' , ' class="check" /><label for="tag_' . $tag['tag'] . '">' . $tag['tag'] . '</label><br />';
echo '
</td>';
}
echo '
</tr></table><br />
<input type="checkbox" id="select_all" onclick="invertAll(this, this.form, \'bbc_allowed\');"', $context['bbc_all_allowed'] ? ' checked="checked"' : '', ' class="check" /><label for="select_all"><i>' . $txt['permissions_bbc_all'] . '</i></label>
</fieldset>
</td>
</tr>';
}

echo '
</tr><tr class="windowbg2">
<td colspan="2" align="right"><input type="submit" value="', $txt['permissions_commit'], '" />&nbsp;</td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';

The section I believe it is looking for is this:
echo '
<div class="righttext padding">
<input type="submit" value="', $txt['permissions_commit'], '" class="button_submit" />
</div>';

echo '
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
Title: Re: BBC Permissions Mod
Post by: nikan on December 02, 2011, 04:42:34 AM
Updated for SMF 1.1.16 and 2.0.2
I'll appreciate any feedback.

Fixed the log errors created when bbc tags are deselected (Thanks Iomega0318)
Title: Re: BBC Permissions Mod
Post by: Apllicmz on December 25, 2011, 03:17:46 PM
when Update dont forget portuguese

<file name="$languagedir/ManagePermissions.portuguese_pt.php" error="skip">
   
        <operation>
            <search position="replace"><![CDATA[
$txt['permissions_with_selection'] = 'Com a sele&ccedil;&atilde;o';
]]></search>
            <add><![CDATA[
$txt['permissions_bbc_select'] = 'Selecione as tags BBC que este grupo pode usar';
$txt['permissions_bbc_all'] = 'Permitir que todas as tags';

$txt['permissions_with_selection'] = 'com a sele&ccedil;&atilde;o';
]]></add>
        </operation>
       
    </file>
   
    <file name="$languagedir/ManagePermissions.portuguese_pt-utf8.php" error="skip">
   
        <operation>
            <search position="replace"><![CDATA[
$txt['permissions_with_selection'] = 'Com a sele&ccedil;&atilde;o';
]]></search>
            <add><![CDATA[
$txt['permissions_bbc_select'] = 'Selecione as tags BBC que este grupo pode usar';
$txt['permissions_bbc_all'] = 'Permitir que todas as tags';

$txt['permissions_with_selection'] = 'com a sele&ccedil;&atilde;o';
]]></add>
        </operation>
       
    </file>
   
    <file name="$languagedir/ManagePermissions.portuguese_brazilian.php" error="skip">
   
        <operation>
            <search position="replace"><![CDATA[
$txt['permissions_with_selection'] = 'Com a sele&ccedil;&atilde;o';
]]></search>
            <add><![CDATA[
$txt['permissions_bbc_select'] = 'Selecione as tags BBC que este grupo pode usar';
$txt['permissions_bbc_all'] = 'Permitir que todas as tags';

$txt['permissions_with_selection'] = 'com a sele&ccedil;&atilde;o';
]]></add>
        </operation>
       
    </file>
   
    <file name="$languagedir/ManagePermissions.portuguese_brazilian-utf8.php" error="skip">
   
        <operation>
            <search position="replace"><![CDATA[
$txt['permissions_with_selection'] = 'Com a sele&ccedil;&atilde;o';
]]></search>
            <add><![CDATA[
$txt['permissions_bbc_select'] = 'Selecione as tags BBC que este grupo pode usar';
$txt['permissions_bbc_all'] = 'Permitir que todas as tags';

$txt['permissions_with_selection'] = 'com a sele&ccedil;&atilde;o';
]]></add>
        </operation>
       
    </file>

Title: Re: BBC Permissions Mod
Post by: Iomega0318 on April 08, 2012, 08:00:05 PM
Quote from: nikan on December 02, 2011, 04:42:34 AM
Updated for SMF 1.1.15 and 2.0.1
I'll appreciate any feedback.
Been a while since I was last able to get on and look at things, but just downloaded this and seems to work great! I haven't done to much testing but it installed good, shows up fine and seems to work ok. I think you should put this one up in the mods where more people can find it. Great job btw!
Title: Re: BBC Permissions Mod
Post by: Iomega0318 on April 23, 2012, 05:03:05 PM
Spoke to soon.. just now created a new group and was modifying permissions, etc. this was the first time I actually unchecked some permissions to "disallow" them..

Here's the errors in my log:
http://www.uofreeshards.net/index.php?action=admin;area=permissions;sa=modify;group=17
8: Undefined variable: disallowed
File: /***/Sources/ManagePermissions.php
Line: 913

http://www.uofreeshards.net/index.php?action=admin;area=permissions;sa=modify;group=17
2: in_array() expects parameter 2 to be array, null given
File: /***/Sources/ManagePermissions.php
Line: 913

http://www.uofreeshards.net/index.php?action=admin;area=permissions;sa=modify2;group=17;pid=0
2: Missing argument 5 for smf_db_insert(), called in /uof/Sources/ManagePermissions.php on line 1083 and defined
File: /***/Sources/Subs-Db-mysql.php
Line: 589


**EDIT**
Looking at my table however it does show that it input the group ID and the disallowed bbcode, so no idea why it threw those errors.. it threw about 100 errors btw, they were just all duplicates of those..
Title: Re: BBC Permissions Mod
Post by: nikan on April 25, 2012, 03:20:56 AM
Fixed the log errors. The ~100 errors were the tags.
Title: Re: BBC Permissions Mod
Post by: Iomega0318 on April 25, 2012, 03:31:39 AM
Quote from: nikan on April 25, 2012, 03:20:56 AM
Fixed the log errors. The ~100 errors were the tags.
haha ok lol, will install the new mod and test it out, thank you.

**EDIT**
Just tested new mod, no errors.
Title: Re: BBC Permissions Mod
Post by: Chalky on June 17, 2017, 06:39:24 AM
Has anyone else noticed this mod no longers appears to work since updating to 2.0.14?
Title: Re: BBC Permissions Mod
Post by: Arnox on May 07, 2018, 08:31:22 PM
Quote from: Chalky on June 17, 2017, 06:39:24 AM
Has anyone else noticed this mod no longers appears to work since updating to 2.0.14?

It actually caused me to not be able to make posts (or even install packages weirdly enough) due to PHP errors. It looks like this mod is dead for anything 2.0.14 and beyond. :(
Title: Re: BBC Permissions Mod
Post by: Arnox on May 11, 2018, 04:07:05 PM
Bump. I fixed it.


-edit- attachment removed as the existing license does not allow redistribution of altered files (Kindred)