PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 38943
Šiandien: 16
Prisijungę nariai
» Svečių: 10
» Narių: 0

» Viso narių: 10,235
» Naujausias: ruslanas tuk

Prisijungimų istorija:
tabux21:30:41
sanpernepamenu
Zbigniew@nepamenu
CepelinasXnepamenu
VV91DDnepamenu
Minusnepamenu
priezilviciunepamenu
EdvinasG1337nepamenu
rolandas94nepamenu
Edis2nepamenu
klubogerbejasnepamenu
Miskinisnepamenu
Pask. modai
Prisijungti
Vardas

Slaptažodis



Dar ne narys?
Registruotis.

Pamiršai slaptažodį?
Prašyk naujo!.

Naujausi prašymai
[L] testas
Narių apklausa
Ar dar kuriate tinklalapius?

Ne
Ne
0% [0 Balsai]

Taip
Taip
88% [7 Balsai]

Naudojuosi socialiniais tinklais
Naudojuosi socialiniais tinklais
13% [1 Balsas]

Balsai: 8
Kad galėtum balsuoti, turi prisijungti.
Pradėta: 2022-05-29 19:54
Shoutbox
You must login to post a message.

2026-03-21 19:07

2025-07-13 17:07
svx, smagu kad dar atsiranda naujų narių Šypsosi2

2024-03-07 22:13
Oj Tabux… apkabinčiau už tą moderatorių 😁

2024-02-22 17:40
Šypsosi2 jo buvo laikai.. Senukai jau mes. Bega laikas greiciau nei noretusi. Smagu matyti kad uzsuka seni nariai, ne as vienas Šypsosi

2024-02-20 22:18
Zodziu.. Nostalgija. Sorry Tabux uz spam’a, netelpa viskas i viena shout’a. 😁

Shoutbox Archive
Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Taisymas
\n\n\";
      }
      $this->html .= \"
 Spausdinti temą
Medaliai
Famiz
#1 Spausdinti pranešimą
parašyta 2011-06-03 10:48
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 33
Įstojo: 2008-10-05

Sveiki, kaip padaryti, kad Medali mode, forume u?vedus ant medalio rodyt u? k jis?

?tai kodas viewthread.php:


