se7enet purgatorio

Page 1 of 6 12345>Last »
Topic Options
Rate This Topic
#16170 - 11/25/07 01:02 AM Finished Admin
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
I made an admin and just realize I have no site to upload the php file with.

Here's a screenshot of it.
http://img406.imageshack.us/img406/6320/administrationge7.png

The mod is one file named admin.php (107kb) with a small edit to panels.php

My goal was to whip up an admin as soon as possible without caring about being efficient.

All I need is some place to upload it to.

Credits go to Jamin.

Top
#16171 - 11/25/07 09:28 AM Re: Finished Admin [Re: Sephiroth]
Whiz
Cheerios


Registered: 10/28/07
Posts: 129

Offline
You could use one of a hundred free file hosting websites. I've used FileCrunch a couple times and haven't had a complaint.

http://www.filecrunch.com/
_________________________
View my mod "index" at

http://timedg.freehostia.com/forum/download.php

Visit my writing workshop site at http://slushpile.freehostia.com

Top
#16172 - 11/25/07 01:48 PM Re: Finished Admin [Re: Whiz]
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
Thanks, Whiz.

Here's the link:
http://www.filecrunch.com/file/~aeo4ph

Feel free to post suggestions for a better version.

Top
#16173 - 11/25/07 03:42 PM Re: Finished Admin [Re: Sephiroth]
Stixsmaster
Rice Krispies
*

Registered: 05/22/05
Posts: 363

Offline
hey you can upload it to my site...I dont care...

---Stixsmaster
_________________________
GO HERE TO DISCUSS ALL ABOUT STIXSWORLD!
http://www.stixsworld.com/

GO HERE TO GET DKMODDED!
http://www.dkmodded.com/

MY PROGRESS CHARACTER STATS!
http://www.stixsworld.com/my-progress-quest-character/

Top
#16174 - 11/25/07 06:57 PM Re: Finished Admin [Re: Stixsmaster]
Whiz
Cheerios


Registered: 10/28/07
Posts: 129

Offline
Works wonderful! Thanks, Sephiroth!
_________________________
View my mod "index" at

http://timedg.freehostia.com/forum/download.php

Visit my writing workshop site at http://slushpile.freehostia.com

Top
#16177 - 11/25/07 10:58 PM Re: Finished Admin [Re: Whiz]
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
Your welcome.
I didn't thoroughly scan through it for typos or errors. Again, if you find any, feel free to post them.

Top
#16181 - 11/26/07 09:01 PM Re: Finished Admin [Re: Sephiroth]
Whiz
Cheerios


Registered: 10/28/07
Posts: 129

Offline
Found a bug. When I went to add an item, this came up.

 Quote:
Column 'mod1attr' specified twice

INSERT INTO <> SET name='Firebrand', slotnumber='1', isunique='0', willdrop='1', buycost='20', sellcost='1', reqstrength='0', reqdexterity='0', reqenergy='0', basename='fireattack', baseattr='10', mod1name='', mod1attr='0', mod1name='', mod1attr='0', mod1name='', mod1attr='0', mod1name='', mod1attr='0', mod1name='', mod1attr='0', mod1name='', mod1attr='0'




Edited by Whiz (11/26/07 09:01 PM)
_________________________
View my mod "index" at

http://timedg.freehostia.com/forum/download.php

Visit my writing workshop site at http://slushpile.freehostia.com

Top
#16187 - 11/27/07 04:40 PM Re: Finished Admin [Re: Whiz]
Whiz
Cheerios


Registered: 10/28/07
Posts: 129

Offline
Fix for the bug listed above:

 Quote:
find
 Code:
$updatequery = <<<END
INSERT INTO <<itembase>> SET name='$name', 
slotnumber='$slotnumber', isunique='$isunique', 
willdrop='$willdrop', buycost='$buycost', sellcost='$reqlevel', 
reqstrength='$reqstrength', reqdexterity='$reqdexterity', 
reqenergy='$reqenergy', basename='$basename', 
baseattr='$baseattr', mod1name='$mod1name', 
mod1attr='$mod1attr', mod1name='$mod2name', 
mod1attr='$mod2attr', mod1name='$mod3name', 
mod1attr='$mod3attr', mod1name='$mod4name', 
mod1attr='$mod4attr', mod1name='$mod5name', 
mod1attr='$mod5attr', mod1name='$mod6name', mod1attr='$mod6attr'

END;

replace with
 Code:
$updatequery = <<<END
INSERT INTO <<itembase>> SET name='$name', 
slotnumber='$slotnumber', isunique='$isunique', 
willdrop='$willdrop', buycost='$buycost', sellcost='$reqlevel', 
reqstrength='$reqstrength', reqdexterity='$reqdexterity', 
reqenergy='$reqenergy', basename='$basename', 
baseattr='$baseattr', mod1name='$mod1name', 
mod1attr='$mod1attr', mod2name='$mod2name', 
mod2attr='$mod2attr', mod3name='$mod3name', 
mod3attr='$mod3attr', mod4name='$mod4name', 
mod4attr='$mod4attr', mod5name='$mod5name', 
mod5attr='$mod5attr', mod6name='$mod6name', mod6attr='$mod6attr'

END;


***Edited for formatting***


Edited by Whiz (11/27/07 07:20 PM)
_________________________
View my mod "index" at

http://timedg.freehostia.com/forum/download.php

