View Full Version : Faster change of forumpermissions
Xenon
10-01-2002, 10:00 PM
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
10-02-2002, 12:57 PM
Forumpermission overview:
Xenon
10-02-2002, 12:58 PM
edit usergroup
Xenon
10-02-2002, 12:58 PM
edit forum
geniuscrew
10-02-2002, 01:04 PM
Thankyou - Looks very handy indeed.
Will install later tonight =)
LawnDawg
10-02-2002, 02:16 PM
omg, bless you, haha
very nice work, very very useful.
ty
Looks good, Will install :)
Goldknight
10-02-2002, 03:15 PM
Very useful hack! Thanks Xenon (hope VB3 developers look at this hack and take this into consider)
/me install!
Dean C
10-02-2002, 03:38 PM
cool idea :D
- miSt
Xenon
10-02-2002, 04:28 PM
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
10-02-2002, 05:02 PM
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
10-02-2002, 05:12 PM
My fingers thank you! Especially my clicker finger. :)
Xenon
10-02-2002, 05:12 PM
there were no changes in forumpermission.php from vb227 to vb228 so you can use the hack also with 227
Buddha
10-02-2002, 06:28 PM
yep. installed on 2.27 and works like a charm.
thanks.
Mathieu
10-03-2002, 06:46 AM
cool my finger are impatient to install it it's a good job.
geniuscrew
10-03-2002, 10:00 AM
vB 3 suggestions (http://www.vbulletin.com/forum/showthread.php?threadid=26055)
They might add a similar function :rolleyes:
Jonne
10-03-2002, 11:38 AM
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
10-03-2002, 03:40 PM
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
10-04-2002, 02:56 AM
have i done the input of the code right cause i keep getting 404 error on almost every page in the usergroups :(
g-force2k2
10-04-2002, 03:03 AM
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
10-04-2002, 05:30 AM
Brilliant ... simply BRILLIANT !!!!
[click - INSTALL!!!]
Smoothie
10-04-2002, 05:59 AM
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
10-04-2002, 08:46 AM
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
10-04-2002, 09:42 AM
Just to be sure, I uploaded my backup file, started over, and same results.
Chris M
10-04-2002, 05:12 PM
Great:)
Satan
blackice912
10-05-2002, 01:40 AM
Very nice :)
* blackice912 clicks install
Jonne
10-05-2002, 10:06 AM
Xenon:
PHP version - 4.1.0
MySQL version - 3.23.46
Xenon
10-05-2002, 10:12 AM
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
10-08-2002, 09:29 PM
this is a Awesome hack well done d00d :D
marocnl
10-14-2002, 01:45 PM
PROBLEM!
tjsek attachment
marocnl
10-14-2002, 01:45 PM
Another attach
Xenon
10-14-2002, 03:59 PM
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
10-14-2002, 05:36 PM
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
10-14-2002, 05:57 PM
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
10-15-2002, 07:56 AM
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
10-15-2002, 08:12 AM
yes i plan to make it compatible, but cannot say if it would work ;)
marocnl
10-15-2002, 08:17 AM
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
10-17-2002, 03:18 AM
There is only one thing I can say
Thank you so much for this hack.
Xalious
10-21-2002, 12:19 PM
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
10-21-2002, 04:48 PM
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
10-23-2002, 02:42 AM
Turning off the forum access masks did the trick.
thanks for all the help
Xenon
10-23-2002, 02:20 PM
:)
you're welcome
kreatiV
10-26-2002, 09:44 AM
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,can search,canemail,canpostnew,canmove,canopenclose,ca ndeletethread,canreplyown,canreplyothers,canviewot hers,caneditpost,candeletepost,canpostattachment,c anpostpoll,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
10-26-2002, 05:16 PM
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
10-27-2002, 09:36 AM
Oh okay. I just checked to make sure, and yep I have
PHP Version 4.1.1
Xenon
04-04-2003, 08:14 PM
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 :)
10-02-02 at 02:54 PM Xenon said this in Post #1 (https://vborg.vbsupport.ru/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
04-07-2003, 03:49 PM
ahh, sorry i forgot to update that link ....
redownload it now :)
Today at 05:49 PM Xenon said this in Post #48 (https://vborg.vbsupport.ru/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
04-08-2003, 09:36 AM
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
04-08-2003, 11:34 AM
Hello,
Does it work with the current stable release of vB230 ??
Thanks
Xenon
04-08-2003, 03:56 PM
yes, we use it here, for example :)
Yesterday at 11:36 AM Xenon said this in Post #50 (https://vborg.vbsupport.ru/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
04-09-2003, 11:18 AM
:)
enjoys to hear that :)
you're welcome :)
yxboom
04-11-2003, 06:22 AM
I am in awe!!!
chrisz
04-11-2003, 06:29 AM
Great Hack Xenon, comes in handy for my RPG thnx alot.
*Messiah Daz runs over to install*
The General
04-29-2003, 11:23 AM
Excellent stuff! Cheers!
Cancorp
07-13-2003, 07:44 AM
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
07-13-2003, 10:37 AM
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 ;)
Any chances on getting this for vB3? It would be VERY helpful :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.