Error Date Status
topics/add_message.php
Undefined index: PF750 Line: 66 February 18 2012 13:23:52
howtos.tk/profile.php
Undefined index: 423 Line: 426 February 18 2012 13:15:23
howtos.tk/profile.php
Undefined index: 424 Line: 427 February 18 2012 13:15:23
howtos.tk/profile.php
Undefined index: 420 Line: 421 February 18 2012 13:15:23
howtos.tk/profile.php
Undefined index: 420 Line: 422 February 18 2012 13:15:23
howtos.tk/profile.php
Undefined index: 421 Line: 424 February 18 2012 13:15:23
howtos.tk/profile.php
include(locale/English/view_profile.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory Line: 418 February 18 2012 13:15:23
templates/header.php
Undefined index: user_posts Line: 19 February 18 2012 12:46:58
administration/forums.php
Undefined variable: forum_password Line: 128 February 18 2012 12:30:12
howtos.tk/maincore.php
mysql_fetch_assoc() expects parameter 1 to be resource, boolean given Line: 233 February 17 2012 02:02:25
site_map/site_map.php
Undefined index: SM148 Line: 165 February 17 2012 00:50:47
templates/panels.php(74) : eval()'d code
Undefined index: fwl002 Line: 27 February 16 2012 21:05:36
templates/panels.php(74) : eval()'d code
Undefined index: fwl001 Line: 16 February 16 2012 21:05:36
administration/infusions.php
include(../infusions//infusion.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory Line: 188
iMEMBER &&
m trying to create a code wich moves/adds all users automaticly from a group(or from no group) to another after they reach 10+ forum posts.The ideea is because i
m setting the forum permissions for development area of the forum so only members from certain groups can post there (the newbies can se but they can not post) Here is my code,i know something is wrong there but don`t know what:$respost = dbquery("SELECT user_posts FROM ".DB_USERS." WHERE user_id='".$userdata['user_id']."'");
$datapost = dbarray($respost);
$group = ".+10_Posts_Members";
if ($datapost['user_posts'] <= 10) {$add_groups .= "." . $group;
}
dbquery("UPDATE ".DB_USERS." SET user_groups='".$userdata['user_groups'].$add_groups."' WHERE user_id='".$userdata['user_id']."'");
}
}
if (iMEMBER) {
$no_access = array();
$default_groups = dbarray(dbquery("SELECT groups FROM ".DB_PREFIX."predefined_groups"));
foreach (explode(".", substr($default_groups, 1)) as $group) {
if (!checkgroup($group)) $no_access[] = $group;
}
if (!empty($no_access)) {
$add_groups = "";
foreach ($no_access as $group) {
$add_groups .= "." . $group;
}
dbquery("UPDATE ".DB_USERS." SET user_groups='".$userdata['user_groups'].$add_groups."' WHERE user_id='".$userdata['user_id']."'");
}
}
if (iMEMBER) {
$no_access = array();
$default_groups = ".1.2.6.9";
foreach (explode(".", substr($default_groups, 1)) as $group) {
if (!checkgroup($group)) $no_access[] = $group;
}
if (!empty($no_access)) {
$add_groups = "";
foreach ($no_access as $group) {
$add_groups .= "." . $group;
}
dbquery("UPDATE ".DB_USERS." SET user_groups='".$userdata['user_groups'].$add_groups."' WHERE user_id='".$userdata['user_id']."'");
}
}
Category Forum
User Administration - 8Labels
None yet
Statistics
5 participants
Notifications
You are not receiving notifications from this thread.
Related Questions