DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • January 19, 2019, 01:19:12 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: 1 [2]   Go Down
Author Topic: Help with a white screen...  (Read 2607 times)
0 Members and 1 Guest are viewing this topic.
« Reply #15 on: January 01, 2007, 09:15:06 PM »

Thanks.  No more n00b questions from me Smiley
« Reply #16 on: January 01, 2007, 11:06:44 PM »

There's a yet easier way to get what you want. 

Not to toot my own horn (I can't.  I play the violin), but I did that in my version of the instant banking module.

On the last page that gives output you'll need something along these lines:
page_header("An optional page title as a parameter");
output("Some example output.  For instance: Your gold has been banked!");
/* Anything else you want to happen before showing the forest */

The forest() function (found in lib/forest.php) outputs the forest navigation links.  By using true as a parameter, you suppress the usual description of the forest that goes along with them (eg. "The Forest, home to evil creatures and evildoers of all sorts...").

If you want to show your output as well as the description of the forest, instead of calling forest(true), instead use forest(false) or, because of PHP magic, forest().
Mod God
Offline Offline

Posts: 2238

I'm a good girl.

View Profile WWW
« Reply #17 on: January 02, 2007, 02:39:38 AM »

(Psst... PyRoDuDe... did you "read through" the tutorial or do it? Actually doing it is a valuable exercise. Only experienced code megageeks should have to just read it, and that's simply to see the LoGD conventions. If more than the conventions are new to you, actually doing the tutorial would be a good idea. Again, not because I think you don't understand what's happening, but because the practice will do you good.)

Thanks DaveS... I hadn't even clicked that it was in the wrong format (special vs shop). And yes... specials have their header and footer done automatically for them, and the fact that it was in the wrong format meant the header and footer were missing... dun dun dun, white screen =)

Owner of GemDust.com and Darton City proudly hosted by LunarPages
Pages: 1 [2]   Go Up
Jump to:  

DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

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