Din Menu
Fra fotoalbummet...

Nyeste artikler
> Billede ind i profil
> Optimer tabler i dat...
> Total Commander
> Redirect en side
> Mods / Infusion op p...
Downloads
SE ALLE DOWNLOADS...
Nye downloads
SurrealExperience 17
Luxury Yachts 10
Glare in Dark 66
AS-AppStore 36
AS-Global 20
AS-yellow_star 24
Hitman Games Zone 19
AS-Football 23
AS-Christmas 40
JuleCountdown til c... 20
Top 5 downloads
buzzlightyear 2801
php-fusion-7-01-02 2791
junglebook 2776
Disney2 2762
Disney1 2680
mickey-pluto. 2672
danish_locales_v7_1 2393
Opgraderingspakke v... 2366
Themes-phpfusion.dk
Facebook
Facebook

Pernille

statistik
Screenshots DB
Total Images: 796
Latest Images









statistik
Fra fotoalbummet...

Connect via Facebook
Connect via Facebook
Select your language
Danish Language Danish   English Language English
Fødselsdage i November
07.11 esig (61)
08.11 coldice (29)
14.11 Scorpion4Life (47)
15.11 DJ Tidzse (30)
17.11 ekate7 (49)
19.11 Kimse (64)
20.11 Brusher (49)
20.11 FogWelt (49)
24.11 SiteMaster (53)
26.11 kiko2611 (59)
26.11 kiko26 (59)
28.11 Micke Tyson (56)
Tilfældig Billede
Udtalelser fra brugerne
"Jag vill bara säga att (Assensvej) är jätte bra hemsida för nybörjare som kan få hjälp här,sen hemsidan är jätte fin med massa saker inne.....

God Jobb.......Admin ."

tedo
Reklame
Antispam
Se indlæg
Hvem er her? 2 gæst(er)
 Udskriv debat
Synlighed af felter i profilen
svabbi
Hej !
Kan man ændre synlighed i profilen, for almindelige login's ?

Jeg tænker - jeg har fødselsdag og privat adresse i mine profiler, men alle login's kan se det som nu er.
kan det ændres til at kun SuperAdmin kan se det ?
 
Skrevet d. 22-11-2024 19:09
Reklame Agent

Antal indlæg: n^x
Tilmeldt: Altid

IP: localhost  
Tutsi
Burde det kunne, men jeg kan kigge på det, når jeg kommer hjem.
______________________________

Hilsen Ellen

______________________________
www.jensens-madbl...


"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
 
Tutsi
Inden jeg begynder at ændre på noget, skal jeg først være helt sikker.

-Du bruger en ver. 7.05?
-Kan du til dine Userfields selv vælge under hvilken gruppe den skal være?
-Det er den side jeg ikke kan forstå ikk? Smile

-Kan du vedhæfte profile.php.
______________________________

Hilsen Ellen

______________________________
www.jensens-madbl...


"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
 
svabbi
v7.00.05

jeg kan vælge gruppe i brugerfelterne

Det skal være i information, tror jeg det hedder.

ja det er den sider der er på færøsk ;-)

Download kildekode  Kode
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: profile.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."view_profile.php";
include LOCALE.LOCALESET."user_fields.php";

