Fucikijoooou
Narys
Buldozeris
Pranešimai: 260
Įstojęs: 2008 Lie. 30 01:07:51
|
Sveiki noriu paklausti kaip vietoj sitos:
Paneles po naujienomis, pasikeisti i savo button'us, pvz: Kitas puslapis ir atgal ?
Ar imanoma?
Fucikijoooo.!!;] :) |
Dandžu
Narys
Ekspertas
Pranešimai: 3265
Įstojęs: 2007 Lie. 23 13:07:47
|
maincore.php faile.
|
Fucikijoooou
Narys
Buldozeris
Pranešimai: 260
Įstojęs: 2008 Lie. 30 01:07:51
|
Thanks nors tiek, bet aš nerandu tam maincore faile kaip pakeisti gal galite kas padeti?
Radau nebereikia
Fucikijoooo.!!;] :)
Redagavo Fucikijoooou 2009 Spa. 17 12:10:01 |
Fucikijoooou
Narys
Buldozeris
Pranešimai: 260
Įstojęs: 2008 Lie. 30 01:07:51
|
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();
}
?>
Fucikijoooo.!!;] :)
Redagavo Fucikijoooou 2009 Spa. 17 13:10:34 |
ArturasS
VIP narys
Pulkininkas
Pranešimai: 416
Įstojęs: 2009 Spa. 12 08:10:19
|
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?
|
Fucikijoooou
Narys
Buldozeris
Pranešimai: 260
Įstojęs: 2008 Lie. 30 01:07:51
|
reikia, ten kur rodys kad prisijunge: Nickas(vip zenkliukas)
Fucikijoooo.!!;] :) |
maxas66
Narys
Buldozeris
Pranešimai: 287
Įstojęs: 2009 Rugs. 8 21:09:44
|
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();
}
?>
|
Fucikijoooou
Narys
Buldozeris
Pranešimai: 260
Įstojęs: 2008 Lie. 30 01:07:51
|
nea nerodo, tik nickas ir viskas
Kad kur rodo Prisijunge nariai: Nickas(ir jeigu tas narys vip, rodys zenkliuka)
iMOST irgi nerodo ;(
Fucikijoooo.!!;] :)
Redagavo Fucikijoooou 2009 Spa. 17 13:10:51 |
ArturasS
VIP narys
Pulkininkas
Pranešimai: 416
Įstojęs: 2009 Spa. 12 08:10:19
|
<?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.
|
Fucikijoooou
Narys
Buldozeris
Pranešimai: 260
Įstojęs: 2008 Lie. 30 01:07:51
|
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
Fucikijoooo.!!;] :) |
blist
Narys
Ekspertas
Pranešimai: 2896
Įstojęs: 2008 Vas. 24 14:02:54
|
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?
|
Fucikijoooou
Narys
Buldozeris
Pranešimai: 260
Įstojęs: 2008 Lie. 30 01:07:51
|
561 prasideda.
603 baigiasi.
Vadinasi:
// Universal page pagination function by CrappoMan
Fucikijoooo.!!;] :) |
blist
Narys
Ekspertas
Pranešimai: 2896
Įstojęs: 2008 Vas. 24 14:02:54
|
Dėkui labai
|
Fucikijoooou
Narys
Buldozeris
Pranešimai: 260
Įstojęs: 2008 Lie. 30 01:07:51
|
Prašom nėr už ką )
Fucikijoooo.!!;] :) |
Fucikijoooou
Narys
Buldozeris
Pranešimai: 260
Įstojęs: 2008 Lie. 30 01:07:51
|
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
Fucikijoooo.!!;] :) |
ArturasS
VIP narys
Pulkininkas
Pranešimai: 416
Įstojęs: 2009 Spa. 12 08:10:19
|
Pasirašai sutarti aktyvuoja micro ar macro planus ir pervesti gali...
|