Add New monster using Admin Panel       Back to File List | Edit This File

Add New monster using Admin Panel - Click to Download
Submitted by Serwas on 01.20.2007 (1189 Downloads)
Simple code that allows admin to add new Monster in Sql database using form in "Admin Home"instead manual adding in database using  phpMyAdmin, code made based on Add Town using Admin panel...
File rating: 4.20 out of 5.00 (10 votes total).
Rate this file:       (Sucks) 1   2   3   4   5 (Rocks)      

Posted by drake on 01.28.2007
Excellant!!! Best Mod I have seen so far, now onto other things. I can't get your Add Town using Admin Panel to work :(  , and, could you make a, add Weapons, Armors, and Shields using Admin Panel? please, would be greatly appreciated! but most importantly, tell me why add towns doesn't work :( . Thanks Again, Keep up the Good Work!!! regards Drake
Posted by Serwas on 01.28.2007
In my game it works good, and without errors.
Ask question in forum under "Add town in Admin Home" and explane "How it doesnt work...And Yes i can make other admin Add codes (curently working on it, but i was finishing my Fields with fixed monster mod (see that also), and im also working on one more BRAND NEW mod, so it will take few days to make it...
Posted by drake on 01.28.2007
Excellant! :D Keep up the goodwork, your mods are real pro like :D
Posted by drake on 01.28.2007
and with add town, I copy and paste everything where you said in your instructions, and then I go to Admin Page, and click on Create New Town and then the page comes up, just all blank, no forms or writing on it. Thanks for the Fast reply :D
Posted by Serwas on 01.28.2007
Sounds like You forgot to add this line in admin.php:

   elseif ($do[0] == "addtown") { addtown(); }

or
<a href="admin.php?do=addtown">Create New Town</a><br />

in templates/admin.php

I checked all code that i put online, i cant find error...


Posted by drake on 01.28.2007
Already Had that, still doesn't want to work :(
Posted by drake on 01.29.2007
Already Had that, still doesn't want to work :(
Posted by Grim Reaper on 09.26.2008
Drake, I had the same problem and i looked at the code in full. I found out that you needed to place it between the info with "    

$page = parsetemplate($page, $row);
   admindisplay($page, "info");
   
}

"

and "

function [infohere]() {
   
   if (isset($_POST["submit"])) {

"

becuase if you put it between in the other code, it will give you a blank page as it is nto reading it correctly. I hope this helps.
Add A Comment

In order to cut down on comment spam, you must be registered on the support forums and provide your username and password before you are allowed to comment. The name shown in your comment will be your forums display name. Sorry it had to be like this. If you haven't already, please register an account.

Forums Username:


Forums Password:


Your Comment:




Information & Rules
This is a file index for any Dragon Knight modifications. If you've made a mod you'd like to share with the community, upload it.

Mod authors, please include a name, version, and brief description along with your file. All files should be submitted in a zip file that includes the actual PHP scripts as well as any readme/instruction files.

DISCLAIMER: I take absolutely no responsibility for the content or functionality of any of these files. You use them entirely at your own risk. Make sure to run all files through a virus scanner before opening them. Hopefully the people here are above such petty nonsense as putting a virus in the files, but you can never be to careful.