if (!isset($_GET['group_id']) || !isnum($_GET['group_id'])) {
if(!iMEMBER){redirect("".INFUSIONS."restricted/index.php"); exit;}
   
   if (!isset($_GET['lookup']) || !isnum($_GET['lookup'])) { redirect("index.php"); }
   
   $result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_id='".$_GET['lookup']."'");
   
   if (dbrows($result)) { $user_data = dbarray($result); } else { redirect("index.php"); }
   
   if ($user_data['user_status'] > "0") { redirect("index.php"); }
   
   if (iADMIN && checkrights("UG") && $user_data['user_id'] != $userdata['user_id']) {
      if ((isset($_POST['add_to_group'])) && (isset($_POST['user_group']) && isnum($_POST['user_group']))) {
          if (!preg_match("(^\.{$_POST['group_id']}$|\.{$_POST['group_id']}\.|\.{$_POST['group_id']}$)", $user_data['user_groups'])) {
            $result = dbquery("UPDATE ".DB_USERS." SET user_groups='".$user_data['user_groups'].".".$_POST['user_group']."' WHERE user_id='".$user_data['user_id']."'");
         }
         redirect(FUSION_SELF."?lookup=".$user_data['user_id']);
      }
   }
   
   add_to_title($locale['global_200'].$locale['400'].$locale['global_201'].$user_data['user_name']);
   opentable($locale['400']);
   echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
   if ($user_data['user_avatar'] && file_exists(IMAGES."avatars/".$user_data['user_avatar'])) {
      echo "<td rowspan='5' width='1%' class='tbl'><img src='".IMAGES."avatars/".$user_data['user_avatar']."' alt='' /></td>\n";
   }
   echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u001']."</td>\n";
   echo "<td align='right' class='tbl1'>".$user_data['user_name']."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['424']."</td>\n";
   echo "<td align='right' class='tbl1'>".getuserlevel($user_data['user_level'])."</td>\n";
   echo "</tr>\n";
   if ($user_data['user_hide_email'] != "1" || iADMIN) {
      echo "<tr>\n";
      echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u005']."</td>\n";
      echo "<td align='right' class='tbl1'>".hide_email($user_data['user_email'])."</td>\n";
      echo "</tr>\n";
   }
   echo "<tr>\n";
   echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u040']."</td>\n";
   echo "<td align='right' class='tbl1'>".showdate("longdate", $user_data['user_joined'])."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u041']."</td>\n";
   echo "<td align='right' class='tbl1'>".($user_data['user_lastvisit'] ? showdate("longdate", $user_data['user_lastvisit']) : $locale['u042'])."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td colspan='".($user_data['user_avatar'] && file_exists(IMAGES."avatars/".$user_data['user_avatar']) ? "3" : "2")."' class='tbl2' style='text-align:center;white-space:nowrap'><a href='messages.php?msg_send=".$user_data['user_id']."' title='".$locale['u043']."'>".$locale['u043']."</a></td>\n";
   echo "</tr>\n</table>\n";
   
   echo "<div style='margin:5px'></div>\n";

   $profile_method = "display"; $i = 0; $user_fields_output = array("", "", "", ""); $ob_active = false;
   
   $result2 = dbquery("SELECT * FROM ".DB_USER_FIELDS." ORDER BY field_group, field_order");
   if (dbrows($result2)) {
      while($data2 = dbarray($result2)) {
         if ($i != $data2['field_group']) {
            if ($ob_active) {
               $user_fields_output[$i] = ob_get_contents();
               ob_end_clean();
               $ob_active = false;
            }
            $i = $data2['field_group'];
         }
         if (!$ob_active) {
            ob_start();
            $ob_active = true;
         }
         if (file_exists(LOCALE.LOCALESET."user_fields/".$data2['field_name'].".php")) {
            include LOCALE.LOCALESET."user_fields/".$data2['field_name'].".php";
         }
         if (file_exists(INCLUDES."user_fields/".$data2['field_name']."_include.php")) {
            include INCLUDES."user_fields/".$data2['field_name']."_include.php";
         }
      }
   }
   
   if ($ob_active) {
      $user_fields_output[$i] = ob_get_contents();
      ob_end_clean();
   }
   
   if (array_key_exists(1, $user_fields_output) && $user_fields_output[1]) {
      echo "<div style='margin:5px'></div>\n";
      echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
      echo "<td colspan='3' class='tbl2'><strong>".$locale['u044']."</strong></td>\n";
      echo "</tr>\n".$user_fields_output[1];      
      echo "</table>\n";
   }
   
   if (array_key_exists(2, $user_fields_output) && $user_fields_output[2]) {
      echo "<div style='margin:5px'></div>\n";
      echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
      echo "<td colspan='2' class='tbl2'><strong>".$locale['u045']."</strong></td>\n";
      echo "</tr>\n".$user_fields_output[2];      
      echo "</table>\n";
   }
   
   if (array_key_exists(4, $user_fields_output) && $user_fields_output[4]) {
      echo "<div style='margin:5px'></div>\n";
      echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
      echo "<td colspan='2' class='tbl2'><strong>".$locale['u047']."</strong></td>\n";
      echo "</tr>\n".$user_fields_output[4];      
      echo "</table>\n";
   }
   
   if (iADMIN && checkrights("M")) {
      echo "<div style='margin:5px'></div>\n";
      echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
      echo "<td colspan='2' class='tbl2'><strong>".$locale['u048']."</strong></td>\n";
      echo "</tr>\n<tr>\n";      
      echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u049']."</td>\n";
      echo "<td align='right' class='tbl1'>".$user_data['user_ip']."</td>\n";
      echo "</tr>\n</table>\n";
   }

   if ($user_data['user_groups']) {
      echo "<div style='margin:5px'></div>\n";
      echo "<table cellpadding='0' cellspacing='1' width='400' class='center tbl-border'>\n<tr>\n";
      echo "<td class='tbl2'><strong>".$locale['401']."</strong></td>\n";
      echo "</tr>\n<tr>\n";
      echo "<td class='tbl1'>\n";
      $user_groups = (strpos($user_data['user_groups'], ".") == 0 ? explode(".", substr($user_data['user_groups'], 1)) : explode(".", $user_data['user_groups']));
      for ($i = 0; $i < count($user_groups); $i++) {
         echo "<div style='float:left'><a href='".FUSION_SELF."?group_id=".$user_groups[$i]."'>".getgroupname($user_groups[$i])."</a></div><div style='float:right'>".getgroupname($user_groups[$i], true)."</div><div style='float:none;clear:both'></div>\n";
      }
      echo "</td>\n</tr>\n</table>\n";
   }
   if (iADMIN && checkrights("M") && $user_data['user_id'] != $userdata['user_id']) {
      $user_groups_opts = "";
      if ($user_data['user_level'] < 102) {
         echo "<div style='margin:5px'></div>\n";
         echo "<form name='admin_form' method='post' action='".FUSION_SELF."?lookup=".$user_data['user_id']."'>\n";
         echo "<table cellpadding='0' cellspacing='0' width='400' class='center tbl-border'>\n<tr>\n";
         echo "<td class='tbl2' colspan='2'><strong>".$locale['402']."</strong></td>\n";
         echo "</tr>\n<tr>\n";
         echo "<td class='tbl1'>\n";
         echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=edit&amp;user_id=".$user_data['user_id']."'>".$locale['410']."</a> ::\n";
         echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=ban&amp;act=on&amp;user_id=".$user_data['user_id']."&amp;status=1' onclick=\"return confirm('".$locale['413']."');\">".$locale['411']."</a> ::\n";
         echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=delete&amp;status=0&amp;user_id=".$user_data['user_id']."' onclick=\"return confirm('".$locale['414']."');\">".$locale['412']."</a></td>\n";
         $result = dbquery("SELECT * FROM ".DB_USER_GROUPS." ORDER BY group_id ASC");
         if (dbrows($result)) {
            while ($data2 = dbarray($result)) {
               if (!preg_match("(^\.{$data2['group_id']}|\.{$data2['group_id']}\.|\.{$data2['group_id']}$)", $user_data['user_groups'])) {
                  $user_groups_opts .= "<option value='".$data2['group_id']."'>".$data2['group_name']."</option>\n";
               }
            }
            if (iADMIN && checkrights("UG") && $user_groups_opts) {
               echo "<td align='right' class='tbl1'>".$locale['415']."\n";
               echo "<select name='user_group' class='textbox' style='width:100px'>\n".$user_groups_opts."</select>\n";
               echo "<input type='submit' name='add_to_group' value='".$locale['416']."' class='button'  onclick=\"return confirm('".$locale['417']."');\" /></td>\n";
            }
         }
         echo "</tr>\n</table>\n</form>\n";
      }
   }
} else {
   $result = dbquery("SELECT * FROM ".DB_USER_GROUPS." WHERE group_id='".$_GET['group_id']."'");
   if (dbrows($result)) {
      $data = dbarray($result);
      $result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_groups REGEXP('^\\\.{$_GET['group_id']}$|\\\.{$_GET['group_id']}\\\.|\\\.{$_GET['group_id']}$') ORDER BY user_level DESC, user_name");
      opentable($locale['420']);
      echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
      echo "<td align='center' colspan='2' class='tbl1'><strong>".$data['group_name']."</strong> (".sprintf((dbrows($result) == 1 ? $locale['421'] : $locale['422']), dbrows($result)).")</td>\n";
      echo "</tr>\n<tr>\n";
      echo "<td class='tbl2'><strong>".$locale['423']."</strong></td>\n";
      echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['424']."</strong></td>\n";
      echo "</tr>\n";
      while ($data = dbarray($result)) {
         $cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); $i++;
         echo "<tr>\n<td class='$cell_color'>\n<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>\n";
         echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".getuserlevel($data['user_level'])."</td>\n</tr>";
      }
      echo "</table>\n";
   } else {
      redirect("index.php");
   }
}
closetable();

