PDA

View Full Version : Faster change of forumpermissions


Xenon
02 Oct 2002, 13:54
Such a system has been requested several times, and now i've coded it.

With this hack you can change the forumpermissions of a usergroup for all forums at once, or change the forumpermissions of one forum for all usergroups at once.

the permission form is also created dynamical, so whenever you add a permission into the database (like canviewtitles or whatever) you can imediately use it with my forms.

Screenshots are following

Hack version 2.02
Known Bugs: None
Planned upgrades: none for now

Xenon
02 Oct 2002, 13:57
Forumpermission overview:

Xenon
02 Oct 2002, 13:58
edit usergroup

Xenon
02 Oct 2002, 13:58
edit forum

geniuscrew
02 Oct 2002, 14:04
Thankyou - Looks very handy indeed.

Will install later tonight =)

LawnDawg
02 Oct 2002, 15:16
omg, bless you, haha

very nice work, very very useful.

ty

N9ne
02 Oct 2002, 16:15
Looks good, Will install :)

Goldknight
02 Oct 2002, 16:15
Very useful hack! Thanks Xenon (hope VB3 developers look at this hack and take this into consider)

/me install!

Dean C
02 Oct 2002, 16:38
cool idea :D

- miSt

Xenon
02 Oct 2002, 17:28
Originally posted by Goldknight
(hope VB3 developers look at this hack and take this into consider)

as i know they have rewritten the permission system to a dynamical one (as far as i could read out beyond the lines ;))
so perhaps your hope will become true :)

if not i'll code it in vb3 ;)

wolfman
02 Oct 2002, 18:02
OH wow though I have not upgraded to vbb 2.2.8 and I am using 2.2.7 do you know if this should work with it or not?

Now from what I have seen in the screenshots this looks to me a must have hack for any vbb, this really will make it much easier to apply permissions.

Smoothie
02 Oct 2002, 18:12
My fingers thank you! Especially my clicker finger. :)

Xenon
02 Oct 2002, 18:12
there were no changes in forumpermission.php from vb227 to vb228 so you can use the hack also with 227

Buddha
02 Oct 2002, 19:28
yep. installed on 2.27 and works like a charm.
thanks.

Mathieu
03 Oct 2002, 07:46
cool my finger are impatient to install it it's a good job.

geniuscrew
03 Oct 2002, 11:00
vB 3 suggestions (http://www.vbulletin.com/forum/showthread.php?threadid=26055)

They might add a similar function :rolleyes:

Jonne
03 Oct 2002, 12:38
Am I the only one getting an error like this? Tried to redo it three times and same layout error every time.

Using vb ver 2.2.8

Xenon
03 Oct 2002, 16:40
hmm, looks wierd.

but the code is ok...
what versions of php and mysql do you use?
perhaps the problem is there...
because i can see it works correct for the group which has set a forumpermission...

Gutty
04 Oct 2002, 03:56
have i done the input of the code right cause i keep getting 404 error on almost every page in the usergroups :(

g-force2k2
04 Oct 2002, 04:03
Gutty did you upload the file to the correct directory? regards...

Xenon another great job :) i will have to check out the coding later to see what i can learn from it ;) perhaps if i ever open a forum i'll install it as well...

g-force2k2

Bison
04 Oct 2002, 06:30
Brilliant ... simply BRILLIANT !!!!

[click - INSTALL!!!]

Smoothie
04 Oct 2002, 06:59
Originally posted by Jonne
Am I the only one getting an error like this? Tried to redo it three times and same layout error every time.

Using vb ver 2.2.8 Same problem here......php 4.1.1 mySQL 3.23.41

Xenon
04 Oct 2002, 09:46
hmm, my testboard has mysql 3.23.47
but i don't think that's the problem, because the change is behind the snd .

php4.2.3

can i get other feedback?
does anyone use a phpversion before 4.1.1 and the hack works as it should?

Smoothie
04 Oct 2002, 10:42
Just to be sure, I uploaded my backup file, started over, and same results.

Chris M
04 Oct 2002, 18:12
Great:)

Satan

blackice912
05 Oct 2002, 02:40
Very nice :)

/me clicks install

Jonne
05 Oct 2002, 11:06
Xenon:
PHP version - 4.1.0
MySQL version - 3.23.46

Xenon
05 Oct 2002, 11:12
thank you

hmm, seems that the hack needs PHP4.2.x to work properly.

