DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • September 25, 2017, 08:39:40 PM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: [1] 2 3 ... 48
1  Game Administration, Installation and Configuration / The Idea Place / Re: Account ID on: September 22, 2017, 04:03:23 PM
Code:
dohook:
$allowed_acctids = array( acct id's go here separated by commas);

case "village or whatever"
if(in_array($session['user']['acctid'],$allowed_acctids))
{
addnav
}
in this case, I assume the account id's a separated by commas?

They do yes, apologies, thought I put that in there!
2  Game Administration, Installation and Configuration / The Idea Place / Re: Account ID on: September 20, 2017, 02:23:02 PM
dohook:
   $allowed_acctids = array( acct id's go here separated by commas  );

case "village or whatever"
            if(in_array($session['user']['acctid'],$allowed_acctids))
{
addnav
}
3  Coding Support / Coding Support Desk / HTML Table Help on: June 01, 2017, 05:24:59 PM
Evening Everyone, Smiley

I'm working on a module to display a time card. I have several problems in completing this module that are frankly driving me crazy.

1. I wish the date laid out as follows: (example) Tuesday, January 04, 2020, in a Sunday - Saturday format across the columns of the table. Currently I'm using

$date = date('l, F d, Y');

This correctly displays the current date, so each day shows as Thursday, June 01, 2017. I can't get the code to display correctly short of setting the whole thing in a calendar setting which I would very much like to avoid as I wish this particular table to be by week and not by month.

2. I wish to have an if statement per column after the first in each row. Example: Hours worked and Task completed are displayed if a time card has been filled out, otherwise the cell would be filled with a red background and the output of "Timecard Needed". I have the latter part of this set already, but I cannot get the if statement to actually work.

3. I wish to have the "Timecard Needed" cell clickable. I can make a hyperlink of just the words with no problem but the cell itself is proving to be very frustrating. I thought of making it a button, but cannot get that code to work correctly either.

4. Once the week is up, I'd like to store the data in a month and once the year is up in a year page by staffer. I haven't the foggiest idea how to do that short of calling everything by date.

Any help would be greatly appreciated, thanks!

~Rayn
4  Coding Support / Coding Support Desk / Re: Table Help on: February 03, 2017, 11:48:31 AM
Thanks for the reply Eliwood Smiley.  Here's a more information, hopefully it will help. Smiley

My table has 7 columns. the first 2 columns contain a list of skills that will add to each other and total to the main skills listed in the 7th column. For example. in column 1 there are the skills of alchemy, chemistry, herbology, geology, Anatomy and two History skills. In column 2 there are the skills, thaumatology, symbology, art/crafting, symbol drawing, component gathering and recipe reading. In columns 3, 4 and 5are the skills of magic by category, languages, lore by type and knowledge of the Gods; these skills are conditional and will add to specific recipes only. Column 6 contains mercantile skills used only at sale point. Column 7 contains the prime skills that everything adds into.

What I need is some way to denote that herbology adds to the prime alchemy skill, but also adds to the prime cooking skill and the prime art skill and so on.

I could just make a table for each prime skill, but I'd really like to avoid doing that as there are 10 prime skills and that would be an incredible amount of work.

I've never used the select element outside of SELECT in sql queries and am not 100% sure I even fully understand your suggestion of using it.

I hope this helps explain things further, if not, I can provide screenshots to show exactly what I'm looking for, though they will take assistance and probably cannot be posted today Smiley.

Thanks again,
~Rayn
5  Coding Support / Coding Support Desk / Re: Table Help on: February 02, 2017, 07:58:10 AM
Thanks for the info Eliwood! I'll bookmark the URL you've listed, but I won't be going with colors as a way to denote things as it's just too busy; too many colors in too small a space, Smiley. Might you have a suggestion as to your comment of:

...I would, however, think again about the design of your interface.
6  Coding Support / Coding Support Desk / Re: Table Help on: February 01, 2017, 03:35:27 PM
Accessible means set up with table headers for screen readers to read. What I want to do is to make the colors read without having to put the word "Red" for example before the word Carrot in the table. Make sense?
7  Coding Support / Coding Support Desk / Table Help on: February 01, 2017, 01:08:46 PM
I have a table that I'm attempting to make fully accessible. So far, it's gone wonderfully and everything is working. Where I run into trouble is...

I wish to color code the table so that for example all items that would go into a soup would be red and all items that would go into a pie would be blue.  I can code them in the table itself as `$red and `1blue, however I cannot make this portion accessible.  Any suggestions?
-I've tried <th>`1Bright Blue</th> and <td>`1Bright Blue</td>, both with no success.

Thank you very much for the help!
~Rayn
8  Modules, Themes and other customizations for your game / Themes / Re: Removing Charstats on: December 10, 2016, 06:18:10 PM
Thank you for the advice Mr. Coincidental,  Smiley. Oh, and btw, I'm a she, not a he. Smiley
9  Modules, Themes and other customizations for your game / Themes / Re: Removing Charstats on: November 14, 2016, 12:04:21 PM
Awesome! Thanks!
10  Modules, Themes and other customizations for your game / Themes / Re: Removing Charstats on: November 12, 2016, 11:17:28 AM
Thanks! Might there be somewhere in the code I could look at that would have this set already? Examples are good, Smiley.
11  Modules, Themes and other customizations for your game / Themes / Re: Removing Charstats on: November 10, 2016, 04:56:31 PM
::Bump::
12  Modules, Themes and other customizations for your game / Themes / Re: Removing Charstats on: October 17, 2016, 05:21:10 PM
I've loaded the module you posted Stephen, thank you. Now, to get it to work for only that one template. I've tried a prefs hook, which didn't work.

Code:
    'prefs'=>array(
'Template,title',
'mythrp' => 'Use MythRP template?,bool|1',
),

The getmoduleinfo function is set up in a way I'm unfamiliar with, so I'm not even sure if I set the pref correctly.

It did wipe the nearly three pages of "WARNING! XXXXX does not exist" that I was getting though, so that's good.

Should I use a pref?
13  Modules, Themes and other customizations for your game / Themes / Re: Removing Charstats on: October 14, 2016, 03:03:37 PM
Removing the char stats isn't easy as they're coded to always show, even when you're in the grotto. I wouldn't know where to begin after all these years.

To block navs based on a person's template is easy though as the template name is stored in a cookie. Get said cookie and if the name is what you're looking for then block the navs.

Code:
$_COOKIE['template']

Smiley

Thanks Afkamm!

I've managed to get the actual char stats blocked using the htm file, but, all the data is still there in several long lines. How do I get rid of them?

I'm confused with what you mean? Can you post a picture of the 'several long lines' so I can get a better idea of what you're trying to accomplish?

I'm afraid I can't, but, if you go to http://testbox.rpglink.in/home.php?, create a character and select the mythrp template you'll see right off what I'm talking about.


Have you looked at using the wipe_charstats() function? If you hook into the charstats hook with a high priority number (i.e. so it runs last), you'll remove all of your charstats.

It's what some sites use when they hide the charstats when a new MotD is posted, so players are forced to read it.

I haven't tried that no, haven't ever heard of it actually, I've never looked at the code in the force read MotD module. Thanks so much for the suggestion, it's been driving me crazy.
14  Coding Support / Coding Support Desk / Re: Introducing Town vs Town! on: October 05, 2016, 12:20:23 PM
Awesome! Thanks so much! I'll go reading and I'm sure I'll have questions/thoughts.

Those are some great points, you've given quite a lot to think on, thanks Smiley.
15  Coding Support / Coding Support Desk / Re: Introducing Town vs Town! on: October 04, 2016, 03:23:23 PM
I do believe I'll do that Smiley. Do you have anything started so that I may continue? Smiley
Pages: [1] 2 3 ... 48

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