require_once THEMES."templates/footer.php";
?>


 
Tutsi
Prøv om den her skjuler/viser det som den skal:

Download kildekode  Kode
<?php

/*-------------------------------------------------------+

| PHP-Fusion Content Management System

| Copyright (C) 2002 - 2008 Nick Jones

| http://www.php-fusion.co.uk/

+--------------------------------------------------------+

| Filename: profile.php

| Author: Nick Jones (Digitanium)

+--------------------------------------------------------+

| This program is released as free software under the

| Affero GPL license. You can redistribute it and/or

| modify it under the terms of this license which you

| can read by viewing the included agpl.txt or online

| at http://www.gnu.org/licenses/agpl.html. Removal of this

| copyright header is strictly prohibited without

| written permission from the original author(s).

+--------------------------------------------------------*/

require_once "maincore.php";

require_once THEMES."templates/header.php";

include LOCALE.LOCALESET."view_profile.php";

include LOCALE.LOCALESET."user_fields.php";



if (!isset($_GET['group_id']) || !isnum($_GET['group_id'])) {

if(!iMEMBER){redirect("".INFUSIONS."restricted/index.php"); exit;}

   

   if (!isset($_GET['lookup']) || !isnum($_GET['lookup'])) { redirect("index.php"); }

   

   $result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_id='".$_GET['lookup']."'");

   

   if (dbrows($result)) { $user_data = dbarray($result); } else { redirect("index.php"); }

   

   if ($user_data['user_status'] > "0") { redirect("index.php"); }

   

   if (iADMIN && checkrights("UG") && $user_data['user_id'] != $userdata['user_id']) {

      if ((isset($_POST['add_to_group'])) && (isset($_POST['user_group']) && isnum($_POST['user_group']))) {

          if (!preg_match("(^\.{$_POST['group_id']}$|\.{$_POST['group_id']}\.|\.{$_POST['group_id']}$)", $user_data['user_groups'])) {

            $result = dbquery("UPDATE ".DB_USERS." SET user_groups='".$user_data['user_groups'].".".$_POST['user_group']."' WHERE user_id='".$user_data['user_id']."'");

         }

         redirect(FUSION_SELF."?lookup=".$user_data['user_id']);

      }

   }

   

   add_to_title($locale['global_200'].$locale['400'].$locale['global_201'].$user_data['user_name']);

   opentable($locale['400']);

   echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";

   if ($user_data['user_avatar'] && file_exists(IMAGES."avatars/".$user_data['user_avatar'])) {

      echo "<td rowspan='5' width='1%' class='tbl'><img src='".IMAGES."avatars/".$user_data['user_avatar']."' alt='' /></td>\n";

   }

   echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u001']."</td>\n";

   echo "<td align='right' class='tbl1'>".$user_data['user_name']."</td>\n";

   echo "</tr>\n<tr>\n";

   echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['424']."</td>\n";

   echo "<td align='right' class='tbl1'>".getuserlevel($user_data['user_level'])."</td>\n";

   echo "</tr>\n";

   if ($user_data['user_hide_email'] != "1" || iADMIN) {

      echo "<tr>\n";

      echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u005']."</td>\n";

      echo "<td align='right' class='tbl1'>".hide_email($user_data['user_email'])."</td>\n";

      echo "</tr>\n";

   }

   echo "<tr>\n";

   echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u040']."</td>\n";

   echo "<td align='right' class='tbl1'>".showdate("longdate", $user_data['user_joined'])."</td>\n";

   echo "</tr>\n<tr>\n";

   echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u041']."</td>\n";

   echo "<td align='right' class='tbl1'>".($user_data['user_lastvisit'] ? showdate("longdate", $user_data['user_lastvisit']) : $locale['u042'])."</td>\n";

   echo "</tr>\n<tr>\n";

   echo "<td colspan='".($user_data['user_avatar'] && file_exists(IMAGES."avatars/".$user_data['user_avatar']) ? "3" : "2")."' class='tbl2' style='text-align:center;white-space:nowrap'><a href='messages.php?msg_send=".$user_data['user_id']."' title='".$locale['u043']."'>".$locale['u043']."</a></td>\n";

   echo "</tr>\n</table>\n";

   

   echo "<div style='margin:5px'></div>\n";



   $profile_method = "display"; $i = 0; $user_fields_output = array("", "", "", ""); $ob_active = false;

   

   $result2 = dbquery("SELECT * FROM ".DB_USER_FIELDS." ORDER BY field_group, field_order");

   if (dbrows($result2)) {

      while($data2 = dbarray($result2)) {

         if ($i != $data2['field_group']) {

            if ($ob_active) {

               $user_fields_output[$i] = ob_get_contents();

               ob_end_clean();

               $ob_active = false;

            }

            $i = $data2['field_group'];

         }

         if (!$ob_active) {

            ob_start();

            $ob_active = true;

         }

         if (file_exists(LOCALE.LOCALESET."user_fields/".$data2['field_name'].".php")) {

            include LOCALE.LOCALESET."user_fields/".$data2['field_name'].".php";

         }

         if (file_exists(INCLUDES."user_fields/".$data2['field_name']."_include.php")) {

            include INCLUDES."user_fields/".$data2['field_name']."_include.php";

         }

      }

   }

   

   if ($ob_active) {

      $user_fields_output[$i] = ob_get_contents();

      ob_end_clean();

   }

   

   if (array_key_exists(1, $user_fields_output) && $user_fields_output[1]) {

      echo "<div style='margin:5px'></div>\n";

      echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";

      echo "<td colspan='3' class='tbl2'><strong>".$locale['u044']."</strong></td>\n";

      echo "</tr>\n".$user_fields_output[1];      

      echo "</table>\n";

   }

   
if (iADMIN && checkrights("M")) {
   if (array_key_exists(2, $user_fields_output) && $user_fields_output[2]) {

      echo "<div style='margin:5px'></div>\n";

      echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";

      echo "<td colspan='2' class='tbl2'><strong>".$locale['u045']."</strong></td>\n";

      echo "</tr>\n".$user_fields_output[2];      

      echo "</table>\n";

   }}

   

   if (array_key_exists(4, $user_fields_output) && $user_fields_output[4]) {

      echo "<div style='margin:5px'></div>\n";

      echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";

      echo "<td colspan='2' class='tbl2'><strong>".$locale['u047']."</strong></td>\n";

      echo "</tr>\n".$user_fields_output[4];      

      echo "</table>\n";

   }

   

   if (iADMIN && checkrights("M")) {

      echo "<div style='margin:5px'></div>\n";

      echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";

      echo "<td colspan='2' class='tbl2'><strong>".$locale['u048']."</strong></td>\n";

      echo "</tr>\n<tr>\n";      

      echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u049']."</td>\n";

      echo "<td align='right' class='tbl1'>".$user_data['user_ip']."</td>\n";

      echo "</tr>\n</table>\n";

   }



   if ($user_data['user_groups']) {

      echo "<div style='margin:5px'></div>\n";

      echo "<table cellpadding='0' cellspacing='1' width='400' class='center tbl-border'>\n<tr>\n";

      echo "<td class='tbl2'><strong>".$locale['401']."</strong></td>\n";

      echo "</tr>\n<tr>\n";

      echo "<td class='tbl1'>\n";

      $user_groups = (strpos($user_data['user_groups'], ".") == 0 ? explode(".", substr($user_data['user_groups'], 1)) : explode(".", $user_data['user_groups']));

      for ($i = 0; $i < count($user_groups); $i++) {

         echo "<div style='float:left'><a href='".FUSION_SELF."?group_id=".$user_groups[$i]."'>".getgroupname($user_groups[$i])."</a></div><div style='float:right'>".getgroupname($user_groups[$i], true)."</div><div style='float:none;clear:both'></div>\n";

      }

      echo "</td>\n</tr>\n</table>\n";

   }

   if (iADMIN && checkrights("M") && $user_data['user_id'] != $userdata['user_id']) {

      $user_groups_opts = "";

      if ($user_data['user_level'] < 102) {

         echo "<div style='margin:5px'></div>\n";

         echo "<form name='admin_form' method='post' action='".FUSION_SELF."?lookup=".$user_data['user_id']."'>\n";

         echo "<table cellpadding='0' cellspacing='0' width='400' class='center tbl-border'>\n<tr>\n";

         echo "<td class='tbl2' colspan='2'><strong>".$locale['402']."</strong></td>\n";

         echo "</tr>\n<tr>\n";

         echo "<td class='tbl1'>\n";

         echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=edit&amp;user_id=".$user_data['user_id']."'>".$locale['410']."</a> ::\n";

         echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=ban&amp;act=on&amp;user_id=".$user_data['user_id']."&amp;status=1' onclick=\"return confirm('".$locale['413']."');\">".$locale['411']."</a> ::\n";

         echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=delete&amp;status=0&amp;user_id=".$user_data['user_id']."' onclick=\"return confirm('".$locale['414']."');\">".$locale['412']."</a></td>\n";

         $result = dbquery("SELECT * FROM ".DB_USER_GROUPS." ORDER BY group_id ASC");

         if (dbrows($result)) {

            while ($data2 = dbarray($result)) {

               if (!preg_match("(^\.{$data2['group_id']}|\.{$data2['group_id']}\.|\.{$data2['group_id']}$)", $user_data['user_groups'])) {

                  $user_groups_opts .= "<option value='".$data2['group_id']."'>".$data2['group_name']."</option>\n";

               }

            }

            if (iADMIN && checkrights("UG") && $user_groups_opts) {

               echo "<td align='right' class='tbl1'>".$locale['415']."\n";

               echo "<select name='user_group' class='textbox' style='width:100px'>\n".$user_groups_opts."</select>\n";

               echo "<input type='submit' name='add_to_group' value='".$locale['416']."' class='button'  onclick=\"return confirm('".$locale['417']."');\" /></td>\n";

            }

         }

         echo "</tr>\n</table>\n</form>\n";

      }

   }

} else {

   $result = dbquery("SELECT * FROM ".DB_USER_GROUPS." WHERE group_id='".$_GET['group_id']."'");

   if (dbrows($result)) {

      $data = dbarray($result);

      $result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_groups REGEXP('^\\\.{$_GET['group_id']}$|\\\.{$_GET['group_id']}\\\.|\\\.{$_GET['group_id']}$') ORDER BY user_level DESC, user_name");

      opentable($locale['420']);

      echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

      echo "<td align='center' colspan='2' class='tbl1'><strong>".$data['group_name']."</strong> (".sprintf((dbrows($result) == 1 ? $locale['421'] : $locale['422']), dbrows($result)).")</td>\n";

      echo "</tr>\n<tr>\n";

      echo "<td class='tbl2'><strong>".$locale['423']."</strong></td>\n";

      echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['424']."</strong></td>\n";

      echo "</tr>\n";

      while ($data = dbarray($result)) {

         $cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); $i++;

         echo "<tr>\n<td class='$cell_color'>\n<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>\n";

         echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".getuserlevel($data['user_level'])."</td>\n</tr>";

      }

      echo "</table>\n";

   } else {

      redirect("index.php");

   }

}

