User Profil Rights
Hallo,
zunächst handelt es sich hier um ein Problem mit folgendem Addon: USERPROFIL STATUS ADDON von Copyright: www.lcl-online.de , Angepasst von www.fc-css.de
ich habe dieses Addon eingebaut und habe nun das Problem das im ACP der Userprofilstatus nicht einstellbar ist. Die Auswahl wird zwar übernommen, aber nicht gespeichert. Nach dem speichern springt das Formular wieder zurück auf den "Gäste" Status. Ich habe die
--> pkinc/admin/useredit.php
--> pkinc/admintpl/edituser.htm
nochmal auf Fehler überprüft...aber das Problem bleibt.
Im Frontend funzt alles soweit...da kann der User den Status verändern und auch speichern.
Gibt es da vlt. eine Idee???
EDIT:
ich habe in dem Addon noch den Userstatus "Vip" eingebaut. Aber da habe ich dies in allen nötigen Datein chronologisch identisch gestaltet.
zunächst handelt es sich hier um ein Problem mit folgendem Addon: USERPROFIL STATUS ADDON von Copyright: www.lcl-online.de , Angepasst von www.fc-css.de
ich habe dieses Addon eingebaut und habe nun das Problem das im ACP der Userprofilstatus nicht einstellbar ist. Die Auswahl wird zwar übernommen, aber nicht gespeichert. Nach dem speichern springt das Formular wieder zurück auf den "Gäste" Status. Ich habe die
--> pkinc/admin/useredit.php
--> pkinc/admintpl/edituser.htm
nochmal auf Fehler überprüft...aber das Problem bleibt.
Im Frontend funzt alles soweit...da kann der User den Status verändern und auch speichern.
Gibt es da vlt. eine Idee???
EDIT:
ich habe in dem Addon noch den Userstatus "Vip" eingebaut. Aber da habe ich dies in allen nötigen Datein chronologisch identisch gestaltet.
OffTopic