just a question does anybody have php 4.0.x or 4.1.x and the Hack works as it should?

wolfe
08 Oct 2002, 22:29
this is a Awesome hack well done d00d :D

marocnl
14 Oct 2002, 14:45
PROBLEM!

tjsek attachment

marocnl
14 Oct 2002, 14:45
Another attach

Xenon
14 Oct 2002, 16:59
seems you've got the same bug as others have here, too.

Which PHP version and MySQL do you use?
i think the hack requires PHP42x

marocnl
14 Oct 2002, 18:36
I am not quite sure. I think it's lower than 42x, but defenitely something with a 4 :).

Can you get it to work with a lower version PHP/MySql, cause i would really like 2 use it. Get motivated by all the pIEpAl who are eager to implent it in their site. :D

Let me know if ur planning to make one soon. :)

Xenon
14 Oct 2002, 18:57
perhaps i try it, but i don't use php4.1 or lower so i realized it after releasing that it seems to have problems...

also my time is limited these days because of studying...

marocnl
15 Oct 2002, 08:56
Originally posted by Xenon
perhaps i try it, but i don't use php4.1 or lower so i realized it after releasing that it seems to have problems...

also my time is limited these days because of studying...
Would 'PLEASE' make any difference in speeding up the process?


P.S.: I'm really waiting 4 it, so just tell whether u seriously plan to give it a go. :classic:

Xenon
15 Oct 2002, 09:12
yes i plan to make it compatible, but cannot say if it would work ;)

marocnl
15 Oct 2002, 09:17
Originally posted by Xenon
yes i plan to make it compatible, but cannot say if it would work ;)
Well hé, it's the thought that counts. :lick:

wolfman
17 Oct 2002, 04:18
There is only one thing I can say

Thank you so much for this hack.

Xalious
21 Oct 2002, 13:19
Ok we have installed this hack also. I have www.ipowerweb.com for a webhost. The problem we have is...

Lets say i have a user named Bob. He is in user group named "group 1" and is a moderator of a forum.

My problem is here, If i make a private forum, Bob seems to have access to it by default. I do NOT want this. So i installed this hack hoping it would make things easier.

I then goto the user groups section of this hack and the screen of this hack comes up. I then set permissions and check/uncheck the needed fields. When i push the apply button at the bottom i get a screen telling me permissions have been changed.
Now, If i ask bob if he can see the forum i just added and changed permissions for his group on he tells me "Yes he can"
The permissions i set his group for this private forum is NOT to be able to see the forum.

Ive tried creating my own new user, making him a moderator of a forum, and adding him to a group. As soon as i make a NEW private forum, my user can see it by default. (can you change this default to not make moderators have permission to NEW private forums?)
In control panel i goto user groups to chage the permissions.

Again.. it says my permissions are set. I log onto my test user but yet i Still see the forum i just told the group it couldnt see.
I need help with this please. I am adding new PRIVATE forums daily for groups of people. Everytime i do i have to go to each moderator that i dont want to have access to it and change thier permission manually by user name. i have 21 moderators currently (only to get bigger) and i can see this problem become a large problem for me.

Xenon
21 Oct 2002, 17:48
that's not a problem with my hack!

you have enabled acces masks, which always overwrites the permissions given for a usergroup.

you have to edit HIS accesmask to disallow him to view some forums.
my hack just works for usergrouppermissions, not for accesmasks

Xalious
23 Oct 2002, 03:42
Turning off the forum access masks did the trick.
thanks for all the help

Xenon
23 Oct 2002, 15:20
:)
you're welcome

kreatiV
26 Oct 2002, 10:44
I am also getting this EXACT same Problem as Jonne. I then simply tried to take of the marker on one of those boxes that do not have all the boxes for yes and no.

and I am getting this:


Database error in vBulletin Control Panel 2.2.8:

Invalid SQL: INSERT INTO forumpermission (forumpermissionid,usergroupid,forumid,canview,cansearch,canemail,canpostnew,can move,canopenclose,candeletethread,canreplyown,canreplyothers,canviewothers,caned itpost,candeletepost,canpostattachment,canpostpoll,canvote,cangetattachment) VALUES (NULL,10,17,,,,,,,,,,,,,,,,),(NULL,10,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),(NULL, 10,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),(NULL,10,61,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0)
mysql error: You have an error in your SQL syntax near ',,,,,,,,,,,,,,),(NULL,10,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),(NULL,10,60,0,0,0, 0' at line 1

