Icon Of Ofl And Onl In In Viewuser Profile (lavalair)

Started on the old forum in September 2007 · view the original in the archive · old links redirect here

5 replies · 890 views · started 19 years ago · 1 min read

3 participants
maul #1

as to insert icone of online and offline in

/////////////////////////////////viewuser profile

else if($action=="viewuser") {...

????


-> ...{ $iml = "<img src="images/onl.gif" alt="+"/>"; }else{ $iml = "<img src="images/ofl.gif" alt="-"/>"; }...

where and as to insert this?

(lavalair)

amylee Principal · 1,092 posts #2

as to insert icone of online and offline in

/////////////////////////////////viewuser profile

else if($action=="viewuser") {...

????


-> ...{ $iml = "<img src="images/onl.gif" alt="+"/>"; }else{ $iml = "<img src="images/ofl.gif" alt="-"/>"; }...

where and as to insert this?

(lavalair)

in index.php

wizard Senior · 493 posts #4

of this I know, more which codigo to use accurately that I want to know External image (may be gone)

i dont remember but i think there is a function in lavalair's core called isonline that returns whether a user is online or offline based on the id of the user. if its not there create this

 function isonline($uid) {
$online = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE userid='".$uid."'"));
if($online[0]>0) {
 return true;
}else{
retrun false;
}

}

next in the user profile put something like this

 if(isonline($who)==true) {
$onlineimg = "<img src=\"images/online.gif\" alt=\"*\"/>";
}else{
$onlineimg = "<img src=\"images/offline.gif\" alt=\"*\"/>";
}

now where u want the image to show just put echo $onlineimg; or echo "$onlineimg";

thats in the index.php?action=viewuser

maul #5

debtor, I obtained, gave all certain, obliged one: D

adeii Newbie · 8 posts #6

How to add line LAST POST in <topic> by <user> ???

(jbm ti skriptu, ne mogu da provalim. dakle npr. Poslednji post u temi Dobrodosli od Adeii)

it should by

index.php?action=viewtpc & sid=$sid & tid=$tid & gp=last.....

what $tid should be????

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close