in der Anleitung steht folgendes:
Öffne die Datei pkinc/admin/useredit.php und suche:
und füge DARUNTER
suche weiter:
DARÜBER:
meine pkinc/admin/useredit.php sieht nun so aus mit erweitertem VIP Status (Zeile 362 -369)
Hier klicken für weitere Informationen
Öffne die Datei pkinc/admintpl/edituser.htm
suche:
DARÜBER (habe ich aber anders eingefügt)
Meine pkinc/admintpl/edituser.htm sieht nun so aus...wieder mit erweitertem VIP (Zeile 49 -62)
Hier klicken für weitere Informationen
Ich habe das Listenmenü verändert um es anzupassen:
Öffne die Datei pkinc/admin/useredit.php und suche:
|
|
PHP-Quelltext |
1 |
user_imoption='".$SQL->i($_POST['user_imoption'])."',
|
und füge DARUNTER
|
|
PHP-Quelltext |
1 |
profilright='".$SQL->f($_POST['profilright'])."',
|
suche weiter:
|
|
PHP-Quelltext |
1 |
if(!empty($userinfo['user_avatar']))
|
DARÜBER:
|
|
PHP-Quelltext |
1 2 3 4 5 6 7 |
// Profil Right Erweiterung by www.lcl-online.de | www.fc-css.de
if ($userinfo['profilright']=='user') $status_user='selected';
elseif ($userinfo['profilright']=='member') $status_member='selected';
elseif ($userinfo['profilright']=='mod') $status_mod='selected';
elseif ($userinfo['profilright']=='admin') $status_admin='selected';
else $status_gast='selected';
// Profil Right Erweiterung by www.lcl-online.de | www.fc-css.de
|
meine pkinc/admin/useredit.php sieht nun so aus mit erweitertem VIP Status (Zeile 362 -369)
|
|
PHP-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 |
<?php
# PHPKIT WCMS | Web Content Management System
#
#
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS
# FILE AND/OR TO REMOVE THIS INFORMATION
#
# SIE SIND NICHT BERECHTIGT, UNRECHTMÄSSIGE KOPIEN DIESER
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN
#
# This file / the PHPKIT software is no freeware! For further
# information please visit our website or contact us via email:
#
# Diese Datei / die PHPKIT Software ist keine Freeware! Für weitere
# Informationen besuchen Sie bitte unsere Website oder kontaktieren uns per E-Mail:
#
# email : info@phpkit.com
# website : http://www.phpkit.com
# licence : http://www.phpkit.com/licence
# copyright : Copyright (c) 2002-2009 mxbyte gbr | http://www.mxbyte.com
if(!defined('pkFRONTEND') || pkFRONTEND!='admin')
die('Direct access to this location is not permitted.');
if(!adminaccess('user'))
return pkEvent('access_forbidden');
$editid=(isset($_REQUEST['editid']) && intval($_REQUEST['editid'])>0) ? intval($_REQUEST['editid']) : ((isset($_REQUEST['editid']) && $_REQUEST['editid']=='new') ? 'new' : 0);
$ACTION=isset($_POST['action']) ? $_POST['action'] : 'new';
if($editid==1 && pkGetUservalue('id')!=1)
{
eval("\$site_body.= \"".pkTpl("edituser_error")."\";");
return;
}
if(isset($_POST['user_delete']) && $_POST['user_delete']==1 && $editid!=1)
{
$userinfo = $SQL->fetch_assoc($SQL->query("SELECT * FROM ".pkSQLTAB_USER." WHERE user_id='".$editid."'"));
$usernick = pkEntities($userinfo['user_nick']);
$notify = isset($_POST['edit_notify']) && intval($_POST['edit_notify']) ? 1 : 0; #bool
$notify_true = $notify ? ' checked="checked"' : '';
$notify_false = $notify ? '' : ' checked="checked"';
eval("\$site_body.= \"".pkTpl("edituser_delete_form")."\";");
return;
}
if(isset($_POST['delete']) && isset($_POST['confirm_delete']) && $ACTION==$_POST['delete'] && $_POST['confirm_delete']=='confirmed' && intval($editid)>1)
{
if(isset($_POST['edit_notify']) && $_POST['edit_notify']==1)
{
pkLoadLang('adminemail');
$userinfo = $SQL->fetch_assoc($SQL->query("SELECT
user_name,
user_email
FROM ".pkSQLTAB_USER."
WHERE user_id='".intval($editid)."'"));
if(isset($_POST['confirmed_notifytext']) && !empty($_POST['confirmed_notifytext']))
{
$confirmed_notifytext = $_POST['confirmed_notifytext'];
$notifytext = pkGetSpecialLang('user_delete_mail_text_reason',$confirmed_notifytext);
}
else
{
$notifytext = pkGetSpecialLang('user_delete_mail_text_noreason');
}
$mail_title= pkGetSpecialLang('user_delete_mail_title',
$userinfo['user_name'],
pkGetConfig('site_name')
);
$mail_text= pkGetSpecialLang('user_delete_mail_text',
$userinfo['user_name'],
pkGetConfig('site_name'),
$notifytext,
pkGetConfig('site_name'),
pkGetConfig('site_url')
);
mailsender($userinfo['user_email'],$mail_title,$mail_text);
}
pkLoadFunc('user');
pkUserDelete(intval($editid));
usercount();
newestuser();
bdusertoday();
pkHeaderLocation('userslist');
}
if(isset($_REQUEST['writenotify']) && $_REQUEST['writenotify']==1 && intval($editid)>0)
{
if($ACTION==$_POST['cancel'] || $ACTION==$_POST['send'])
{
if($ACTION==$_POST['send'])
{
pkLoadLang('adminemail');
$userinfo = $SQL->fetch_assoc($SQL->query("SELECT
user_nick,
user_name,
user_email,
user_id,
uid
FROM ".pkSQLTAB_USER."
WHERE user_id='".intval($editid)."'
LIMIT 1"));
$notify_text = '';
$notify_link = pkGetConfig('site_url').'/include.php?user='.urlencode($userinfo['user_name']).'&uid='.$userinfo['uid'].'&relog=1';
if(trim($_POST['notify_message'])!='')
{
$adminname = pkGetUservalue('nick');
$notify_text = $_POST['notify_message'];
$notify_text = pkGetSpecialLang('user_edit_mail_textadd',
$notify_text
);
}
$notify_title= pkGetSpecialLang('user_edit_mail_title',
$userinfo['user_name'],
pkGetConfig('site_name')
);
$notify_text = pkGetSpecialLang('user_edit_mail_text',
$userinfo['user_nick'],
pkGetConfig('site_name'),
$notify_text,
$notify_link,
pkGetConfig('site_name'),
pkGetConfig('site_url')
);
mailsender($userinfo['user_email'],$notify_title,$notify_text);
}
pkHeaderLocation('useredit','','editid='.intval($editid));
}
eval("\$site_body.= \"".pkTpl("edituser_notify")."\";");
return;
}
if($ACTION==$_POST['save'] && trim($_POST['edit_nick'])!='' && trim($_POST['edit_name'])!='' && (trim($_POST['edit_password'])!='' || intval($_POST['editid'])>0) && emailcheck($_POST['edit_email']))
{
if(intval($editid)>0)
{
$notlike=" AND user_id!='".intval($editid)."'";
}
$info_name=$SQL->fetch_array($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_USER." WHERE user_name='".$SQL->f($_POST['edit_name'])."'".$notlike));
$info_nick=$SQL->fetch_array($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_USER." WHERE user_nick='".$SQL->f($_POST['edit_nick'])."'".$notlike));
$info_email=$SQL->fetch_array($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_USER." WHERE user_email='".$SQL->f($_POST['edit_email'])."'".$notlike));
if($info_name[0]==0 && $info_nick[0]==0 && $info_email[0]==0)
{
if(intval($_POST['editid'])===1)
$edit_status='admin';
elseif($_POST['edit_status']=='mod' || $_POST['edit_status']=='vip' || $_POST['edit_status']=='member' || $_POST['edit_status']=='user' || $_POST['edit_status']=='ban' || $_POST['edit_status']=='admin')
$edit_status=$_POST['edit_status'];
else
$edit_status='user';
if($editid!='new' && intval($editid)>0)
{
unset($set_adds);
if(!empty($_POST['edit_password']))
$set_adds=", user_pw='".md5($_POST['edit_password'])."'";
if($_POST['edit_remove_avatar']==1)
$set_adds.=", user_avatar=''";
//Real Pic Anfang
if($_POST['edit_remove_realpic']==1)
$set_adds.=", user_realpic=''";
//Real Pic Ende
if($editid === 1)
{
$edit_activate = 1;
}
else
{
$edit_activate = isset($_POST['edit_activate']) && intval($_POST['edit_activate']) ? 1 : 0;
}
$SQL->query("UPDATE ".pkSQLTAB_USER." SET
user_name='".$SQL->f($_POST['edit_name'])."',
user_nick='".$SQL->f($_POST['edit_nick'])."',
user_email='".$SQL->f($_POST['edit_email'])."',
user_status='".$SQL->f($edit_status)."',
user_activate='".$edit_activate."',
user_postdelay='".$SQL->f($_POST['edit_postdelay'])."',
user_profillock='".$SQL->i($_POST['edit_profillock'])."',
user_ghost='".$SQL->f($_POST['edit_ghost'])."',
user_icqid='".$SQL->i($_POST['edit_icqid'])."',
user_aimid='".$SQL->f($_POST['edit_aimid'])."',
user_yim='".$SQL->f($_POST['edit_yim'])."',
user_hpage='".$SQL->f($_POST['edit_hpage'])."',
user_sig='".$SQL->f($_POST['edit_sig'])."',
user_qou='".$SQL->f($_POST['edit_qou'])."',
user_hobby='".$SQL->f($_POST['edit_hobby'])."',
user_imoption='".$SQL->i($_POST['user_imoption'])."',
profilright='".$SQL->f($_POST['profilright'])."',
user_groupid='".$SQL->i($_POST['edit_groupid'])."' ".
$set_adds."
WHERE user_id='".$editid."'");
}
else
{
$SQL->query("INSERT INTO ".pkSQLTAB_USER."
SET signin='".pkTIME."',
user_activate='".$SQL->i($_POST['edit_activate'])."',
user_status='".$SQL->f($edit_status)."',
user_name='".$SQL->f($_POST['edit_name'])."',
user_nick='".$SQL->f($_POST['edit_nick'])."',
user_email='".$SQL->f($_POST['edit_email'])."',
user_pw='".$SQL->f(md5($_POST['edit_password']))."',
user_groupid='".$SQL->i($_POST['edit_groupid'])."',
user_profillock='".$SQL->i($_POST['edit_profillock'])."',
lastlog='".pkTIME."'");
$editid=$SQL->insert_id();
}
if(isset($_POST['edit_profilefields']) && is_array($_POST['edit_profilefields']))
{
unset($sqlcommand);
$userfield_counter=$SQL->fetch_array($SQL->query("SELECT COUNT(userid) as counter
FROM ".pkSQLTAB_USER_FIELDS."
WHERE userid='".$editid."' LIMIT 1"));
if($userfield_counter['counter']<1)
$SQL->query("INSERT INTO ".pkSQLTAB_USER_FIELDS." (userid) VALUES ('".$editid."')");
foreach($_POST['edit_profilefields'] as $id=>$value)
{
$id=intval($id);
if(!$id>0)
continue;
if($sqlcommand)
$sqlcommand.=",field_".$id."='".$SQL->f($value)."'";
else
$sqlcommand="UPDATE ".pkSQLTAB_USER_FIELDS." SET field_".$id."='".$SQL->f($value)."'";
}
if($sqlcommand)
$SQL->query($sqlcommand." WHERE userid='".$editid."'");
}
if(intval($editid)===intval(pkGetUservalue('id')))
{
$userinfo=$SQL->fetch_assoc($SQL->query("SELECT
user_name,
user_pw,
user_nick,
user_email,
user_status,
user_icqid,
user_hpage,
user_imoption,
user_groupid
FROM ".pkSQLTAB_USER."
WHERE user_id='".$SQL->i(pkGetUservalue('id'))."'
LIMIT 1"));
$vars=array(
'name'=>'user_name',
'pass'=>'user_pw',
'nick'=>'user_nick',
'email'=>'user_email',
'status'=>'user_status',
'icqid'=>'user_icqid',
'hpage'=>'user_hpage',
'imoption'=>'user_imoption',
'group'=>'user_groupid'
);
foreach($vars as $k=>$v)
$SESSION->setUservalue($k,$userinfo[$v]);
}
usercount();
newestuser();
bdusertoday();
pkHeaderLocation('useredit','','editid='.$editid.(isset($_POST['edit_notify']) && $_POST['edit_notify']==1 ? '&writenotify=1' : ''));
}
elseif($info_name[0]!=0)
eval("\$error_message= \"".pkTpl("edituser_error_1")."\";");
elseif($info_nick[0]!=0)
eval("\$error_message= \"".pkTpl("edituser_error_2")."\";");
elseif($info_email[0]!=0)
eval("\$error_message= \"".pkTpl("edituser_error_3")."\";");
else
eval("\$error_message= \"".pkTpl("edituser_error_0")."\";");
if($editid=='new')
{
$edit_name=pkEntities($_POST['edit_name']);
$edit_nick=pkEntities($_POST['edit_nick']);
$edit_email=pkEntities($_POST['edit_email']);
}
}
if($ACTION==$_POST['save'])
{
if(!emailcheck($_POST['edit_email']) && $_POST['edit_nick']!="" && $_POST['edit_name']!='')
eval("\$error_message= \"".pkTpl("edituser_error_4")."\";");
if(intval($editid)>0)
{
$userinfo['user_postdelay']=intval($_POST['edit_postdelay']);
$userinfo['user_icqid']=intval($_POST['edit_icqid']);
$userinfo['user_aimid']=($_POST['edit_aimid']);
$userinfo['user_yim']=($_POST['edit_yim']);
$userinfo['user_hpage']=($_POST['edit_hpage']);
$userinfo['user_groupid']=($_POST['edit_groupid']);
$userinfo['user_sig']=($_POST['edit_sig']);
$userinfo['user_qou']=($_POST['edit_qou']);
$userinfo['user_hobby']=($_POST['edit_hobby']);
$info_icqid=(intval($userinfo['user_icqid'])>0) ? intval($userinfo['user_icqid']) : '';
// Profil Right Erweiterung by www.lcl-online.de | www.fc-css.de
if ($userinfo['profilright']=='user') $status_user='selected';
elseif ($userinfo['profilright']=='member') $status_member='selected';
elseif ($userinfo['profilright']=='mod') $status_mod='selected';
elseif ($userinfo['profilright']=='vip') $status_vip='selected';
elseif ($userinfo['profilright']=='admin') $status_admin='selected';
else $status_gast='selected';
// Profil Right Erweiterung by www.lcl-online.de | www.fc-css.de
if(!empty($userinfo['user_avatar']))
$info_avatar=pkEntities(pkDIRWWWROOT.$config['avatar_path'].'/'.basename($userinfo['user_avatar']));
else
$info_avatar="fx/blank.gif";
//Real Pic Anfang
if(!empty($userinfo['user_realpic']))
$info_realpic=pkEntities(pkDIRWWWROOT.$config['realpic_path'].'/'.basename($userinfo['user_realpic']));
else
$info_realpic="fx/blank.gif";
//Real Pic ENDE
if($_POST['user_ghost']==1)
$info_ghost1="checked";
else
$info_ghost0="checked";
$edit_type=$lang['edit'];
$userinfo['user_aimid']=pkEntities($userinfo['user_aimid']);
$userinfo['user_yim']=pkEntities($userinfo['user_yim']);
$userinfo['user_hpage']=pkEntities($userinfo['user_hpage']);
$userinfo['user_sig']=pkEntities($userinfo['user_sig']);
$userinfo['user_qou']=pkEntities($userinfo['user_qou']);
$userinfo['user_hobby']=pkEntities($userinfo['user_hobby']);
eval("\$edituser_full= \"".pkTpl("edituser_full")."\";");
eval("\$edituser_delete= \"".pkTpl("edituser_delete")."\";");
}
$edit_name=$_POST['edit_name'];
$edit_nick=$_POST['edit_nick'];
$edit_email=$_POST['edit_email'];
if($_POST['edit_status']=="admin")
$info_status4=" selected";
elseif($_POST['edit_status']=="mod")
$info_status3=" selected";
elseif($_POST['edit_status']=="vip")
$info_status5=" selected";
elseif($_POST['edit_status']=="member")
$info_status2=" selected";
elseif($_POST['edit_status']=="ban")
$info_status0=" selected";
else
$info_status1=" selected";
if($_POST['edit_activate']==1)
$info_activate=" checked";
else
$_POST['edit_activate']='0';
if($_POST['user_imoption']==1)
$info_user_imoption1=" checked";
else
$info_user_imoption0=" checked";
if($_POST['edit_profillock']==1)
$info_profillock=" checked";
}
elseif(intval($editid)>0)
{
/******************************** Pflichtfeld Anfang. Original wir nur angepasst ********************************/
$userinfo=$SQL->fetch_array($SQL->query("SELECT * FROM ".pkSQLTAB_USER." WHERE user_id='".intval($editid)."'"));
$userfields=$SQL->fetch_array($SQL->query("SELECT * FROM ".pkSQLTAB_USER_FIELDS." WHERE userid='".intval($userinfo['user_id'])."' LIMIT 1"));
$edituser_profilefields='';
$getprofilefields=$SQL->query("SELECT * FROM ".pkSQLTAB_USER_PROFILEFIELDS." ORDER by profilefields_order ASC");
while($profilefields=$SQL->fetch_array($getprofilefields))
{
$f="field_".$profilefields['profilefields_id'];
$fieldcontent=pkEntities($userfields[$f]);
$fieldname=pkEntities($profilefields['profilefields_name']);
if($profilefields['profilefields_groups']!='') {
eval ("\$edituser_profilfields_groups= \"".pkTpl("edituser_profilfields_groups")."\";");}
else unset($edituser_profilfields_groups);
/********************* Dropdown Anfang *********************/
if($profilefields['profilefields_drop_down']==1) {
$getdrops=$SQL->query("SELECT * FROM `".pkSQLPREFIX."_dropdown` WHERE `id_field`='".intval($profilefields['profilefields_id'])."' ORDER by `id_sort` ASC");
$info_drop='';
while ($drops=$SQL->fetch_array($getdrops)) {
$info_drop.='<option value="'.$drops['text'].'"';
if ($fieldcontent==$drops['text']) $info_drop.=' selected="selected"';
$info_drop.='>'.pkEntities(trim($drops['text'])).'</option>';
}
if($profilefields['profilefields_pflicht']=="1") {$pflichtfeld='<span style="color:#d70007;">*</span>';}
eval ("\$edituser_profilefields.= \"".pkTpl("edituser_profilefields_drop")."\";");
unset($info_drop); unset($pflichtfeld);}
elseif(empty($profilefields['profilefields_pflicht']) AND empty($profilefields['profilefields_area'])){ unset($pflichtfeld);
/********************* Dropdown Ende ***********************/
eval ("\$edituser_profilefields.= \"".pkTpl("edituser_profilefields")."\";");}
elseif(empty($profilefields['profilefields_pflicht']) AND $profilefields['profilefields_area']=="1"){ unset($pflichtfeld);
eval ("\$edituser_profilefields.= \"".pkTpl("edituser_profilefields_area")."\";");}
elseif(empty($profilefields['profilefields_pflicht']) AND $profilefields['profilefields_area']=="2"){ unset($pflichtfeld);
eval ("\$edituser_profilefields.= \"".pkTpl("edituser_profilefields_num")."\";");}
elseif($profilefields['profilefields_pflicht']=="1" AND empty($profilefields['profilefields_area'])){$pflichtfeld='<span style="color:#d70007;">*</span>';
eval ("\$edituser_profilefields.= \"".pkTpl("edituser_profilefields")."\";");}
elseif($profilefields['profilefields_pflicht']=="1" AND $profilefields['profilefields_area']=="1"){$pflichtfeld='<span style="color:#d70007;">*</span>';
eval ("\$edituser_profilefields.= \"".pkTpl("edituser_profilefields_area")."\";");}
elseif($profilefields['profilefields_pflicht']=="1" AND $profilefields['profilefields_area']=="2"){$pflichtfeld='<span style="color:#d70007;">*</span>';
eval ("\$edituser_profilefields.= \"".pkTpl("edituser_profilefields_num")."\";");}
}
/******************************** Pflichtfeld Ende. Original wir nur angepasst********************************/
$editid=$userinfo['user_id'];
$edit_name=$userinfo['user_name'];
$edit_nick=$userinfo['user_nick'];
$edit_email=$userinfo['user_email'];
$info_icqid=(intval($userinfo['user_icqid'])>0) ? intval($userinfo['user_icqid']) : '';
if($userinfo['user_status']=="admin")
$info_status4=" selected";
elseif($userinfo['user_status']=="mod")
$info_status3=" selected";
elseif($userinfo['user_status']=="vip")
$info_status5=" selected";
elseif($userinfo['user_status']=="member")
$info_status2=" selected";
elseif($userinfo['user_status']=="ban")
$info_status0=" selected";
else
$info_status1=" selected";
if(!empty($userinfo['user_avatar']))
$info_avatar=pkEntities(pkDIRWWWROOT.$config['avatar_path'].'/'.basename($userinfo['user_avatar']));
else
$info_avatar="fx/blank.gif";
//Real Pic Anfang
if(!empty($userinfo['user_realpic']))
$info_realpic=pkEntities(pkDIRWWWROOT.$config['realpic_path'].'/'.basename($userinfo['user_realpic']));
else
$info_realpic="fx/blank.gif";
//Real Pic ENDE
if($userinfo['user_ghost']==1)
$info_ghost1="checked";
else
$info_ghost0="checked";
if($userinfo['user_activate']==1)
$info_activate=" checked";
if($userinfo['user_profillock']==1)
$info_profillock=" checked";
if($userinfo['user_imoption']==1)
$info_user_imoption1=" checked";
else
$info_user_imoption0=" checked";
$edit_type=$lang['edit'];
$userinfo['user_aimid']=pkEntities($userinfo['user_aimid']);
$userinfo['user_yim']=pkEntities($userinfo['user_yim']);
$userinfo['user_hpage']=pkEntities($userinfo['user_hpage']);
$userinfo['user_sig']=pkEntities($userinfo['user_sig']);
$userinfo['user_qou']=pkEntities($userinfo['user_qou']);
$userinfo['user_hobby']=pkEntities($userinfo['user_hobby']);
eval("\$edituser_full= \"".pkTpl("edituser_full")."\";");
eval("\$edituser_delete= \"".pkTpl("edituser_delete")."\";");
}
else
{
$editid='new';
$edit_type=$lang['create'];
$info_status1=" selected";
if($_POST['edit_activate']==1 || !isset($_POST['edit_activate']))
$info_activate=" checked";
}
$getgroups=$SQL->query("SELECT * FROM ".pkSQLTAB_USER_GROUP." ORDER by usergroup_name ASC");
while($group=$SQL->fetch_array($getgroups))
{
$info_group.='<option value="'.$group['usergroup_id'].'"';
if($userinfo['user_groupid']==$group['usergroup_id'])
$info_group.=' selected';
$info_group.='>'.pkEntities($group['usergroup_name']).'</option>';
}
$edit_name=pkEntities($edit_name);
$edit_nick=pkEntities($edit_nick);
$form_action=pkLink('useredit','','editid='.$editid);
eval("\$site_body.= \"".pkTpl("edituser")."\";");
?>
|
Öffne die Datei pkinc/admintpl/edituser.htm
suche:
|
|
Quellcode |
1 |
$edituser_full |
DARÜBER (habe ich aber anders eingefügt)
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<!--Profil Right Erweiterung by www.lcl-online.de | www.fc-css.de --> <tr> <td class="left">Profil Status</td> <td class="right"> <select name="profilright" size="1" class="w90"> <option $status_gast value="guest">Gäste</option> <option $status_user value="user">User</option> <option $status_member value="member">Mitglieder</option> <option $status_mod value="mod">Moderatoren</option> <option $status_admin value="admin">Administratoren</option> </select></td> </tr> <!--Profil Right Erweiterung by www.lcl-online.de | www.fc-css.de --> |
Meine pkinc/admintpl/edituser.htm sieht nun so aus...wieder mit erweitertem VIP (Zeile 49 -62)
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
<table class="standard" cellspacing="1" cellpadding="4" width="100%">
<colgroup>
<col width="250" />
<col />
</colgroup>
<tr>
<td class="heads" colspan="2">Benutzerkonto $edit_type</td>
</tr>
<form name="edituser" method="post" action="$form_action">
<input type="hidden" name="editid" value="$editid">
$info_delete
$error_message
<tr>
<td class="left">Benutzer- und Loginname</td>
<td class="right"><input type="text" size="25" name="edit_name" value="$edit_name" maxlength="50" class="w90" /></td>
</tr>
<tr>
<td class="left">Nickname</td>
<td class="right"><input type="text" size="25" name="edit_nick" value="$edit_nick" maxlength="50" class="w90" /></td>
</tr>
<tr>
<td class="left">Passwort</td>
<td class="right"><input type="password" name="edit_password" size="25" class="w90" /></td>
</tr>
<tr>
<td class="left">E-Mail-Adresse</td>
<td class="right"><input type="text" size="25" name="edit_email" value="$edit_email" class="w90" /></td>
</tr>
<tr>
<td class="heads" align="center"><span style="color: rgb(255, 24, 24);">Benutzerstatus</span></td>
<td class="heads">
<select name="edit_status" size="1" class="w90">
<option value="ban" $info_status0>gesperrt</option>
<option value="user" $info_status1>$lang[user]</option>
<option value="member" $info_status2>$lang[member]</option>
<option value="vip" $info_status5>$lang[vip]</option>
<option value="mod" $info_status3>$lang[mod]</option>
<option value="admin" $info_status4>$lang[admin]</option>
</select></td>
</tr>
<tr>
<td class="heads" align="center"><span style="color: rgb(255, 24, 24);">Benutzergruppe</span></td>
<td class="heads">
<select name="edit_groupid" size="1" class="w90" />
<option value="0" $info_selected_group0>keiner Benutzergruppe zuweisen</option>
$info_group
</td>
</tr>
<!-- Profilstatus -->
<tr>
<td class="heads" align="center"><span style="color: rgb(255, 24, 24);">Profilstatus</span></td>
<td class="heads">
<select name="profilright" size="1" class="w90">
<option $status_gast value="guest">Gäste</option>
<option $status_user value="user">User</option>
<option $status_member value="member">Mitglieder</option>
<option $status_mod value="mod">Moderatoren</option>
<option $status_vip value="vip">Vip</option>
<option $status_admin value="admin">Administratoren</option>
</select></td>
</tr>
<!-- Profilstatus -->
$edituser_full
<!-- ACP Erweiterung blutrausch-gilde.com -->
<tr>
<td class="even" colspan="2" align="center">
<a onclick="oeffne('e');" style="cursor: pointer;"><img src="../images/plus.gif" id="imge" width="9" height="9" alt="Zum Auf- und Zuklappen bitte klicken" title="Zum Auf- und Zuklappen bitte klicken" border="0" /></a>
<a onclick="oeffne('e');" style="text-decoration: underline; cursor: pointer;">Admin-Optionen</a>
</td>
</tr>
<tr id="e" style="display: none;">
<td class="standard" colspan="2">
<table class="userbody" cellspacing="1" cellpadding="4" width="100%">
<!-- ACP Erweiterung blutrausch-gilde.com -->
<tr>
<td class="left">Benutzerkonto aktivieren<br />
<font class="small">Wird das Benutzerkonto deaktiviert, kann es bis zur Aufhebung nicht genutzt werden.</font></td>
<td class="right">
<input class="checkbox" type="checkbox" name="edit_activate" value="1" $info_activate /></td>
</tr>
<tr>
<td class="left">Profilbearbeitung sperren<br />
<font class="small">Wird diese Option aktiviert darf der Benutzer sein Profil nicht mehr selbst ändern.</font></td>
<td class="right">
<input class="checkbox" type="checkbox" name="edit_profillock" value="1" $info_profillock /></td>
</tr>
$edituser_delete
<tr>
<td class="left">Benachrichtigen<br />
<font class="small">Den Benutzer per E-Mail über die Bearbeitung informieren.</font></td>
<td class="right">
<input class="checkbox" type="checkbox" name="edit_notify" value="1" /></td>
</tr>
<!-- ACP Erweiterung blutrausch-gilde.com -->
</table>
</td>
</tr>
<!-- ACP Erweiterung blutrausch-gilde.com -->
<tr>
<td class="heads" colspan="2" align="center">
<input type="submit" name="action" value="$lang[save]" />
<input type="hidden" name="save" value="$lang[save]" />
<input type="reset" value="$lang[reset]" /></td>
</tr>
</form>
</table>
|
Ich habe das Listenmenü verändert um es anzupassen:
OffTopic


Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Stifli« (27. März 2011, 13:41)
Wieso steht an Zeilen 407-418 das selbe wie an den Zeilen 486-497 nur das bei dem ersten die POST Übergabe genommen wird und bei dem zweiten die daten aus der Datenbank.
Beide Bereiche füllen die Variablen $info_statusX aus
Beide Bereiche füllen die Variablen $info_statusX aus
|
Achtung: Dirk Kántor ist unterwegs! Er verteilt gerne Verwarnungen ohne vorher darüber diskutiert zu haben. |
ich kann der install.php leider nicht entnehmen um welche tabelle es sich handelt....
Hier klicken für weitere Informationen
EDIT
die tabell profilright gibt es nicht...
|
|
PHP-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
<?
$addontitel='User Profil Right V1 PHPKit 1.6.5';
if(pkGetUservalue('status') != 'admin') {
pkEvent('access_refused');
return;
}
if($SQL->query("ALTER TABLE `".pkSQLPREFIX."_user` ADD `profilright` varchar(6) NOT NULL default 'guest'"))
{
$site_body.='
<table class="standard" width="100%" border="0" cellspacing="1" cellpadding="4">
<form method="post" action="include.php?path=profil_update">
<tr>
<td class="heads" align="center">'.$addontitel.' - Installation</td>
</tr>
<tr>
<td align="center" class="standard">
Hallo '.pkGetUservaluef('nick').' ,
<br>
<br>Willkommen zur Installation das Addons '.$addontitel.'
<br>Klicken Sie auf <b>Installieren</b> um mit der Installation zu starten.<br><br>
<div align="center"><a target="_blank" href="http://www.lcl-online.de"><img src="http://www.lcl-online.de/banner/banner004.jpg" border="0"></a></div>
</td>
</tr>
<tr>
<td class="heads" align="center">
<input type="submit" name="action" value="Installieren">
<input type="hidden" name="save" value="Installieren">
</td>
</tr>
</form>
</table>
';
}
else{
$site_body.='
<table class="standard" width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td class="heads" align="center">'.$addontitel.' - Installation</td>
</tr>
<tr>
<td align="center" class="standard">
<b>Die Installation wurde erfolgreich ausgeführt.</b><br>
<br>Bitte lösche nun die "profil_update.php" (Ordner: pkinc/public) wieder vom Server.<br><br>
<div align="center"><a target="_blank" href="http://www.lcl-online.de"><img src="http://www.lcl-online.de/banner/banner004.jpg" border="0"></a></div>
</td>
</tr>
</table>
';
}
?>
|
EDIT
die tabell profilright gibt es nicht...
OffTopic



- 1
- 2

Ähnliche Themen
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
1.6.1 Profil Visitor: Anzeige auf dem Profil funktioniert noch nicht richtig.
(3. Februar 2011, 11:54)
-
User Content | Addons »-
Alle Versionen User Profil Rights
(25. Februar 2009, 19:40)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Suche beachtet Sperren nicht
(1. Februar 2009, 13:14)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Serverumzug => Profil editieren nicht mehr möglich
(5. Dezember 2008, 17:24)
-
Plauderecke »-
Wer ist bei All-Inkl.com? (ggf. Addon zu vergeben)
(21. Juli 2008, 09:14)


