Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3
Module- 2 Links
DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 17, 2019, 03:18:52 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 3184 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
Play LoGD on Dragonprime

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