
wrx
Members-
Posts
212 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by wrx
-
this is probably overlooked more than anything else with some game owners. anyone running a game with a solid user base should have a daily/weekly backup schedule rotation set up at a minimum for thier db idealy more often for point in time recovery. wrx
-
Feel free to add unrelated comments to Off Topic voted yes, not using it though .. nice simple mod easy to customize/change for your own game wrx
-
yes add it to your sglobals.php
-
Just say no to Drugs .
-
Awesome glad you got it to work..... use the same principals we followed to correct your first issue.. to address the staff page follow how the html output is parsed for your staff page. from the looks of the screenie posted a table or column is being closed before the content loads into it causing the <TD> to be loaded with in a <TR>. if you need help post it up and we can go thru it..
-
maybe something like this then starting from smenuarea in header.php working to EOF function smenuarea() { include "smenu.php"; global $ir, $c; print "<div class='navhead'>Staff Bar</div> </td> <td valign='top' background='Images/content.gif' style='background-repeat:no-repeat;' width='443' height='23'>"; } function maincontent() { global $ir, $c, $db; print "<div class='navhead'>Layout Info</div> "; } function endpage() { global $db; echo" </td> <td valign='top'> [img=Images/index_14.gif]</td> </tr> <tr> <td colspan='3'> [img=Images/index_17.gif]</td> <td> [img=Images/index_18.gif]</td> <td> [img=Images/index_19.gif]</td> </tr> <tr> <td> [img=Images/index_20.gif]</td> <td> [img=Images/index_21.gif]</td> <td> [img=Images/index_22.gif]</td> <td> [img=Images/index_23.gif]</td> <td> [img=Images/index_24.gif]</td> </tr> </table> </center> </body> </html>"; } } ?> html output should load like $h->maincontent(); <index.php loads here > $h->endpage();
-
without seeing how your calling the main content in an example page .. ie index.php it would be hard to say exactly but my advice would be think of the header as a wrapper file that simply wraps the template around your called page (index.php for example) you would want to define any tables or columns outside of the maincontent function so it loads inside of it. function maincontent() { global $ir, $c, $db; echo"<div class='navhead'>Layout Info</div> <td> "; } echo" </td> <td valign='top'> [img=Images/index_14.gif]</td> </tr> <tr> <td colspan='3'> [img=Images/index_17.gif]</td> <td> [img=Images/index_18.gif]</td> <td> [img=Images/index_19.gif]</td> </tr> <tr> <td> [img=Images/index_20.gif]</td> <td> [img=Images/index_21.gif]</td> <td> [img=Images/index_22.gif]</td> <td> [img=Images/index_23.gif]</td> <td> [img=Images/index_24.gif]</td> </tr> "; function endpage() { global $db; print <<<OUT1 </table> </center> </body> </html> OUT1; } } ?> this is just an example to represent that when the main content function is called it starts with a <TD> and then after the function you echo </TD> to close the tag that would put the content called from that function inside the <TD> content </TD> tags. hope this helps WRX
-
Looks like seanybob does have something similar in the marketplace so im not going to post any free code for this. If any one buys his script i will offer to make a custom game logo (Free)for the image.
-
hmm didnt know that.. ill head over to marketplace and take a look..
-
i got this to work by creating a new page called confirmuse.php with the above query and form and then changed the forms action to : <form action="itemuse?ID='.$_GET['ID'].'" method="post"> theres an extra <form action="" method="post"> stuck in his origional post( make sure you remove that) maybe that was causing you a problem nicholas. if you use this method change your href in inventory.php for the "useitem" to confirmuse.php wrx
-
let users dynamically create a user game tag (image) here's a sample (this is just a fictional site simply used for the sample) Image template and background are used for image generation User and Level stats are pulled from game db. would anyone want or use this feature ? wrx
-
this is a copy of the register.php that is included in the download maybe someone can help with changing for V2 as i dont use those files. <?php /*----------------------------------------------------- -- # Created by wrx 1/26/2010 -- # This file is Creative Commons Attributions 2.5 license -- # Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). # Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license. -- # Filename : register.php -----------------------------------------------------*/ session_start(); require "mysql.php"; require "global_func.php"; echo " <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> <title>Lycan Wars</title> <link rel='stylesheet' type='text/css' href='style.css' /> </head> <body>"; $IP = $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$IP)) { echo("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); exit; } echo" <div id='wrap'> <div id='header'> <h1>[img=images/title.png]</h1> <div align='right'> <form action=authenticate.php method=post name=login id='sc'> <table width='400' border='0' cellspacing='10' cellpadding='10'> <tr><td colspan='4'></td></tr> <tr><td> [img=images/username.png]<input name='username' type='text' id='username' class='name'/></td> <td>[img=images/password.png]<input name='password' type='password' id='password' class='pass'/></td> <td align='center' valign='bottom'><input type='image' src='images/login.png' name='submit' id='submit' value='Login' class='submit'/></td> <td align='center' valign='bottom'></td> </tr></table></form> </div> <ul id='nav'>[b] <li class='first'>[url='login.php']HOME[/url] [*][url='about.php']ABOUT[/url] [*][url='contact.php']CONTACT[/url] [*][url='register.php']REGISTER[/url][/b] [/list] </div> <div id='content'> <div class='main fr'> <div class='mainin'> <h2>Lycan Wars Registration</h2>"; ////////////////Registration////////////////// global $c; if($_POST['username']) { $sm=100; if($_POST['promo'] == "Your Promo Code Here") { $sm+=100; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $q=mysql_query("SELECT * FROM users WHERE username='{$username}'",$c); if(mysql_num_rows($q)) { print "Username already in use. Choose another."; } else if($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again."; } else { $_POST['ref'] = abs((int) $_POST['ref']); $q=mysql_query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}",$c); if(mysql_num_rows($q)) { die("Registration Error"); } if($_POST['ref']) { $q=mysql_query("SELECT * FROM users WHERE userid={$_POST['ref']}",$c); $r=mysql_fetch_array($q); } mysql_query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, display_pic,searches) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, 'Male', unix_timestamp(), '{$_POST['email']}', -1, '$ip','images/id_template.jpg',100)", $c); $i=mysql_insert_id($c); mysql_query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)", $c); if($_POST['ref']) { mysql_query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}",$c); event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c); mysql_query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$ip')", $c); } print "You have signed up, enjoy the game. [url='login.php']Login[/url]"; } } else { print "<form action=register.php method=post> <table border='0' width='100%'> <tr><td>Username: </td><td><input type=text name=username></td></tr> <tr><td>Password: </td><td><input type=password name=password></td></tr> <tr><td>Confirm Password: </td><td><input type=password name=cpassword></td></tr> <tr><td>Email: </td><td><input type=text name=email></td></tr> <tr><td>Promo Code: </td><td><input type=text name=promo></td></tr> <input type=hidden name=ref value='"; if($_GET['REF']) { print $_GET['REF']; } print "'> <tr><td align='right' colspan='2'><input type=submit value=Submit></td></tr></form></table>"; } ///////////////////End Registration////////////////////////// echo" </div> </div> <div class='side fl'> <div class='sinner'><center> [img=images/screenshots.png][img=images/screenshots.png] [img=images/screenshots.png][img=images/screenshots.png] </p> </center></div> <div id='bg'> <center>[url='register.php'][img=images/join.png][/url]</center> </div> </div> </div> </div> </body> </html>"; ?>
-
Public Domain vector graphics you can download the entire DB 12000+ graphics openclipart.org
-
if its abused ill take it down ..no worries for me
-
adding template switcher shortly . mod move thread up one level ty
-
... Mod plz move up one level didnt mean to post in Free Plugins Created a template server to play around with different ways to implement a drop in template system for MC. with the exception of header.php and mainmenu.php no game files had to be edited (which makes for a very simple installation) Feel free to take a look and drop a few comments if you wish. Urban01 ======================================== Server is a unedited MC Lite install User: Demo Pass: Demo -
-
sold out ... plz no more PM's requesting this
-
i was thinking the same thing... i have a few OS Ajax Chat scripts and could of provided one but never got an answer about the requirements .. so cant help much with that. -
-
did you add the sql .. it is looking for a column in your user table that does not exist ... "UPDATE users SET meal_eat" ALTER TABLE `users` ADD `view_tv` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `sleep_sofa` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `sleep_bed` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `meal_eat` INT(11) NOT NULL DEFAULT '0'; ========
-
Good idea if posters stay within in the format of what you laid out in the 1st post (or similar) Needs to be moderated well or it turns into a Bad Idea quickly 2c
-
Atwhay ordway inway ethay englishway anguagelay isway onouncedpray ethay amesay evenway afterway emovingray 4ay ofway itsway 5ay etterslay ay ?
-
then its quarter (1) and nickel (2) 1 is now not a nickel