osdir.com
mailing list archive

Subject: Re: Status Indicator - msg#00030

List: network.irc.blitzed.web

Date: Prev Next Index Thread: Prev Next Index
> This code doesn't work:
>
> <?php $online =
> file("http://www.blitzed.org/online.phtml?nick=aeonix";);
> if ($online[0]) echo "I am online";
> elseif ($online[2]) echo "I am away";
> else echo "I am offline";
> ?>
>
> Can someone help me?

No it doesn't, you want this:

<?php $online =
file("http://www.blitzed.org/online.phtml?nick=aeonix";);
if ($online[0] == 1) echo "I am online";
elseif ($online[0] == 2) echo "I am away";
else echo "I am offline";
?>

--
Dean Earley AKA IZS (dean-ouMXXIDxuYu9FHfhHBbuYA@xxxxxxxxxxxxxxxx)

irc: irc://irc.blitzed.org/
web: http://personal.earlsoft.co.uk
Phone: +44 (0)1489 789742
Mobile: +44 (0)780 8369596



Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

[rt.blitzed.org #194] Staff Pages

<URL: http://rt.blitzed.org:80/Ticket/Display.html?id=194 > > [phil - Wed Dec 24 12:02:23 2003]: > > server_edit.phtml is completely outdated. Do we need a replacement or is > it safe to remove it? I removed it (if anyone wants to work on it I have backups..), a page which goes into an infinite loop isn't the best thing to have sitting around ;). > BTW: > I changed all the staff_profile.phtml links to their correspondent > www.blitzed.org/staff/%d link. I fixed a few more (roster.phtml).

Next Message by Date: click to view message preview

Re: [rt.blitzed.org #194] Staff Pages

<URL: http://rt.blitzed.org:80/Ticket/Display.html?id=194 > On So, 2004-01-11 at 05:01, David Leadbeater via RT wrote: > > I changed all the staff_profile.phtml links to their correspondent > > www.blitzed.org/staff/%d link. > I fixed a few more (roster.phtml). Oh I thought I already got them by grep... Nevermind ;) Bye, phil -- Philipp Kern <phil-tqz7NC2fZsUb1SvskN2V4Q@xxxxxxxxxxxxxxxx> Secure your mails! [GPG-Key: 1024D/B2CFCDD8 (2003-01-08)] Homepage: http://www.philkern.de - ICQ#: 66737654 Have a lot of fun... and a nice journey!

Previous Message by Thread: click to view message preview

Status Indicator

This code doesn't work:   <?php $ href="">http://www.blitzed.org/online.phtml?nick=aeonix"); if ($online[0]) echo "I am online"; elseif ($online[2]) echo "I am away"; else echo "I am offline";?>   Can someone help me?

Next Message by Thread: click to view message preview

Re: Status Indicator

> On So, 2004-01-11 at 10:49, Dean Earley wrote: >> No it doesn't, you want this: > > How comes that that many people get it wrong? Who know. I guess its the index into the online array being 0... -- Dean Earley AKA IZS (dean-ouMXXIDxuYu9FHfhHBbuYA@xxxxxxxxxxxxxxxx) irc: irc://irc.blitzed.org/ web: http://personal.earlsoft.co.uk Phone: +44 (0)1489 789742 Mobile: +44 (0)780 8369596
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by