Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Faster change of forumpermissions Details »»
Faster change of forumpermissions
Version: 1.00, by Xenon Xenon is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 10-01-2002 Last Update: Never Installs: 67
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 10-23-2002, 02:42 AM
Xalious Xalious is offline
 
Join Date: Sep 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Turning off the forum access masks did the trick.
thanks for all the help
Reply With Quote
  #43  
Old 10-23-2002, 02:20 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


you're welcome
Reply With Quote
  #44  
Old 10-26-2002, 09:44 AM
kreatiV kreatiV is offline
 
Join Date: Oct 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

Quote:
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

Quote:
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
Reply With Quote
  #45  
Old 10-26-2002, 05:16 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #46  
Old 10-27-2002, 09:36 AM
kreatiV kreatiV is offline
 
Join Date: Oct 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh okay. I just checked to make sure, and yep I have

PHP Version 4.1.1
Reply With Quote
  #47  
Old 04-04-2003, 08:14 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #48  
Old 04-07-2003, 08:08 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
10-02-02 at 02:54 PM Xenon said this in Post #1

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:
PHP Code:
            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.
Reply With Quote
  #49  
Old 04-07-2003, 03:49 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahh, sorry i forgot to update that link ....

redownload it now
Reply With Quote
  #50  
Old 04-07-2003, 09:47 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 05:49 PM Xenon said this in Post #48
ahh, sorry i forgot to update that link ....

redownload it now

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

Quote:
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, [high]makelinkcode("edit","forumpermission.php?s=$sessio n[sessionhash]
&action=editusergroup&usergroupid=$usergroup[usergroupid]").
, [/high] still link to nowhere.


Should there be a function [high]if ($action=="editusergroup")[/high] ?
Reply With Quote
  #51  
Old 04-08-2003, 09:36 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 04:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09883 seconds
  • Memory Usage 2,309KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete