DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • February 22, 2018, 04:46:43 PM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: [1] 2 3 ... 118
1  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Dwellingstats on: Today at 02:55:49 PM
Nice update, MarcTheSlayer!!

But I did want to say this was a totally great add.

We all enjoy your enthusiasm, but the last post in this thread was a decade ago. Please revive old threads only if absolutely necessary, or start a new thread if you have an issue with a module.
2  Coding Support / Coding Support Desk / Re: Comma-Delineated Numbers on: Today at 02:54:52 PM
Google number_format().
3  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: reCAPTCHA anti-spam for petition.php on: February 17, 2018, 08:32:02 AM
This module needs updating for recaptcha v2. V1 is being discontinued.

We thank you for your offer to update the code yourself for the good of the community.
4  Game Administration, Installation and Configuration / The Idea Place / Re: concerning petitions from player: subject field? on: February 07, 2018, 09:52:00 AM
No such impression would be made, it would be obvious that it was cut off, especially when you start replying to YoMs and it continues to be cut off.

I know what HL is and what Owls are, I've been on there since 2009, still am. The Staff are not overly active, hence the lack of replies. If it's suggestions you're giving them, they rarely take on suggestions by anyone.
5  Game Administration, Installation and Configuration / The Idea Place / Re: concerning petitions from player: subject field? on: February 06, 2018, 08:53:31 AM
This already exists, has for years.

FWIW, the HogwartsLive petition input doesn't have a limit on it, don't know where you got that from.
6  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Upgrade 1.1.0 to 1.1.2 on: January 30, 2018, 09:19:11 AM
No such patches exist because it should not be necessary for them to exist.

Nobody should be using 1.1.0, as 1.1.2 is the only supported version of the code.

Updating from a long-deprecated version is the fault, and therefore responsibility, of the site owner.
7  Game Administration, Installation and Configuration / The Idea Place / Re: concerning the core module "oldman.php" on: January 17, 2018, 05:41:00 PM
There's plenty of modules that have interaction, so an event that is sudden is actually different to the norm.

I'm confused - are you trying to copy HL and its modules, or?
8  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Code String Search v0.0.6 on: January 12, 2018, 08:48:23 PM
When you have more than one file with the same filename, but in different locations, only the last one detected will be listed and the rest will be overridden. The following fix removes array_merge, and manually adds the files with new keys (appending incrementing numbers) if the filename already exists.

Find:
Code:
$files = array_merge($files, codestring_search_listdir($filepath));

Replace with:
Code:
$newfiles = codestring_search_listdir($filepath);
foreach ($newfiles as $pagename => $pagearray) {
if ($files[$pagename])  {
$i = 2;
while ($files[$pagename.$i]) $i++;
$pagename .= $i;
}
$files[$pagename] = $pagearray;
}
9  Coding Support / Coding Support Desk / Re: Require Admin Approval For Unmute?? on: January 05, 2018, 08:03:57 AM
How do I do that?  I have never had to.
Never had anything like this happen before in eleven years running a site, LOL

Game Settings from the Grotto.

How do you not know how to code after over a decade?
10  Coding Support / Coding Support Desk / Re: Require Admin Approval For Unmute?? on: January 03, 2018, 11:14:04 PM
You've posted too many walls of text, I've become confused. Please repeat your issue in a comprehensible fashion.
11  Coding Support / Coding Support Desk / Re: Require Admin Approval For Unmute?? on: January 03, 2018, 10:18:41 PM
It's not a PHP error. Look at the query:
SELECT * FROM news WHERE accountid= ORDER BY newsdate DESC,newsid ASC LIMIT 100

Specifically the "WHERE accountid=" part. Where accountid equals what? It's blank, that's what the error is, there needs to be something after the equals sign. The callstack is saying that the error is near "ORDER BY", not that the error is "ORDER BY".

Easiest fix to this is as following (note the single quotes after accountid):
Code:
$result = db_query("SELECT * FROM " . db_prefix("news") . " WHERE accountid='{$target['acctid']}' ORDER BY newsdate DESC,newsid ASC LIMIT 100");
12  Coding Support / Coding Support Desk / Re: Require Admin Approval For Unmute?? on: January 03, 2018, 08:35:52 PM
thanks, Aeolus!

This stuff is enough to drive one crazy!!

One little misplaced question mark or comma or whatever...arrrgh.

Got it now.  And I also installed The Cell...to isolate players who cause trouble after the fact.

Not much else to do.

people will be idiots...and that is life...but I'd like to have tools to deal with it as best I can.

13  Coding Support / Coding Support Desk / Re: Require Admin Approval For Unmute?? on: January 03, 2018, 08:31:22 PM
oh, crap.  There is a stupid extra question mark in the pref name....in my code there...damn it.

Yep, there you go. Should work straight away now.
14  Coding Support / Coding Support Desk / Re: Require Admin Approval For Unmute?? on: January 03, 2018, 08:20:45 PM
I told you what to use in my last post.

"muting" for the third parameter (doesn't matter if it's the same module, it works either way), $args['acctid'] for the fourth.
15  Coding Support / Coding Support Desk / Re: Require Admin Approval For Unmute?? on: January 03, 2018, 08:05:44 PM
I can't get the rest of the way there...PLEASE help me...

This is what I tried now...and it JUST is not happening...
Code:
modulehook("commmute",array("userid"=>$id, "staffid"=>$session['user']['acctid'], "when"=>date("Y-m-d H:i:s")));
set_module_pref("comm","9999-99-99 99:99:99",FALSE,$id);   

$comm_muted_b = (get_module_pref("comm",FALSE,$id) != "0000-00-00 00:00:00")? ((get_module_pref("comm",FALSE,$id) == "9999-99-99 99:99:99")? 2 : 1) : 0;
$idret = "&id=".$id."&ret=".$ret."";



Okay. Were you putting that in the hook? All you need is the set_module_pref line (the second line). You used:
Code:
set_module_pref("comm","9999-99-99 99:99:99",FALSE,$id);
  • The "comm" is right.
  • The "9999-99-99 99:99:99" is right.
  • The third parameter is for the module - which module as we using? "muting".
  • The fourth parameter is for the user, and $id isn't set - looking at the First YoM module, we need to use $args['acctid'] instead.
Pages: [1] 2 3 ... 118

*
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
24 Guests, 1 User
Talisman
Home Forums News Downloads Login Register Advanced Search