Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 1110
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 ME_Haber 2.3..
(109066 okuma, 145 yanıt)
 Resim Galerisi Modülü 2.0..
(122305 okuma, 173 yanıt)
 Ustalardan Bir Ricam Olac..
(13662 okuma, 6 yanıt)
 nukecode.com will close..
(11225 okuma, 5 yanıt)
 super youtube player a lo..
(6350 okuma, 1 yanıt)
 Need good PHP Haber port..
(5617 okuma, 0 yanıt)
 Forum Nasil Tam Sayfa Olu..
(35239 okuma, 40 yanıt)
 Php nuke Forumu Düzenleme..
(9963 okuma, 6 yanıt)
 Yeni Üyelik Aktivasyon Li..
(11004 okuma, 6 yanıt)
 Aşk Flashları Modülü..
(7000 okuma, 2 yanıt)
 resim galeri 2.0 da kateg..
(11443 okuma, 9 yanıt)
 Yeni iki modul: Merhumlar..
(32446 okuma, 36 yanıt)
 ürün tanıtım modülü..
(25275 okuma, 23 yanıt)
 PHP Nuke is out..
(15073 okuma, 13 yanıt)
 MSN Video Bing Video oldu..
(5208 okuma, 0 yanıt)
 haberhit.com..
(5801 okuma, 1 yanıt)
 Bilgi Yarışması 1.0 tama..
(52127 okuma, 72 yanıt)
 Musıc Box elinde olan var..
(6704 okuma, 2 yanıt)
 Online Okey , Batak , Tav..
(173713 okuma, 340 yanıt)
 Emlak Modül ve Blockları ..
(12326 okuma, 8 yanıt)
 WM who ist shampions..
(5055 okuma, 1 yanıt)
 coppermine resim galerisi..
(5498 okuma, 1 yanıt)
 Forumda Teşekkür Eklentis..
(9101 okuma, 7 yanıt)
 free wordpress themes..
(5589 okuma, 1 yanıt)
 JW image rotator for nsn ..
(7668 okuma, 4 yanıt)
 need Iletisim module..
(11045 okuma, 8 yanıt)
 Yeni modul: İletişim modu..
(27722 okuma, 33 yanıt)
 Başvuru Modulu ve Etkinli..
(5843 okuma, 1 yanıt)
 world cup flash..
(5053 okuma, 0 yanıt)
 ..:: Php Nuke FTP link Ha..
(4949 okuma, 0 yanıt)
 yeni phpnuke youtube 2.0..
(5172 okuma, 1 yanıt)
 Content Plus Önceki Konu ..
(4782 okuma, 0 yanıt)
 Php nuke Tickets Modülü..
(7993 okuma, 5 yanıt)
 need help to news time..
(4556 okuma, 0 yanıt)
 NSN News v3.0 new plugin..
(4844 okuma, 0 yanıt)
 how to save flash as imag..
(6068 okuma, 2 yanıt)
 Video Blok Yardım Lütfen...
(6002 okuma, 2 yanıt)
 gazete ara..
(9808 okuma, 5 yanıt)
 Bizim Yazarlar ve Bizim Ş..
(14992 okuma, 14 yanıt)
 Nuke Reflections v2 Türkç..
(14597 okuma, 14 yanıt)
 CNB Your Account 750 442 ..
(14296 okuma, 13 yanıt)
 Admin panelindeki simge ç..
(12385 okuma, 9 yanıt)
 Hosting Modülü..
(14051 okuma, 13 yanıt)
 Bizim şairler Modülü..
(5191 okuma, 1 yanıt)
 new plugin for nsn news v..
(4770 okuma, 1 yanıt)
 php nuke 8.0 türkce dil s..
(6937 okuma, 3 yanıt)
 Kan Bankası Modül istek..
(6150 okuma, 2 yanıt)
 Haber Konulari Sayfasinda..
(5769 okuma, 2 yanıt)
 Kan Bankası Modülünde İsi..
(7077 okuma, 3 yanıt)
 sonhaberler flash block ..