Visit my writing workshop site at http://slushpile.freehostia.com

Top
#16190 - 11/27/07 05:37 PM Re: Finished Admin [Re: Whiz]
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
Thanks!

What I did was I typed out:
mod1name='$mod1name', mod1attr='$mod1attr',

And simply pasted it and changed the number to save time.
Guess I forgot to change the corresponding field.

Top
#16191 - 11/27/07 06:59 PM Re: Finished Admin [Re: Sephiroth]
Soopermuse
Cheerios
*

Registered: 04/09/07
Posts: 134
Loc: UK

Offline
did you update the uploaded file with that fix?

Seems pretty sweet, does it combat the problem of parsing html from the acp in the moddedby column? previously I had had a problem with mine where it would not parse the html in the moddedby column unless it was done straight into the db and not through admin panel.

Good job

Bug #1: as mentioned above the moddedby part, using the ACP to put html such as links into it fuck up, it doesnt parse html and going back to the settings afterwards the field is well, youll see

bug #2: some of th fields for paths or urls are a bit short, if people have long domain names, path names or just like to stick lots of shit in their domains then this kinda cuts them off at 50 characters


Noticable problem: Although for people with light templates on their game it wont be a problem, for people wth dark skin templates on their version, it is a problem where in some admin lists it has TD colours as light ones, neccessarily for maximum skin compatibility i would think these would be left with the standard skin colour rather than be assigned colors themselves, its just a suggestion, I will be changing this myself on my version.



Apart from that its pretty damn good, WIll report any other bugs


*throws away own admin panel version* damn you beat me to making a full version, oh well we can all use yours.


Top
#16192 - 11/27/07 07:22 PM Re: Finished Admin [Re: Sephiroth]
Whiz
Cheerios


Registered: 10/28/07
Posts: 129

Offline
 Originally Posted By: Sephiroth
Thanks!

What I did was I typed out:
mod1name='$mod1name', mod1attr='$mod1attr',

And simply pasted it and changed the number to save time.
Guess I forgot to change the corresponding field.


I was sure that is what you did. I've made that mistake many times myself. Of course, it's always that mistake that makes it past publishing, leading to a feeling of embarrassment.;)


Edited by Whiz (11/27/07 07:22 PM)
_________________________
View my mod "index" at

http://timedg.freehostia.com/forum/download.php

Visit my writing workshop site at http://slushpile.freehostia.com

Top
#16203 - 11/29/07 07:45 AM Re: Finished Admin [Re: Whiz]
Whiz
Cheerios


Registered: 10/28/07
Posts: 129

Offline
Do you have any plans for delete buttons in the edits?
_________________________
View my mod "index" at

http://timedg.freehostia.com/forum/download.php

Visit my writing workshop site at http://slushpile.freehostia.com

Top
#16205 - 11/29/07 04:22 PM Re: Finished Admin [Re: Whiz]
Whiz
Cheerios


Registered: 10/28/07
Posts: 129

Offline
Found another bug.

Find:
 Code:
function editguild($id) {
if (isset($_POST["submit"])) {
extract($_POST);
$errors = 0;
$errorlist = "";
if ($errors == 0) { 
$updatequery = <<<END
UPDATE <<difficulties>> SET name='$name', tagline='$tagline', 
color1='$color1', color2='$color2', honor='$honor', 
founder='$founder', bank='$bank', joincost='$joincost', 
image='$image', rank1='$rank1', rank2='$rank2', rank3='$rank3', 
rank4='$rank4', rank5='$rank5', rank6='$rank6', 
isactive='$isactive', statement='$statement', news='$news' WHERE 
id='$id' LIMIT 1
END;


Replace with:
 Code:
function editguild($id) {
if (isset($_POST["submit"])) {
extract($_POST);
$errors = 0;
$errorlist = "";
if ($errors == 0) { 
$updatequery = <<<END
UPDATE <<guilds>> SET name='$name', tagline='$tagline', 
color1='$color1', color2='$color2', honor='$honor', 
founder='$founder', bank='$bank', joincost='$joincost', 
image='$image', rank1='$rank1', rank2='$rank2', rank3='$rank3', 
rank4='$rank4', rank5='$rank5', isactive='$isactive', 
statement='$statement', news='$news' WHERE id='$id' LIMIT 1
END;


The issue was that the wrong table was called, and then there was a sixth rank, which doesn't exist.


Edited by Whiz (11/29/07 04:25 PM)
_________________________
View my mod "index" at

http://timedg.freehostia.com/forum/download.php

Visit my writing workshop site at http://slushpile.freehostia.com

Top
#16210 - 11/30/07 02:11 PM Re: Finished Admin [Re: Whiz]
Dragonking
Grape Nuts


Registered: 12/09/06
Posts: 39

Offline
This mods rocks. Should be included to the the real version if you ask me!

But one problem:
I can't get the link to work.

Top
#16211 - 11/30/07 06:12 PM Re: Finished Admin [Re: Dragonking]
Whiz
Cheerios


Registered: 10/28/07
Posts: 129

Offline
Did you follow this instruction?

 Code:
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 = ""; }


It is very important you get rid of this line:

$admin = "";
_________________________
View my mod "index" at

http://timedg.freehostia.com/forum/download.php

Visit my writing workshop site at http://slushpile.freehostia.com

Top
Page 1 of 6 12345>Last »


Hop to:

se7enet

Barack Obama Logo