closetable();



require_once THEMES."templates/footer.php";

?>



______________________________

Hilsen Ellen

______________________________
www.jensens-madbl...


"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
 
svabbi
Nei - melder fejl i første linje

Parse error: syntax error, unexpected T_REQUIRE_ONCE in W:\www\profile.php on line 1
 
Tutsi
Det var underligt, for virker fint her hos mig. Har du kopieret min kode ind i filen profile.php?

Kører din host php5?
______________________________

Hilsen Ellen

______________________________
www.jensens-madbl...


"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
 
svabbi
Jeg kopierede hele molevitten ind over det der var i profile.php

Hvordan ser jeg hvad version min host kører med ?
 
Tutsi
Det skal du ind i kontrolpanelet hos dem for at se. Sender dig lige en pm.
Redigeret af Tutsi d. 05-01-2012 16:55
______________________________

Hilsen Ellen

______________________________
www.jensens-madbl...


"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
 
svabbi
Problemet er også det, at jeg tænkte at lave denne ændring i 3 hjemmesider, hvor jeg er superadmin.

Den ene er på One.com
Den anden på det Færøske FT.fo
og den tredie er på Psykiatrisk Center, hvor det er inde i lokal server, på en MySQL-server
 
Tutsi
Prøv igen:

Download kildekode  Kode
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: profile.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."view_profile.php";
include LOCALE.LOCALESET."user_fields.php";