(6636 okuma, 4 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - memberlist mödülünde ilginç bir hata
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


memberlist mödülünde ilginç bir hata

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> Php Nuke Modülleri
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-06-13, 00:23:10    Mesaj konusu: memberlist mödülünde ilginç bir hata Alıntıyla Cevap Gönder

sitemde memberlist modülü çalışıyo ama oradan herhangi bir üyeyenin üzerine tıkladığımda üye profili gelmiyo bu sorunu nasıl çözebiliriz yardımlarınızı bekliyorum ii çalışmalar
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-06-01, 14:26:26    Mesaj konusu: Forum Arası Reklamlar


Başa dön
HunTürk
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Apr 17, 2005
Mesajlar: 1279
Konum: ANKARA

MesajTarih: 2006-06-13, 00:37:38    Mesaj konusu: Alıntıyla Cevap Gönder

Ne geliyor onun yerine.. Hata ne ? Daha önde ne yaptın, yama güncelleme v.ss

Açık yazın biraz da bizde anlıyalım..
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-06-13, 00:56:07    Mesaj konusu: Alıntıyla Cevap Gönder

hiçbir eklenti yoq yasak deil ise adres www.foreveroyun.com/v1 bakabilirsiniz
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
HunTürk
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Apr 17, 2005
Mesajlar: 1279
Konum: ANKARA

MesajTarih: 2006-06-13, 01:05:43    Mesaj konusu: Alıntıyla Cevap Gönder

Forums/profile.php ve inculudes/sesinons.php nin orjinallerini gönder.. İlk kurulumda mı bu hatayı aldın..
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-06-25, 14:04:45    Mesaj konusu: Re: memberlist mödülünde ilginç bir hata Alıntıyla Cevap Gönder

Forums/profile.php

Kod:
<?php
/***************************************************************************
 *                                profile.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   Id: profile.php,v 1.193.2.5 2004/11/18 17:49:37 acydburn Exp
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/
if ( !defined('MODULE_FILE') )
{
   die("You can't access this file directly...");
}
if ($popup != "1"){
    $module_name = basename(dirname(__FILE__));
    require("modules/".$module_name."/nukebb.php");
}
else
{
    $phpbb_root_path = 'modules/Forums/';
}

define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_PROFILE, $nukeuser);
init_userprefs($userdata);
//
// End session management
//

// session id check
if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
{
        $sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : $HTTP_GET_VARS['sid'];
}
else
{
        $sid = '';
}

//
// Set default email variables
//
//$script_name = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['script_path']));
//$script_name = ( $script_name != '' ) ? $script_name . '/profile.'.$phpEx : 'profile.'.$phpEx;
$script_name = 'forumlar.html&file=profile';
$server_name = trim($board_config['server_name']);
$server_protocol = ( $board_config['c o o k i e_secure'] ) ? 'https://' : 'http://';
$server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/';

$server_url = $server_protocol . $server_name . $server_port . $script_name;

// -----------------------
// Page specific functions
//
function gen_rand_string($hash)
{
        $chars = array( 'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F', 'g', 'G', 'h', 'H', 'i', 'I', 'j', 'J',  'k', 'K', 'l', 'L', 'm', 'M', 'n', 'N', 'o', 'O', 'p', 'P', 'q', 'Q', 'r', 'R', 's', 'S', 't', 'T',  'u', 'U', 'v', 'V', 'w', 'W', 'x', 'X', 'y', 'Y', 'z', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');

        $max_chars = count($chars) - 1;
        srand( (double) microtime()*1000000);

        $rand_str = '';
        for($i = 0; $i < 8; $i++)
        {
                $rand_str = ( $i == 0 ) ? $chars[rand(0, $max_chars)] : $rand_str . $chars[rand(0, $max_chars)];
        }

        return ( $hash ) ? md5($rand_str) : $rand_str;
}
//
// End page specific functions
// ---------------------------

//
// Start of program proper
//
if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
{
        $mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
        $mode = htmlspecialchars($mode);
        if ( $mode == 'viewprofile' )
        {
                include("includes/usercp_viewprofile.php");
                exit;
        }
        else if ( $mode == 'editprofile' || $mode == 'register' )
        {
                if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )
                {
                        $header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", $_SERVER["SERVER_SOFTWARE"]) ) ? "Refresh: 0; URL=" : "Location: ";
                        header($header_location . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true));
                        exit;
                }

                include("includes/usercp_register.php");
      exit;
   }
   else if ( $mode == 'confirm' )
   {
      // Visual Confirmation
      if ( $userdata['session_logged_in'] )
      {
         exit;
      }

      exit;
   }
   else if ( $mode == 'sendpassword' )
   {
      include('includes/usercp_sendpasswd.'.$phpEx);
      exit;
   }
   else if ( $mode == 'activate' )
   {
      include('includes/usercp_activate.'.$phpEx);
      exit;
   }
   else if ( $mode == 'email' )
   {
      include('includes/usercp_email.'.$phpEx);
      exit;
   }
}

        $header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", $_SERVER["SERVER_SOFTWARE"]) ) ? "Refresh: 0; URL=" : "Location: ";
        header($header_location . append_sid("index.$phpEx", true));
        exit;

?>



inculudes/sesinons.php



Kod:
<?php
/***************************************************************************
 *                                sessions.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   Id: sessions.php,v 1.58.2.14 2005/05/06 20:50:11 acydburn Exp
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/
if ( !defined('IN_PHPBB') )
{
        die("Hacking attempt");
        exit;
}

//
// Adds/updates a new session to the database for the given userid.
// Returns the new session ID on success.
//
function session_begin($user_id, $user_ip, $page_id, $auto_create = 0, $enable_autologin = 0, $admin = 0)
{
   global $db, $board_config, $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $SID;

   $c o o k i ename = $board_config['c o o k i e_name'];
   $c o o k i epath = $board_config['c o o k i e_path'];
   $c o o k i edomain = $board_config['c o o k i e_domain'];
   $c o o k i esecure = $board_config['c o o k i e_secure'];

   if ( isset($HTTP_COOKIE_VARS[$c o o k i ename . '_sid']) || isset($HTTP_COOKIE_VARS[$c o o k i ename . '_data']) )
   {
      $session_id = isset($HTTP_COOKIE_VARS[$c o o k i ename . '_sid']) ? $HTTP_COOKIE_VARS[$c o o k i ename . '_sid'] : '';
      $sessiondata = isset($HTTP_COOKIE_VARS[$c o o k i ename . '_data']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$c o o k i ename . '_data'])) : array();
      $sessionmethod = SESSION_METHOD_COOKIE;
   }
   else
   {
      $sessiondata = array();
      $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : '';
      $sessionmethod = SESSION_METHOD_GET;
   }

   //
   if (!preg_match('/^[A-Za-z0-9]*$/', $session_id))
   {
      $session_id = '';
   }

   $page_id = (int) $page_id;

   $last_visit = 0;
   $current_time = time();
   $expiry_time = $current_time - $board_config['session_length'];

   //
   // Try and pull the last time stored in a c o o k i e, if it exists
   //
   $sql = "SELECT *
      FROM " . USERS_TABLE . "
      WHERE user_id = '$user_id'";
   if ( !($result = $db->sql_query($sql)) )
   {
      message_die(CRITICAL_ERROR, 'Could not obtain lastvisit data from user table', '', __LINE__, __FILE__, $sql);
   }

   $userdata = $db->sql_fetchrow($result);

   if ( $user_id != ANONYMOUS )
   {
      $auto_login_key = $userdata['user_password'];

      if ( $auto_create )
      {
         if ( isset($sessiondata['autologinid']) && $userdata['user_active'] )
         {
            // We have to login automagically
            if( $sessiondata['autologinid'] === $auto_login_key )
            {
               // autologinid matches password
               $login = 1;
               $enable_autologin = 1;
            }
            else
            {
               // No match; don't login, set as anonymous user
               $login = 0;
               $enable_autologin = 0;
               $user_id = $userdata['user_id'] = ANONYMOUS;
               $sql = 'SELECT * FROM ' . USERS_TABLE . ' WHERE user_id = ' . ANONYMOUS;
               $result = $db->sql_query($sql);
               $userdata = $db->sql_fetchrow($result);
               $db->sql_freeresult($result);
            }
         }
         else
         {
            // Autologin is not set. Don't login, set as anonymous user
            $login = 0;
            $enable_autologin = 0;
            $user_id = $userdata['user_id'] = ANONYMOUS;

            $sql = 'SELECT * FROM ' . USERS_TABLE . ' WHERE user_id = ' . ANONYMOUS;
            $result = $db->sql_query($sql);
            $userdata = $db->sql_fetchrow($result);
            $db->sql_freeresult($result);
         }
      }
      else
      {
         $login = 1;
      }
   }
   else
   {
      $login = 0;
      $enable_autologin = 0;
   }

   //
   // Initial ban check against user id, IP and email address
   //
   preg_match('/(..)(..)(..)(..)/', $user_ip, $user_ip_parts);

   $sql = "SELECT ban_ip, ban_userid, ban_email
      FROM " . BANLIST_TABLE . "
      WHERE ban_ip IN ('" . $user_ip_parts[1] . $user_ip_parts[2] . $user_ip_parts[3] . $user_ip_parts[4] . "', '" . $user_ip_parts[1] . $user_ip_parts[2] . $user_ip_parts[3] . "ff', '" . $user_ip_parts[1] . $user_ip_parts[2] . "ffff', '" . $user_ip_parts[1] . "ffffff')
         OR ban_userid = '$user_id'";
   if ( $user_id != ANONYMOUS )
   {
      $sql .= " OR ban_email LIKE '" . str_replace("\'", "''", $userdata['user_email']) . "'
         OR ban_email LIKE '" . substr(str_replace("\'", "''", $userdata['user_email']), strpos(str_replace("\'", "''", $userdata['user_email']), "@")) . "'";
   }
   if ( !($result = $db->sql_query($sql)) )
   {
      message_die(CRITICAL_ERROR, 'Could not obtain ban information', '', __LINE__, __FILE__, $sql);
   }

   if ( $ban_info = $db->sql_fetchrow($result) )
   {
      if ( $ban_info['ban_ip'] || $ban_info['ban_userid'] || $ban_info['ban_email'] )
      {
         message_die(CRITICAL_MESSAGE, 'You_been_banned');
      }
   }

   //
   // Create or update the session
   //
   $sql = "UPDATE " . SESSIONS_TABLE . "
      SET session_user_id = $user_id, session_start = $current_time, session_time = $current_time, session_page = $page_id, session_logged_in = $login, session_admin = $admin
      WHERE session_id = '" . $session_id . "'
         AND session_ip = '$user_ip'";
   if ( !$db->sql_query($sql) || !$db->sql_affectedrows() )
   {
      list($sec, $usec) = explode(' ', microtime());
      mt_srand((float) $sec + ((float) $usec * 100000));
      $session_id = md5(uniqid(mt_rand(), true));

      $sql = "INSERT INTO " . SESSIONS_TABLE . "
         (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in, session_admin)
         VALUES ('$session_id', '$user_id', '$current_time', '$current_time', '$user_ip', '$page_id', '$login', '$admin')";
      if ( !$db->sql_query($sql) )
      {
                $error = TRUE;
                if (SQL_LAYER == "mysql" || SQL_LAYER == "mysql4")
                {
                    $sql_error = $db->sql_error($result);
                    if ($sql_error["code"] == 1114)
                    {
                        $result = $db->sql_query('SHOW TABLE STATUS LIKE "'.SESSIONS_TABLE.'"');
                        $row = $db->sql_fetchrow($result);
                        if ($row["Type"] == "HEAP")
                        {
                            if ($row["Rows"] > 2500)
                            {
                                $delete_order = (SQL_LAYER=="mysql4") ? " ORDER BY session_time ASC" : "";
                                $db->sql_query("DELETE QUICK FROM ".SESSIONS_TABLE."$delete_order LIMIT 50");
                            }
                            else
                            {
                                $db->sql_query("ALTER TABLE ".SESSIONS_TABLE." MAX_ROWS=".($row["Rows"]+50));
                            }
                            if ($db->sql_query($sql))
                            {
                                $error = FALSE;
                            }
                        }
                    }
                }
                if ($error)
                {
                    message_die(CRITICAL_ERROR, "Error creating new session", "", __LINE__, __FILE__, $sql);
                }
                }
   }

   if ( $user_id != ANONYMOUS )
   {// ( $userdata['user_session_time'] > $expiry_time && $auto_create ) ? $userdata['user_lastvisit'] : (
      $last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_time'] : $current_time;
      if (!$admin)
      {

      $sql = "UPDATE " . USERS_TABLE . "
         SET user_session_time = $current_time, user_session_page = $page_id, user_lastvisit = $last_visit
         WHERE user_id = '$user_id'";
      if ( !$db->sql_query($sql) )
      {
         message_die(CRITICAL_ERROR, 'Error updating last visit time', '', __LINE__, __FILE__, $sql);
      }

      }

      $userdata['user_lastvisit'] = $last_visit;

      $sessiondata['autologinid'] = (!$admin) ? (( $enable_autologin && $sessionmethod == SESSION_METHOD_COOKIE ) ? $auto_login_key : '') : $sessiondata['autologinid'];
      $sessiondata['userid'] = $user_id;
   }

   $userdata['session_id'] = $session_id;
   $userdata['session_ip'] = $user_ip;
   $userdata['session_user_id'] = $user_id;
   $userdata['session_logged_in'] = $login;
   $userdata['session_page'] = $page_id;
   $userdata['session_start'] = $current_time;
   $userdata['session_time'] = $current_time;
   $userdata['session_admin'] = $admin;

   setc o o k i e($c o o k i ename . '_data', serialize($sessiondata), $current_time + 31536000, $c o o k i epath, $c o o k i edomain, $c o o k i esecure);
   setc o o k i e($c o o k i ename . '_sid', $session_id, 0, $c o o k i epath, $c o o k i edomain, $c o o k i esecure);

   $SID = 'sid=' . $session_id;

   return $userdata;
}

//
// Checks for a given user session, tidies session table and updates user
// sessions at each page refresh
//
function session_pagestart($user_ip, $thispage_id, $nukeuser)
{
   global $db, $lang, $board_config, $session_id, $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $SID;

   $c o o k i ename = $board_config['c o o k i e_name'];
   $c o o k i epath = $board_config['c o o k i e_path'];
   $c o o k i edomain = $board_config['c o o k i e_domain'];
   $c o o k i esecure = $board_config['c o o k i e_secure'];

   $current_time = time();
   unset($userdata);

   if ( isset($HTTP_COOKIE_VARS[$c o o k i ename . '_sid']) || isset($HTTP_COOKIE_VARS[$c o o k i ename . '_data']) )
   {
      $sessiondata = isset( $HTTP_COOKIE_VARS[$c o o k i ename . '_data'] ) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$c o o k i ename . '_data'])) : array();
      $session_id = isset( $HTTP_COOKIE_VARS[$c o o k i ename . '_sid'] ) ? $HTTP_COOKIE_VARS[$c o o k i ename . '_sid'] : '';
      $sessionmethod = SESSION_METHOD_COOKIE;
   }
   else
   {
      $sessiondata = array();
      $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : '';
      $sessionmethod = SESSION_METHOD_GET;
   }
   if (!preg_match('/^[A-Za-z0-9]*$/', $session_id))
   {
      $session_id = '';
   }
        if ( ($nukeuser != "") && ($userdata['session_logged_in'] == "" )) {
                bblogin($nukeuser, $session_id);
        } else {
   $thispage_id = (int) $thispage_id;
        }

   //
   // Does a session exist?
   //
   if ( !empty($session_id) )
   {
      //
      // session_id exists so go ahead and attempt to grab all
      // data in preparation
      //
      $sql = "SELECT u.*, s.*
         FROM " . SESSIONS_TABLE . " s, " . USERS_TABLE . " u
         WHERE s.session_id = '$session_id'
            AND u.user_id = s.session_user_id";
      if ( !($result = $db->sql_query($sql)) )
      {
         message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql);
      }

      $userdata = $db->sql_fetchrow($result);

      //
      // Did the session exist in the DB?
      //
      if ( isset($userdata['user_id']) )
      {
         //
         // Do not check IP assuming equivalence, if IPv4 we'll check only first 24
         // bits ... I've been told (by vHiker) this should alleviate problems with
         // load balanced et al proxies while retaining some reliance on IP security.
         //
         $ip_check_s = substr($userdata['session_ip'], 0, 6);
         $ip_check_u = substr($user_ip, 0, 6);

         if ($ip_check_s == $ip_check_u)
         {
            $SID = ($sessionmethod == SESSION_METHOD_GET || defined('IN_ADMIN')) ? 'sid=' . $session_id : '';

            //
            // Only update session DB a minute or so after last update
            //
            if ( $current_time - $userdata['session_time'] > 60 )
            {
               // A little trick to reset session_admin on session re-usage
               $update_admin = (!defined('IN_ADMIN') && $current_time - $userdata['session_time'] > ($board_config['session_length']+60)) ? ', session_admin = 0' : '';

               $sql = "UPDATE " . SESSIONS_TABLE . "
                  SET session_time = '$current_time', session_page = $thispage_id$update_admin
                  WHERE session_id = '" . $userdata['session_id'] . "'";
               if ( !$db->sql_query($sql) )
               {
                  message_die(CRITICAL_ERROR, 'Error updating sessions table', '', __LINE__, __FILE__, $sql);
               }

               if ( $userdata['user_id'] != ANONYMOUS )
               {
                  $sql = "UPDATE " . USERS_TABLE . "
                     SET user_session_time = '$current_time', user_session_page = '$thispage_id'
                     WHERE user_id = " . $userdata['user_id'];
                  if ( !$db->sql_query($sql) )
                  {
                     message_die(CRITICAL_ERROR, 'Error updating sessions table', '', __LINE__, __FILE__, $sql);
                  }
               }

               //
               // Delete expired sessions
               //
               $expiry_time = $current_time - $board_config['session_length'];
               $sql = "DELETE FROM " . SESSIONS_TABLE . "
                  WHERE session_time < '$expiry_time'
                     AND session_id <> '$session_id'";
               if ( !$db->sql_query($sql) )
               {
                  message_die(CRITICAL_ERROR, 'Error clearing sessions table', '', __LINE__, __FILE__, $sql);
               }

               setc o o k i e($c o o k i ename . '_data', serialize($sessiondata), $current_time + 31536000, $c o o k i epath, $c o o k i edomain, $c o o k i esecure);
               setc o o k i e($c o o k i ename . '_sid', $session_id, 0, $c o o k i epath, $c o o k i edomain, $c o o k i esecure);
            }

            return $userdata;
         }
      }
   }

   //
   // If we reach here then no (valid) session exists. So we'll create a new one,
   // using the c o o k i e user_id if available to pull basic user prefs.
   //
   $user_id = ( isset($sessiondata['userid']) ) ? intval($sessiondata['userid']) : ANONYMOUS;

   if ( !($userdata = session_begin($user_id, $user_ip, $thispage_id, TRUE)) )
   {
      message_die(CRITICAL_ERROR, 'Error creating user session', '', __LINE__, __FILE__, $sql);
   }

   return $userdata;

}

//
// session_end closes out a session
// deleting the corresponding entry
// in the sessions table
//
function session_end($session_id, $user_id)
{
   global $db, $lang, $board_config, $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $SID;

   $c o o k i ename = $board_config['c o o k i e_name'];
   $c o o k i epath = $board_config['c o o k i e_path'];
   $c o o k i edomain = $board_config['c o o k i e_domain'];
   $c o o k i esecure = $board_config['c o o k i e_secure'];

   $current_time = time();

   //
   // Pull c o o k i edata or grab the URI propagated sid
   //
   if ( isset($HTTP_COOKIE_VARS[$c o o k i ename . '_sid']) )
   {
      $session_id = isset( $HTTP_COOKIE_VARS[$c o o k i ename . '_sid'] ) ? $HTTP_COOKIE_VARS[$c o o k i ename . '_sid'] : '';
      $sessionmethod = SESSION_METHOD_COOKIE;
   }
   else
   {
      $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : '';
      $sessionmethod = SESSION_METHOD_GET;
   }

   if (!preg_match('/^[A-Za-z0-9]*$/', $session_id))
   {
      return;
   }
   //
   // Delete existing session
   //
   $sql = "DELETE FROM " . SESSIONS_TABLE . "
      WHERE session_id = '$session_id'
         AND session_user_id = '$user_id'";
   if ( !$db->sql_query($sql) )
   {
      message_die(CRITICAL_ERROR, 'Error removing user session', '', __LINE__, __FILE__, $sql);
   }

   setc o o k i e($c o o k i ename . '_data', '', $current_time - 31536000, $c o o k i epath, $c o o k i edomain, $c o o k i esecure);
   setc o o k i e($c o o k i ename . '_sid', '', $current_time - 31536000, $c o o k i epath, $c o o k i edomain, $c o o k i esecure);

   return true;
}

//
// Append $SID to a url. Borrowed from phplib and modified. This is an
// extra routine utilised by the session code above and acts as a wrapper
// around every single URL and form action. If you replace the session
// code you must include this routine, even if it's empty.
//
function append_sid($url, $non_html_amp = false)
{
   global $SID, $admin, $userdata;
   if (ereg("admin=1", $url) || ereg("admin_", $url) || ereg("pane=", $url)){
                        //  The format is fine, don't change a thing.
   } else if (ereg("Your_Account", $url)){
           $url = str_replace(".php", "", $url);       //  Strip the .php from all the files,
           $url = str_replace("modules", "modules.php", $url); //  and put it back for the modules.php
   }
   else if (ereg("redirect", $url))
   {
           $url = str_replace("login.php", "modules.php?name=Your_Account", $url);       //  Strip the .php from all the files,
           $url = str_replace(".php", "", $url);       //  Strip the .php from all the files,
           $url = str_replace("?redirect", "&redirect", $url);       //  Strip the .php from all the files,
           $url = str_replace("modules", "modules.php", $url); //  and put it back for the modules.php
   }
   else if (ereg("menu=1", $url))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace(".php", "", $url);       //  Strip the .php from all the files,
       $url = "../../../modules.php?name=Forums&file=$url";
   }
   else if ((ereg("privmsg", $url)) && (!ereg("highlight=privmsg", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("privmsg.php", "modules.php?name=Private_Messages&file=index", $url); //  and put it back for the modules.php
   }
   else if ((ereg("profile", $url)) && (!ereg("highlight", $url) && !ereg("profile", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("profile.php", "forumlar.html&file=profile", $url); //  and put it back for the modules.php
       $dummy = 1;
   }
   else if ((ereg("memberlist", $url)) && (!ereg("highlight=memberlist", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("memberlist.php", "modules.php?name=Members_List&file=index", $url); //  and put it back for the modules.php
   } else {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace(".php", "", $url);
           $url = "forumlar.html&file=".$url; //Change to Nuke format
   }

   if ($userdata['user_level'] > 1) {
   if ( !empty($SID) && !eregi('sid=', $url) )
   {
       if ( !empty($SID) && !eregi('sid=', $url) )   {
      $url .= ( ( strpos($url, '?') != false ) ?  ( ( $non_html_amp ) ? '&' : '&amp;' ) : '?' ) . $SID;
          }
      }   
   }
   return($url);
}
function admin_sid($url, $non_html_amp = false)
{
   global $SID;
        $url = "../../../modules.php?name=Forums&file=$url";

   if ( !empty($SID) && !preg_match('#sid=#', $url) )
   {
      $url .= ( ( strpos($url, '?') != false ) ?  ( ( $non_html_amp ) ? '&' : '&amp;' ) : '?' ) . $SID;
   }

   return $url;
}

?>


hatayı ilk kurulumda aldım ama daha sonra farkettim çalışmadığını Confused gösterdiğiniz ilgi için teşekkürler
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-06-26, 17:25:14    Mesaj konusu: Alıntıyla Cevap Gönder

evet arkadaşlar yardımlarınızı bekliyorum bir el atın lütfen
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-06-30, 23:00:01    Mesaj konusu: Alıntıyla Cevap Gönder

atomcuk dediğin gibi yolladım kodları bakıverirsen sevinirim
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Aliosman
Teknik Yönetici
Teknik Yönetici





Kayıt: Jul 20, 2002
Mesajlar: 3836
Konum: Balıkesir

MesajTarih: 2006-06-30, 23:35:59    Mesaj konusu: Alıntıyla Cevap Gönder

Herkese açar mısınız modülü. Hatayı görmek için üye mi olacağız?
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-06-01, 14:26:26    Mesaj konusu: Forum Arası Reklamlar


Başa dön
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-06-30, 23:37:40    Mesaj konusu: Alıntıyla Cevap Gönder

tabiki açayım atomcuk kodları yolla demişti ona uydum yani

ewet açtım bakabilirsiniz
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Aliosman
Teknik Yönetici
Teknik Yönetici





Kayıt: Jul 20, 2002
Mesajlar: 3836
Konum: Balıkesir

MesajTarih: 2006-06-30, 23:50:04    Mesaj konusu: Alıntıyla Cevap Gönder

Hata mesajını yazın yada Forumlarıda açın kısa süreliğine.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-06-30, 23:55:16    Mesaj konusu: Alıntıyla Cevap Gönder

ewet forumuda açtım ziyaretçilere inşallah sorun halledilir kolay gelsin

En son aka_chaos tarafından 2006-06-30, 23:58:07 tarihinde değiştirildi, toplam 1 kere değiştirildi
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Aliosman
Teknik Yönetici
Teknik Yönetici





Kayıt: Jul 20, 2002
Mesajlar: 3836
Konum: Balıkesir

MesajTarih: 2006-06-30, 23:57:59    Mesaj konusu: Alıntıyla Cevap Gönder

Aslında orada bir hata var ama ne görmemiz lazım. php-nuke sürümünüz nedir + patchli sürüm mü?
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-06-30, 23:59:53    Mesaj konusu: Alıntıyla Cevap Gönder

sanırım 6.7 orjinal netopsiyon tarfından düzenlenmiş olanı kurmuştum versiyon öğrenmek için dosyalardan eklenti indirdim ama çalışmadı
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Aliosman
Teknik Yönetici
Teknik Yönetici





Kayıt: Jul 20, 2002
Mesajlar: 3836
Konum: Balıkesir

MesajTarih: 2006-07-01, 00:03:27    Mesaj konusu: Alıntıyla Cevap Gönder

mainfile.php dosyanızı açın. <?PHP satırından sonraya

ini_set('display_errors', 1);
error_reporting(E_ALL^E_NOTICE);

ekleyin ve yükleyin. Hata mesajlarını görerek hatayı düzeltiriz.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
HunTürk
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Apr 17, 2005
Mesajlar: 1279
Konum: ANKARA

MesajTarih: 2006-07-01, 00:05:34    Mesaj konusu: Alıntıyla Cevap Gönder

config.phpden display errosu true olarak yap.. Çıkan hatayı buraya yazınız..

Birde bu hata olmadan önce neler yaptın, sürüm ne.. yama var mı??
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-07-01, 00:12:55    Mesaj konusu: Alıntıyla Cevap Gönder

config.phpden display errosu true olarak yap demişsin bunu nasıl yapıyoruz bu arda

ini_set('display_errors', 1);
error_reporting(E_ALL^E_NOTICE); bunu ekledim

herhangi bir hat vermedi
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-07-01, 00:18:47    Mesaj konusu: Alıntıyla Cevap Gönder

Warning: themeheader(banners.php): failed to open stream: No such file or directory in /home/forever/public_html/v1/themes/BEST/theme.php on line 35

Warning: themeheader(banners.php): failed to open stream: No such file or directory in /home/forever/public_html/v1/themes/BEST/theme.php on line 35

Warning: themeheader(banners.php): failed to open stream: No such file or directory in /home/forever/public_html/v1/themes/BEST/theme.php on line 35

Warning: themeheader(): Failed opening 'banners.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/forever/public_html/v1/themes/BEST/theme.php on line 35

display eroru 0 dı 1 yaptım sonra üye listesine tıkladım profil kısmında yukarıdaki hatayı verdi hatayı her sayfada gösteriyo ben mi hata yaptım yoksa ???
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
HunTürk
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Apr 17, 2005
Mesajlar: 1279
Konum: ANKARA

MesajTarih: 2006-07-01, 00:22:33    Mesaj konusu: Re: memberlist mödülünde ilginç bir hata Alıntıyla Cevap Gönder

v1/includes/usercp_viewprofile.php on line 178

usercp_viewprofile.php nin ya orjinalini gönder ya da içeriğini buraya yapıştır bakalım. birde versiyonun düşük..Yüksletmenizi tavsiye ediyorum.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-07-01, 00:25:38    Mesaj konusu: Re: memberlist mödülünde ilginç bir hata Alıntıyla Cevap Gönder

Kod:
<?php
/***************************************************************************
 *                           usercp_viewprofile.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   Id: usercp_viewprofile.php,v 1.5.2.5 2005/07/19 20:01:16 acydburn Exp
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
   die("Hacking attempt");
   exit;
}

if ( empty($HTTP_GET_VARS[POST_USERS_URL]) || $HTTP_GET_VARS[POST_USERS_URL] == ANONYMOUS )
{
   message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
}
$profiledata = get_userdata($HTTP_GET_VARS[POST_USERS_URL]);
if (!$profiledata)
{
   message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
}

$sql = "SELECT *
   FROM " . RANKS_TABLE . "
   ORDER BY rank_special, rank_min";
if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql);
}

$ranksrow = array();
while ( $row = $db->sql_fetchrow($result) )
{
   $ranksrow[] = $row;
}
$db->sql_freeresult($result);

//
// Output page header and profile_view template
//
$template->set_filenames(array(
   'body' => 'profile_view_body.tpl')
);
if (is_active("Forums")) {
    make_jumpbox('viewforum.'.$phpEx);
}
//
// Calculate the number of days this user has been a member ($memberdays)
// Then calculate their posts per day
//
$regdate = $profiledata['user_regdate'];
$nukedate = strtotime($regdate);
$memberdays = max(1, round( ( time() - $nukedate ) / 86400 ));
$posts_per_day = $profiledata['user_posts'] / $memberdays;

// Get the users percentage of total posts
if ( $profiledata['user_posts'] != 0  )
{
   $total_posts = get_db_stat('postcount');
   $percentage = ( $total_posts ) ? min(100, ($profiledata['user_posts'] / $total_posts) * 100) : 0;
}
else
{
   $percentage = 0;
}

$avatar_img = '';
if ( $profiledata['user_avatar_type'] && $profiledata['user_allowavatar'] )
{
   switch( $profiledata['user_avatar_type'] )
   {
      case USER_AVATAR_UPLOAD:
         $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $profiledata['user_avatar'] . '" alt="" border="0" />' : '';
         break;
      case USER_AVATAR_REMOTE:
         $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $profiledata['user_avatar'] . '" alt="" border="0" />' : '';
         break;
      case USER_AVATAR_GALLERY:
         $avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $profiledata['user_avatar'] . '" alt="" border="0" />' : '';
         break;
   }
}

$poster_rank = '';
$rank_image = '';
if ( $profiledata['user_rank'] )
{
   for($i = 0; $i < count($ranksrow); $i++)
   {
      if ( $profiledata['user_rank'] == $ranksrow[$i]['rank_id'] && $ranksrow[$i]['rank_special'] )
      {
         $poster_rank = $ranksrow[$i]['rank_title'];
         $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' . $ranksrow[$i]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
      }
   }
}
else
{
   for($i = 0; $i < count($ranksrow); $i++)
   {
      if ( $profiledata['user_posts'] >= $ranksrow[$i]['rank_min'] && !$ranksrow[$i]['rank_special'] )
      {
         $poster_rank = $ranksrow[$i]['rank_title'];
         $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' . $ranksrow[$i]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
      }
   }
}

$temp_url = append_sid("privmsg.$phpEx?mode=post&amp;" . POST_USERS_URL . "=" . $profiledata['user_id']);
if (is_active("Private_Messages")) {
$pm_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>';
$pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>';
}

if ( !empty($profiledata['user_viewemail']) || $userdata['user_level'] == ADMIN )
{
   $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&amp;" . POST_USERS_URL .'=' . $profiledata['user_id']) : 'mailto:' . $profiledata['user_email'];

   $email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>';
   $email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
}
else
{
   $email_img = '&nbsp;';
   $email = '&nbsp;';
}
if (( $profiledata['user-website'] == "http:///") || ( $profiledata['user_website'] == "http://")){
    $profiledata['user_website'] =  "";
}
if (($profiledata['user_website'] != "" ) && (substr($profiledata['user_website'],0, 7) != "http://")) {
    $profiledata['user_website'] = "http://".$profiledata['user_website'];
}

$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '&nbsp;';
$www = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww">' . $profiledata['user_website'] . '</a>' : '&nbsp;';

if ( !empty($profiledata['user_icq']) )
{
   $icq_status_img = '<a href="http://wwp.icq.com/' . $profiledata['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $profiledata['user_icq'] . '&img=5" width="18" height="18" border="0" /></a>';
   $icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
   $icq =  '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '">' . $lang['ICQ'] . '</a>';
}
else
{
   $icq_status_img = '&nbsp;';
   $icq_img = '&nbsp;';
   $icq = '&nbsp;';
}

$aim_img = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : '&nbsp;';
$aim = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?">' . $lang['AIM'] . '</a>' : '&nbsp;';

$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : '&nbsp;';
$msn = $msn_img;

$yim_img = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
$yim = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg">' . $lang['YIM'] . '</a>' : '';

$temp_url = append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) .
/* BEGIN LEVEL MOD */
'HP' => $level_hp,
'HP_WIDTH' => $level_hp_percent,
'HP_EMPTY' => ( 100 - $level_hp_percent ),
'MP' => $level_mp,
'MP_WIDTH' => $level_mp_percent,
'MP_EMPTY' => ( 100 - $level_mp_percent ),
'EXP' => $level_exp,
'EXP_WIDTH' => $level_exp_percent,
'EXP_EMPTY' => ( 100 - $level_exp_percent ),
'LEVEL' => $level_level,
/* END LEVEL MOD */
 "&amp;showresults=posts");
