DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 20, 2019, 05:00:51 AM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: [1] 2 3 ... 26
1  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Accounts not saving to db on: May 26, 2019, 12:43:18 PM
So I got a geek friend of mine to look at it. Don't think he knows much about LOGD, but he thinks he knows the reason it didn''t work. I asked him what I should tell you guys so that maybe it could be used as reference.

Here's what he says:

"Oh, all they need to know is that the default for the sql_mode variable in MySQL includes NO_ZERO_IN_DATE, and NO_ZERO_DATE. If it's something they are able to fix for when the installer connects to the database, then no one needs to go hunting for how to set sql_mode themselves. I mean, who does that?"

Will let you know if fixing it works.

HTH

I do believe that the zero dates are what makes sure that spam accounts (crawlers back in the day) get deleted with the 'newday_runonce' hook. The setting is under the 'Delete accounts never logged in' I believe. It could be as simple as the core team never thought about it, since the core's code is not the most secure.
2  Core Code Development Discussions / RAID! (Core Code Bug Reports and Patches) / Re: SQL injection bug in motd.php on: April 28, 2019, 07:35:08 AM
Would the regex \d{4}-\d{2} work as well? The fix is fine but it seems lengthy.
3  Coding Support / Coding Support Desk / Re: Looking for Light Coding Help on: March 04, 2019, 07:04:13 AM
The latter. Some are written by people who don't seem to be currently active, and so that's something I am looking for assistance with as well because I am nervous to spam the DP forums for each individual mod, but there also some tweaks/edits I'd like to make to mods but am not quite sure how to do so myself, that aren't necessarily the fault of the mod or the code itself - nothing (I think) super major, things like turning x mod to a popup, moving y mod to the stat bar instead of it's current location, changes like that are the sort of thing I am talking about.

Those things seem very basic. Would not be hard for anyone to pick up.
4  Coding Support / Coding Support Desk / Re: Seeking a coder on: February 23, 2019, 03:23:59 AM
I can volunteer my help.
5  Modules, Themes and other customizations for your game / Themes / Re: Template: Hypertext - A basic foundation for building more modern templates on: January 26, 2019, 11:46:47 AM
Good to see another template not follow the '90s design pattern of organizing with tables.
6  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Accounts not saving to db on: December 30, 2018, 01:00:33 PM
Okay, here's the log:
[30-Dec-2018 04:38:58 UTC] PHP Warning:  mysql_connect(): Access denied for user ''@'localhost' (using password: NO) in /home/feedmy5/logd.worldofarda.net/lib/dbwrapper_mysql.php on line 136
[30-Dec-2018 04:39:05 UTC] PHP Warning:  mysql_connect(): Access denied for user ''@'localhost' (using password: NO) in /home/feedmy5/logd.worldofarda.net/lib/dbwrapper_mysql.php on line 136
[30-Dec-2018 04:39:12 UTC] PHP Warning:  mysql_connect(): Access denied for user ''@'localhost' (using password: NO) in /home/feedmy5/logd.worldofarda.net/lib/dbwrapper_mysql.php on line 136
[30-Dec-2018 04:39:15 UTC] PHP Warning:  mysql_connect(): Access denied for user ''@'localhost' (using password: NO) in /home/feedmy5/logd.worldofarda.net/lib/dbwrapper_mysql.php on line 136
[30-Dec-2018 04:40:00 UTC] PHP Warning:  mysql_connect(): Access denied for user ''@'localhost' (using password: NO) in /home/feedmy5/logd.worldofarda.net/lib/dbwrapper_mysql.php on line 136
[30-Dec-2018 04:40:17 UTC] PHP Warning:  mysql_connect(): Access denied for user ''@'localhost' (using password: NO) in /home/feedmy5/logd.worldofarda.net/lib/dbwrapper_mysql.php on line 136
[30-Dec-2018 04:40:24 UTC] PHP Warning:  mysql_connect(): Access denied for user ''@'localhost' (using password: NO) in /home/feedmy5/logd.worldofarda.net/lib/dbwrapper_mysql.php on line 136


The annoying part is I entered a db username, password, db name, etc, and during the installation, it was able to connect and do it's thing, and I got passes in all of them.
But it seems that that information was not saved correctly?
What do I do from here.
Thanks.
Looks like your dbconnect.php file may exist but it is all blank. Open it up with a text editor and edit it, or delete it and restart the installation process.
7  Game Administration, Installation and Configuration / Game Administration Chat / Re: Administrators resigning and aftermath on: December 12, 2018, 01:52:18 PM
Additionally, I don't know if you would be able to help on that, but if we don't have an active Admin, is there a way to designate one without access to the Grotto? We're having hard time locating the owner of the server, therefore SQL updates are also highly unlikely to happen.

