Admin - moderator maken
Geplaatst: 14 feb 2004, 17:26
Als de hoofdadmin van ons forum zichzelf (er zijn 2 admins, ik werd pas later toegevoegd) tracht moderator te maken van een subforum krijgen wij telkens dezelfde fout boodschap :
SQL Error : 1064 You have an error in your SQL syntax near ' 1)' at line 2
INSERT INTO phpbb_auth_access (forum_id, group_id, auth_mod) VALUES (22, , 1)
Line : 388
File : /usr/local/apache/htdocs/forum/admin/admin_ug_auth.php
Het is de bedoeling dat de rang van admin behouden blijft maar dat de persoon ook verschijnt onder het subforum als moderator, bij mezelf is dit goed gelukt, bij de eerste admin verschijnt de foutboodschap.
De volgende mod's werden geïnstalleerd:
adminuserlist (alles werkte nog na deze installatie)
restricted remote avatar images (niet van toepassing hier ?)
en tot slot:
gebruikerslijst verborgen voor niet-leden:
##############################################################
## MOD Title: Restrict Memberlist / Usergroup Pages
## MOD Author: Flipper <Flipper@pogoworld.co.uk> http://php.pogoworld.co.uk
## MOD Description: Allows only registered users view Memberlist and/or Usergroups pages.
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 2 Minutes
## Files To Edit: memberlist.php, groupcp.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes: If a user is not logged in and they wish to view the memberlist and/or Usergroup pages they will simply be redirected to the login page. If log in is successful, they will be redirected back to Memberlist and/or Usergroup pages. Instructions are given on how to apply this mod to both Memberlist and Usergroups, however you can install it to just the Memberlist or Grouplist page if you wish.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
//
// End session management
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Begin 'Restrict Memberlist/Grouplist' MOD
if ( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.".$phpEx."?redirect=memberlist.".$phpEx, true));
exit;
}
// End 'Restrict Memberlist/Grouplist' MOD
#-----[ OPEN ]------------------------------------------
#
groupcp.php
#
#-----[ FIND ]------------------------------------------
#
//
// End session management
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Begin 'Restrict Memberlist/Grouplist' MOD
if ( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.".$phpEx."?redirect=groupcp.".$phpEx, true));
exit;
}
// End 'Restrict Memberlist/Grouplist' MOD
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Kan iemand mij hiermee helpen ?
Mijn hostingmaatschappij heeft de database volledig nagezien en de fout zou zich daar niet bevinden.
SQL Error : 1064 You have an error in your SQL syntax near ' 1)' at line 2
INSERT INTO phpbb_auth_access (forum_id, group_id, auth_mod) VALUES (22, , 1)
Line : 388
File : /usr/local/apache/htdocs/forum/admin/admin_ug_auth.php
Het is de bedoeling dat de rang van admin behouden blijft maar dat de persoon ook verschijnt onder het subforum als moderator, bij mezelf is dit goed gelukt, bij de eerste admin verschijnt de foutboodschap.
De volgende mod's werden geïnstalleerd:
adminuserlist (alles werkte nog na deze installatie)
restricted remote avatar images (niet van toepassing hier ?)
en tot slot:
gebruikerslijst verborgen voor niet-leden:
##############################################################
## MOD Title: Restrict Memberlist / Usergroup Pages
## MOD Author: Flipper <Flipper@pogoworld.co.uk> http://php.pogoworld.co.uk
## MOD Description: Allows only registered users view Memberlist and/or Usergroups pages.
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 2 Minutes
## Files To Edit: memberlist.php, groupcp.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes: If a user is not logged in and they wish to view the memberlist and/or Usergroup pages they will simply be redirected to the login page. If log in is successful, they will be redirected back to Memberlist and/or Usergroup pages. Instructions are given on how to apply this mod to both Memberlist and Usergroups, however you can install it to just the Memberlist or Grouplist page if you wish.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
//
// End session management
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Begin 'Restrict Memberlist/Grouplist' MOD
if ( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.".$phpEx."?redirect=memberlist.".$phpEx, true));
exit;
}
// End 'Restrict Memberlist/Grouplist' MOD
#-----[ OPEN ]------------------------------------------
#
groupcp.php
#
#-----[ FIND ]------------------------------------------
#
//
// End session management
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Begin 'Restrict Memberlist/Grouplist' MOD
if ( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.".$phpEx."?redirect=groupcp.".$phpEx, true));
exit;
}
// End 'Restrict Memberlist/Grouplist' MOD
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Kan iemand mij hiermee helpen ?
Mijn hostingmaatschappij heeft de database volledig nagezien en de fout zou zich daar niet bevinden.