DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • June 24, 2019, 03:52:51 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Module- 2 Links  (Read 3089 times)
0 Members and 1 Guest are viewing this topic.
Freeze
Guest
« on: June 21, 2005, 02:43:09 PM »

I have a very simple module, and i want the link to appear in the village, as well as on the login page. How do i do this?

Here is the link-function thing-
Code:
function siterules_dohook($hookname,$args){
   global $session;

   switch($hookname){

    case "village":

          addnav("Other");

         addnav("Information Kiosk","runmodule.php?module=kiosk");

         break;
         }

   return $args;

}
Is there somthing I add, or do i do that twice..?
« Last Edit: June 21, 2005, 02:43:28 PM by Anakin » Logged
Freeze
Guest
« Reply #1 on: June 21, 2005, 02:50:59 PM »

I tried just adding a link to it, the runmodule.. link, but it didn't work. So i'm assuming you need to be logged in...
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #2 on: June 21, 2005, 03:44:19 PM »

In your siterules_getmoduleinfo array:
Code:
"allowanonymous"=>1,

Add that, then have it hook:
Code:
case "village":
case "index":
addnav("Other");
addnav("Nav for rues","sdfas");
break;
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Freeze
Guest
« Reply #3 on: June 21, 2005, 06:09:31 PM »

Hmm, thanks. I found another mistake i didnt even notice. I have 3 modules, nearly the same. rules and Kiosk got mixed up.

And thanks agian.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


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

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