$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . sprintf($lang['Search_user_posts'], $profiledata['username']) . '" border="0" /></a>';
$search = '<a href="' . $temp_url . '">' . sprintf($lang['Search_user_posts'],* Begin HP/MP/EXP Mod
*
* Note: all new variables used created in this mod
* are prefixed with level_ to be sure of not overwriting
* other variables.
*
*/

/* Calculate Level
* A user's level is determined by their total number of posts.
* A nice mathmatical formula is used to translate their post count
* into an intager level.
*
* Note: A user with zero (0) posts is considered level 0, however
* making one (1) post, raises them to level 1.
*
*/

if($profiledata['user_posts'] < 1)
{
   $level_level = 0;
}
else
{
   $level_level = floor( pow( log10( $profiledata['user_posts'] ), 3 ) ) + 1;
}

/* Determine Hit Points (HP)
*
* Hp is based on user activity.
* Max HP is based on the user's level, and will generally
* be the same for all users of the same level.
*
* A user's current HP is based on the user's posts per day.
* A higher post per day (ppd), the more HP they will have. A
* user with an average PPD (set below) will have 50% of their
* max HP. As a user goes over the average PPD, they will have
* more HP, but the gains will decrease as the user's PPD increases.
* This makes achieving 100% hp difficult, but not impossible.
*
* For users with under the average PPD, they will have HP equal
* to 1/2 the percentage their ppd is of the average.
* ie- a user with 2.5 ppd, and an average ppd of 5 will have
* 25% of their max HP. This is because 2.5 is 50% of 5, and 1/2
* of that, is 25%.
*
* Users who manage to post so far above the average that they have
* more HP than their max will recieve a bonus to their max HP.
*
* Note that users at level 0 will always have 0 / 0 hp.
*
*/

/*
* This value determines the 'average' posts per day.
* The admin may redefine this variable as he wishes.
* Higher values will generally decrease users' HP, and
* lower values will generally increase users' HP.
*
* Note: Do NOT set this value to zero (0).
* This -may- be set to a fractional value (eg, 5.1, 3.1415)
*
*/

$level_avg_ppd = 5;

/*
* this value sets how hard it is to achieve 100%
* hp. The higher you set it, the harder it is to
* get full hp.
*
* to judge how high to set it, a user must have
* posts per day equal to the $level_avg_ppd plus
* the number set below.
*
* This should NOT be zero.
*/

$level_bonus_redux = 5;

if($level_level < 1)
{
   $level_hp = "0 / 0";
   $level_hp_percent = 0;
}
else
{
   $level_max_hp = floor( (pow( $level_level, (1/4) ) ) * (pow( 10, pow( $level_level+2, (1/3) ) ) ) / (1.5) );

   if($posts_per_day >= $level_avg_ppd)
   {
      $level_hp_percent = floor( (.5 + (($posts_per_day - $level_avg_ppd) / ($level_bonus_redux * 2)) ) * 100);
   }
   else
   {
      $level_hp_percent = floor( $posts_per_day / ($level_avg_ppd / 50) );
   }
   
   if($level_hp_percent > 100)
   {
      //Give the user a bonus to max HP for greater than 100% hp.
      $level_max_hp += floor( ($level_hp_percent - 100) * pi() );
      $level_hp_percent = 100;
   }
   else
   {
      $level_hp_percent = max(0, $level_hp_percent);
   }
   
   $level_cur_hp = floor($level_max_hp * ($level_hp_percent / 100) );
   
   //Be sure a user has no more than max, and no less than zero hp.
   $level_cur_hp = max(0, $level_cur_hp);
   $level_cur_hp = min($level_max_hp, $level_cur_hp);
   
   $level_hp = $level_cur_hp . ' / ' . $level_max_hp;
}

/* Determine MP
*
* MP is calculated by how long the user has been around
* and how often they post.
*
* Max MP is based on level, and increases with level
* Each post a user makes costs them mp,
* and a user regenerates mp proportional to how
* many days they have been registered
*
*/

//Number of days the user has been at the forums.
$level_user_days = max(1, round( ( time() - strtotime($profiledata['user_regdate']) ) / 86400 ));

/* The mp cost for one post.
* Raising this value will generally decrease the current
* mp for most posters.
* This may be set to a decimal value (eg, 2, 2.1, 3.141596)
* This should NOT be set to 0
*/
$level_post_mp_cost = 2.5;

/* This determines how much mp a user regenerates per day
* Raising this value will generally increase the current
* mp for most posters.
* This may be set to a decimal value (eg, 3, 3.5, 2.71828)
* This should NOT be set to 0
*/
$level_mp_regen_per_day = 4;

if($level_level < 1)
{
   $level_mp = '0 / 0';
   $level_mp_percent = 0;
}
else
{
   $level_max_mp = floor( (pow( $level_level, (1/4) ) ) * (pow( 10, pow( $level_level+2, (1/3) ) ) ) / (pi()) );
   
   $level_mp_cost = $profiledata['user_posts'] * $level_post_mp_cost;
   $level_mp_regen = max(1, $level_user_days * $level_mp_regen_per_day);
   
   $level_cur_mp = floor($level_max_mp - $level_mp_cost + $level_mp_regen);
   $level_cur_mp = max(0, $level_cur_mp);
   $level_cur_mp = min($level_max_mp, $level_cur_mp);
   
   $level_mp = $level_cur_mp . ' / ' . $level_max_mp;
   $level_mp_percent = floor($level_cur_mp / $level_max_mp * 100 );
   
}

/* Determine EXP percentage
*
* Experience is determined by how far the user is away
* from the next level. This is expressed as a percentage.
*
* Note, a user of level 0 has 100% experience. Making one post
* will put them at level 1. Also, a user that is shown to have 100%
* experience, will go up a level on their next post.
*
*/

if($level_level == 0)
{
   
$level_exp = "0 / 0";
   $level_exp_percent = 100;
}
else
{
   $level_posts_for_next = floor( pow( 10, pow( $level_level, (1/3) ) ) );
   

   $level_posts_for_this = max(1, floor( pow( 10, pow( ($level_level - 1), (1/3) ) ) ) );
   

   
   $level_exp = ($profiledata['user_posts'] - $level_posts_for_this) . " / " . ($level_posts_for_next - $level_posts_for_this);
   
   $level_exp_percent = floor( ( ($profiledata['user_posts'] - $level_posts_for_this) / max( 1, ($level_posts_for_next - $level_posts_for_this ) ) ) * 100);
}

/* END HP/MP/EXP MOD */


 $profiledata['username']) . '</a>';