if (!isset($_GET['group_id']) || !isnum($_GET['group_id'])) {
if(!iMEMBER){redirect("".INFUSIONS."restricted/index.php"); exit;}
   
   if (!isset($_GET['lookup']) || !isnum($_GET['lookup'])) { redirect("index.php"); }
   
   $result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_id='".$_GET['lookup']."'");
   
   if (dbrows($result)) { $user_data = dbarray($result); } else { redirect("index.php"); }
   
   if ($user_data['user_status'] > "0") { redirect("index.php"); }
   
   if (iADMIN && checkrights("UG") && $user_data['user_id'] != $userdata['user_id']) {
      if ((isset($_POST['add_to_group'])) && (isset($_POST['user_group']) && isnum($_POST['user_group']))) {
          if (!preg_match("(^\.{$_POST['group_id']}$|\.{$_POST['group_id']}\.|\.{$_POST['group_id']}$)", $user_data['user_groups'])) {
            $result = dbquery("UPDATE ".DB_USERS." SET user_groups='".$user_data['user_groups'].".".$_POST['user_group']."' WHERE user_id='".$user_data['user_id']."'");
         }
         redirect(FUSION_SELF."?lookup=".$user_data['user_id']);
      }
   }
   
   add_to_title($locale['global_200'].$locale['400'].$locale['global_201'].$user_data['user_name']);
   opentable($locale['400']);
   echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
   if ($user_data['user_avatar'] && file_exists(IMAGES."avatars/".$user_data['user_avatar'])) {
      echo "<td rowspan='5' width='1%' class='tbl'><img src='".IMAGES."avatars/".$user_data['user_avatar']."' alt='' /></td>\n";
   }
   echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u001']."</td>\n";
   echo "<td align='right' class='tbl1'>".$user_data['user_name']."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['424']."</td>\n";
   echo "<td align='right' class='tbl1'>".getuserlevel($user_data['user_level'])."</td>\n";
   echo "</tr>\n";
   if ($user_data['user_hide_email'] != "1" || iADMIN) {
      echo "<tr>\n";
      echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u005']."</td>\n";
      echo "<td align='right' class='tbl1'>".hide_email($user_data['user_email'])."</td>\n";
      echo "</tr>\n";
   }
   echo "<tr>\n";
   echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u040']."</td>\n";
   echo "<td align='right' class='tbl1'>".showdate("longdate", $user_data['user_joined'])."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u041']."</td>\n";
   echo "<td align='right' class='tbl1'>".($user_data['user_lastvisit'] ? showdate("longdate", $user_data['user_lastvisit']) : $locale['u042'])."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td colspan='".($user_data['user_avatar'] && file_exists(IMAGES."avatars/".$user_data['user_avatar']) ? "3" : "2")."' class='tbl2' style='text-align:center;white-space:nowrap'><a href='messages.php?msg_send=".$user_data['user_id']."' title='".$locale['u043']."'>".$locale['u043']."</a></td>\n";
   echo "</tr>\n</table>\n";
   
   echo "<div style='margin:5px'></div>\n";

   $profile_method = "display"; $i = 0; $user_fields_output = array("", "", "", ""); $ob_active = false;
   
   $result2 = dbquery("SELECT * FROM ".DB_USER_FIELDS." ORDER BY field_group, field_order");
   if (dbrows($result2)) {
      while($data2 = dbarray($result2)) {
         if ($i != $data2['field_group']) {
            if ($ob_active) {
               $user_fields_output[$i] = ob_get_contents();
               ob_end_clean();
               $ob_active = false;
            }
            $i = $data2['field_group'];
         }
         if (!$ob_active) {
            ob_start();
            $ob_active = true;
         }
         if (file_exists(LOCALE.LOCALESET."user_fields/".$data2['field_name'].".php")) {
            include LOCALE.LOCALESET."user_fields/".$data2['field_name'].".php";
         }
         if (file_exists(INCLUDES."user_fields/".$data2['field_name']."_include.php")) {
            include INCLUDES."user_fields/".$data2['field_name']."_include.php";
         }
      }
   }
   
   if ($ob_active) {
      $user_fields_output[$i] = ob_get_contents();
      ob_end_clean();
   }
   if (iADMIN) {
   if (array_key_exists(1, $user_fields_output) && $user_fields_output[1]) {
      echo "<div style='margin:5px'></div>\n";
      echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
      echo "<td colspan='3' class='tbl2'><strong>".$locale['u044']."</strong></td>\n";
      echo "</tr>\n".$user_fields_output[1];      
      echo "</table>\n";
   }
   
   if (array_key_exists(2, $user_fields_output) && $user_fields_output[2]) {
      echo "<div style='margin:5px'></div>\n";
      echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
      echo "<td colspan='2' class='tbl2'><strong>".$locale['u045']."</strong></td>\n";
      echo "</tr>\n".$user_fields_output[2];      
      echo "</table>\n";
   }}
   
   if (array_key_exists(4, $user_fields_output) && $user_fields_output[4]) {
      echo "<div style='margin:5px'></div>\n";
      echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
      echo "<td colspan='2' class='tbl2'><strong>".$locale['u047']."</strong></td>\n";
      echo "</tr>\n".$user_fields_output[4];      
      echo "</table>\n";
   }
   
   if (iADMIN && checkrights("M")) {
      echo "<div style='margin:5px'></div>\n";
      echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
      echo "<td colspan='2' class='tbl2'><strong>".$locale['u048']."</strong></td>\n";
      echo "</tr>\n<tr>\n";      
      echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['u049']."</td>\n";
      echo "<td align='right' class='tbl1'>".$user_data['user_ip']."</td>\n";
      echo "</tr>\n</table>\n";
   }

   if ($user_data['user_groups']) {
      echo "<div style='margin:5px'></div>\n";
      echo "<table cellpadding='0' cellspacing='1' width='400' class='center tbl-border'>\n<tr>\n";
      echo "<td class='tbl2'><strong>".$locale['401']."</strong></td>\n";
      echo "</tr>\n<tr>\n";
      echo "<td class='tbl1'>\n";
      $user_groups = (strpos($user_data['user_groups'], ".") == 0 ? explode(".", substr($user_data['user_groups'], 1)) : explode(".", $user_data['user_groups']));
      for ($i = 0; $i < count($user_groups); $i++) {
         echo "<div style='float:left'><a href='".FUSION_SELF."?group_id=".$user_groups[$i]."'>".getgroupname($user_groups[$i])."</a></div><div style='float:right'>".getgroupname($user_groups[$i], true)."</div><div style='float:none;clear:both'></div>\n";
      }
      echo "</td>\n</tr>\n</table>\n";
   }
   if (iADMIN && checkrights("M") && $user_data['user_id'] != $userdata['user_id']) {
      $user_groups_opts = "";
      if ($user_data['user_level'] < 102) {
         echo "<div style='margin:5px'></div>\n";
         echo "<form name='admin_form' method='post' action='".FUSION_SELF."?lookup=".$user_data['user_id']."'>\n";
         echo "<table cellpadding='0' cellspacing='0' width='400' class='center tbl-border'>\n<tr>\n";
         echo "<td class='tbl2' colspan='2'><strong>".$locale['402']."</strong></td>\n";
         echo "</tr>\n<tr>\n";
         echo "<td class='tbl1'>\n";
         echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=edit&amp;user_id=".$user_data['user_id']."'>".$locale['410']."</a> ::\n";
         echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=ban&amp;act=on&amp;user_id=".$user_data['user_id']."&amp;status=1' onclick=\"return confirm('".$locale['413']."');\">".$locale['411']."</a> ::\n";
         echo "<a href='".ADMIN."members.php".$aidlink."&amp;step=delete&amp;status=0&amp;user_id=".$user_data['user_id']."' onclick=\"return confirm('".$locale['414']."');\">".$locale['412']."</a></td>\n";
         $result = dbquery("SELECT * FROM ".DB_USER_GROUPS." ORDER BY group_id ASC");
         if (dbrows($result)) {
            while ($data2 = dbarray($result)) {
               if (!preg_match("(^\.{$data2['group_id']}|\.{$data2['group_id']}\.|\.{$data2['group_id']}$)", $user_data['user_groups'])) {
                  $user_groups_opts .= "<option value='".$data2['group_id']."'>".$data2['group_name']."</option>\n";
               }
            }
            if (iADMIN && checkrights("UG") && $user_groups_opts) {
               echo "<td align='right' class='tbl1'>".$locale['415']."\n";
               echo "<select name='user_group' class='textbox' style='width:100px'>\n".$user_groups_opts."</select>\n";
               echo "<input type='submit' name='add_to_group' value='".$locale['416']."' class='button'  onclick=\"return confirm('".$locale['417']."');\" /></td>\n";
            }
         }
         echo "</tr>\n</table>\n</form>\n";
      }
   }
} else {
   $result = dbquery("SELECT * FROM ".DB_USER_GROUPS." WHERE group_id='".$_GET['group_id']."'");
   if (dbrows($result)) {
      $data = dbarray($result);
      $result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_groups REGEXP('^\\\.{$_GET['group_id']}$|\\\.{$_GET['group_id']}\\\.|\\\.{$_GET['group_id']}$') ORDER BY user_level DESC, user_name");
      opentable($locale['420']);
      echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
      echo "<td align='center' colspan='2' class='tbl1'><strong>".$data['group_name']."</strong> (".sprintf((dbrows($result) == 1 ? $locale['421'] : $locale['422']), dbrows($result)).")</td>\n";
      echo "</tr>\n<tr>\n";
      echo "<td class='tbl2'><strong>".$locale['423']."</strong></td>\n";
      echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['424']."</strong></td>\n";
      echo "</tr>\n";
      while ($data = dbarray($result)) {
         $cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); $i++;
         echo "<tr>\n<td class='$cell_color'>\n<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>\n";
         echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".getuserlevel($data['user_level'])."</td>\n</tr>";
      }
      echo "</table>\n";
   } else {
      redirect("index.php");
   }
}
closetable();

