Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Efficy klausimai

Parašė Fucikijoooou· 2009 Spa. 17 12:10:57
#1

Sveiki noriu paklausti kaip vietoj sitos:



Paneles po naujienomis, pasikeisti i savo button'us, pvz: Kitas puslapis ir atgal ?

Ar imanoma?

Parašė Dandžu· 2009 Spa. 17 12:10:59
#2

maincore.php faile.

Parašė Fucikijoooou· 2009 Spa. 17 12:10:17
#3

Thanks ;) nors tiek, bet aš nerandu tam maincore faile kaip pakeisti gal galite kas padeti?
Radau :) nebereikia :)

Redagavo Fucikijoooou· 2009 Spa. 17 12:10:01

Parašė Fucikijoooou· 2009 Spa. 17 13:10:09
#4

Antras klausimas:

Kaip i Online_user_panel

iterpti si koda:

if ($data['user_vip']>time()) echo "<img src='".IMAGES."vip' alt='VIP Narys' title='VIP Narys'>";




Kad, prie Vip nario nicko rodytu zenkliuka.

Stai online_user_panel.php

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }

if ($settings['maintenance'] != "1") {
   $cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
   if (dbrows($result) != 0) {
      $result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
   } else {
      $name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
      $result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
   }
   $result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
   openside($locale['010']);
   $result = dbquery(
      "SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
   );
   $guests = 0; $members = array();
   while ($data = dbarray($result)) {
      if ($data['online_user'] == "0") {
         $guests++;
      } else {
         array_push($members, array($data['user_id'], $data['user_name']));
      }
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['011'].$guests."<br>\n";
   if (count($members) > 0) {
      $i = 1;
      echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['012'];
      while (list($key, $member) = each($members)) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
         if ($i != count($members)) echo ", ";
         $i++;
      }
      echo "<br>\n";
   } else {
      echo $locale['013']."<br>\n";
   }
   echo "<br><img src='".THEME."images/bullet.gif' alt=''> ".$locale['014'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
   if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
   $data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
   echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['016']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a>\n";
   closeside();
}
?>



Redagavo Fucikijoooou· 2009 Spa. 17 13:10:34

Parašė ArturasS· 2009 Spa. 17 13:10:36
#5

Tai o tu maždaug į kurią vietą nori jį įterpti? Nes gali bet kur :) Ir kam tau reikalingas kažkoks VIP img į online users panel?

Redagavo ArturasS· 2009 Spa. 17 13:10:46

Parašė Fucikijoooou· 2009 Spa. 17 13:10:36
#6

reikia, ten kur rodys kad prisijunge: Nickas(vip zenkliukas)

Parašė maxas66· 2009 Spa. 17 13:10:39
#7

bandyk taip

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }

if ($settings['maintenance'] != "1") {
   $cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
   if (dbrows($result) != 0) {
      $result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
   } else {
      $name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
      $result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
   }
   $result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
   openside($locale['010']);
   $result = dbquery(
      "SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
   );
   $guests = 0; $members = array();
   while ($data = dbarray($result)) {
      if ($data['online_user'] == "0") {
         $guests++;
      } else {
         array_push($members, array($data['user_id'], $data['user_name']));
      }
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['011'].$guests."<br>\n";
   if (count($members) > 0) {
      $i = 1;
      echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['012'];
      while (list($key, $member) = each($members)) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
         if ($i != count($members)) echo ", ";
         $i++;
      }
      echo "<br>\n";
   } else {
      echo $locale['013']."<br>\n";
   }
   echo "<br><img src='".THEME."images/bullet.gif' alt=''> ".$locale['014'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
   if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
   $data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
   echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['016']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a>\n";
   if ($data['user_vip']>time()) echo "<img src='".IMAGES."vip' alt='VIP Narys' title='VIP Narys'>";
   closeside();
}
?>



Parašė Fucikijoooou· 2009 Spa. 17 13:10:55
#8

nea nerodo, tik nickas ir viskas
Kad kur rodo Prisijunge nariai: Nickas(ir jeigu tas narys vip, rodys zenkliuka)
iMOST irgi nerodo ;(

Redagavo Fucikijoooou· 2009 Spa. 17 13:10:51

Parašė ArturasS· 2009 Spa. 17 13:10:23
#9

Tai, o ko tu nori pasakyk.

Parašė ArturasS· 2009 Spa. 17 13:10:23
#10

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }

if ($settings['maintenance'] != "1") {
   $cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
   if (dbrows($result) != 0) {
      $result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
   } else {
      $name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
      $result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
   }
   $result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
   openside($locale['010']);
   $result = dbquery(
      "SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
   );
   $guests = 0; $members = array();
   while ($data = dbarray($result)) {
      if ($data['online_user'] == "0") {
         $guests++;
      } else {
         array_push($members, array($data['user_id'], $data['user_name']));
      }
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['011'].$guests."<br>\n";
   if (count($members) > 0) {
      $i = 1;
      if ($data['user_vip']>time()) { echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['012'];
      while (list($key, $member) = each($members)) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a> <img src='".IMAGES."vip' alt='VIP Narys' title='VIP Narys'>"; } else { echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['012'];
      while (list($key, $member) = each($members)) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>"; }
         if ($i != count($members)) echo ", ";
         $i++;
      }
      echo "<br>\n";
   } else {
      echo $locale['013']."<br>\n";
   }
   echo "<br><img src='".THEME."images/bullet.gif' alt=''> ".$locale['014'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
   if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
   $data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
   echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['016']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a>\n";
   closeside();
}
?>




bandyk, jei netiks skype.

Redagavo ArturasS· 2009 Spa. 17 13:10:05

Parašė Fucikijoooou· 2009 Spa. 17 13:10:46
#11

Parse error: syntax error, unexpected T_ELSE in /home/efficy/domains/test.xss.lt/public_html/infusions/online_users_panel/online_users_panel.php on line 42

Parašė blist· 2009 Spa. 17 13:10:24
#12

Efficy parašė:
Thanks ;) nors tiek, bet aš nerandu tam maincore faile kaip pakeisti gal galite kas padeti?
Radau :) nebereikia :)


Kokioje eilutėje maždaug radai?

Parašė Fucikijoooou· 2009 Spa. 17 13:10:08
#13

561 prasideda.
603 baigiasi.
Vadinasi:

// Universal page pagination function by CrappoMan

Parašė blist· 2009 Spa. 17 13:10:09
#14

Dėkui labai :)

Parašė Fucikijoooou· 2009 Spa. 17 13:10:51
#15

Prašom nėr už ką :))

Parašė Fucikijoooou· 2009 Spa. 17 14:10:29
#16

Turiu dar klausimeli, as mokejimai.lt saskaitoje turiu pinigu ir noriu juos persivesti i savo saskaita, swedbanke, tai vat zinau kad ten nusuka didziaja pinigu suma, bet kaip bandau pervesti praso pasirasyti sutarti as ja pasirasau ir poto per eparasas.lt man ten sukuria saskaita kazkokia ir ka daryti toliau, jeigu as noriu tiesiog is mokejimai.lt i swedbanka vesti pinigus? Nes raso ismokejimas negalimas, nors pasirasiau jau sutarti

Parašė ArturasS· 2009 Spa. 17 14:10:55
#17

Pasirašai sutarti aktyvuoja micro ar macro planus ir pervesti gali...