There are no methods to assign new administrators without server access, user editor or creature editor.
8  Village Square / General Discussion Area / Re: Sound in lotgd on: September 11, 2018, 06:09:47 PM
Rewriting combat to be modular and using JavaScript to handle the battle logic would be better. Popups would be annoying.
9  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Account Switcher : File Submission/Discussion on: August 26, 2018, 11:18:50 AM
I do see ONE stellar advantage to having this installed.  Admins wold thus know FOR SURE...who is whose alt...allowing misbehaving players to be appropriately sanctioned if they use alts to cheat or create drama, or stalk and harass other players....as some people DO use alts for this sort of thing.  Anyone using this module for their alts...it would become totally clear whose alt is whose.

Anyone that would cause trouble at a place is not going to register an alt like that lol. Checking ip and id are the only measures you will have - if they want to change those to stay hidden, they surely won't add a link between accounts.
10  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Account Switcher : File Submission/Discussion on: August 20, 2018, 10:58:11 AM
It looks great. Thank you. Nice touch on the antispam feature.
11  Game Administration, Installation and Configuration / The Idea Place / Re: Switch Accounts on: August 17, 2018, 12:34:38 AM
If you would do that right, you'd replace the entire login process with that, and attach characters to it. Would solve the multi-char-problem, and other numerous things.
But, you would have the replace the entire login process and so on...

Never thought of it like that, but that is still relatively easy to do anyways. I will look into making a splash page to select a character on login. I don't want to release my current version because I don't really approve of it.
12  Game Administration, Installation and Configuration / The Idea Place / Re: Switch Accounts on: June 20, 2018, 10:59:54 AM
It was brought to me as a suggestion by a player. I think they have a great idea. It would be cool if it could be a module and you could log onto one account from another without having to log off. You simply click switch account (maybe enter some info) and it goes. Kind of like how it is on Facebook.

I really like this idea.
13  Game Administration, Installation and Configuration / Game Administration Chat / Re: GDPR Privacy in the EU (and those who accept EU players) - Issues with Lotgd on: May 31, 2018, 01:10:41 AM
You use cookies, therefore you collect data. FK, for reference, uses a privacy policy.

Must have a look.  Does your privacy policy (I assume you mean a disclaimer statement) actually serve to keep you from trouble with this new law?
Privacy policies are required by law. So in a way, yes, they do keep you out of trouble.

I see your front page discloses that you have cookies.

Is that actually good enough?

Wondering if an agreement, at charactger creation that says, creating a character here means that you, the user, agree to hold harmless under any EU laws concerning data privacy.

We have external links that do use cookies, as does this site.  This game is not playable without them.

Data gathered is used only for the purposes of this game and is not disseminated or sold to any third party.

Something along those lines....
That's essentially what the new legislation requires.
14  Coding Support / Coding Support Desk / Re: Tabs on MOTD Header To Turn Red When New MOTD on: May 26, 2018, 11:08:14 AM
Seenupdates is not set to false and I wouldnt know where to set it.  Im thinking the first $session without ['user'] needs it. Im lost really as how to fix this.

The status of the polls and changelogs is stored on the account, but the contest status is stored in the session. [...] maybe the $session['needtoviewcontest'] not being a saved variable.
15  Coding Support / Coding Support Desk / Re: Tabs on MOTD Header To Turn Red When New MOTD on: May 20, 2018, 08:07:03 AM
I want each of the tabs other than the MOTD one, which I have called Kinks, to turn red when there is a new one. I tried to get help and it just didnt work and the person swears it will work this way and its not. I have tested it multiple times. I'll put the code below and someone can tell me where we messed up. Thanks!

Code:
$a=translate_inline("Kinks");
$b=translate_inline("Contests & Events");
$c=translate_inline("Polls");

if ($session['needtoviewcontest'] == 1)
$highlight_contests = "<a href='motd.php?op=contest' style='color:red'>$b</a>";
else
$highlight_contests = "<a href='motd.php?op=contest'>`r$b</a>";

if ($session['user']['needtoviewpolls'] == 1)
$highlight_polls = "<a href='motd.php?op=poll' style='color:red'>$c</a>";
else
$highlight_polls = "<a href='motd.php?op=poll'>`L$c</a>";

if ($session['user']['needtoviewchangelog'] == 1)
$changelog = "<a href='motd.php?op=changelog' style='color:red'>Server Updates/Enhancements</a>";
else
$changelog = "<a href='motd.php?op=changelog'>`4Server Updates/Enhancements</a>";

output("<center><big><a href='motd.php'>`5$a</a> | $highlight_contests | $highlight_polls | $changelog</big></center><br>",true);

You don't have an opening tag. PHP requires <?php at the start of each page. As Aeolus has said, there is probably an accounts table issue. There seems to be some confusion here as to what you are trying to do, between your developers. The status of the polls and changelogs is stored on the account, but the contest status is stored in the session. This would mean that the contest is probably changing with each login. There are no setters here for any of the contests, polls, or changelogs here - so we cannot help you properly. You need to include the other parts of this code, because this is clearly not where the issue lies, except for maybe the $session['needtoviewcontest'] not being a saved variable.

Also, it seems as if the changelog will be perpetually red, since the LotGD color code for red is `4 and you have style='color:red' in the if statement.
Pages: [1] 2 3 ... 26

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