#15513 - 08/27/07 06:20 PM
Admin Panel (basic) and monster images
|
Soopermuse
Cheerios
Registered: 04/09/07
Posts: 134
Loc: UK
|
Offline
|
|
I thought id package up 2 mods i made, after tidying the code up a bit.
the first
BASIC ADMIN PANEL
This admin panel is for Dragon Scourge, it is currently very basic, but is meant as a template from which you can create an even more expansive admin panel.
Currently Supports only the CONTROLROW for updating your main Scourge settings
Files to upload: 4 Files to modify: panels.php, 1 tiny modification
DOWNLOAD: HERE
MONSTER IMAGES
As im sure you all noticed, there is a control setting called showmonster images, but there isnt a monster images feature.
I have created a monster images script, that is compatible with this control.
If the control is set to 1 (which is on) it will display the monsters image, if set to 0 (off) it will display an image that says no image available.
Files to upload: 1 File modifications: fight.php several medium modifications, fight templates 1 small modification to each fight template
Download: HERE
Feel free to post your comments here, no they may not be perfect, but they work without fault, feel free to modify them as you wish, should you add anything more to the admin panel, i encourage you to post your updated versions here.
|
|
Top
|
|
|
#15592 - 09/05/07 04:14 PM
Re: Admin Panel (basic) and monster images
[Re: Soopermuse]
|
Ignacio
Grape Nuts
Registered: 08/26/07
Posts: 25
|
Offline
|
|
How do I set controlmonster ON.... to see images of eachone??
|
|
Top
|
|
|
#15628 - 09/16/07 02:29 PM
Re: Admin Panel (basic) and monster images
[Re: Ignacio]
|
Soopermuse
Cheerios
Registered: 04/09/07
Posts: 134
Loc: UK
|
Offline
|
|
It is in the mod to set it on, of course, stock DS actually DOES NOT have any monster images function at all, but it has the monsterimages control in the db.
I of course have created a monster images mod which should be somewhere, which works with the control.
|
|
Top
|
|
|
#15978 - 11/03/07 09:57 AM
Re: Admin Panel (basic) and monster images
[Re: Soopermuse]
|
Whiz
Cheerios
Registered: 10/28/07
Posts: 129
|
Offline
|
|
For your admin(basic), I had to change your instructions to
------
Admin Panel basic Mod for Dragon Scourge by soopermuse
www.soopermuse.com
------
Upload the files included in the zip to corresponding folders.
admin.php to your DS root directory
and the files in the templates folder to your ds templates folder.
----
Add admin link to your scourge that only admins see
----
open panels.php find:
//if ($acctrow["authlevel"] == 255) { $admin = " (<a href=\"admin/index.php\">Admin</a>)"; } else { $admin = ""; }
$admin = "";
replace with:
if ($acctrow["authlevel"] == 255) { $admin = " (<a href=\"admin.php\">Admin</a>)"; } else { $admin = ""; }
And even still I am getting this error.
Fatal error: Cannot redeclare updateuserrow() (previously declared in /home/www/*domain*/lib2.php:19) in /home/www/*domain*/lib2.php on line 17
Which is wierd because nothing in your code touches updateuserrow
Edited by Whiz (11/03/07 10:12 AM)
|
|
Top
|
|
|
#15981 - 11/03/07 02:05 PM
Re: Admin Panel (basic) and monster images
[Re: Whiz]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
I don't even have that error. I just got a blank page.
Sorry Soopermuse, but the only one who's wrong is you. You call us idiots, but we use normal versions of Scourge. I even tried it with a not-modded Scourge version, on a licensed and therefore payed host, but still that damn blank page.
I know PHP and HTML very well, but shamely I haven't found the wrong part of your script yet.
|
|
Top
|
|
|
#15982 - 11/03/07 02:08 PM
Re: Admin Panel (basic) and monster images
[Re: gamefreak888]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
I thought about this: There's no link in index.php. So maybe we have to add an extra 'case'. But could that be the problem of all this?
|
|
Top
|
|
|
#15985 - 11/03/07 04:41 PM
Re: Admin Panel (basic) and monster images
[Re: gamefreak888]
|
Whiz
Cheerios
Registered: 10/28/07
Posts: 129
|
Offline
|
|
Baseijser,
I may be misunderstanding what you said, so please tell me so if I have. But, the "link" you are looking for is in the file edit for panels.php.
Soopermuse, I am curious as to why you included lib2.php. I can't see a reason for it since lib2 mostly deals with items. If you are at all inclined, would you mind explaining the reason for it? I believe you when you say that it has worked flawlessly on your installs, but a new version of Scourge has come out since you posted this. Perhaps this could be a source of our trouble.
|
|
Top
|
|
|
#15991 - 11/04/07 10:34 AM
Re: Admin Panel (basic) and monster images
[Re: Whiz]
|
Whiz
Cheerios
Registered: 10/28/07
Posts: 129
|
Offline
|
|
I took out the include("lib2.php"); in admin.php and it all seems to work now.
Also, templates/admin_contrls.php needs this edit.
**Find** Game Name: </td><td width="70%>"
**Replace with** Game Name: </td><td width="70%">
Well, now that that's done, anyone up to collaborating on completing the admin functions? I believe the best place to start would be worlds and towns, then users, then probably the story table. This would allow for the most customizability.
Edited by Whiz (11/04/07 11:00 AM)
|
|
Top
|
|
|
#16139 - 11/20/07 02:33 PM
Re: Admin Panel (basic) and monster images
[Re: Whiz]
|
Sephiroth
Cheerios
   
