DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • May 21, 2013, 03:08:01 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Creating a link off the home page. Help!  (Read 431 times)
0 Members and 1 Guest are viewing this topic.
DaveS
Mod God
*****
Offline Offline

Posts: 1544


Dfly... you know, as in DaveFly


View Profile
« on: January 27, 2007, 09:16:05 PM »

I wanted to write a dinky little module that would allow administrators to give a chance to describe their site on a unique page; something like the "About LoGD" link but so admins could do something to describe their site (without using the space provided on "About LOGD").

Attached is the file I started with, but I'm getting stuck because all I get is the message:

You are not logged in, this may be because your session timed out. Your session has timed out, you must log in again.

Can someone take a look and help.... I  want to believe that I'm missing something very simple.

(Attempted attachment of file failed, so here's the key code that I have:)

Code:
function aboutyou_dohook($hookname,$args){
switch($hookname){
case "footer-home":
addnav("Other Info");
if (get_module_setting("addnav1")>"") addnav(array("%s",get_module_setting("addnav1")),"runmodule.php?module=aboutyou.php?op=addnav1");
break;
}
return $args;
}
function aboutyou_run(){
define("ALLOW_ANONYMOUS",true);
$op = httpget("op");
if ($op == "addnav1") {
$name1=get_module_setting("header1");
page_header("%s",sanitize($name1));
output("%s",get_module_setting("text1"));
}
addnav("Login Page","index.php");
page_footer();
}
Logged

Check out my Last Module:
The Dragon Eggs Expansion
http://dragonprime.net/index.php?topic=8474.0

About my Retirement:
http://dragonprime.net/index.php?topic=9080

See my complete module list here:
http://dragonprime.net/index.php?topic=3038.0
Nightborn
Guest
« Reply #1 on: January 27, 2007, 11:22:56 PM »

try

Code:
"override_forced_nav"=>true,
"allowanonymous"=>true,

in your getinfo function.

that will help.

Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #2 on: January 28, 2007, 12:48:02 AM »

Only the secons should be necessary. Put the first line in ONLY if the game does not create ANY links within the game!!!
Logged

Running for more than three years now:
Nightborn
Guest
« Reply #3 on: January 28, 2007, 12:51:46 AM »

Sorry, forgot to mention =)
as far as I thought, it should be only outside.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
20 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search