This is a discussion on "[SOLVED] Show "Image" Depends On User "Status"?" within the Classic ASP section. This forum, and the thread "[SOLVED] Show "Image" Depends On User "Status"? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Show "Image" Depends On User "Status"?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] Show "Image" Depends On User "Status"?
Hai guys,
Is it possible if I want to show 2 different kind of image (for example: online and offline gif) depends on the "status" of the user? In my page, when the user login, it will set the user "status" (a field in my database) to be "Online" and when he logout, it will set the "status" to "Offline". So when the user has logged in, I want to display the Online.gif just beside the user name. Just like a toggle function in javascript.
Thanks....
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|
|
#2
|
||||
|
||||
|
Re: Show "Image" Depends On User "Status"?
Hi monie,
What type of server side scripting do you have available? You can't achieve this with javascript alone as javascript has no knowledge of what other user's are up to. If you have PHP, I can help you. Let me know and I'll move this thread over there. Cheers,
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Show "Image" Depends On User "Status"?
I am using ASP (..currently learning PHP-WAMP)
If you can teach me using PHP, go on. I'll learn by doing. If you know the ASP way, maybe it will be easier for me to understand... Thanks by the way...
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#4
|
|||
|
|||
|
Re: Show "Image" Depends On User "Status"?
Any thing so far Rakuli?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#5
|
||||
|
||||
|
Re: Show "Image" Depends On User "Status"?
Hi Monie, sorry I missed this one. If you have a look at http://www.webforumz.com/php-forum/6...-beginners.htm it has some links to PHP starter tutorials but it may be easier for you to see the ASP way
Moving to the ASP forum
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#6
|
|||
|
|||
|
Re: Show "Image" Depends On User "Status"?
Hi Monie,
Is this for a forum kind of "User Online"? if so you will need to flag it in the database, if you just want an image to show to the user that is logged in then you can just use a session variable and us the following:-
|
|
#7
|
|||
|
|||
|
Re: Show "Image" Depends On User "Status"?
Yes, I did it. Thanks robbied.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Last edited by Monie; Oct 16th, 2007 at 05:09. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a "tag" system to find relevant "related" pages | MrQuestions | PHP Forum | 3 | Mar 20th, 2008 23:06 |
| ? IS "meta name="robots" content="?" necessary in pages ? | Love2Java | Starting Out | 6 | Aug 8th, 2007 13:48 |
| window.opener.document["nameForm"].getElementById("someid").value; doesnt work | drpompeii | JavaScript Forum | 0 | Feb 17th, 2007 23:09 |
| <option value="yes" class="x"> problem in Firefox | mameha1977 | Web Page Design | 1 | Jun 21st, 2006 11:20 |
| Need to build a "Trip" or "Journey Planner" | jswebdev | PHP Forum | 4 | Dec 5th, 2005 23:22 |