DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • August 18, 2019, 10:17:35 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Clans  (Read 3725 times)
0 Members and 1 Guest are viewing this topic.
Dannic
Guest
« on: December 12, 2004, 06:46:04 AM »

ok... got a couple questions about clans.  

First,  Could we possibly be able to set the ranks in the configuration instead of having them hard coded?

Second,  Wouldn't it be better if clans were more of a module than a core file?
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #1 on: December 12, 2004, 07:19:46 AM »

And... Could it be possible to "close" clans, so that no further applications are possible?
Logged

Running for more than three years now:
Dannic
Guest
« Reply #2 on: December 12, 2004, 07:27:12 AM »

It would also be nice to be able to completely disable clans.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #3 on: December 12, 2004, 07:47:04 AM »

That could be done already...

Create a module, which blocks all navs to clan.php...
Logged

Running for more than three years now:
Dannic
Guest
« Reply #4 on: December 12, 2004, 07:48:23 AM »

true.  but if a player knew how to do it they could still get to Clans could they not?  That doesn't keep people from accessing clans.  Just makes it so that it doesn't show up in the Navigation.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #5 on: December 12, 2004, 08:07:16 AM »

No, if the clan is blocked, it doesn't show up AND it is no allowed nav for the user...
So they will be redirected to badnav.php if they try to...
Logged

Running for more than three years now:
Dannic
Guest
« Reply #6 on: December 12, 2004, 08:13:55 AM »

Excellent.  I'll have to make a quick mod for that.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #7 on: December 12, 2004, 08:27:24 AM »

Here ya go... Smiley

Code:
function blockclan_getmoduleinfo(){
   $info = array(
      "name" => "Block Clans",
      "version" => "1.0",
      "author" => "XChrisX, Dannic",
      "category" => "Village",
      "download" => "http://dragonprime.net/users/XChrisX/blockclan.zip",
      )
   );
   return $info;
}

function blockclan_install(){
   module_addhook("village");
   return true;
}

function blockclan_uninstall(){
   return true;
}

function blockclan_dohook($hookname, $args){
   global $session;
   switch ($hookname) {
      case "village":
         blocknav("clan.php");
   }
   return true;
}
Logged

Running for more than three years now:
Dannic
Guest
« Reply #8 on: December 12, 2004, 09:25:28 AM »

Thanks. Slight bug though

this
Code:
function blockclan_getmoduleinfo(){
   $info = array(
      "name" => "Block Clans",
      "version" => "1.0",
      "author" => "XChrisX, Dannic",
      "category" => "Village",
      "download" => "http://dragonprime.net/users/XChrisX/blockclan.zip",
      )
   );
   return $info;
}

should be

Code:
function blockclan_getmoduleinfo(){
   $info = array(
      "name" => "Block Clans",
      "version" => "1.0",
      "author" => "XChrisX, Dannic",
      "category" => "Village",
      "download" => "http://dragonprime.net/users/XChrisX/blockclan.zip",
   );
   return $info;
}
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #9 on: December 12, 2004, 09:37:30 AM »

Oh, yes... copy & paste... and delete... or not... updated the zip file...
Logged

Running for more than three years now:
Damien
Guest
« Reply #10 on: December 12, 2004, 09:38:59 AM »

You have access to the clan hall from player list too so you need to block navs from there and do something to make also "Online clan members"-nav disappear... Smiley


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

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #11 on: December 12, 2004, 10:00:18 AM »

okay... updated... anywhere else, we haven't seen so far?
Logged

Running for more than three years now:
Pages: [1]   Go Up
  Print  
 
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
98 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search