Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
color to online/offline
Freakz Forum Index
->
Trash Bin
->
Trash
->
Programming / Scripting / Database
Author
Message
1156
Criminalul-X
[Banned user]
Status: Offline
(since 20-02-2008 18:22)
Joined: 22 Sep 2007
Posts: 371
,
Topics: 49
Location:
fun.freakz.ro
Reputation:
135.2
Votes
: 10
Posted: 02-11-2007, 23:38:31
| Translate post to:
... (
Click for more languages
)
vedeti img de mai sus vreau si eu sa pun culoare acolo si sa vie verde de ex si sa se vada verde in loc de alb
se poate ?
codu ar fi asta :
Code:
$onlinestatus_online = 'Acum sunt si eu <b>Online</b>';
$onlinestatus_offline = 'Acum sunt si eu Offline';
$result4 = mysql_query("SELECT * FROM " . $table_prefix . "users WHERE user_id = " . $poster_id);
$u53r5747u5 = mysql_fetch_row($result4);
$result5 = mysql_query("SELECT * FROM " . $table_prefix . "sessions WHERE session_user_id = " . $poster_id);
$s35510nn0w = mysql_fetch_row($result5);
if ($u53r5747u5[0] == -1) {
$u53r5747u573x7 = ""; // If that user is guest, don't display status.
} else {
if ($s35510nn0w[6] == 1) {
if (time() - 300 > $u53r5747u5[4]) {
$u53r5747u573x7 = $onlinestatus_offline;
} else {
$u53r5747u573x7 = $onlinestatus_online;
}
} else {
$u53r5747u573x7 = $onlinestatus_offline ;
ca sa vedeti unde vreau sa pun culoare
Code:
$onlinestatus_online = 'Acum sunt si eu <b>Online</b>';
$onlinestatus_offline = 'Acum sunt si eu Offline';
am incercat dar nu merge poate e ceva specific php
astept pe cnv inteligent
LE : Si as vrea sa duca spre viewonline.php
cand apesi pe online sau offline
astept
-=>Premii !
-=>Unban/Banati !
-=>Regulament fun.freakz.ro !
-=>Preturi Admine/XP & Admini Serverului
Contact YM: x_criminalul !
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
Trash
->
Programming / Scripting / Database
The time now is 15-01-2025, 11:56:31
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details