require_once THEMES."templates/footer.php";
?>



______________________________

Hilsen Ellen

______________________________
www.jensens-madbl...


"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
 
svabbi
Der kom igen den der:

Parse error: syntax error, unexpected T_REQUIRE_ONCE in W:\www\profile.php on line 1

Men det er på den med MySQL serveren jeg tester på lige nu.
 
svabbi
Kan man ikke forandre i koderne på selve Userfields, alså for eksempel i user_birthdate_include.php
 
Tutsi
Så skal du overskrive din user_birthdate_include.php med det her:

Download kildekode  Kode
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_birthdate_include.php
| Author: Digitanium
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

// Display user field input
if ($profile_method == "input") {
   if (isset($user_data['user_birthdate']) && $user_data['user_birthdate'] != "0000-00-00") {
      $user_birthdate = $user_data['user_birthdate'];
   } else {
      $user_birthdate = "0-0-0";
   }
   
   $user_birthdate = explode("-", $user_birthdate);
   $user_year = number_format($user_birthdate['0'], 0, ".", "");
   $user_month = number_format($user_birthdate['1'], 0, ".", "");
   $user_day = number_format($user_birthdate['2'], 0, ".", "");

   echo "<tr>\n";
   echo "<td class='tbl".$this->getErrorClass("user_birthdate")."'>";
   echo "<label for='user_day_input'>".$locale['uf_birthdate'].$required." <span class='small2'>(dd/mm/yyyy)</span></label></td>\n";
   echo "<td class='tbl".$this->getErrorClass("user_birthdate")."'>";
   echo "<select id='user_day_input' name='user_day' class='textbox'>\n<option value=''>&nbsp;</option>\n";
   for ($bi = 1; $bi <= 31; $bi++) { echo "<option value='".$bi."'".($user_day == $bi ? " selected='selected'" : "").">".$bi."</option>\n"; }
   echo "</select>\n<select id='user_month_input' name='user_month' class='textbox'>\n<option value=''>&nbsp;</option>\n";
   for ($bi = 1; $bi <= 12; $bi++) { echo "<option value='".$bi."'".($user_month == $bi ? " selected='selected'" : "").">".$bi."</option>\n"; }
   echo "</select>\n<select id='user_year_input' name='user_year' class='textbox'>\n<option value=''>&nbsp;</option>\n";
   for ($bi = date("Y"); $bi > (date("Y") - 99); $bi--) { echo "<option value='".$bi."'".($user_year == $bi ? " selected='selected'" : "").">".$bi."</option>\n"; }
   echo "</select>\n</td>\n";
   echo "</tr>\n";

   if ($required) {
      $this->setRequiredJavaScript("user_day", $locale['uf_birthdate_error']);
      $this->setRequiredJavaScript("user_month", $locale['uf_birthdate_error']);
      $this->setRequiredJavaScript("user_year", $locale['uf_birthdate_error']);
   }

// Display in profile
} elseif ($profile_method == "display") {
if (iADMIN && checkrights("M")) {
   if ($user_data['user_birthdate'] != "0000-00-00") {
      echo "<tr>\n";
      echo "<td class='tbl1'>".$locale['uf_birthdate']."</td>\n";
      echo "<td align='right' class='tbl1'>";
      $months = explode("|", $locale['months']);
      $user_birthdate = explode("-", $user_data['user_birthdate']);
      echo $months[number_format($user_birthdate['1'])]." ".number_format($user_birthdate['2'])." ".$user_birthdate['0'];
      echo "</td>\n</tr>\n";
   }}

// Insert and update
} elseif ($profile_method == "validate_insert" || $profile_method == "validate_update") {
   // Get input data
   $user_month = 0; $user_day = 0; $user_year = 0;
   if (isset($_POST['user_year']) && isnum($_POST['user_year']) && $_POST['user_year'] != 0) {
      $user_year = $_POST['user_year'];
   }
   if (isset($_POST['user_month']) && isnum($_POST['user_month']) && $_POST['user_month'] != 0) {
      $user_month = $_POST['user_month'];
   }
   if (isset($_POST['user_day'])&& isnum($_POST['user_day']) && $_POST['user_day'] != 0 ) {
      $user_day = $_POST['user_day'];
   }
   
   if (($user_month != 0 && $user_day != 0 && $user_year != 0)  || $this->_isNotRequired("user_birthdate")) {
      // Set update or insert user data
      $this->_setDBValue("user_birthdate", $user_year."-".$user_month."-".$user_day);
   } else {
      $this->_setError("user_birthdate", $locale['uf_birthdate_error'], true);   
   }
}
?>



