DragonPrime - LoGD Resource Community

Coding Support => Coding Support Desk => Topic started by: AgentHerby on December 09, 2005, 07:18:37 PM

Title: broken navs
Post by: AgentHerby 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*)

Title: Re: broken navs
Post by: backflip 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.

Title: Re: broken navs
Post by: Nightborn on November 25, 2007, 03:17:28 AM
Screenshot would help.

Title: Re: broken navs
Post by: backflip 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.

Title: Re: broken navs
Post by: backflip 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?
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'] = "";
$op = "";
httpset("op", "");
} else {
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.

Title: Re: broken navs
Post by: Kala 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

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

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

if ($session['user']['alive']==0){

© 2019 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines