DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • April 26, 2019, 09:45:27 AM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: [1] 2 3 ... 125
1  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Abandonded Castle (REAL MAZE/LABRYNTH) for 0.9.8 on: April 14, 2019, 08:14:59 AM
What is line 15 of modules/lib/abandoncastle.php?
2  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Recommended version PHP, MySQL & Apache/nginx? on: April 10, 2019, 11:48:46 PM
You needed to change it in dbconnect.php, not dbwrapper.php

This is wrong. Change what? dbconnect is the core database credentials file, dbwrapper is the lib database functions file.

If you meant my original comment, I've corrected the typo, and Smirnov appears to have edited the correct file.
3  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Recommended version PHP, MySQL & Apache/nginx? on: April 09, 2019, 03:56:42 AM
In lib/dbwrapper.php, change DBTYPE from mysql to mysqli_proc.
4  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Recommended version PHP, MySQL & Apache/nginx? on: April 09, 2019, 02:07:02 AM
Why can't you install it on PHP 7? The "LoGD 1.1.2 with Bug Fixes (Recommended, 2017)" version should be able to be installed on PHP 7.
5  Modules, Themes and other customizations for your game / Races and Specialties for version 1.x.x / Re: Esper mage is Not Working For Me... on: March 25, 2019, 11:39:14 PM
You can turn on error checking to have the error displayed on the page.
6  Modules, Themes and other customizations for your game / Races and Specialties for version 1.x.x / Re: Esper mage is Not Working For Me... on: March 25, 2019, 01:06:42 AM
A white page almost always means an error in the code. Check your error logs.
7  Coding Support / Coding Support Desk / Re: Looking for Light Coding Help on: February 27, 2019, 01:19:00 PM
Currently working on a private, invitation only server. Ran into a few hiccups with some modules and could really use a coder, at least part-time, to give me some assistance. Basically, just light bug fixing -- although I will never turn down custom mod work from interested parties.

Mostly, I just need to iron out the edges of a few pesky mods and need some guidance so that we can be in functional beta.

Only ever work with someone you know and trust. Never work alongside someone as if it's a job application. Who knows what they could do to your sites if they ever disagreed with you.
8  Coding Support / Coding Support Desk / Re: Seeking a coder on: February 23, 2019, 01:14:49 AM
Only ever work with someone you know and trust. Never work alongside someone as if it's a job application. Who knows what they could do to your sites if they ever disagreed with you.
9  Coding Support / Coding Support Desk / Re: How To Get One Word Within A String Variable? on: January 11, 2019, 02:27:28 AM
I tried an unserialize on this.  It still came back wrong, and this time it returned an array.
So I went back to in_array - still did not work.

So, I imploded the value of the fetched variable as a comma delineated string...and all I got was a bunch of 1's separated by commas.

I am truly flummoxed here.  Nothing is getting me to where I want to be.

I looked in the case: biostat of Petra.
But I don't understand quite what is happening there.  I want to compare each thing one at a time.
I need to compare ONE AT A TIME....each possible tattoo, do they have it or not?  And then do or do not do an action accordingly.

I am not sure how I get there.

Go to http://phptester.net/ and put this in:

Code:
<?php
$s 
'a:9:{s:7:"mermaid";i:1;s:7:"rainbow";i:1;s:10:"red_dragon";i:1;s:13:"yellow_dragon";i:1;s:11:"blue_dragon";i:1;s:12:"white_dragon";i:1;s:12:"black_dragon";i:1;s:11:"gold_dragon";i:1;s:12:"green_dragon";i:1;}';
$t unserialize($s);
print 
"<pre>";
print_r($t);
print 
"<pre>";

It works. In your code, you might need to use stripslashes() first, when you get the pref.
10  Coding Support / Coding Support Desk / Re: How To Get One Word Within A String Variable? on: January 11, 2019, 02:23:50 AM
Code:
if ($rdtat = "yes") {

Look at this line in your code. = is to set. == is to check. You're setting $rdtat to "yes" in your if statement.

Just for interest...I had it print out the value of $tat and this is what came back

a:9:{s:7:"mermaid";i:1;s:7:"rainbow";i:1;s:10:"red_dragon";i:1;s:13:"yellow_dragon";i:1;s:11:"blue_dragon";i:1;s:12:"white_dragon";i:1;s:12:"black_dragon";i:1;s:11:"gold_dragon";i:1;s:12:"green_dragon";i:1;}

Yes, that is a serialized array.

Still, though, should I actually do an unserialize on this?

How would I get where I am trying to go?

Use unserialize() on it, then you can use in_array() to see if a tattoo is in that array of tattoos.

But why would the strpos function find something that was not there?

Going back to the first part of my answer, that therefore means that strpos() is working fine. You're just re-setting the $rdtat variable after the use of strpos().
11  Coding Support / Coding Support Desk / Re: Tables Question on: January 11, 2019, 12:18:41 AM
And that is different based on the screen size of the end user, isn't it?

Sometimes. If you have a wide table and narrow view (e.g. mobile phone), then there's not overly much you can do.

But how to make the next table show up just to the right of the first one...instead of underneath?
Whatever table you're wanting align, just set the "style" attribute to "float:left" in the table'a HTML itself.

I had already said.

The other way, though not recommended, is to create a "wrapper" table and cells, and put the tables in those cells. So:

Table
Row 1
Cell 1 - Includes first table
Cell 2 - Includes second table
End row
End table
12  Coding Support / Coding Support Desk / Re: Tables Question on: January 09, 2019, 08:38:07 PM
OK, I noticed the function cssfloat.  Because "float" is reserved in Java.  You can use this directly within a module, then?  Was not sure LOTGD would recognize the function as it is not defined within LOTGD.

"cssFloat" is the Javascript property, but that's not necessary here at all. Whatever table you're wanting align, just set the "style" attribute to "float:left" in the table'a HTML itself.
13  Coding Support / Coding Support Desk / Re: Tables Question on: January 09, 2019, 03:22:55 PM
So it would need to be done in the style sheets of the templates themselves, and not the module?

Nope. Not everything CSS has to be done in the style sheets of templates. You can use CSS inline in HTML's "style" attribute.
14  Coding Support / Coding Support Desk / Re: Tables Question on: January 09, 2019, 02:27:00 AM
Look up CSS's "float" property.
15  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Accounts not saving to db on: December 29, 2018, 04:47:07 AM
In the code where the creation of a character is executed, debug the error output and post the results.
Pages: [1] 2 3 ... 125

*
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
18 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search