Download source  Code
$award = dbquery(\"SELECT * FROM \".DB_PREFIX.\"award WHERE award_user='\".$data['user_id'].\"'\");
while($medaliai = dbarray($award)){
echo \"\";
}
echo \"
\";


 
PM
Rinas
#2 Spausdinti pranešimą
parašyta 2011-06-04 08:15
Administratorius



Reputacija: 0

Pranešimai: 204
Įstojo: 2009-06-10

Para?yk savo PHP-F versij ir dk ia infusions/awards/infusion.php fail.
 
PM
Famiz
#3 Spausdinti pranešimą
parašyta 2011-06-06 00:45
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 33
Įstojo: 2008-10-05

versija tai bt "PHP-Fusion_7-02-01_full"

Va infusion.php:

Download source  Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: Awards
| Author: Flyingduck / http://flyingduck.dk/
| Angepasst an v7: ObiWan / http:/www.futigo.de
+--------------------------------------------------------+
| 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 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\") || !checkrights(\"I\")) { header(\"Location: ../../index.php\"); exit; }

include INFUSIONS.\"awards/infusion_db.php\";
if (file_exists(INFUSIONS.\"awards/locale/\".$settings['locale'].\".php\")) {
   include INFUSIONS.\"awards/locale/\".$settings['locale'].\".php\";
} else {
   include INFUSIONS.\"awards/locale/German.php\";
}

$inf_title = $locale['awtitle'];
$inf_description = $locale['awdesc'];
$inf_version = \"1.0\";
$inf_developer = \"Flyingduck | v7-Version ObiWan\";
$inf_email = \"info@futigo.de\";
$inf_weburl = \"http://futigo.de\";
$inf_folder = \"awards\";

$inf_newtable[1] = DB_AWARD.\" (
award_id       mediumint(7) unsigned NOT NULL auto_increment,
award_user       mediumint(7) NOT NULL default '0',
award_img       varchar(200) NOT NULL default '',
award_info       varchar(200) NOT NULL default '',
PRIMARY KEY  (award_id)
) TYPE=MyISAM;\";

$inf_droptable[1] = DB_AWARD;

$inf_adminpanel[1] = array(
   \"title\" => $inf_title,
   \"image\" => \"infusion_awards.gif\",
   \"panel\" => \"admin.php\",
   \"rights\" => \"AW\"
);
?>


 
PM
Rinas
#4 Spausdinti pranešimą
parašyta 2011-06-06 08:51
Administratorius



Reputacija: 0

Pranešimai: 204
Įstojo: 2009-06-10

viewthread.php (kur nors, pvz. po require_once THEMES."templates/header.php";) terpk:
Download source  Code
add_to_head(\"\");




O t medali kod (kur esi terps), pakeisk :
Download source  Code
$award = dbquery(\"SELECT award_img, award_info FROM \".DB_PREFIX.\"award WHERE award_user='\".$data['user_id'].\"'\");
 while($medaliai = dbarray($award)){
 echo \">\";
 }
 echo \"
\";


 
PM
Prikas
#5 Spausdinti pranešimą
parašyta 2011-06-06 10:20
Naujokas



Reputacija: 0

Pranešimai: 22
Įstojo: 2011-01-21

gerai, forume veikia, bet gal dar galit pasakyt kaip profilyje ydet,
Download source  Code
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"award WHERE award_user='\".$user_data['user_id'].\"'\");
        echo \"\n\n\";
        echo \"\n\";
 while ($award = dbarray($result)) {
  echo \"\n\";
  echo \"\n\";
  echo \"\n\";
 }




Sitas kodas tiko senesnei v7 versijoj, bet paskui atsinaujinau y v7.02.01 ir dabar nezinau kur kist jy.

Profilio kodas:
Download source  Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: profile.php
| Author: Hans Kristian Flaatten {Starefossen}
+--------------------------------------------------------+
| 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 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\";
require_once CLASSES.\"UserFields.class.php\";
include LOCALE.LOCALESET.\"user_fields.php\";

if (!iMEMBER && $settings['hide_userprofiles'] == 1) { redirect(BASEDIR.\"login.php\"); }

if (isset($_GET['lookup']) && isnum($_GET['lookup'])) {
   $user_status = \" AND (user_status='0' OR user_status='3' OR user_status='7')\";
   if (iADMIN) {
      $user_status = \"\";
   }

   $result = dbquery(
      \"SELECT u.*, s.suspend_reason
      FROM \".DB_USERS.\" u
      LEFT JOIN \".DB_SUSPENDS.\" s ON u.user_id=s.suspended_user
      WHERE user_id='\".$_GET['lookup'].\"'\".$user_status.\"
      ORDER BY suspend_date DESC
      LIMIT 1\"
   );

   if (dbrows($result)) { $user_data = dbarray($result); } else { redirect(\"index.php\"); }
   add_to_title($locale['global_200'].$locale['u103'].$locale['global_201'].$user_data['user_name']);

   if (iADMIN && checkrights(\"UG\") && $_GET['lookup'] != $userdata['user_id']) {
      if ((isset($_POST['add_to_group'])) && (isset($_POST['user_group']) && isnum($_POST['user_group']))) {
         if (!preg_match(\"(^\.{$_POST['user_group']}$|\.{$_POST['user_group']}\.|\.{$_POST['user_group']}$)\", $user_data['user_groups'])) {
            $result = dbquery(\"UPDATE \".DB_USERS.\" SET user_groups='\".$user_data['user_groups'].\".\".$_POST['user_group'].\"' WHERE user_id='\".$_GET['lookup'].\"'\");
         }
         redirect(FUSION_SELF.\"?lookup=\".$user_data['user_id']);
      }
   }

   opentable($locale['u104'].\" \".$user_data['user_name']);
   $userFields                = new UserFields();
   $userFields->userData          = $user_data;
   $userFields->showAdminOptions    = true;
   $userFields->displayOutput();
} elseif (isset($_GET['group_id']) && isnum($_GET['group_id'])) {
   $result = dbquery(\"SELECT group_id, group_name FROM \".DB_USER_GROUPS.\" WHERE group_id='\".$_GET['group_id'].\"'\");
   if (dbrows($result)) {
      $data = dbarray($result);
      $result = dbquery(
         \"SELECT user_id, user_name, user_level, user_status
         FROM \".DB_USERS.\"
         WHERE user_groups REGEXP('^\\\.{$_GET['group_id']}$|\\\.{$_GET['group_id']}\\\.|\\\.{$_GET['group_id']}$')
         ORDER BY user_level DESC, user_name\"
      );
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"award WHERE award_user='\".$user_data['user_id'].\"'\");
        echo \"
Apdovanojimai
\".$award['award_info'].\"
\n\n\";
        echo \"
\n\";
 while ($award = dbarray($result)) {
  echo \"
\n\";
  echo \"
\n\";
  echo \"
\n\";
 }

      opentable($locale['u110']);
      echo \"
Apdovanojimai
\".$award['award_info'].\"
\n\n\";
      echo \"
\n\n\n\";
      echo \"
\n\";
      echo \"
\n\";
      echo \"
\n\";
      while ($data = dbarray($result)) {
         $cell_color = ($i % 2 == 0 ? \"tbl1\" : \"tbl2\"); $i++;
         echo \"
\n\n\";
         echo \"
\n\";
      }


      echo \"
\".$data['group_name'].\"\n\";
      echo \"(\".sprintf((dbrows($result) == 1 ? $locale['u111'] : $locale['u112']), dbrows($result)).\")\";
      echo \"
\".$locale['u113'].\"\".$locale['u114'].\"
\n\".profile_link($data['user_id'], $data['user_name'], $data['user_status']).\"\".getuserlevel($data['user_level']).\"
\n\";
   } else {
      redirect(\"index.php\");
   }
} else {
   redirect(BASEDIR.\"index.php\");
}
closetable();

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


 
PM
Famiz
#6 Spausdinti pranešimą
parašyta 2011-06-06 11:17
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 33
Įstojo: 2008-10-05

Ai rinai, viskas puikiai veikia! :)
 
PM
Rinas
#7 Spausdinti pranešimą
parašyta 2011-06-06 13:48
Administratorius



Reputacija: 0

Pranešimai: 204
Įstojo: 2009-06-10

Adomukai, i? savo profile.php i?trink tai, k ra?ei (arba sikelk nauj profile.php), nes dabar esi nevietoj ra?s tuos apdovanojimus.

Atsidaryk includes/classes/UserFields.class.php, susirask (funkcijoje renderBaicOutputFields()):
Download source  Code
      if (iMEMBER && $userdata['user_id'] != $this->userData['user_id']) {
         $this->html .= \"
\";
         $this->html .= \"userData['user_id'].\"' title='\".$locale['u043'].\"'>\".$locale['u043'].\"\n\";
         if (iADMIN && checkrights(\"M\") && $this->userData['user_level'] != \"103\" && $this->userData['user_id'] != \"1\") {
            $this->html .= \" - userData['user_id'].\"'>\".$locale['u054'].\"\";
         }
         $this->html .= \"\";
         $this->html .= \"
\n\";



Ir po apaia ra?yk:
Download source  Code
      $result = dbquery(\"SELECT award_img, award_info FROM \".DB_PREFIX.\"award WHERE award_user='\".$this->userData['user_id'].\"'\");
      if (dbrows($result)) {
         $this->html .= \"
\n\n\n\";
         $this->html .= \"\n\";
         $this->html .= \"\n\";
         $this->html .= \"\n\n\n\";
         $this->html .= \"
Apdovanojimai
\n\";
         while ($award = dbarray($result)) $this->html .= \"> \";
         $this->html .= \"
\n\";
      }



Tada atsidaryk profile.php ir po:
Download source  Code
if (isset($_GET['lookup']) && isnum($_GET['lookup'])) {



dk:
Download source  Code
add_to_head(\"\");



Redagavo Rinas 2011-06-10 19:02  
PM
Prikas
#8 Spausdinti pranešimą
parašyta 2011-06-07 11:22
Naujokas



Reputacija: 0

Pranešimai: 22
Įstojo: 2011-01-21

Nerodo vis tiek nieko :)
Profilis:
[img]http://talpix.lt/?di=1TK6[/img]
Vartotojo laukeliai
[img]http://talpix.lt/?di=JEI1[/img]
Kodas, ar as gerai jy ydejau?
Download source  Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: UserFields.class.php
| Author: Hans Kristian Flaatten (Starefossen)
+--------------------------------------------------------+
| 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 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\"); }

class UserFields {
   public $displayTerms             = 0;
   public $displayValidation          = 0;
   public $errorsArray             = array();
   public $formaction                = FUSION_SELF;
   public $formname                = \"inputform\";
   public $isAdminPanel             = false;
   public $postName;
   public $postValue;
   public $showAdminOptions          = false;
   public $showAdminPass             = true;
   public $showAvatarInput          = true;
   public $skipCurrentPass          = false;
   public $userData                = array(\"user_name\", \"user_password\", \"user_admin_password\", \"user_email\");

   private $html                  = \"\";
   private $js                     = \"\";
   private $javaScriptOther;
   private $javaScriptRequired;
   private $method;

   private $_userNameChange      = true;

   public function displayInput() {
      global $locale;

      $this->method = \"input\";

      $enctype = $this->showAvatarInput ? \" enctype='multipart/form-data'\" : \"\";
      $this->html .= \"
formname.\"' method='post' action='\".$this->formaction.\"'\".$enctype.\" onsubmit='return ValidateForm(this)'>\n\";
      $this->html .= \"\n\";

      $this->renderBaicInputFields();
      if ($this->displayValidation == 1) { $this->renderValidation(); }
      $this->renderFields();
      if ($this->displayTerms == 1) { $this->renderTerms(); }
      $this->renderButton();

      $this->html .= \"
\n
\n\";

      $this->js .= \"\n\";

      add_to_footer($this->js);

      echo $this->html;
   }

   public function displayOutput() {
      global $locale, $userdata;

      $this->method = \"display\";

      $this->renderBaicOutputFields();

      $this->renderFields();
      if (iADMIN && checkrights(\"M\")) { $this->renderIPOutput(); }
      if ($this->userData['user_groups']) { $this->renderUserGroups(); }
      if ($this->showAdminOptions && iADMIN && checkrights(\"M\") && $this->userData['user_id'] != $userdata['user_id'] && $this->userData['user_level'] < 102) {
         $this->renderAdminOptions();
      }

      echo $this->html;
   }

   public function setUserNameChange($value) {
      $this->_userNameChange = $value;
   }

   private function renderValidation() {
      global $settings, $locale;

      $_CAPTCHA_HIDE_INPUT = false;

      $this->html .= \"\n\n\";
      ob_start();
      include INCLUDES.\"captchas/\".$settings['captcha'].\"/captcha_display.php\";
      $this->html .= ob_get_contents();
      ob_end_clean();
      if (!$_CAPTCHA_HIDE_INPUT) {
         $this->html .= \"\n\n\";
         $this->html .= \"getErrorClass(\"user_captcha\").\"'>\n\";
         $this->html .= \"getErrorClass(\"user_captcha\").\"'>\";
         $this->html .= \"\";
      }
      $this->html .= \"\n\n\";
   }

   private function renderTerms() {
      global $locale;

      $this->html .= \"\n\".$locale['u192'] .\"*\n\";
      $this->html .= \">\n\";
      $this->html .= \"\n\";
      $this->html .= \"\n\n\";

      $this->javaScriptOther .= \"   function checkagreement() {\n\";
      $this->javaScriptOther .= \"      if(document.inputform.agreement.checked) {\n\";
      $this->javaScriptOther .= \"         document.inputform.register.disabled=false;\n\";
      $this->javaScriptOther .= \"      } else {\n\";
      $this->javaScriptOther .= \"         document.inputform.register.disabled=true;\n\";
      $this->javaScriptOther .= \"      }\n\";
      $this->javaScriptOther .= \"   }\n\";
   }

   private function basicInputField($name, $text, $length, $isRequired = \"\", $type = \"text\", $haveValue = true, $error_class = \"\") {
      $errorClass = $error_class != \"\" ? $error_class : $name;
      $class = $errorClass.\" tbl\".$this->getErrorClass($errorClass);

      if ($haveValue) {
         $value = isset($this->userData[$name]) ? $this->userData[$name] : \"\";
         $value = isset($_POST[$name]) ? stripinput($_POST[$name]) : $value;
      } else {
         $value = \"\";
      }

      if ($isRequired != \"\") {
         $required = \"*\";
         $this->setRequiredJavaScript($name, $isRequired);
      } else {
         $required = \"\";
      }

      $returnHTML = \"\n\";
      $returnHTML .= \"\n\";
      $returnHTML .= \"\";
      $returnHTML .= \"\";
      $returnHTML .= \"\n\n\";

      return $returnHTML;
   }

   private function renderBaicInputFields() {
      global $locale;

      // Login Password
      $passRequired = $this->skipCurrentPass ? $locale['u136'] : \"\";
      $passRequired = $this->isAdminPanel ? \"\" : $passRequired;
      $this->html .= \"\n\".$locale['u133'].\"\n\n\";
      if (!$this->skipCurrentPass) {
         $this->html .= $this->basicInputField(\"user_password\", $locale['u133'], \"20\", \"\", \"password\", false, \"user_password\");
      }
      $this->html .= $this->basicInputField(\"user_new_password\", $locale['u134'], \"20\", $passRequired, \"password\", false, \"user_password\");
      $this->html .= \"\n\n\".$locale['u147'].\"\n\n\";
      $this->html .= $this->basicInputField(\"user_new_password2\", $locale['u135'], \"20\", $passRequired, \"password\", false, \"user_password\");

      // Admin Password
      if ($this->showAdminPass && iADMIN) {
         $this->html .= \"\n\".$locale['u131'].\"\n\";
         if ($this->userData['user_admin_password']) {
            $this->html .= $this->basicInputField(\"user_admin_password\", $locale['u131'], \"20\", \"\", \"password\", false, \"user_admin_password\");
         }
         $this->html .= $this->basicInputField(\"user_new_admin_password\", $locale['u144'], \"20\", \"\", \"password\", false, \"user_admin_password\");
         $this->html .= \"\n\n\".$locale['u147'].\"\n\n\";
         $this->html .= $this->basicInputField(\"user_new_admin_password2\", $locale['u145'], \"20\", \"\", \"password\", false, \"user_admin_password\");
      }

      // Hide email
      $this->html .= \"\n\".$locale['u129'].\"\n\";
      $this->html .= (iADMIN || $this->_userNameChange ? $this->basicInputField(\"user_name\", $locale['u127'], \"30\", $locale['u122']) : \"\");
      $this->html .= $this->basicInputField(\"user_email\", $locale['u128'], \"100\", $locale['u126']);
      $hide = isset($this->userData['user_hide_email']) ? $this->userData['user_hide_email'] : 1;
      $hide = isset($_POST['user_hide_email']) && isnum($_POST['user_hide_email']) ? $_POST['user_hide_email'] : $hide;
      $this->html .= \"\n\";
      $this->html .= \"\".$locale['u051'].\"\n\";
      $this->html .= \"\n\";
      $this->html .= \"\";
      $this->html .= \"\n\n\";

      // User Avatar
      if ($this->showAvatarInput) { $this->renderAvatarInput(); }
   }

   private function basicOutputField($name, $value, $class, $rowspan = 0) {
      global $locale;

      $returnHTML = \"\n\";
      if ($rowspan > 0) {
         $returnHTML .= \"\";
         $returnHTML .= \"userData['user_avatar'].\"' class='avatar' alt='\".$locale['u062'].\"' title='\".$locale['u062'].\"' />\";
         $returnHTML .= \"\n\";
      }
      $returnHTML .= \"\".$name.\"\n\";
      $returnHTML .= \"\".$value.\"\n\";
      $returnHTML .= \"\n\";

      return $returnHTML;
   }

   private function renderBaicOutputFields() {
      global $locale, $userdata, $aidlink;

      $rowspan = 4;

      $this->html .= \"\n\";
      $returnFields = $this->basicOutputField($locale['u063'], getuserlevel($this->userData['user_level']), \"profile_user_level\");
      if (iADMIN || $this->userData['user_hide_email'] == 0) {
         $rowspan = $rowspan+1;
         $returnFields .= $this->basicOutputField($locale['u064'], hide_email($this->userData['user_email']), \"profile_user_email\");
      }
      $lastVisit = $this->userData['user_lastvisit'] ? showdate(\"longdate\", $this->userData['user_lastvisit']) : $locale['u042'];
      $returnFields .= $this->basicOutputField($locale['u066'], showdate(\"longdate\", $this->userData['user_joined']), \"profile_user_joined\");
      $returnFields .= $this->basicOutputField($locale['u067'], $lastVisit, \"profile_user_visit\");

      if ($this->userData['user_avatar'] == \"\" || !file_exists(IMAGES.\"avatars/\".$this->userData['user_avatar'])) {
         $this->userData['user_avatar'] = \"noavatar100.png\";
      }

      $this->html .= $this->basicOutputField($locale['u068'], $this->userData['user_name'], \"profile_user_name\", $rowspan);
      $this->html .= $returnFields;

      if (iMEMBER && $userdata['user_id'] != $this->userData['user_id']) {
         $this->html .= \"\n\n\";
      $result = dbquery(\"SELECT award_img, award_info FROM \".DB_PREFIX.\"award WHERE award_user='\".$user_data['user_id'].\"'\");
      if (dbrows($result)) {
         $this->html .= \"
\n
\";
         $this->html .= \"userData['user_id'].\"' title='\".$locale['u043'].\"'>\".$locale['u043'].\"\n\";
         if (iADMIN && checkrights(\"M\") && $this->userData['user_level'] != \"103\" && $this->userData['user_id'] != \"1\") {
            $this->html .= \" - userData['user_id'].\"'>\".$locale['u054'].\"\";
         }
         $this->html .= \"\";
         $this->html .= \"
\n\n\";
         $this->html .= \"\n\";
         $this->html .= \"\n\";
         $this->html .= \"\n\n\n\";
         $this->html .= \"
Apdovanojimai
\n\";
         while ($award = dbarray($result)) $this->html .= \"> \";
         $this->html .= \"
\n\";
      }

      }
      $this->html .= \"\n\";

      if (iADMIN && $this->userData['user_status'] > 0) {
         $this->html .= \"
\n\";
         $this->html .= \"\n\n\";
         $this->html .= \"\n\";
         $this->html .= \"\n\";
         $this->html .= $this->basicOutputField($locale['u056'], $this->userData['suspend_reason'], \"profile_user_reason\");
         $this->html .= \"
\".$locale['u055'].\" \".getuserstatus($this->userData['user_status']).\"
\n\";
      }
   }

   private function renderIPOutput() {
      global $locale;

      $this->html .= \"
\n\";
      $this->html .= \"\n\n\";
      $this->html .= \"\n\";
      $this->html .= \"\n\";
      $this->html .= $this->basicOutputField($locale['u049'], $this->userData['user_ip'], \"profile_user_ip\");
      $this->html .= \"
\".$locale['u048'].\"
\n\";
   }

   private function renderUserGroups() {
      global $locale;

      $this->html .= \"
\n\";
      $this->html .= \"\n\n\";
      $this->html .= \"\n\";
      $this->html .= \"\n\n\";
      $this->html .= \"\n\n
\".$locale['u057'].\"
\n\";
      $user_groups = strpos($this->userData['user_groups'], \".\") == 0 ? substr($this->userData['user_groups'], 1) : $this->userData['user_groups'];
      $user_groups = explode(\".\", $user_groups);
      for ($i = 0; $i < count($user_groups); $i++) {
         $this->html .= \"\n\";
         $this->html .= \"
\".getgroupname($user_groups[$i], true).\"
\n\";
         $this->html .= \"
\n\";
      }
      $this->html .= \"
\n\";
   }

   private function renderAdminOptions() {
      global $locale, $groups_cache, $aidlink;

      if (!$groups_cache) { cache_groups(); }

      $user_groups_opts = \"\";

      $this->html .= \"
\n\";
      $this->html .= \"
userData['user_id'].\"'>\n\";
      $this->html .= \"\n\n\";
      $this->html .= \"\n\";
      $this->html .= \"\n\n\";
      $this->html .= \"\n\";
         }
      }
      $this->html .= \"\n
\".$locale['u058'].\"
\n\";
      $this->html .= \"userData['user_id'].\"'>\".$locale['u069'].\" ::\n\";
      $this->html .= \"userData['user_id'].\"'>\".$locale['u070'].\" ::\n\";
      $this->html .= \"userData['user_id'].\"'>\".$locale['u071'].\" ::\n\";
      $this->html .= \"userData['user_id'].\"' onclick=\\"return confirm('\".$locale['u073'].\"');\\">\".$locale['u072'].\"\n\";
      if (count($groups_cache) > 0) {
         foreach($groups_cache as $group) {
            if (!preg_match(\"(^{$group['group_id']}|\.{$group['group_id']}\.|\.{$group['group_id']}$)\", $this->userData['user_groups'])) {
               $user_groups_opts .= \"\n\";
            }
         }
         if (iADMIN && checkrights(\"UG\") && $user_groups_opts) {
            $this->html .= \"
\".$locale['u061'].\":\n\";
            $this->html .= \"\n\";
            $this->html .= \">\n\";
            $this->html .= \"
\n
\n\";
   }

   private function renderAvatarInput() {
      global $locale, $settings;

      $this->html .= \"\n\";
      $this->html .= \"getErrorClass(\"user_avatar\").\"'>\";
      $this->html .= \"\n\";
      $this->html .= \"getErrorClass(\"user_avatar\").\"'>\";

      if (isset($this->userData['user_avatar']) && $this->userData['user_avatar'] != \"\") {
         $this->html .= \"\n
\n\";
         $this->html .= \" \".$locale['u187'].\"
\n
\n\";
      }

      $this->html .= \"
\n\";
      $this->html .= \"\".$locale['u186'].\"
\n\";
      $this->html .= sprintf($locale['u184'], parsebytesize($settings['avatar_filesize']), $settings['avatar_width'], $settings['avatar_height']);
      $this->html .= \"
\n\n\";
   }

   private function renderFields() {
      global $settings, $locale;

      $user_data       = $this->userData;
      $profile_method = $this->method;
      $fields       = array();
      $cats          = array();
      $obActiva       = false;
      $i             = 0;

      $result = dbquery(
         \"SELECT * FROM \".DB_USER_FIELDS.\" tuf
         INNER JOIN \".DB_USER_FIELD_CATS.\" tufc ON tuf.field_cat = tufc.field_cat_id
         ORDER BY field_cat_order, field_order\"
      );
      if (dbrows($result)) {
         while($data = dbarray($result)) {
            $required = $data['field_required'] == 1 ? \"*\" : \"\";
            if ($i != $data['field_cat']) {
               if ($obActiva) {
                  $fields[$i] = ob_get_contents();
                  ob_end_clean();
                  $obActiva = false;
               }
               $i = $data['field_cat'];
               $cats[] = array(
                  \"field_cat_name\" => $data['field_cat_name'],
                  \"field_cat\" => $data['field_cat']
               );
            }
            if (!$obActiva) {
               ob_start();
               $obActiva = true;
            }
            if (file_exists(LOCALE.LOCALESET.\"user_fields/\".$data['field_name'].\".php\")) {
               include LOCALE.LOCALESET.\"user_fields/\".$data['field_name'].\".php\";
            }
            if (file_exists(INCLUDES.\"user_fields/\".$data['field_name'].\"_include.php\")) {
               include INCLUDES.\"user_fields/\".$data['field_name'].\"_include.php\";
            }
         }
      }
      if ($obActiva) {
         $fields[$i] = ob_get_contents();
         ob_end_clean();
      }

      $i = 1;
      foreach ($cats as $cat) {
         if (array_key_exists($cat['field_cat'], $fields) && $fields[$cat['field_cat']]) {
            $this->html .= \"\n\";
            if ($this->method == \"display\") {
               $this->html .= \"
\n\";
               $this->html .= \"\n\";
            }
            $this->html .= \"\n\";
            $this->html .= \"\n\";
            $this->html .= \"\n\".$fields[$cat['field_cat']];
            $i++;
            if ($this->method == \"display\") {
               $this->html .= \"
\".$cat['field_cat_name'].\"
\n\";
            }
         }
      }
      if (count($fields > 0)) {
         $this->html .= \"\n\";
      }
   }

   private function renderButton() {
      $dissabled = $this->displayTerms == 1 ? \" disabled='disabled'\" : \"\";

      $this->html .= \"\n
\n\";
      if (!$this->skipCurrentPass) {
         $this->html .= \"userData['user_password'].\"' />\n\";
      }
      $this->html .= \"postName.\"' value='\".$this->postValue.\"' class='button'\".$dissabled.\" />\n\";
      $this->html .= \"\n\n\";
   }

   private function isError() {
      if (count($this->errorsArray) == 0) {
         return false;
      } else {
         return true;
      }
   }

   private function getErrorClass($field) {
      if (isset($this->errorsArray[$field])) {
         return \" tbl-error\";
      } else {
         return \"\";
      }
   }

   private function setRequiredJavaScript($field, $message) {
      $this->javaScriptRequired .= \"      if (frm.\".$field.\".value==\\"\\") {\n\";
      $this->javaScriptRequired .= \"         alert(\\"\".$message.\"\\");\n\";
      $this->javaScriptRequired .= \"         return false;\n\";
      $this->javaScriptRequired .= \"      }\n\";
   }
}
?>



O profile.php faila tai ykeliau is naujo, ir koda ydejau tikrai vietoj, ten nebuvo kur suklysti as tik del UserFields.class.php abejoju ar gerai ykeliau  
PM
Rinas
#9 Spausdinti pranešimą
parašyta 2011-06-07 14:25
Administratorius



Reputacija: 0

Pranešimai: 204
Įstojo: 2009-06-10

UserFields.class.php:
Download source  Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: UserFields.class.php
| Author: Hans Kristian Flaatten (Starefossen)
+--------------------------------------------------------+
| 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 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\"); }

class UserFields {
   public $displayTerms             = 0;
   public $displayValidation          = 0;
   public $errorsArray             = array();
   public $formaction                = FUSION_SELF;
   public $formname                = \"inputform\";
   public $isAdminPanel             = false;
   public $postName;
   public $postValue;
   public $showAdminOptions          = false;
   public $showAdminPass             = true;
   public $showAvatarInput          = true;
   public $skipCurrentPass          = false;
   public $userData                = array(\"user_name\", \"user_password\", \"user_admin_password\", \"user_email\");

   private $html                  = \"\";
   private $js                     = \"\";
   private $javaScriptOther;
   private $javaScriptRequired;
   private $method;

   private $_userNameChange      = true;

   public function displayInput() {
      global $locale;

      $this->method = \"input\";

      $enctype = $this->showAvatarInput ? \" enctype='multipart/form-data'\" : \"\";
      $this->html .= \"
formname.\"' method='post' action='\".$this->formaction.\"'\".$enctype.\" onsubmit='return ValidateForm(this)'>\n\";
      $this->html .= \"\n\";

      $this->renderBaicInputFields();
      if ($this->displayValidation == 1) { $this->renderValidation(); }
      $this->renderFields();
      if ($this->displayTerms == 1) { $this->renderTerms(); }
      $this->renderButton();

      $this->html .= \"
\n
\n\";

      $this->js .= \"\n\";

      add_to_footer($this->js);

      echo $this->html;
   }

   public function displayOutput() {
      global $locale, $userdata;

      $this->method = \"display\";

      $this->renderBaicOutputFields();

      $this->renderFields();
      if (iADMIN && checkrights(\"M\")) { $this->renderIPOutput(); }
      if ($this->userData['user_groups']) { $this->renderUserGroups(); }
      if ($this->showAdminOptions && iADMIN && checkrights(\"M\") && $this->userData['user_id'] != $userdata['user_id'] && $this->userData['user_level'] < 102) {
         $this->renderAdminOptions();
      }

      echo $this->html;
   }

   public function setUserNameChange($value) {
      $this->_userNameChange = $value;
   }

   private function renderValidation() {
      global $settings, $locale;

      $_CAPTCHA_HIDE_INPUT = false;

      $this->html .= \"\n\n\";
      ob_start();
      include INCLUDES.\"captchas/\".$settings['captcha'].\"/captcha_display.php\";
      $this->html .= ob_get_contents();
      ob_end_clean();
      if (!$_CAPTCHA_HIDE_INPUT) {
         $this->html .= \"\n\n\";
         $this->html .= \"getErrorClass(\"user_captcha\").\"'>\n\";
         $this->html .= \"getErrorClass(\"user_captcha\").\"'>\";
         $this->html .= \"\";
      }
      $this->html .= \"\n\n\";
   }

   private function renderTerms() {
      global $locale;

      $this->html .= \"\n\".$locale['u192'] .\"*\n\";
      $this->html .= \">\n\";
      $this->html .= \"\n\";
      $this->html .= \"\n\n\";

      $this->javaScriptOther .= \"   function checkagreement() {\n\";
      $this->javaScriptOther .= \"      if(document.inputform.agreement.checked) {\n\";
      $this->javaScriptOther .= \"         document.inputform.register.disabled=false;\n\";
      $this->javaScriptOther .= \"      } else {\n\";
      $this->javaScriptOther .= \"         document.inputform.register.disabled=true;\n\";
      $this->javaScriptOther .= \"      }\n\";
      $this->javaScriptOther .= \"   }\n\";
   }

   private function basicInputField($name, $text, $length, $isRequired = \"\", $type = \"text\", $haveValue = true, $error_class = \"\") {
      $errorClass = $error_class != \"\" ? $error_class : $name;
      $class = $errorClass.\" tbl\".$this->getErrorClass($errorClass);

      if ($haveValue) {
         $value = isset($this->userData[$name]) ? $this->userData[$name] : \"\";
         $value = isset($_POST[$name]) ? stripinput($_POST[$name]) : $value;
      } else {
         $value = \"\";
      }

      if ($isRequired != \"\") {
         $required = \"*\";
         $this->setRequiredJavaScript($name, $isRequired);
      } else {
         $required = \"\";
      }

      $returnHTML = \"\n\";
      $returnHTML .= \"\n\";
      $returnHTML .= \"\";
      $returnHTML .= \"\";
      $returnHTML .= \"\n\n\";

      return $returnHTML;
   }

   private function renderBaicInputFields() {
      global $locale;

      // Login Password
      $passRequired = $this->skipCurrentPass ? $locale['u136'] : \"\";
      $passRequired = $this->isAdminPanel ? \"\" : $passRequired;
      $this->html .= \"\n\".$locale['u133'].\"\n\n\";
      if (!$this->skipCurrentPass) {
         $this->html .= $this->basicInputField(\"user_password\", $locale['u133'], \"20\", \"\", \"password\", false, \"user_password\");
      }
      $this->html .= $this->basicInputField(\"user_new_password\", $locale['u134'], \"20\", $passRequired, \"password\", false, \"user_password\");
      $this->html .= \"\n\n\".$locale['u147'].\"\n\n\";
      $this->html .= $this->basicInputField(\"user_new_password2\", $locale['u135'], \"20\", $passRequired, \"password\", false, \"user_password\");

      // Admin Password
      if ($this->showAdminPass && iADMIN) {
         $this->html .= \"\n\".$locale['u131'].\"\n\";
         if ($this->userData['user_admin_password']) {
            $this->html .= $this->basicInputField(\"user_admin_password\", $locale['u131'], \"20\", \"\", \"password\", false, \"user_admin_password\");
         }
         $this->html .= $this->basicInputField(\"user_new_admin_password\", $locale['u144'], \"20\", \"\", \"password\", false, \"user_admin_password\");
         $this->html .= \"\n\n\".$locale['u147'].\"\n\n\";
         $this->html .= $this->basicInputField(\"user_new_admin_password2\", $locale['u145'], \"20\", \"\", \"password\", false, \"user_admin_password\");
      }

      // Hide email
      $this->html .= \"\n\".$locale['u129'].\"\n\";
      $this->html .= (iADMIN || $this->_userNameChange ? $this->basicInputField(\"user_name\", $locale['u127'], \"30\", $locale['u122']) : \"\");
      $this->html .= $this->basicInputField(\"user_email\", $locale['u128'], \"100\", $locale['u126']);
      $hide = isset($this->userData['user_hide_email']) ? $this->userData['user_hide_email'] : 1;
      $hide = isset($_POST['user_hide_email']) && isnum($_POST['user_hide_email']) ? $_POST['user_hide_email'] : $hide;
      $this->html .= \"\n\";
      $this->html .= \"\".$locale['u051'].\"\n\";
      $this->html .= \"\n\";
      $this->html .= \"\";
      $this->html .= \"\n\n\";

      // User Avatar
      if ($this->showAvatarInput) { $this->renderAvatarInput(); }
   }

   private function basicOutputField($name, $value, $class, $rowspan = 0) {
      global $locale;

      $returnHTML = \"\n\";
      if ($rowspan > 0) {
         $returnHTML .= \"\";
         $returnHTML .= \"userData['user_avatar'].\"' class='avatar' alt='\".$locale['u062'].\"' title='\".$locale['u062'].\"' />\";
         $returnHTML .= \"\n\";
      }
      $returnHTML .= \"\".$name.\"\n\";
      $returnHTML .= \"\".$value.\"\n\";
      $returnHTML .= \"\n\";

      return $returnHTML;
   }

   private function renderBaicOutputFields() {
      global $locale, $userdata, $aidlink;

      $rowspan = 4;

      $this->html .= \"\n\";
      $returnFields = $this->basicOutputField($locale['u063'], getuserlevel($this->userData['user_level']), \"profile_user_level\");
      if (iADMIN || $this->userData['user_hide_email'] == 0) {
         $rowspan = $rowspan+1;
         $returnFields .= $this->basicOutputField($locale['u064'], hide_email($this->userData['user_email']), \"profile_user_email\");
      }
      $lastVisit = $this->userData['user_lastvisit'] ? showdate(\"longdate\", $this->userData['user_lastvisit']) : $locale['u042'];
      $returnFields .= $this->basicOutputField($locale['u066'], showdate(\"longdate\", $this->userData['user_joined']), \"profile_user_joined\");
      $returnFields .= $this->basicOutputField($locale['u067'], $lastVisit, \"profile_user_visit\");

      if ($this->userData['user_avatar'] == \"\" || !file_exists(IMAGES.\"avatars/\".$this->userData['user_avatar'])) {
         $this->userData['user_avatar'] = \"noavatar100.png\";
      }

      $this->html .= $this->basicOutputField($locale['u068'], $this->userData['user_name'], \"profile_user_name\", $rowspan);
      $this->html .= $returnFields;

      if (iMEMBER && $userdata['user_id'] != $this->userData['user_id']) {
         $this->html .= \"\n\n\";
      }
      $this->html .= \"
\";
         $this->html .= \"userData['user_id'].\"' title='\".$locale['u043'].\"'>\".$locale['u043'].\"\n\";
         if (iADMIN && checkrights(\"M\") && $this->userData['user_level'] != \"103\" && $this->userData['user_id'] != \"1\") {
            $this->html .= \" - userData['user_id'].\"'>\".$locale['u054'].\"\";
         }
         $this->html .= \"\";
         $this->html .= \"
\n\";

      $result = dbquery(\"SELECT award_img, award_info FROM \".DB_PREFIX.\"award WHERE award_user='\".$this->userData['user_id'].\"'\");
      if (dbrows($result)) {
         $this->html .= \"
\n\n\n\";
         $this->html .= \"\n\";
         $this->html .= \"\n\";
         $this->html .= \"\n\n\n\";
         $this->html .= \"
Apdovanojimai
\n\";
         while ($award = dbarray($result)) $this->html .= \"> \";
         $this->html .= \"
\n\";
      }

      if (iADMIN && $this->userData['user_status'] > 0) {
         $this->html .= \"
\n\";
         $this->html .= \"\n\n\";
         $this->html .= \"\n\";
         $this->html .= \"\n\";
         $this->html .= $this->basicOutputField($locale['u056'], $this->userData['suspend_reason'], \"profile_user_reason\");
         $this->html .= \"
\".$locale['u055'].\" \".getuserstatus($this->userData['user_status']).\"
\n\";
      }
   }

   private function renderIPOutput() {
      global $locale;

      $this->html .= \"
\n\";
      $this->html .= \"\n\n\";
      $this->html .= \"\n\";
      $this->html .= \"\n\";
      $this->html .= $this->basicOutputField($locale['u049'], $this->userData['user_ip'], \"profile_user_ip\");
      $this->html .= \"
\".$locale['u048'].\"
\n\";
   }

   private function renderUserGroups() {
      global $locale;

      $this->html .= \"
\n\";
      $this->html .= \"\n\n\";
      $this->html .= \"\n\";
      $this->html .= \"\n\n\";
      $this->html .= \"\n\n
\".$locale['u057'].\"
\n\";
      $user_groups = strpos($this->userData['user_groups'], \".\") == 0 ? substr($this->userData['user_groups'], 1) : $this->userData['user_groups'];
      $user_groups = explode(\".\", $user_groups);
      for ($i = 0; $i < count($user_groups); $i++) {
         $this->html .= \"\n\";
         $this->html .= \"
\".getgroupname($user_groups[$i], true).\"
\n\";
         $this->html .= \"
\n\";
      }
      $this->html .= \"
\n\";
   }

   private function renderAdminOptions() {
      global $locale, $groups_cache, $aidlink;

      if (!$groups_cache) { cache_groups(); }

      $user_groups_opts = \"\";

      $this->html .= \"
\n\";
      $this->html .= \"
userData['user_id'].\"'>\n\";
      $this->html .= \"\n\n\";
      $this->html .= \"\n\";
      $this->html .= \"\n\n\";
      $this->html .= \"\n\";
         }
      }
      $this->html .= \"\n
\".$locale['u058'].\"
\n\";
      $this->html .= \"userData['user_id'].\"'>\".$locale['u069'].\" ::\n\";
      $this->html .= \"userData['user_id'].\"'>\".$locale['u070'].\" ::\n\";
      $this->html .= \"userData['user_id'].\"'>\".$locale['u071'].\" ::\n\";
      $this->html .= \"userData['user_id'].\"' onclick=\\"return confirm('\".$locale['u073'].\"');\\">\".$locale['u072'].\"\n\";
      if (count($groups_cache) > 0) {
         foreach($groups_cache as $group) {
            if (!preg_match(\"(^{$group['group_id']}|\.{$group['group_id']}\.|\.{$group['group_id']}$)\", $this->userData['user_groups'])) {
               $user_groups_opts .= \"\n\";
            }
         }
         if (iADMIN && checkrights(\"UG\") && $user_groups_opts) {
            $this->html .= \"
\".$locale['u061'].\":\n\";
            $this->html .= \"\n\";
            $this->html .= \">\n\";
            $this->html .= \"
\n
\n\";
   }

   private function renderAvatarInput() {
      global $locale, $settings;

      $this->html .= \"\n\";
      $this->html .= \"getErrorClass(\"user_avatar\").\"'>\";
      $this->html .= \"\n\";
      $this->html .= \"getErrorClass(\"user_avatar\").\"'>\";

      if (isset($this->userData['user_avatar']) && $this->userData['user_avatar'] != \"\") {
         $this->html .= \"\n
\n\";
         $this->html .= \" \".$locale['u187'].\"
\n
\n\";
      }

      $this->html .= \"
\n\";
      $this->html .= \"\".$locale['u186'].\"
\n\";
      $this->html .= sprintf($locale['u184'], parsebytesize($settings['avatar_filesize']), $settings['avatar_width'], $settings['avatar_height']);
      $this->html .= \"
\n\n\";
   }

   private function renderFields() {
      global $settings, $locale;

      $user_data       = $this->userData;
      $profile_method = $this->method;
      $fields       = array();
      $cats          = array();
      $obActiva       = false;
      $i             = 0;

      $result = dbquery(
         \"SELECT * FROM \".DB_USER_FIELDS.\" tuf
         INNER JOIN \".DB_USER_FIELD_CATS.\" tufc ON tuf.field_cat = tufc.field_cat_id
         ORDER BY field_cat_order, field_order\"
      );
      if (dbrows($result)) {
         while($data = dbarray($result)) {
            $required = $data['field_required'] == 1 ? \"*\" : \"\";
            if ($i != $data['field_cat']) {
               if ($obActiva) {
                  $fields[$i] = ob_get_contents();
                  ob_end_clean();
                  $obActiva = false;
               }
               $i = $data['field_cat'];
               $cats[] = array(
                  \"field_cat_name\" => $data['field_cat_name'],
                  \"field_cat\" => $data['field_cat']
               );
            }
            if (!$obActiva) {
               ob_start();
               $obActiva = true;
            }
            if (file_exists(LOCALE.LOCALESET.\"user_fields/\".$data['field_name'].\".php\")) {
               include LOCALE.LOCALESET.\"user_fields/\".$data['field_name'].\".php\";
            }
            if (file_exists(INCLUDES.\"user_fields/\".$data['field_name'].\"_include.php\")) {
               include INCLUDES.\"user_fields/\".$data['field_name'].\"_include.php\";
            }
         }
      }
      if ($obActiva) {
         $fields[$i] = ob_get_contents();
         ob_end_clean();
      }

      $i = 1;
      foreach ($cats as $cat) {
         if (array_key_exists($cat['field_cat'], $fields) && $fields[$cat['field_cat']]) {
            $this->html .= \"\n\";
            if ($this->method == \"display\") {
               $this->html .= \"
\n\";
               $this->html .= \"\n\";
            }
            $this->html .= \"\n\";
            $this->html .= \"\n\";
            $this->html .= \"\n\".$fields[$cat['field_cat']];
            $i++;
            if ($this->method == \"display\") {
               $this->html .= \"
\".$cat['field_cat_name'].\"
\n\";
            }
         }
      }
      if (count($fields > 0)) {
         $this->html .= \"\n\";
      }
   }

   private function renderButton() {
      $dissabled = $this->displayTerms == 1 ? \" disabled='disabled'\" : \"\";

      $this->html .= \"\n
\n\";
      if (!$this->skipCurrentPass) {
         $this->html .= \"userData['user_password'].\"' />\n\";
      }
      $this->html .= \"postName.\"' value='\".$this->postValue.\"' class='button'\".$dissabled.\" />\n\";
      $this->html .= \"\n\n\";
   }

   private function isError() {
      if (count($this->errorsArray) == 0) {
         return false;
      } else {
         return true;
      }
   }

   private function getErrorClass($field) {
      if (isset($this->errorsArray[$field])) {
         return \" tbl-error\";
      } else {
         return \"\";
      }
   }

   private function setRequiredJavaScript($field, $message) {
      $this->javaScriptRequired .= \"      if (frm.\".$field.\".value==\\"\\") {\n\";
      $this->javaScriptRequired .= \"         alert(\\"\".$message.\"\\");\n\";
      $this->javaScriptRequired .= \"         return false;\n\";
      $this->javaScriptRequired .= \"      }\n\";
   }
}
?>



Redagavo Rinas 2011-06-10 19:02  
PM
Prikas
#10 Spausdinti pranešimą
parašyta 2011-06-07 15:20
Naujokas



Reputacija: 0

Pranešimai: 22
Įstojo: 2011-01-21

Dekui labai, viskas veikia kuo puikiausiai, tiktai gaila kad medalius rodo ir eina zemyn, neiseitu kitaip padaryt? :)[img]http://talpix.lt/?di=7V17[/img]
FamilyGuy.Too.Lt- Turbt vienintelis Lietuvoje ?eimos bio fan puslapis!
Ziurim.lt- naujausi filmai online!  
PM
Rinas
#11 Spausdinti pranešimą
parašyta 2011-06-07 17:04
Administratorius



Reputacija: 0

Pranešimai: 204
Įstojo: 2009-06-10

Man ka?kodl atrodo, kad tu djai ne tok UserFields.class.php, kaip a? daviau ankstesnje ?inutje... Lyg tai vietoj to mano kodo, terpei (ar ka?k pana?aus):
Download source  Code
 while ($award = dbarray($result)) {
   echo \"\n\";
   echo \" \".$award['award_info'].\"\n\";
   echo \"\n\";
  }



Jei mano duotas kodas netinka arba neveikia, ra?yk - perdarysiu.
Redagavo Rinas 2011-06-07 17:04  
PM
Peršokti į forumą: