Jump to content
MakeWebGames

Tom V

Members
  • Posts

    25
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Tom V

  1. Just an idea for you to consider. Maybe the Statistics table on your home page could include timers and links. Here's a pic just to illustrate my thought, but I know you can make it much more aesthetically pleasing...
  2. The demo at https://glscript.net/demo/ is currently throwing a lot of errors.
  3. I have a form which lists the cars by location. I want to select one car in each location and insert multiple records (location field, car id field) for each selected location. Can someone provide some help creating the garage.script.js file. The element names are like so: <input type="radio" name="location1" value="124"> <input type="radio" name="location1" value="62"> <input type="radio" name="location2" value="45"> <input type="radio" name="location2" value="33">
  4. You can still do what URBANZ is suggesting, just use US_exp >= US_exp required.
  5. If the purpose is just to reward players for travelling, then why don't you just alter the function method_fly in travel.inc.php and change the alert message? Wouldn't that be a lot less complicated?
  6. I tried to follow your example, but i can't seem to get nested each's to work. For example, let's look at garage module. If I want a table to look like this: Location = England Car 1 Car 2 Location = France Car 3 I tried this but it doesn't give me the expected result. $cars[] = array( "locname" => $loc->L_name, "options" => array( "name" => $car->CA_name, "location" => $loc->L_name, "damage" => $car->GA_damage.'%', "id" => $car->GA_id, "value" => number_format($value) ), array( "locname" => $loc->L_name, "options" => array( "name" => $car->CA_name, "location" => $loc->L_name, "damage" => $car->GA_damage.'%', "id" => $car->GA_id, "value" => number_format($value) ) ) ); } $this->html .= $this->page->buildElement('garage', array("cars" => $cars)); <tbody> {#unless cars} <tr> <td colspan="5"> <div class="text-center"> <em> You have no cars</em> </div> </td> </tr> {/unless} {#each cars} <h1>{locname}</h1> {#each options} <tr> <td>{name}</td> <td>{damage}</td> <td>${value}</td> <td>{location}</td> <td class="text-center"> <a href="?page=garage&action=sell&id={id}">Sell</a> <a href="?page=garage&action=crush&id={id}">Crush</a> <a href="?page=garage&action=repair&id={id}">Repair</a> </td> </tr> {/each} {/each} </tbody>
  7. Thanks for the clarification.
  8. I can't find the line in blackjack.inc where this rule is applied. In this example, the player has fewer cards, yet the outcome is a draw.
  9. Has anyone created a form like in this example? Table1 and Table2 have a one to many relationship, submitted data stored in Table3. It seems you should just be able to use {#each id} {#each option} {/each} {/each}, but that doesn't work. Anyone have any friendly advice for me?
  10. Has anyone else noticed this bug?
  11. Are you running the latest version 2.2.3 ? You can check by looking at your class/user.php file. Around line 190 it should look like this: public function sendActivationCode($email, $id, $username) { $settings = new settings(); $from = $settings->loadSetting('from_email'); $headers = array(); if ($from) { $headers['From'] = $from; } $gameName = $settings->loadSetting("game_name"); $activationCode = $this->activationCode($id, $username); $subject = $gameName . " - Registration"; $body = "$username your activation code for $gameName is $activationCode, after you have logged in please enter this when prompted."; mail($email, $subject, $body, $headers); }
  12. Here you go:
  13. Tom V

    Register

    Are you running version 1? Try running version 2. See this thread
  14. Tom V

    Why?

    ParentID should be parentID ?
  15. They way I understand it, a players full health equals zero and goes up with damage. If the players health value exceeds the rank health value, then they should be dead. When you check in to hospital, health value is set to zero (full health) and player is released when hospital timer runs out. It sounds like you want other players to be able to bust someone out of the hospital early by paying a fee or by other means (just guessing because you didn't provide a lot of detail). If that's the case, you should be trying to reduce or reset the player's hospital timer, to simulate that you are speeding up the healing / reviving them.
  16. Is it the missing comma after :playerPerc? :exp, :playerPerc :itemType,
  17. Is this what you're looking for? $this->alerts[] = $this->page->buildElement("success", array("text" => $text));
  18. I submitted a pull request to allow the admin to configure the duration ( in hours ) until expiry of the detective report. Please review it and make any changes that you see fit.
  19. I believe it was Longshot that identified an issue with the collection and handling of bounties. Can it be fixed with a function in the kill module?
  20. The link didn't work for me.
  21. I tested and found it works for new users that agree to share email address. However, there seems to be a problem for existing users to sign-in, fb returns you to page "?page=facebook#_=_" and the following error "To finish off your registration please enter a username and a new password!". How do we get an existing user's info into the facebookLogins table?
  22. Kyle, That's an effective solution. Thanks.
  23. I tried adding this to the allowed methods: 'from_email'=>array('type'=>'get') I added this to constructModule: $this->page->addToTemplate("from_email", $settings->loadSetting("from_email")); Then I added this: $from = $this->methodData->from_email; $headers[]= 'From:'.$from; And I changed this line to this: mail($user["U_email"], "Password Reset", $body, implode("\r\n", $headers)); The result is the email that is sent goes to spam folder, because the from address shows up as (unknown sender). This is where I'm stuck.
  24. When testing the forgotPassword module, the emails are sent from [email protected]. How should I modify the forgotPassword.inc.php file to use the from_email field in the settings table instead? I'm a total newbie on this stuff. Thanks for any help, Tom
×
×
  • Create New...