mysql error number: 1064


Originally posted by Jonne
Am I the only one getting an error like this? Tried to redo it three times and same layout error every time.

Using vb ver 2.2.8

Xenon
26 Oct 2002, 18:16
known problem, it has to do with your php-mysql kombination.
i plan to fix this, but i don't have any time these days :(

kreatiV
27 Oct 2002, 10:36
Oh okay. I just checked to make sure, and yep I have

PHP Version 4.1.1

Xenon
04 Apr 2003, 21:14
ok, long time since the last posts, but i don't have had much time for this hack...

now i have released version 2.00
i've completely rewritten the code, so you should install it on a fresh forumpermission.php

changes:
it should be compatible to all php versions now
hierarchial forumstructure when editing a usergroup.

i have uploaded new screenshots, too :)

hope it can help :)

mtha
07 Apr 2003, 09:08
10-02-02 at 02:54 PM Xenon said this in Post #1 (http://www.vbulletin.org/forum/showthread.php?postid=305139#post305139)

With this hack you can change the forumpermissions of a usergroup for all forums at once, or change the forumpermissions of one forum for all usergroups at once.




in line 393:
echo "<li>$usergroup[title]".
makelinkcode("edit","forumpermission.php?s=$session[sessionhash]
&action=editusergroup&usergroupid=$usergroup[usergroupid]").
"</li>\n";

I cant make the action=editusergroup script to work. Where is the function if ($action=="editusergroup") located?
I couldnt find it in the hack.

When I click on Usergroups part, its displayed blank.

Xenon
07 Apr 2003, 16:49
ahh, sorry i forgot to update that link ....

redownload it now :)

mtha
07 Apr 2003, 22:47
Today at 05:49 PM Xenon said this in Post #48 (http://www.vbulletin.org/forum/showthread.php?postid=378801#post378801)
ahh, sorry i forgot to update that link ....

redownload it now :)


:( The new file is the same as the other one that I downloaded.

Hack Name: Faster change of Forumpermissions
Hack Version: 2.00
Hack Author: Xenon
Release: 02. Okt. 2002
Last Upgrade: 04. Apr. 2003
Description: This Hack will allow you to change all Forumpermissions of a usergroup or a forum at once.
Requested by: ---
Planned features: ---

This line, makelinkcode("edit","forumpermission.php?s=$session[sessionhash]
&action=editusergroup&usergroupid=$usergroup[usergroupid]")., still link to nowhere.


Should there be a function if ($action=="editusergroup") ?

Xenon
08 Apr 2003, 10:36
nope it's a different file, maybe your browser has cahced the old one.
empty your cache and redownload it.

and no there shouldn't be a editusergroup function

PurpleCow
08 Apr 2003, 12:34
Hello,

Does it work with the current stable release of vB230 ??

Thanks

Xenon
08 Apr 2003, 16:56
yes, we use it here, for example :)

mtha
09 Apr 2003, 08:00
Yesterday at 11:36 AM Xenon said this in Post #50 (http://www.vbulletin.org/forum/showthread.php?postid=379180#post379180)
nope it's a different file, maybe your browser has cahced the old one.
empty your cache and redownload it.

and no there shouldn't be a editusergroup function


cool, great hack.

Thanks Xenon, I got it worked.

click installed

Xenon
09 Apr 2003, 12:18
:)

enjoys to hear that :)

you're welcome :)

yxboom
11 Apr 2003, 07:22
I am in awe!!!

chrisz
11 Apr 2003, 07:29
Great Hack Xenon, comes in handy for my RPG thnx alot.
*Messiah Daz runs over to install*

The General
29 Apr 2003, 12:23
Excellent stuff! Cheers!

Cancorp
13 Jul 2003, 08:44
Hi Xenon,

I know this has been dead for a while, but I just installed it and I love it, but have one tiny question:

Would it be possible to add a "check all" tickbox at the top of each catagory in usergroup so that we don't have to check off all those boxes if we want to give that access over all the forums (ie: can vote etc...)? We have close to 300 forums, so the guy with the clicker finger is going nuts :D

Thanks in advance for any help.

Xenon
13 Jul 2003, 11:37
hmm, good idea.

I'll look into it when i get more free time again, but i can't promise anything as i think JS is needed and i don't know how to code in JS ;)

ipcn
12 Aug 2004, 13:56
Any chances on getting this for vB3? It would be VERY helpful :)