______________________________

Hilsen Ellen

______________________________
www.jensens-madbl...


"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
 
svabbi
Har lige testet det, men nu kommer denne felmelding:

Parse error: syntax error, unexpected T_IF in W:\www\includes\user_fields\user_birthdate_include.php on line 1
 
Tutsi
Den virker også hos mig. Har du prøvet på dine andre sider?
______________________________

Hilsen Ellen

______________________________
www.jensens-madbl...


"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
 
svabbi
jeg har testet den på den side der er styret af MySQL serveren, da det er der denne justering er vigtigst.
 
Tutsi
Hvad mener du med at den er styret af MySqlserver?

Er det muligt jeg kan komme ind på siden og se fejlene samtidigt med at jeg prøver forskellige muligheder?
______________________________

Hilsen Ellen

______________________________
www.jensens-madbl...


"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
 
svabbi
Nei det er ikke mulighed for nogen udenfor netværket at komme ind.
eneste jeg kan finde omkring navn på det system, er mySQL Apache2
 
Tutsi
Nej det regnede jeg heller ikke med. Men jeg har bare lidt svært ved at se, hvad jeg skal rette i. Jeg skal lige prøve at google lidt på problemet, og se om jeg kan finde en løsning.
De andre sider, virker det? Eller vil de heller ikke?
______________________________

Hilsen Ellen

______________________________
www.jensens-madbl...


"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
 
Spring til debat:
Lignende tråde
Debat Forum Svar Nyeste indlæg
Info i profilen om div. indlæg MOD's v7 7 21-04-2010 15:18
bruker online profilen. Infusioner v7 4 20-01-2010 18:26
Flere felter i profil Kravlegården på Assensvej 6 15-01-2010 16:10
live bruger statistik i profilen Generel debat - PHP-Fusion v7 1 27-02-2009 09:15
Tilføje felter til bruger registrering.... MOD's v7 3 03-11-2008 21:12