DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 23, 2017, 03:01:16 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: broken navs  (Read 2362 times)
0 Members and 1 Guest are viewing this topic.
AgentHerby
Guest
« on: December 09, 2005, 07:18:37 PM »

Hi there,

I've got a problem with the navigation links of players on our server.
Sometimes when a player forgot to log out and closed his browser while being in forest or has been logged out by the system 'cause the session has expired, he gets a blank white screen in the middle after the next log-in.
Theres is no more navigation on the left (the space therefor is still visible, but the full characterinfo on the right is shown. Everything is shown an clickable, but no navs are shown.
After fixing the broken nav in the grotto most of time it works fine again, but sometimes I had to chance the players location too.
Most times there's no problem when forgetting the log-out, but some other times ....
The prob has only occured after upgrading to 1.0.5. I already copied the corefiles again to the folder and did a reinstall, but it didn't solve the prob.

Anybody an idea?

(sorry for the bad english, better speaking german *smile*)
Logged
backflip
Codemeister
****
Offline Offline

Posts: 278


om nom nom


View Profile WWW
« Reply #1 on: November 25, 2007, 03:16:45 AM »

Bump because of same problem here. Empty main part of the page, everything else there (I think) but no navs, just as if a non-existing, non-handled "op" parameter had been delivered. Only those parameters indeed ARE handled.
Logged

Bruce Schneier's functions don't have parameters. They have arguments, and they always win them.
Frodolin LoGD
Nightborn
Guest
« Reply #2 on: November 25, 2007, 03:17:28 AM »

Screenshot would help.
Logged
backflip
Codemeister
****
Offline Offline

Posts: 278


om nom nom


View Profile WWW
« Reply #3 on: November 25, 2007, 03:23:58 AM »

Yeah, see, that only happens to my users and never to me (although I visit the forest much less frequently) and I'm unable to deliver a screenshot until it happens next time.
Logged

Bruce Schneier's functions don't have parameters. They have arguments, and they always win them.
Frodolin LoGD
backflip
Codemeister
****
Offline Offline

Posts: 278


om nom nom


View Profile WWW
« Reply #4 on: November 30, 2007, 02:04:43 PM »

I think I might've spotted the problem.
If there are no navs added, forest.php will display the regular forest, right?
Code:
if (module_events("forest", getsetting("forestchance", 15)) != 0) {
if (!checknavs()) {
// If we're showing the forest, make sure to reset the special
// and the specialmisc
$session['user']['specialinc'] = "";
$session['user']['specialmisc'] = "";
$dontdisplayforestmessage=true;
$op = "";
httpset("op", "");
} else {
page_footer();
}
The problem is, there ARE navs given, if you use the portable potions module (and got some potions onhand). I'll add a little hack (only temporary) to see if the problem persists.
Logged

Bruce Schneier's functions don't have parameters. They have arguments, and they always win them.
Frodolin LoGD
Kala
Codemeister
****
Offline Offline

Posts: 479

Who Me?


View Profile WWW
« Reply #5 on: February 18, 2008, 02:59:50 AM »

Ok am posting in this thread as it seems relevant to the problem one of my players has.  I've managed to duplicate it using a second character.

Screen shots show the original login nav and then the 2nd one shows the bad nav

Basically, what I think is happening.  The player runs into a special event and dies.  The close the window without clicking through to the news or the shades/graveyard.

When they log back in, they're still in the forest, dead, with no allowable navs.

I tested this using the core special stonehenge as can be seen by the url in the first screen shot.  Stonehenge killed the char then I closed the window, without clicking through to the News.

I'm not 100% sure on receiving a new day, but if they did it didn't revive them. (newdays are pretty automatic for me, I just click continue).

I am running 1.1.0

Their restore page in the database is: forest.php?op=stonehenge&c=9-155801

I've also left the 2nd char like this, in case further information is required.

So I'm thinking simply adding

Code:
if ($session['user']['alive']){ }else{
redirect("shades.php");
}
to forest.php, like in village.php, should fix this Smiley

Edit: that doesn't work, anyone else got any idea's?

Edit: This code however, does seem to fix it, insert under the page_header in forest.php

Code:
if ($session['user']['alive']==0){
$session['user']['restorepage']="village.php";
$session['user']['specialinc']="";
redirect("village.php");
}
« Last Edit: September 07, 2008, 08:42:47 AM by Kala » Logged

~Why are there only 24 hours in a day, what I could do with an extra 1 ~
http://www.timerealms.net
http://www.legendofshrell.com
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
21 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search