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

Pages: [1]   Go Down
Author Topic: Arr, I have a question for ye!  (Read 2328 times)
0 Members and 1 Guest are viewing this topic.
« on: September 09, 2005, 08:03:41 AM »

I'm wondering if there's a way to keep the holiday module "talk like a pirate day" running 24/7 without manually changing the activation date every day. I took a look at the code for that file but didn't really see anything that would be of help, although I must admit my php skills are not the best. If it's something that's possible, I would love any kind of help in regards to it.

Currently running my version at http://logd.arrpirates.com

- Also, I almost forgot! There seems to be some kind of trouble with PVP. When you click on someone to slay, it points to a file (dat.php) that doesn't exist. I'm a bit perplexed by this, since I also can't find any dat.php anywhere in my offline version of LOGD.

Terribly sorry if this has been posted somewhere else before!  Undecided
« Reply #1 on: September 09, 2005, 09:06:43 AM »

Just edit the holiday_pirate.php module code.  The following lines:

               $mytime = get_module_setting("activate");
      list($amonth,$aday) = split("-", $mytime);
      $amonth = (int)$amonth;
      $aday = (int)$aday;
      $month = (int)date("m");
      $day = (int)date("d");
      if ($month == $amonth && $day == $aday) {
         $args['text'] = holiday_pirate_munge($args['text']);

can be changed to:


       $args['text'] = holiday_pirate_munge($args['text']);

Your other problem may be due to your php setup.  Your php might be setup to run as cgi.  If this is the case there are several threads on here that might help.
« Reply #2 on: September 09, 2005, 11:21:22 AM »

Thank you so much Smiley Going to give it a try and see how it goes!
Pages: [1]   Go Up
Jump to:  

DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

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