DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • June 17, 2013, 10:51:32 PM
Home Forums News Links Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

  Show Posts
Pages: [1] 2 3 ... 7
1  Core Code Development Discussions / Version 1.2.0 Development / Re: Clan Insider Description on: March 26, 2013, 03:20:49 PM
Instead of CLAN_FOUNDER, try setting every instance of ==CLAN_LEADER to read >=CLAN_LEADER.  Clan Leader is clanrank 30, Clan Founder is clanrank 31. Smiley
2  Game Administration, Installation and Configuration / Game Administration Chat / Re: PayPal Headers on: March 16, 2013, 10:22:21 AM
If the Paypal user who is the recipient of the donations does not have a business account, their email address will show.  If they have a business account, the business name will appear.  This is not something that we can set to fix. Sad
3  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: NPC Chat on: October 31, 2012, 12:41:09 AM
Lines 105, 128, 149:
Code:
<?php
$strContent 
$arrMatches[1];
?>

But... lines 169, 188: (for NPC)
Code:
<?php
$strContent 
$arrMatches[2];
?>

Spitballing here.  I don't use Squires..
4  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: NPC Chat on: October 30, 2012, 08:56:11 PM
Maximum consecutive character count?
For an NPC, this:
Dude scraches his head.

is really going in as this:

:`3, "`#;;NPC;;Dude;;scratches his head.;;;;1;;`3"

Game settings =>Commentary/Chat
Clean user posts (filters bad language and splits words over 45 chars long)
5  Game Administration, Installation and Configuration / The Idea Place / Re: Live Mail on: October 10, 2012, 03:22:38 PM
Works great!  Thanks.

For those of you using ChatYomPetLinks, you might need to make a small change to the petition line, otherwise you will find that link displaced...

Line 36:
Code:
rawoutput(" | <a href='petition.php' target='_blank' onClick=\"".popup("petition.php").";return false;\">$text</a>");

Should read:
Code:
rawoutput("</td><td>| <a href='petition.php' target='_blank' onClick=\"".popup("petition.php").";return false;\">$text</a>");

Thanks for everything!
6  Game Administration, Installation and Configuration / The Idea Place / Re: Live Mail on: October 04, 2012, 01:59:17 PM
Is it me, or does this block users from accessing their prefs on your servers?
7  Coding Support / Coding Support Desk / Re: Block Commentary in Moderation. on: August 31, 2012, 07:08:07 PM
dragonprime.net/index.php?topic=6973.msg62257#msg62257

moderate.php, starting at line 114:
Code:
if ($area==""){
talkform("X","says");
commentdisplay("", "' or '1'='1","X",100);
}else{

That's the "nasty little hack" Nightborn was talking about.

My 2 cents.  I've enclosed a nickel, I'm expecting change.  Grin
8  Modules, Themes and other customizations for your game / Completed Module Listings / Re: Staff Application - Discussion Thread on: August 28, 2012, 02:13:42 PM
In this edit, line 232 reads:
Code:
<?php
} else if ($op == "dec"){
?>


It should read:
Code:
<?php
} else if ($op2 == "dec"){
?>

9  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Discussion - Mail Keeper on: August 16, 2012, 02:06:04 PM
Well done, Gryffind-... err.. yeah.  Thanks for that. Smiley
10  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Module: This Is Bunny on: August 15, 2012, 10:07:51 PM
(I think it's pronounced ask-ee, but I can't be too sure on that.)

Yup.

I'm sure that very few of y'all actually remember life before Smiley's... we used to use -g- for grins.

Gosh, I'm old.

11  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Discussion - Mail Keeper on: August 15, 2012, 01:43:28 PM
Limit's nice.. but how about paginating it so we can view additional messages from a "Page 2", etc. nav?

Something like...

Code:
<?php
 $mailperpage 
50;
       $sql "SELECT count(id) AS c from ".db_prefix("mailkeeper");
       $result db_query($sql);
       $row db_fetch_assoc($result);
       $totalpages ceil($row['c']/$mailperpage);
         
$page httpget("page");
       if ($page == "") {
     if (isset($session['mailkeeperPage'])){
   $page = (int)$session['mailkeeperPage'];
}else{
$page 1;
}
}
if ($page 1$page 1;
if ($page $totalpages$page $totalpages;
$session['mailkeeperPage'] = $page;

// No need to show the pages if there is only one.
if ($totalpages != 1)  {
addnav("Page");
for ($x=1$x <= $totalpages$x++){
if ($page == $x){
addnav(array("`b`#Page %s`0`b"$x),"runmodule.php?module=mailkeeper&page=$x");
}else{
addnav(array("Page %s"$x),"runmodule.php?module=mailkeeper&page=$x");
}
}
}
if ($page 1){
$limit = (($page-1) * $mailperpage) . "," $mailperpage;
}else{
$limit "$mailperpage";
}
?>

Only... working? xD

That's from the petition viewer, by the way.  Fastest thing I could think of. Ideas?
12  Coding Support / Coding Support Desk / Re: How do I extract a value from.. on: August 14, 2012, 03:59:30 PM
Glad to hear it!
13  Game Administration, Installation and Configuration / The Idea Place / Re: Live Mail on: August 08, 2012, 04:02:50 PM
Not that I've encountered.
14  Game Administration, Installation and Configuration / The Idea Place / Re: Live Mail on: August 07, 2012, 02:22:18 PM
There is code in Nightborn's 1.2.4 fork for this.
15  Game Administration, Installation and Configuration / Game Administration Chat / Re: The Cell on: July 29, 2012, 12:45:09 AM
*HunterD sticks his two cents in.

I've got this with an AJAX commentary as well.  I have no issues.  I have button modifications as well, however, I do NOT have the delete feature that Aeolus so kindly figured out.  Have you tried removing that function yet?

Pages: [1] 2 3 ... 7

*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
35 Guests, 2 Users
The Doctor, KaosKaizer
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search