Jump to content
MakeWebGames

KyleMassacre

Members
  • Posts

    2,921
  • Joined

  • Last visited

  • Days Won

    48

Everything posted by KyleMassacre

  1. Down towards the bottom of your admin panel there is a import button. You just click that, then click install/update single module
  2. Everytime I tried getting custom work done there they try to charge me a grip
  3. Ok I attached it here. But just incase replace the file I originally posted cause I can remember if this is updated or not and im at work right now And also remember to manually update the module after you upload it to ensure it installs correctly verify_email.nwp
  4. Maybe when I get home ill make a preferences along with the already established password change and possibly some others like username, and email
  5. Well I like hooks :p
  6. On shared hosting it may be an issue even with the famous "Unlimited" bw. I thought about trying to set up irc in NWE that was customized but "I" couldnt get it to work the way I wanted so I gave up. Another issue I see is the token, and people constantly having to leave the game and/or leaving chat non stop since you cant open it in a separate window
  7. Well if they request their account to be locked then I see it as their fault. With this being said, if they do wish to play again there is a "forgot password" option which resets their password to some random string and emails it to them. So they can get their account back if they wish. Also with my points noted above and something about username that alain said above this is a good opportunity if someone wishes to create a change username module which isnt done yet. Now with that in the air how about a preference hooked page? I was thinking of making a new preferences to upload in place of just the password change where we can hook other "preferences" as seen in other games
  8. Well what I posted would work just do a little change in the query instead of deleting. When im off my phone ill work something out with some user stats and user vars
  9. Sweet. Go to module manager, find the red chat_bar and click enable.
  10. I believe it has to do with the verify mod. But I think it is four.
  11. Well, yes and no. It is free in the full version but if you have the dev versions yo have to pay for a license. It is a pretty sweet chat module the looks a bit like irc and I wanted to mess around with it and make it replicate irc as well with some other stuff.
  12. Thats exactly what I was thinking and there has got to be another way to do so without deleting the players account I just havent thought of it just yet. And the more its built on the harder it is to track what rows in tables need to be deleted. So as a disclaimer to anyone wishing to use this please use at your own risk. Cause as alain stated this could lead to bugs down the road
  13. Im very interested in seeing what you have to make and I also wanted to dabble a little in MiniNEAB but it seems a little out of my league haha
  14. i know its old but i stumbled across this: http://makewebgames.io/showthread.php/32670-Nice-Day-Logout. it looks pretty similar ;)
  15. ***Please use at your own risk*** Ok I made a make shift one for you or anyone else that wants to use it, this version i wont upload cause I figure I can make a better one but just to show how simple it can be config.xml <?xml version="1.0" encoding="UTF-8"?> <configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.nw-engine.com/modules.xsd"> <module name="Delete user" version="1.0.0" author="Kylemassacre" type="module" description="Delete a user from the database"/> </configuration> admin_menu.php <?php $adminEntries[]=new MenuEntry("Delete User","Users"); ?> content.php <?php // Not an admin? Go away! if (! IsSuperUser()) { header("Location: index.php"); return; } if(isset($_POST["user"])) { if(!FindUser($_POST["user"])) { ErrorMessage("That user does not exist"); return; } else { $u = $db->LoadData("select username from users where id = ?",$_POST["user"]); ResultMessage(Translate("User: %s, has just been deleted!",$u["username"])); $result = $db->Execute("delete from users where id = ?",$_POST["user"]); ButtonArea(); LinkButton("Admin Panel","index.php?p=admin_panel"); EndButtonArea(); return; if(!$result) { ErrorMessage("Uh-Oh, something went wrong"); return; } } } TableHeader("Delete a User"); echo "<table class='plainTable'>"; echo "<form method='post' name='frmDelUser'>"; echo "<tr><td width='1%'><b>" . str_replace(" ", " ", Translate("UserName")) . ":</b></td><td>" . SmartSelection("select id,username from users where id > 2", "user") . "</td></tr>"; echo "</table>"; TableFooter(); ButtonArea(); SubmitButton("Delete","frmDelUser"); LinkButton("Cancel", "index.php?p=admin_panel"); EndButtonArea(); ?>   Now just remember this is make shift and when i get some time and if there is a demand ill go ahead and try to make a better one the will wipe them clean off the game with getting rid of messages, attack logs, forum posts, user variables, and etc. And maybe add a button to the profiles for easy access whilst in the game browsing around
  16. Ok, I pulled off the market till I get it sorted if someone doesnt mind can you try this out please and let me know? replace auto_pre_content.php with this: <?php if (GetUserVariable(emailVerified) != "yes" && !IsSuperUser()) { BlockModule("verify_email"); TableHeader("Verify Your Email"); if (isset($_POST["cmd"])) { if ($_POST["cmd"] == "resend") { $email = $db->LoadData("select email from users where id = ?",$userId); SendEmailConfirm($email["email"]); ResultMessage(Translate("An email containing your new code has been sent")); } if (isset($_POST["newEmail"]) && $_POST["newEmail"] !="" && $_POST["cmd"] == "update") { $email = filter_var($_POST["newEmail"],FILTER_VALIDATE_EMAIL); if ($_POST["newEmail"] != $email) { ErrorMessage(Translate("You must enter a valid email address")); return; } else { $result = $db->Execute("update users set email = ? where id = ?",$email ,$userId); SendEmailConfirm($email); ResultMessage(Translate("Your email has been updated and a new verification code has been sent")); echo "<script>setTimeout(\"document.location='index.php';\",2000);</script>"; return; } } } if (isset($_POST["vCode"])) { if ($_POST["vCode"] != GetUserVariable(emailVerifiedCode) && $_POST["vCode"] != "") { ErrorMessage(Translate("Invalid Confirmation Code, please try again")); echo "<script>setTimeout(\"document.location='index.php';\",2000);</script>"; return; } if ($_POST["vCode"] == GetUserVariable(emailVerifiedCode)) { ResultMessage(Translate("Thank you for verifying your email address, you may now continue")); SetUserVariable(emailVerified,"yes"); ReleaseModule("verify_email"); echo "<script>setTimeout(\"document.location='index.php';\",2000);</script>"; return; } } ErrorMessage(Translate("Your account has not been confirmed as of yet, please check all mailboxes")); echo "<form method='post' name='frmVerifyEmail'>"; echo "<input type='hidden' name='cmd' value='doResend'>"; echo "<table class='plainTable'>"; echo "<tr><td width='1%'><b>" . str_replace(" ", " ", Translate("Enter your Code")) . ":</b></td><td><input type='text' name='vCode' value=''></td></tr>"; echo "<tr><td width='1%'><b>" . str_replace(" ", " ", Translate("Update your Email?")) . ":</b></td><td><input type='text' name='newEmail' value=''></td></tr>"; echo "</table>"; echo "</form>"; TableFooter(); ButtonArea(); SubmitButton("Confirm Code", "frmVerifyEmail"); LinkButton("Resend Code", "#", "document.forms['frmVerifyEmail'].cmd.value='resend';document.forms['frmVerifyEmail'].submit();return false;"); LinkButton("Update Email", "#", "document.forms['frmVerifyEmail'].cmd.value='update';document.forms['frmVerifyEmail'].submit();return false;"); EndButtonArea(); return; }
  17. You are correct. And no there is no army system or anything thing like that
  18. Yeah but atleast you get a notice of upgrade so you can plan on it
  19. Well I do have a mod for ingame admins to swap back and forth between clan and gives them clan master Trust me its easier to make a mod than to convert it over to nwe cause it will be almost an entire re write anyway
  20. Not by default. That is something you will have to decide by using if(!IsPremium()) { ErrorMessage ("Whoaa, get out of here buddy"); return; }
  21. Put it in edit mode because of the issue. If there is a problem then I dont want it to go out in the field
  22. I think it will need to be a little more than that otherwise like Dom mentioned the forums, imagine what their posts would like like. Now for a clan, what if they are clan master? The clan members may be stuck without a leader. These 2 things are my only concern off the top of my head
  23. Yeah thats what I was meaning buy extra stuff. I can possible go through and delete all traces of that user except for forum threads the user has created cause that may pose an issue in the forum but I would have to see how its actually set up but then again it may do something with forum if those tables dont even get touched either. So there is a lot to look at
  24. For this module in particular it shouldnt have any database modifications just a new row or 2 that got inserted into the user variables table. But for now on when I upload a new mod or edit a mod I can add in a readme file with a change log and and basic info about the modules. And "MOST" of the time if there is a table in the db that a module adds it will be in config.xml for the table editor to pick it up but for that to work it must have an auto-increment row. If its not in config.xml and it messes with a table of any sort it MUST have an install.sql file because that is what the module installer reads from to create the db tables, rows, or columns. So in a nut shell the config.xml is a real good place to look at for all this information because it will hold config values, and/or user varibales the module uses to run
  25. Hmm ill have to dig in and see what it is really wrong. If you have any ideas that can help me let me know because I tested and tested before releasing and never came across this issue and I believe I even had sniko run through it too and it worked for him
×
×
  • Create New...