-
Posts
283 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Everything posted by Someone
-
I to have to scroll right on my 1280x1024 monitor The left menu is easy to read, the Recent Survivor Activity hard to read Recent Event and stuff in the torn note, easier to read Imagine its good on a laptop when you are 30 cm from the screen Hard for me to judge load times, since Im on a rather fast connection. I did analyze sitebg.jpg for funzies, was well optimized, but rather large (in width*height). Perhaps chop it up, and have button part that is mostly covered up by stuff, be a repeated smaller image. I would also not have the header part so tall (high), as I think its good for the user to have to do as little scrolling as possible.
-
no no no, thank you good, sir!
-
I think ajax_click_demo would be the sample to look at Think you need to get creative to use the out of the box solution alone for this. But you can print out a jQuery snippet directly to the page, or make your own .js file
-
The bentest account is not working, perhaps someone (else) is looged in with it. So it has finally happened. The zombie apocalypse has arrived and surprise surprise, no one was prepared...except a few smart individuals that saw it coming. Complete survival tasks and start to rebuild before the competition takes over. Times are hard, food and water are in short supply and not only do you have to deal with the walking dead, there's also the other survivors to worry about! But who knows their motives in these dark days. It's survival of the fittest now, so what are you waiting for you better get started Not a Survivor? Register Here! ^Still hard to read This is readable for me: There are currently 17 registered users.-------- 9 users online. [Last 24h] -------- Contact -------- Story Same with news ticker, perhaps slow it down a little (as in wait before it changes)
-
Configuration key: autoLogoutTime Time it takes to logout somebody automatically (not counting the session cleanup) (in min). ^ Is the admin panel setting description found it, 1800 makes sense on live sites I think. Ill just set it manually on dev version, guess it would be good for some to have a setting though.
-
Then my last post is invalid. How do we set how long until you need to re-login?
-
Actually I have this problem as well, thought I just had reversed some setting. But the setting was set at 60 min in the settings, when I went to check, but get logged out every 20. I just Admin Panel > Install / Update a single module Could be worth a try for you as well Edit: or as you did, think enable/disable does the same thing
-
This is by no means anything I am gonna need soon, and can be made by modules.
-
I agree that at _some_ point this will need to improve. Been using http://www.datatables.net in the past, has great features and fast to work with. You can search live from a database, and even edit columns directly and verify the data if you so please. If someone (else) beat me to it, I wont complain :)
-
I did not actually mean to release it, and its not, it still needs a config file perhaps with a min and max payout setting, and a menu entry. Get a dev/full license, and submit it to the marketplace. It will be forgotten when time buries it in this thread. Not that I edited my last thread with a shorter version.
-
Here is a fully working version, although the html does not fit the default theme 100% print_r($_POST); //Remove or comment out when not testing if(isset($_POST['firstthree']) && isset($_POST['secondtwo']) && isset($_POST['lastone']) ) { $three = rand(100,110); if($_POST['firstthree'] != $three) { ErrorMessage(Translate("Error, Wrong Combination!")); // Mising ) return; //Stop executing content.php } $two = rand(20,30); if($_POST['secondtwo'] != $two) { ErrorMessage(Translate("Error, Wrong Combination!")); // Mising ) return; } $one = rand(1,9); if($_POST['lastone'] != $one) { ErrorMessage(Translate("Error, Wrong Combination!")); // Mising ) return; } else if($_POST['firstthree'] == $three && $_POST['secondtwo'] == $two && $_POST['lastone'] == $one) { echo Translate("You press the numbers [{$_POST['firstthree']}][{$_POST['secondtwo']}][{$_POST['lastone']}] <font color='green' size='5'>Right Combination! Congratulations!</font>"); $muny=rand(10000,400000); $crys=rand(20,50); $userStats['!Currency']->value += $muny; //$userStats['crystals']->value += $crys; //This assumes that a crystals stat has been made in the user_stat_types table // This will not work //$db->Execute("UPDATE `users` SET !Currency=!Currency+{$muny},crystals=crystals+{$cr ys} WHERE userID=$userID"); } } else { echo "<form method='post' name='crack'> First Three: [<input type='text' name='firstthree' length='3' maxlength='3' style='width: 50px;'>] <sup>Hint: 100 - 110</sup> Second Two: [<input type='text' name='secondtwo' length='2' maxlength='2' style='width: 50px;'>] <sup>Hint: 20 - 30</sup> Last One: [<input type='text' name='lastone' length='1' maxlength='1' style='width: 50px;'>] <sup>Hint: 1 - 9</sup> </form>"; SubmitButton('Crack It', 'crack'); } Cleaned up shorter version if(isset($_POST['firstthree']) && isset($_POST['secondtwo']) && isset($_POST['lastone']) ) { $one = rand(1,9); $two = rand(20,30); $three = rand(100,110); if($_POST['firstthree'] != $three || $_POST['secondtwo'] != $two || $_POST['lastone'] != $one){ ErrorMessage(Translate("Error, Wrong Combination!")); return; } else { $muny=rand(10000,400000); $crys=rand(20,50); echo Translate("You press the numbers [{$_POST['firstthree']}][{$_POST['secondtwo']}][{$_POST['lastone']}] <font color='green' size='5'>Right Combination! Congratulations!</font>"); $userStats['!Currency']->value += $muny; //$userStats['crystals']->value += $crys; //This assumes that a crystals stat has been made in the user_stat_types table return; } } else { echo "<form method='post' name='crack'> First Three: [<input type='text' name='firstthree' length='3' maxlength='3' style='width: 50px;'>] <sup>Hint: 100 - 110</sup> Second Two: [<input type='text' name='secondtwo' length='2' maxlength='2' style='width: 50px;'>] <sup>Hint: 20 - 30</sup> Last One: [<input type='text' name='lastone' length='1' maxlength='1' style='width: 50px;'>] <sup>Hint: 1 - 9</sup> </form>"; SubmitButton('Crack It', 'crack'); }
-
if(isset($_POST['submit'])) { $three = rand(100,110); if($_POST['firstthree'] != $three) { ErrorMessage(Translate("Error, Wrong Combination!")); // Mising ) return; //Stop executing content.php } $two = rand(20,30); if($_POST['secondtwo'] != $two) { ErrorMessage(Translate("Error, Wrong Combination!")); // Mising ) return; } $one = rand(1,9); if($_POST['lastone'] != $one) { ErrorMessage(Translate("Error, Wrong Combination!")); // Mising ) return; } else if($_POST['firstthree'] == $three && $_POST['secondtwo'] == $two && $_POST['lastone'] == $one) { echo Translate("You press the numbers [{$_POST['firstthree']}][{$_POST['secondtwo']}][{$_POST['lastone']}] <font color='green' size='5'>Right Combination! Congratulations!</font>"); $muny=rand(10000,400000); $crys=rand(20,50); $userStats['!Currency']->value += $muny; $userStats['crystals']->value += $crys; //This assumes that a crystals stat has been made in the user_stat_types table // This will not work, stats are not stored that way in NWE //$db->Execute("UPDATE `users` SET !Currency=!Currency+{$muny},crystals=crystals+{$cr ys} WHERE userID=$userID"); } } else { echo "<form action='safecracker.php' method='post'> First Three: [<input type='text' name='firstthree' length='3' maxlength='3'>] <sup>Hint: 100 - 110</sup> Second Two: [<input type='text' name='secondtwo' length='2' maxlength='2'>] <sup>Hint: 20 - 30</sup> Last One: [<input type='text' name='lastone' length='1' maxlength='1'>] <sup>Hint: 1 - 9</sup> <input type='submit' name='submit' value='Submit!'> </form>"; } Should perhaps be its own thred, but here is my reply anyways. Added comments where there was problems EDit: I also see now that the form action points to safecracker.php Sould instead look into using http://www.nw-engine.com/wiki/index.php/SubmitButton
-
First of I said small id, I meant small d. You'd learn more if you rebuilt the module step by step, instead of plain out converting line for line. Start out with making a module in the admin panel if you have not done so already, then make the look of the page in the created content.php And perhaps look at how other similar modules to what you are making work. If you dont manage to overcome the embarrassment you can PM me, and Ill try to help.
-
By default NWE will strip the tags for you, so you can remove the line. However this would have worked if( isset($_POST['bet'])) ){ $_POST['bet'] = strip_tags($_POST['bet']); }
-
$userid is $userId (small id) in NWE This depends on how the query was made. - mysql_num_rows($q) => $q->NbRows - $db->num_rows($q) => $q->NbRows $db->Execute("SELECT username FROM users"); or if using a variable in the query $db->Execute("SELECT username FROM users WHERE id = ? LIMIT 1", $id); $db->Execute("UPDATE users SET email = ? WHERE id = ? LIMIT 1", $newemail, $id); post a snippet, or tell us an example of what you want done
-
Thought he wanted the data recovered as well
-
Sorry to hear that :( Very little you can do. Besides recovering that old backup, or just take the lesson learned (backup frequently is the name of the lesson) and move on. In theory, if you find out where mysql db files are stored on your system. Depends on what version and what OS is used. You could do a file recovery, chances for that working is still slim.
-
Photo Blogging Software
Someone replied to gmoore's topic in Programming Tools, Software and much more
http://www.minion.co.nz/pinshare/ 99$ few if any free scripts of thtat type Could be worth checking for wordpress image blog themes, some themes looks very different from regular blogs. If they dont wanna pay anything, the cant expect very much in my opinion. -
Photo Blogging Software
Someone replied to gmoore's topic in Programming Tools, Software and much more
What about pintrest kind of site http://demo.pinterestclones.com/ 200$ but think there are cheaper options -
Awesome! Just love that feeling when something works! addictive
-
<div id='sideMenuHeader'></div> <div id='sideMenuContent'><?php echo $content['sideMenuTop']; ?></div> <div id='sideMenuContent'><?php echo $content['customPrettySection']; ?></div> <div id='sideMenuContent'><?php echo $content['sideMenuBottom']; ?></div> <div id='sideMenuFooter'></div> Then in modules/yourmodulename/auto_post_content.php (http://www.nw-engine.com/wiki/index.php/Auto_post_content.php) $content['customPrettySection'] = PrettyMessage('message'); How I would do it
-
In the admin panel, select the crimes table. Edit or add a new row. In the effect_code insert any PHP you want to happen
-
Gonna look through it, I dont mind spending some time to perhaps load the database with a few thousand dummy records, just to get a feel of any penalty.
-
Where do you got that from? Intellectual property rights don't apply to the UK? Not even the Rockstars GTA image displayed on the front page? Considering moving there then :), should save me a bunch on purchasing stock photos. The game scripts CLEARLY has some affiliations with Crimelane. It says crime lane over the place, and I have not even logged in, the demo account did not work. Now the affiliations may be legit, I dont know what skooda -> david mcauleys may have agreed, or any other details. Skooda says above: So not saying Hitmanz is wrong in using the scripts.