Invisibility Mode

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

6 replies · 908 views · started 19 years ago · 1 min read

2 participants
bomb #1

What would be the best way to do this on lava script. I want it so owners can appear to be offline. I've put an extra field on users table called visibility and set up a link in ownercp to change this from 0 to 1 as required whats the best way to do the rest?

amylee Principal · 1,092 posts #2

could try editing the addonline(getuid_sid($sid),"Viewing Forum",""); bits which show where a user is on the script and add something to exclude a certain userid appearing online no idea if thats workable or not

metulj Super moderator Principal · 1,726 posts #3

What would be the best way to do this on lava script. I want it so owners can appear to be offline. I've put an extra field on users table called visibility and set up a link in ownercp to change this from 0 to 1 as required whats the best way to do the rest?

THIS ONE WORKS FINE! External image (may be gone)

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

linkrx7 #4

my new script has it all users can use the option and owners can see the invisible ppl in online list

linkrx7 #6

i had really annoying error in online list if only person online was hidden the sql from getnumonline() didnt wana work lol

function getnumonline($sid) { if(isowner(getuid_sid($sid))){ $online=mysql_fetch_array(mysql_query("SELECT COUNT() FROM users a INNER JOIN online b ON a.id=b.uid")); }else{ $online=mysql_fetch_array(mysql_query("SELECT COUNT() FROM users a INNER JOIN online b ON a.id=b.uid")); $count=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM users WHERE hidden='1'")); if($count[0]>1){$online[0]=$online[0]-$count[0];} } return $online[0]; }

i had to do this

else if(($action=="online")&&($mode=="")) { addonline(getuid_sid($sid),"Online List","index.php?action=$action"); $nick=getnick_sid($sid); echo head_tag($nick."@Online List",1,$nick); $title="Online Users ".getnumonline($sid).""; $main=$center; if($page==""||$page<=0)$page=1; $num_items=getnumonline($sid); if(getnumonline($sid)==0){$items_per_page=0;} else{$items_per_page=10;} $num_pages=ceil($num_items/$items_per_page); if($page>$num_pages)$page=$num_pages; $limit_start=($page-1)$items_per_page; if(!isowner(getuid_sid($sid))){$hidden="a.hidden='0'";} else{$hidden="a.hidden<'2'";} $sql=" SELECT a.username,a.level, b.place, b.uid, a.hidden
FROM users a INNER JOIN online b ON a.id = b.uid WHERE $hidden GROUP BY 1,2 LIMIT $limit_start, $items_per_page "; $items=mysql_query($sql); $main.=mysql_error(); while($item=mysql_fetch_array($items)) { if($item[1]=='0'){$tit="";} if($item[1]=='1'){$tit="
";} if($item[1]=='2'){$tit="";} if($item[1]=='3'){$tit="";} if($item[1]=='4'){$tit="*";} $sex=mysql_fetch_array(mysql_query("SELECT sex, image FROM profiles WHERE uid='$item[3]'")); if($sex[0]=="M"){$usersex="<img src="images/male.gif" alt="(M)"/>";} if($sex[0]=="F"){$usersex="<img src="images/female.gif" alt="(F)"/>";} if($sex[0]==""){$usersex="";} if($sex[1]!=""){$usersex=getbbcode($sex[1],$sid,1);} if($item[4]==1){$hide="<img src="images\hidden.gif" alt=""/>";} if($item[4]==0){$hide="";} $main.="$usersex<a href="profiles.php?who=$item[3]&sid=$sid">$tit$item[0]$tit</a>$hide - $item[2] "; } if($page>1){ $ppage=$page-1; $main.="<a href="index.php?action=online&page=$ppage&sid=$sid">‹-Prev</a> "; } if($page<$num_pages){ $npage=$page+1; $main.="<a href="index.php?action=online&page=$npage&sid=$sid">Next-›</a>"; } $main.=" $page/$num_pages"; if($num_pages>2){$main.=getjumper("main",$action,"","",$sid);} $main.=" "; $L1="$sixkey<a $key6 href="inbox.php?sid=$sid">Inbox</a>"; $L2="$sevenkey<a $key7 href="buds.php?sid=$sid">BuddyList</a>"; $L3="$eightkey<a $key8 href="chat.php?sid=$sid">Chat</a>"; $L4="$ninekey<a $key9 href="forums.php?sid=$sid">Forums</a>"; $L5="$zerokey<a $key0 href="main.php?sid=$sid"><img src="images/home.gif" alt=""/>Home</a>"; $main.=$center2; if($script=="html"){echo html($sid,$title,1,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);} else if($script=="xhtml"){echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);} else if($script=="wml"){echo wml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);} echo foot_tag(); }

linkrx7 #7

u can only use that code as reference like ideas and such i can assure u that code wont work if u copy and paste it lol

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