inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jul 23, 2012 6:29:13 GMT -8
On this other forum i am on, which is not a ProBoards forum sadly , they don't even have a way to show that you are online or not...I was wondering if it would be possible to have people go to a website and get themselves an "online image." The image would somehow have a code attached to it where every time the "owner" of that image viewed the image it changed to an "online" picture. After 15 minutes where the image was not viewed again it would change back to "offline." Is that even possible?
|
|
inherit
24252
0
Aug 1, 2023 15:01:24 GMT -8
coolcoolcool
When the world says, "Give up," Hope whispers, "Try it one more time."
2,148
May 2004
coolcoolcool
|
Post by coolcoolcool on Jul 23, 2012 9:29:15 GMT -8
A little more detail needed.
I don't completely understand what you mean. Maybe explain in detail how it would help and I might understand better.
What it sounds like atm is you want a separate website that the admin has to view to change an image to online and it only stays online for 15 minutes. Is that correct? If so it would require very basic php and mysql (or similar).
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jul 23, 2012 10:04:40 GMT -8
Nope not really. Basically what i want is a user to get an image. For the purpose of this explanation John gets www.image.jpg and put it in his sig. Whenever john's IP views www.image.jpg weather on the site it is hosted on or in his signature on the forum the image changes to one that says, "Online." Every time he views the image a timer is set for 15 minutes. After those 15 minutes the image reverts back to its normal "offline" image...
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Jul 24, 2012 5:47:19 GMT -8
This is possible with backend coding, however IPs are a highly unreliable way to track people. To make the system effective, you would need to have a custom client or something.
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jul 24, 2012 5:56:17 GMT -8
How do you mean by a custom client?
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Jul 24, 2012 6:00:10 GMT -8
Like a dynamic DNS client. Something that calls up the server hosting the image and tells it what IP is the one to watch for today. Just some way to update the IP if the user's IP rotates. Obviously this doesn't take into account logging in from other locations.
New idea:
Put a login script on the image. Image won't turn to online until user logs in. When tracking sessions, use the user's IP to logout if the IP changes. That way, each time they log in you can track the IP of the login and use that to watch for online activity.
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jul 24, 2012 6:19:36 GMT -8
I know almost nothing about all this coding so this would be a huge project for me that i'd probably never finish....anyway basically what i'm trying to say is i might not exactly understand how everythiny you say would work Ok so put a login script in the image. Is it possible to take an image and somehow have a script inside it? Or would the person have to visit another site than the forum we're on before his online image would work?
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Jul 24, 2012 13:04:47 GMT -8
I am an idiot. Cookies are another method of achieving this.
As for how to do it, it takes a bit of back-end knowledge, most likely in something like PHP.
The login would have to be on a different page.
I'm just listing off ideas here.
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jul 24, 2012 14:12:30 GMT -8
That's cool I'm sorta understanding what you're talking about. So what we'd do is create a cookie that the image remembered whenever the computer saw the image? Then what would that cookie do?
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Jul 24, 2012 16:00:55 GMT -8
Essentially, yes. You can embed things like cookies into images via a backend script. Each time the cookie shows, set the last seen time to the current time, and when the image is loaded by someone without that cookie, check the last time the cookie was seen and decided whether to show online or offline.
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jul 24, 2012 16:09:50 GMT -8
Ok...now i just have to go learn PHP and stuff to actually figure out how to do it
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Jul 24, 2012 16:38:25 GMT -8
Yeah, unfortunately PHP or an equivalent language is needed to make such an image.
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jul 24, 2012 17:06:32 GMT -8
I sorta knew that when i got started...This was a way to get me back into coding the question is where do i start learning enough to learn how to do this
|
|
inherit
24252
0
Aug 1, 2023 15:01:24 GMT -8
coolcoolcool
When the world says, "Give up," Hope whispers, "Try it one more time."
2,148
May 2004
coolcoolcool
|
Post by coolcoolcool on Jul 24, 2012 17:11:26 GMT -8
Best way to learn to program is to program imo.
If you really want to do something, dive in head first. If you have no knowledge of php/mysql, maybe start with a introductory tutorial. Then, anything else you need to know just google it. It's kind of funny how half the stuff I do I start having no idea what I'm doing. Break down the problem and figure out the parts by themselves.
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Jul 25, 2012 5:06:53 GMT -8
Best way to learn to program is to program imo. If you really want to do something, dive in head first. If you have no knowledge of php/mysql, maybe start with a introductory tutorial. Then, anything else you need to know just google it. It's kind of funny how half the stuff I do I start having no idea what I'm doing. Break down the problem and figure out the parts by themselves. This. Get a comfortable understanding of the language, and then just try new things in little steps towards the goal of that final project.
|
|