Registered: 11/20/07
Posts: 131
Loc: The Lifestream
|
Offline
|
|
Nice mod.
The only problem I had was that the link to the admin page brought up a blank page. I looked at the instructions again and noticed the link was missing the .php on the end.
Thanks again.
|
|
Top
|
|
|
#16254 - 12/09/07 03:58 PM
Re: Admin Panel (basic) and monster images
[Re: Sephiroth]
|
Whiz
Cheerios
Registered: 10/28/07
Posts: 129
|
Offline
|
|
Your monster images mod works perfectly, except I had to add $controlrow to the globals of each of the functions in fight.php.
Thanks a bunch for the mod.
Edited by Whiz (12/09/07 04:30 PM)
|
|
Top
|
|
|
#16261 - 12/10/07 05:44 AM
Re: Admin Panel (basic) and monster images
[Re: Whiz]
|
Soopermuse
Cheerios
Registered: 04/09/07
Posts: 134
Loc: UK
|
Offline
|
|
Yeah that feature is really basic in my opinion, it was the first thing I did, and since then I've gone on to create a far better version, which features an image and stats for the char as well as the monster on the screen, chars image is based on which job class they choose, however to advance it to this, it loses its functionality to use the monster images control, however this is just a customization of my own game, the published version can easily be changed to do this.
As for my basic unfinished ACP, It was never finished, and would recommend sephiroths finished version http://se7enet.com/forums/ubbthreads.php/ubb/showflat/Number/16170/page/1#Post16170
|
|
Top
|
|
|
#16268 - 12/10/07 06:44 PM
Re: Admin Panel (basic) and monster images
[Re: Soopermuse]
|
Whiz
Cheerios
Registered: 10/28/07
Posts: 129
|
Offline
|
|
I've adapted your mod to take advantage of the database. I've also included instructions to add this db field to sephiroth's admin panel. Essentially, these instructions allow you to enter in any filename you want for the image of each monster. This allows you to recycle images without have duplicate files (i.e. having the same image for small slime as well as large slime)
Also, this makes it so that when monster images are turned off in the control settings, no image at all appears. The "No image available" image only appears as a default for monsters that do not have a unique image assigned.
Also, I fixed your instructions to include the $controlrow in the global declaration of the appropriate functions in fight.php
http://timedg.freehostia.com/monsterimage.zip <<--- you need to right-click and select "save target as".
Edited by Whiz (12/10/07 06:57 PM)
|
|
Top
|
|
|
#16276 - 12/11/07 06:54 PM
Re: Admin Panel (basic) and monster images
[Re: Whiz]
|
Soopermuse
Cheerios
Registered: 04/09/07
Posts: 134
Loc: UK
|
Offline
|
|
Nice, will have a look at it at some point, along with your other mods
|
|
Top
|
|
|
#16288 - 12/13/07 10:35 PM
Re: Admin Panel (basic) and monster images
[Re: Soopermuse]
|
AlanApp
Malt-o-Meal
Registered: 08/11/04
Posts: 15
Loc: Greensboro, NC USA
|
Offline
|
|
cant seem to get the file save as gets me a not an archived file error and clicking the link goes to freehostia.com main page.
_________________________
oops, umm that didnt work..... can we reboot the server again?
|
|
Top
|
|
|
#16290 - 12/14/07 05:10 AM
Re: Admin Panel (basic) and monster images
[Re: AlanApp]
|
AlanApp
Malt-o-Meal
Registered: 08/11/04
Posts: 15
Loc: Greensboro, NC USA
|
Offline
|
|
Never mind it worked in IE okay, just had a problem in mozilla
_________________________
oops, umm that didnt work..... can we reboot the server again?
|
|
Top
|
|
|
|
|