//
// Generate page
//
$page_title = $lang['Viewing_profile'];
include("includes/page_header.php");
$profiledata['user_from'] = str_replace(".gif", "", $profiledata['user_from']);
if (function_exists('get_html_translation_table'))
{
   $u_search_author = urlencode(strtr($profiledata['username'], array_flip(get_html_translation_table(HTML_ENTITIES))));
}
else
{
   $u_search_author = urlencode(str_replace(array('&amp;', ''', '&quot;', '&lt;', '&gt;'), array('&', "'", '"', '<', '>'), $profiledata['username']));
}

$template->assign_vars(array(
   'USERNAME' => $profiledata['username'],
        'JOINED' => $profiledata['user_regdate'],
   'POSTER_RANK' => $poster_rank,
   'RANK_IMAGE' => $rank_image,
   'POSTS_PER_DAY' => $posts_per_day,
   'POSTS' => $profiledata['user_posts'],
        'PERCENTAGE' => $percentage . '%',
        'POST_DAY_STATS' => sprintf($lang['User_post_day_stats'], $posts_per_day),
        'POST_PERCENT_STATS' => sprintf($lang['User_post_pct_stats'], $percentage),

   'SEARCH_IMG' => $search_img,
   'SEARCH' => $search,
   'PM_IMG' => $pm_img,
   'PM' => $pm,
   'EMAIL_IMG' => $email_img,
   'EMAIL' => $email,
   'WWW_IMG' => $www_img,
   'WWW' => $www,
   'ICQ_STATUS_IMG' => $icq_status_img,
   'ICQ_IMG' => $icq_img,
   'ICQ' => $icq,
   'AIM_IMG' => $aim_img,
   'AIM' => $aim,
   'MSN_IMG' => $msn_img,
   'MSN' => $msn,
   'YIM_IMG' => $yim_img,
   'YIM' => $yim,

   'LOCATION' => ( $profiledata['user_from'] ) ? $profiledata['user_from'] : '&nbsp;',
   'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : '&nbsp;',
   'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : '&nbsp;',
   'AVATAR_IMG' => $avatar_img,

        'L_VIEWING_PROFILE' => sprintf($lang['Viewing_user_profile'], $profiledata['username']),
        'L_ABOUT_USER' => sprintf($lang['About_user'], $profiledata['username']),
        'L_AVATAR' => $lang['Avatar'],
        'L_POSTER_RANK' => $lang['Poster_rank'],
        'L_JOINED' => $lang['Joined'],
        'L_TOTAL_POSTS' => $lang['Total_posts'],
        'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $profiledata['username']),
   'L_CONTACT' => $lang['Contact'],
   'L_EMAIL_ADDRESS' => $lang['Email_address'],
   'L_EMAIL' => $lang['Email'],
   'L_PM' => $lang['Private_Message'],
   'L_ICQ_NUMBER' => $lang['ICQ'],
   'L_YAHOO' => $lang['YIM'],
   'L_AIM' => $lang['AIM'],
   'L_MESSENGER' => $lang['MSNM'],
   'L_WEBSITE' => $lang['Website'],
   'L_LOCATION' => $lang['Location'],
   'L_OCCUPATION' => $lang['Occupation'],
   'L_INTERESTS' => $lang['Interests'],

   'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . $u_search_author),

   'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);

$template->pparse('body');

include("includes/page_tail.php");

?>



tavsiyen için saol yakın zamanda yükselticem ama sorun olmasından korkuyorum
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Aliosman
Teknik Yönetici
Teknik Yönetici





Kayıt: Jul 20, 2002
Mesajlar: 3836
Konum: Balıkesir

MesajTarih: 2006-07-01, 00:36:35    Mesaj konusu: Alıntıyla Cevap Gönder

level mod filan mı eklediniz? Onu eklerken hata yapmış gibisiniz.

Orjinal dosyadan includes/usercp_viewprofile.php dosyasını yükleyince düzelir.

Bir de banners.php dosyanız yok galiba. Onda hata veriyor. O pek önemli değil ama siz yine de yükleyin.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-07-01, 00:38:09    Mesaj konusu: Alıntıyla Cevap Gönder

hemen deneyem banners php çok gereklimi eksik olduğu zaman ne gibi sorun yaratır??
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Aliosman
Teknik Yönetici
Teknik Yönetici





Kayıt: Jul 20, 2002
Mesajlar: 3836
Konum: Balıkesir

MesajTarih: 2006-07-01, 00:39:43    Mesaj konusu: Alıntıyla Cevap Gönder

banners.php reklam dosyasıdır. kullanmayacaksanız anadizine (mainfile.php nin olduğu yer) boş bir tane banners.php dosyası atın sorun kalmaz.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
HunTürk
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Apr 17, 2005
Mesajlar: 1279
Konum: ANKARA

MesajTarih: 2006-07-01, 00:42:57    Mesaj konusu: Re: memberlist mödülünde ilginç bir hata Alıntıyla Cevap Gönder

Kod:
<?php
/***************************************************************************
 *                           usercp_viewprofile.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   Id: usercp_viewprofile.php,v 1.5.2.5 2005/07/19 20:01:16 acydburn Exp
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
   die("Hacking attempt");
   exit;
}

if ( empty($HTTP_GET_VARS[POST_USERS_URL]) || $HTTP_GET_VARS[POST_USERS_URL] == ANONYMOUS )
{
   message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
}
$profiledata = get_userdata($HTTP_GET_VARS[POST_USERS_URL]);
if (!$profiledata)
{
   message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
}

$sql = "SELECT *
   FROM " . RANKS_TABLE . "
   ORDER BY rank_special, rank_min";
if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql);
}

$ranksrow = array();
while ( $row = $db->sql_fetchrow($result) )
{
   $ranksrow[] = $row;
}
$db->sql_freeresult($result);

//
// Output page header and profile_view template
//
$template->set_filenames(array(
   'body' => 'profile_view_body.tpl')
);
if (is_active("Forums")) {
    make_jumpbox('viewforum.'.$phpEx);
}
//
// Calculate the number of days this user has been a member ($memberdays)
// Then calculate their posts per day
//
$regdate = $profiledata['user_regdate'];
$nukedate = strtotime($regdate);
$memberdays = max(1, round( ( time() - $nukedate ) / 86400 ));
$posts_per_day = $profiledata['user_posts'] / $memberdays;

// Get the users percentage of total posts
if ( $profiledata['user_posts'] != 0  )
{
   $total_posts = get_db_stat('postcount');
   $percentage = ( $total_posts ) ? min(100, ($profiledata['user_posts'] / $total_posts) * 100) : 0;
}
else
{
   $percentage = 0;
}

$avatar_img = '';
if ( $profiledata['user_avatar_type'] && $profiledata['user_allowavatar'] )
{
   switch( $profiledata['user_avatar_type'] )
   {
      case USER_AVATAR_UPLOAD:
         $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $profiledata['user_avatar'] . '" alt="" border="0" />' : '';
         break;
      case USER_AVATAR_REMOTE:
         $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $profiledata['user_avatar'] . '" alt="" border="0" />' : '';
         break;
      case USER_AVATAR_GALLERY:
         $avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $profiledata['user_avatar'] . '" alt="" border="0" />' : '';
         break;
   }
}

$poster_rank = '';
$rank_image = '';
if ( $profiledata['user_rank'] )
{
   for($i = 0; $i < count($ranksrow); $i++)
   {
      if ( $profiledata['user_rank'] == $ranksrow[$i]['rank_id'] && $ranksrow[$i]['rank_special'] )
      {
         $poster_rank = $ranksrow[$i]['rank_title'];
         $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' . $ranksrow[$i]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
      }
   }
}
else
{
   for($i = 0; $i < count($ranksrow); $i++)
   {
      if ( $profiledata['user_posts'] >= $ranksrow[$i]['rank_min'] && !$ranksrow[$i]['rank_special'] )
      {
         $poster_rank = $ranksrow[$i]['rank_title'];
         $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' . $ranksrow[$i]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
      }
   }
}

$temp_url = append_sid("privmsg.$phpEx?mode=post&amp;" . POST_USERS_URL . "=" . $profiledata['user_id']);
if (is_active("Private_Messages")) {
$pm_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>';
$pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>';
}

if ( !empty($profiledata['user_viewemail']) || $userdata['user_level'] == ADMIN )
{
   $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&amp;" . POST_USERS_URL .'=' . $profiledata['user_id']) : 'mailto:' . $profiledata['user_email'];

   $email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>';
   $email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
}
else
{
   $email_img = '&nbsp;';
   $email = '&nbsp;';
}
if (( $profiledata['user-website'] == "http:///") || ( $profiledata['user_website'] == "http://")){
    $profiledata['user_website'] =  "";
}
if (($profiledata['user_website'] != "" ) && (substr($profiledata['user_website'],0, 7) != "http://")) {
    $profiledata['user_website'] = "http://".$profiledata['user_website'];
}

$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '&nbsp;';
$www = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww">' . $profiledata['user_website'] . '</a>' : '&nbsp;';

if ( !empty($profiledata['user_icq']) )
{
   $icq_status_img = '<a href="http://wwp.icq.com/' . $profiledata['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $profiledata['user_icq'] . '&img=5" width="18" height="18" border="0" /></a>';
   $icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
   $icq =  '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '">' . $lang['ICQ'] . '</a>';
}
else
{
   $icq_status_img = '&nbsp;';
   $icq_img = '&nbsp;';
   $icq = '&nbsp;';
}

$aim_img = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : '&nbsp;';
$aim = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?">' . $lang['AIM'] . '</a>' : '&nbsp;';

$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : '&nbsp;';
$msn = $msn_img;

$yim_img = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
$yim = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg">' . $lang['YIM'] . '</a>' : '';

$temp_url = append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) .
/* BEGIN LEVEL MOD */
'HP' => $level_hp,
'HP_WIDTH' => $level_hp_percent,
'HP_EMPTY' => ( 100 - $level_hp_percent ),
'MP' => $level_mp,
'MP_WIDTH' => $level_mp_percent,
'MP_EMPTY' => ( 100 - $level_mp_percent ),

'EXP' => $level_exp,
'EXP_WIDTH' => $level_exp_percent,
'EXP_EMPTY' => ( 100 - $level_exp_percent ),
'LEVEL' => $level_level,
/* END LEVEL MOD */
 "&amp;showresults=posts");
$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . sprintf($lang['Search_user_posts'], $profiledata['username']) . '" border="0" /></a>';
$search = '<a href="' . $temp_url . '">' . sprintf($lang['Search_user_posts'],* Begin HP/MP/EXP Mod
/*
* Note: all new variables used created in this mod
* are prefixed with level_ to be sure of not overwriting
* other variables.
*
*/

/* Calculate Level
* A user's level is determined by their total number of posts.
* A nice mathmatical formula is used to translate their post count
* into an intager level.
*
* Note: A user with zero (0) posts is considered level 0, however
* making one (1) post, raises them to level 1.
*
*/

if($profiledata['user_posts'] < 1)
{
   $level_level = 0;
}
else
{
   $level_level = floor( pow( log10( $profiledata['user_posts'] ), 3 ) ) + 1;
}

/* Determine Hit Points (HP)
*
* Hp is based on user activity.
* Max HP is based on the user's level, and will generally
* be the same for all users of the same level.
*
* A user's current HP is based on the user's posts per day.
* A higher post per day (ppd), the more HP they will have. A
* user with an average PPD (set below) will have 50% of their
* max HP. As a user goes over the average PPD, they will have
* more HP, but the gains will decrease as the user's PPD increases.
* This makes achieving 100% hp difficult, but not impossible.
*
* For users with under the average PPD, they will have HP equal
* to 1/2 the percentage their ppd is of the average.
* ie- a user with 2.5 ppd, and an average ppd of 5 will have
* 25% of their max HP. This is because 2.5 is 50% of 5, and 1/2
* of that, is 25%.
*
* Users who manage to post so far above the average that they have
* more HP than their max will recieve a bonus to their max HP.
*
* Note that users at level 0 will always have 0 / 0 hp.
*
*/

/*
* This value determines the 'average' posts per day.
* The admin may redefine this variable as he wishes.
* Higher values will generally decrease users' HP, and
* lower values will generally increase users' HP.
*
* Note: Do NOT set this value to zero (0).
* This -may- be set to a fractional value (eg, 5.1, 3.1415)
*
*/

$level_avg_ppd = 5;

/*
* this value sets how hard it is to achieve 100%
* hp. The higher you set it, the harder it is to
* get full hp.
*
* to judge how high to set it, a user must have
* posts per day equal to the $level_avg_ppd plus
* the number set below.
*
* This should NOT be zero.
*/

$level_bonus_redux = 5;

if($level_level < 1)
{
   $level_hp = "0 / 0";
   $level_hp_percent = 0;
}
else
{
   $level_max_hp = floor( (pow( $level_level, (1/4) ) ) * (pow( 10, pow( $level_level+2, (1/3) ) ) ) / (1.5) );

   if($posts_per_day >= $level_avg_ppd)
   {
      $level_hp_percent = floor( (.5 + (($posts_per_day - $level_avg_ppd) / ($level_bonus_redux * 2)) ) * 100);
   }
   else
   {
      $level_hp_percent = floor( $posts_per_day / ($level_avg_ppd / 50) );
   }
   
   if($level_hp_percent > 100)
   {
      //Give the user a bonus to max HP for greater than 100% hp.
      $level_max_hp += floor( ($level_hp_percent - 100) * pi() );
      $level_hp_percent = 100;
   }
   else
   {
      $level_hp_percent = max(0, $level_hp_percent);
   }
   
   $level_cur_hp = floor($level_max_hp * ($level_hp_percent / 100) );
   
   //Be sure a user has no more than max, and no less than zero hp.
   $level_cur_hp = max(0, $level_cur_hp);
   $level_cur_hp = min($level_max_hp, $level_cur_hp);
   
   $level_hp = $level_cur_hp . ' / ' . $level_max_hp;
}

/* Determine MP
*
* MP is calculated by how long the user has been around
* and how often they post.
*
* Max MP is based on level, and increases with level
* Each post a user makes costs them mp,
* and a user regenerates mp proportional to how
* many days they have been registered
*
*/

//Number of days the user has been at the forums.
$level_user_days = max(1, round( ( time() - strtotime($profiledata['user_regdate']) ) / 86400 ));

/* The mp cost for one post.
* Raising this value will generally decrease the current
* mp for most posters.
* This may be set to a decimal value (eg, 2, 2.1, 3.141596)
* This should NOT be set to 0
*/
$level_post_mp_cost = 2.5;

/* This determines how much mp a user regenerates per day
* Raising this value will generally increase the current
* mp for most posters.
* This may be set to a decimal value (eg, 3, 3.5, 2.71828)
* This should NOT be set to 0
*/
$level_mp_regen_per_day = 4;

if($level_level < 1)
{
   $level_mp = '0 / 0';
   $level_mp_percent = 0;
}
else
{
   $level_max_mp = floor( (pow( $level_level, (1/4) ) ) * (pow( 10, pow( $level_level+2, (1/3) ) ) ) / (pi()) );
   
   $level_mp_cost = $profiledata['user_posts'] * $level_post_mp_cost;
   $level_mp_regen = max(1, $level_user_days * $level_mp_regen_per_day);
   
   $level_cur_mp = floor($level_max_mp - $level_mp_cost + $level_mp_regen);
   $level_cur_mp = max(0, $level_cur_mp);
   $level_cur_mp = min($level_max_mp, $level_cur_mp);
   
   $level_mp = $level_cur_mp . ' / ' . $level_max_mp;
   $level_mp_percent = floor($level_cur_mp / $level_max_mp * 100 );
   
}

/* Determine EXP percentage
*
* Experience is determined by how far the user is away
* from the next level. This is expressed as a percentage.
*
* Note, a user of level 0 has 100% experience. Making one post
* will put them at level 1. Also, a user that is shown to have 100%
* experience, will go up a level on their next post.
*
*/

if($level_level == 0)
{
   
$level_exp = "0 / 0";
   $level_exp_percent = 100;
}
else
{
   $level_posts_for_next = floor( pow( 10, pow( $level_level, (1/3) ) ) );
   

   $level_posts_for_this = max(1, floor( pow( 10, pow( ($level_level - 1), (1/3) ) ) ) );
   

   
   $level_exp = ($profiledata['user_posts'] - $level_posts_for_this) . " / " . ($level_posts_for_next - $level_posts_for_this);
   
   $level_exp_percent = floor( ( ($profiledata['user_posts'] - $level_posts_for_this) / max( 1, ($level_posts_for_next - $level_posts_for_this ) ) ) * 100);
}

/* END HP/MP/EXP MOD */


 $profiledata['username']) . '</a>';

//
// Generate page
//
$page_title = $lang['Viewing_profile'];
include("includes/page_header.php");
$profiledata['user_from'] = str_replace(".gif", "", $profiledata['user_from']);
if (function_exists('get_html_translation_table'))
{
   $u_search_author = urlencode(strtr($profiledata['username'], array_flip(get_html_translation_table(HTML_ENTITIES))));
}
else
{
   $u_search_author = urlencode(str_replace(array('&amp;', '', '&quot;', '&lt;', '&gt;'), array('&', "'", '"', '<', '>'), $profiledata['username']));
}

$template->assign_vars(array(
   'USERNAME' => $profiledata['username'],
        'JOINED' => $profiledata['user_regdate'],
   'POSTER_RANK' => $poster_rank,
   'RANK_IMAGE' => $rank_image,
   'POSTS_PER_DAY' => $posts_per_day,
   'POSTS' => $profiledata['user_posts'],
        'PERCENTAGE' => $percentage . '%',
        'POST_DAY_STATS' => sprintf($lang['User_post_day_stats'], $posts_per_day),
        'POST_PERCENT_STATS' => sprintf($lang['User_post_pct_stats'], $percentage),

   'SEARCH_IMG' => $search_img,
   'SEARCH' => $search,
   'PM_IMG' => $pm_img,
   'PM' => $pm,
   'EMAIL_IMG' => $email_img,
   'EMAIL' => $email,
   'WWW_IMG' => $www_img,
   'WWW' => $www,
   'ICQ_STATUS_IMG' => $icq_status_img,
   'ICQ_IMG' => $icq_img,
   'ICQ' => $icq,
   'AIM_IMG' => $aim_img,
   'AIM' => $aim,
   'MSN_IMG' => $msn_img,
   'MSN' => $msn,
   'YIM_IMG' => $yim_img,
   'YIM' => $yim,

   'LOCATION' => ( $profiledata['user_from'] ) ? $profiledata['user_from'] : '&nbsp;',
   'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : '&nbsp;',
   'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : '&nbsp;',
   'AVATAR_IMG' => $avatar_img,

        'L_VIEWING_PROFILE' => sprintf($lang['Viewing_user_profile'], $profiledata['username']),
        'L_ABOUT_USER' => sprintf($lang['About_user'], $profiledata['username']),
        'L_AVATAR' => $lang['Avatar'],
        'L_POSTER_RANK' => $lang['Poster_rank'],
        'L_JOINED' => $lang['Joined'],
        'L_TOTAL_POSTS' => $lang['Total_posts'],
        'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $profiledata['username']),
   'L_CONTACT' => $lang['Contact'],
   'L_EMAIL_ADDRESS' => $lang['Email_address'],
   'L_EMAIL' => $lang['Email'],
   'L_PM' => $lang['Private_Message'],
   'L_ICQ_NUMBER' => $lang['ICQ'],
   'L_YAHOO' => $lang['YIM'],
   'L_AIM' => $lang['AIM'],
   'L_MESSENGER' => $lang['MSNM'],
   'L_WEBSITE' => $lang['Website'],
   'L_LOCATION' => $lang['Location'],
   'L_OCCUPATION' => $lang['Occupation'],
   'L_INTERESTS' => $lang['Interests'],

   'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . $u_search_author),

   'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);

$template->pparse('body');

include("includes/page_tail.php");

?>


bunu bi yapıştır ya da orjinali gönder seviye modu yüklerken hata yapmışsın..
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
aka_chaos
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2006
Mesajlar: 33

MesajTarih: 2006-07-01, 00:45:16    Mesaj konusu: Alıntıyla Cevap Gönder

tamam oldu sonsuz teşekkürlerimi sunuyorum size saolun orjinali attım birde level mod hala çalışıyo hata vermedi buda beni çok sevindirdi inşalahta hata vermez
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Aliosman
Teknik Yönetici
Teknik Yönetici





Kayıt: Jul 20, 2002
Mesajlar: 3836
Konum: Balıkesir

MesajTarih: 2006-07-01, 00:52:40    Mesaj konusu: Alıntıyla Cevap Gönder

Az önce verdiğim kodu mainfile.php den kaldırın. Sorun düzeldi görülüyor. Şimdi üyeleriniz için açık hale getirebilirsiniz.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> Php Nuke Modülleri Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
Bu forumda yeni başlıklar açamazsınız
Bu forumdaki başlıklara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok php hata yardım lüffen wepibo Php Nuke Sorunlarınız 2 2010-07-21, 14:37:43 Son Mesajı Görüntüle
Yeni mesaj yok sql hata veriyor avara1984 Php Nuke Sorunlarınız 0 2010-07-16, 15:35:28 Son Mesajı Görüntüle
Yeni mesaj yok Avatar yüklemede hata veriyor avara1984 Php Nuke Sorunlarınız 1 2010-07-16, 05:23:29 Son Mesajı Görüntüle
Yeni mesaj yok siir bölümünde ilginc bir sorun atakanxx Php Nuke Sorunlarınız 1 2010-07-14, 08:50:40 Son Mesajı Görüntüle
Yeni mesaj yok Forum konularına girince hata veriyor avara1984 Php Nuke Sorunlarınız 2 2010-06-19, 00:55:41 Son Mesajı Görüntüle

Copyright © 2002-2024 Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright