Page 1 of 2

Referring page (not sure if this is the best title)

Posted: Mon Apr 16, 2012 6:42 pm
by The Doctor
This is just a time-saver suggestion, something that has nagged me for a while.

I'm sure we've all had a time where we've left our game tab open for half an hour and found ourselves logged out, when we go to click on one of the side buttons (Attack Log, Market).

What I am suggesting is that, when this happens, when we log in again, it should automatically take us back to the page we clicked before.

TL;DR - Click "Market" and find you are logged out -> log back in and page loads to Market automatically, instead of "Base".

I think this is possible using PHP by using something like:

Code: Select all

http://gatewars.com/login.php?page=market.php


or something like that.

Re: Referring page (not sure if this is the best title)

Posted: Mon Apr 16, 2012 8:30 pm
by Sarevok
I agree. Would be nice to have.

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 7:52 am
by Bromas
Does it really take so long to click one of the tabs that we need this?


I don't really like it.

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 7:56 am
by The Doctor
Andy! wrote:Does it really take so long to click one of the tabs that we need this?


I don't really like it.


Haz wrote:This is just a time-saver suggestion, something that has nagged me for a while


It's simple to implement, and makes the website a bit easier to use, something which I'm sure Admin would be interested in :P

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 8:01 am
by Bromas
Its easy to use anyway. The longest it takes to get to a page is 2 clicks....

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 8:04 am
by Juliette
I have never had this problem. Cannot imagine anyone would have it either. When you have done nothing for a while and think you might be logged out (because your cookie settings suck), do you not just open a new tab from the page you are on, log in and close the tab? :?

Weh.

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 8:09 am
by The Doctor
Cersei Lannister wrote:I have never had this problem. Cannot imagine anyone would have it either. When you have done nothing for a while and think you might be logged out (because your cookie settings suck), do you not just open a new tab from the page you are on, log in and close the tab? :?

Weh.


That would make it worse.

  1. My suggestion: Login -> at page you were at when logged out.

  2. Currently: Login -> Click link -> at page you were at when logged out.

  3. Your suggestion: New tab -> type in "gatewars.com" -> login -> refresh original tab.

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 8:25 am
by Juliette
Haz wrote:
Cersei Lannister wrote:I have never had this problem. Cannot imagine anyone would have it either. When you have done nothing for a while and think you might be logged out (because your cookie settings suck), do you not just open a new tab from the page you are on, log in and close the tab? :?

Weh.
That would make it worse.
  1. My suggestion: Login -> at page you were at when logged out.
  2. Currently: Login -> Click link -> at page you were at when logged out.
  3. Your suggestion: New tab -> type in "gatewars.com" -> login -> refresh original tab.
My suggestion: Click center mouse button on any link on page -> Enter PIN (all details saved in form) -> close tab. :? 2 very short steps.
Your suggestion: Click. -> You have been logged out! -> Login -> back where you were. 3 steps including slowly typing in all your data and stuff.

My way is not 'worse'. Not if you know how to use your browser, that is.. :smt064

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 8:34 am
by The Doctor
Cersei Lannister wrote:
Haz wrote:
Cersei Lannister wrote:I have never had this problem. Cannot imagine anyone would have it either. When you have done nothing for a while and think you might be logged out (because your cookie settings suck), do you not just open a new tab from the page you are on, log in and close the tab? :?

Weh.
That would make it worse.
  1. My suggestion: Login -> at page you were at when logged out.
  2. Currently: Login -> Click link -> at page you were at when logged out.
  3. Your suggestion: New tab -> type in "gatewars.com" -> login -> refresh original tab.
My suggestion: Click center mouse button on any link on page -> Enter PIN (all details saved in form) -> close tab. :? 2 very short steps.
Your suggestion: Click. -> You have been logged out! -> Login -> back where you were. 3 steps including slowly typing in all your data and stuff.

My way is not 'worse'. Not if you know how to use your browser, that is.. :smt064


Except why would I open a new tab if I still believe I am logged in? So going by that:

Click. -> You have been logged out! -> Click back to get to the cached version of the page to be able to click one of the links -> Click center mouse button on any link on page -> Enter PIN (all details saved in form) -> close tab.

Quite a few more steps. You forgot to note finding out that you are logged out.

Remember, this is under the assumption that you are unsure if it has logged you out.

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 8:42 am
by Drought
Haz wrote:when we log in again, it should automatically take us back to the page we clicked before.


Techniques like these are intended to take you back to the page you were, not where you wanted to go. Though, a variant of it could be made.
Should be easy to implement, were it not that the session log out takes you to different pages.
The first directs you to that near black page with session time out blah blah, but the second and consecutive next one take you to the home page.

Every page would need extra coding and testing, even more so if you wanted to go to the intended page. Meaning admin should add programming to every page and would need to test it.

You would get:

hours of Admin programming versus 3 seconds of user experience

do the math ..... never gonna happen

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 8:49 am
by The Doctor
Duck Dodgers wrote:
Haz wrote:when we log in again, it should automatically take us back to the page we clicked before.


Techniques like these are intended to take you back to the page you were, not where you wanted to go. Though, a variant of it could be made.
Should be easy to implement, were it not that the session log out takes you to different pages.
The first directs you to that near black page with session time out blah blah, but the second and consecutive next one take you to the home page.

Every page would need extra coding and testing, even more so if you wanted to go to the intended page. Meaning admin should add programming to every page and would need to test it.

You would get:

hours of Admin programming versus 3 seconds of user experience

do the math ..... never gonna happen


Or if admin has php includes set up (I'm sure someone has mentioned that previously) all he has to do is edit one php file, and any page which includes that page, will automatically have it work.

And even if he didn't have php includes set up, it would be simple to copy and paste the code into the 10-20 separate php files used for this game, within 10 minutes.

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 8:50 am
by Juliette
Haz wrote:Remember, this is under the assumption that you are unsure if it has logged you out.
lol?
If you are unsure whether you are logged out, you are doubly silly for clicking on the page anyway.. :smt043 No. If you are unsure, you do the open extra tab thing and save yourself the mess of having to log in and go back. When in doubt, bake cookies. Same thing applies here.

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 8:52 am
by The Doctor
Cersei Lannister wrote:
Haz wrote:Remember, this is under the assumption that you are unsure if it has logged you out.
lol?
If you are unsure whether you are logged out, you are doubly silly for clicking on the page anyway.. :smt043 No. If you are unsure, you do the open extra tab thing and save yourself the mess of having to log in and go back. When in doubt, bake cookies. Same thing applies here.


OK bad wording on my part. I meant to say, you come back to your computer and assume you are still logged in, but it turns out you aren't.

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 9:05 am
by Juliette
Haz wrote:
Cersei Lannister wrote:
Haz wrote:Remember, this is under the assumption that you are unsure if it has logged you out.
lol?
If you are unsure whether you are logged out, you are doubly silly for clicking on the page anyway.. :smt043 No. If you are unsure, you do the open extra tab thing and save yourself the mess of having to log in and go back. When in doubt, bake cookies. Same thing applies here.
OK bad wording on my part. I meant to say, you come back to your computer and assume you are still logged in, but it turns out you aren't.
:P Fine, though I doubt any players with some experience in being online for a few hours on end run into this, and casual players have enough time to spend those 2 seconds.. Still I do not see admin taking any action, because frankly, it would not be worth his time. (See Duckie's comment which makes perfect business sense.)

Re: Referring page (not sure if this is the best title)

Posted: Tue Apr 17, 2012 9:07 am
by Drought
Haz wrote:Or if admin has php includes set up (I'm sure someone has mentioned that previously) all he has to do is edit one php file, and any page which includes that page, will automatically have it work.

And even if he didn't have php includes set up, it would be simple to copy and paste the code into the 10-20 separate php files used for this game, within 10 minutes.



PHP always has server side includes, outer domain includes can be turned turned off for security reasons.
He would actually have to use a bit of sepperate coding for each page, it looks a like, but not the same.
The technique you are referring too is used in larger frameworks like cake php or zend frame work.

Either way, it still takes hours to complete and test. And with all the suggestions and things mentioned that havent been done to improve the game, my best bet for this to get implemented is nihil.