Ice Dynasty CMS Lite

This is guide mostly for website tools and code, for example CMS or registration scripts.
There can also be tools.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Ice Dynasty CMS Lite

Postby -DefaulT on Thu Sep 17, 2009 6:36 pm

This is a copy paste of my origonal post from ragezone


Credits:

First and foremost,this is just a template for http://forum.ragezone.com/f336/release-dynasty-cms-revision-7-a-273267/, however, I am coding new things for it so its kind of a revision, the original credits are given http://forum.ragezone.com/f336/release-dynasty-cms-revision-7-a-273267/, http://forum.ragezone.com/members/mjclarke1 is the original person to release this CMS, http://forum.ragezone.com/members/matt/ was the first to code the original back bone to the CMS, the credits were removed from the visible template, but all the credits were left in the source and not tampered with, the only reason they were removed is because it is a 100% completely new template.

Other then that, the rest of the credits (template, new coding/database edits) go to me.

Screenies:
http://img196.imageshack.us/img196/6483/ices.png

Install:
Installation is the same as dynasty,
http://localhost/ice-dynasty/install/install.php

enter the info and submit, information can be edited in the admin cp, a side note, i added 3 new columns to the dynastycms database, this is to make the staff page easier to use. More on this below.

Functions:
Same functions as dynasty atm.

Basic Functions:

  • Home
  • Register
  • Downloads
  • Rankings
  • Server Info
  • Staff
  • User Panel
  • Admin Panel
  • Forums


Currently within the User Panel there is:

  • Change Password
  • Delete my character (will clean the database of friends, quests, items and character)
  • Delete my account (Will clean database of storage, items, friends, characters, account and quests)
  • Change my class
  • Logout

Currently within the Admin Panel there is:

  • Edit News
  • Edit Events
  • Edit Updates
  • Ban
  • Unban
  • Change someones class
  • Make an account a GM
  • Reset a characters level
  • Change a Characters name
  • Change a Clan name
  • Change a characters stats
  • Change a characters level
  • Delete a clan
  • Delete a account
  • Delete a character

Other features

  • ****** Password field for registering.
  • ****** for logging in.
  • Admin CP works for accesslevel 300 +
  • Admins and use User CP
  • No GMs on Rankings
  • Easily configurable.

Notes:

Update list:
9/18/09
  • Edited goinstall.php
  • Edited home.php
  • Edited news.php
  • Edited admin2.php
  • Added events.php
  • Added updates.php
  • Added event.php
  • Added update.php
  • Created new db table 'icenews'
9/17/09
  • Added 3 columns to the 'dynastycms' table.
  • Added 3 new scripts to functions.php
  • Edited staff.php


About latest update:
Made new db table to handle news, events, and updates pages, added forms to admin cp to add news, events, or updates to the database. Edited the install to create the new database table.
The SQL will be available separately for those that don't want to reinstall the whole cms over again.


More to come, plan on adding more to the database to maximize user functionality.
Downloads:
http://www.filefront.com/14556829/Ice-Dynasty.zip
http://www.megaupload.com/?d=LVLHB4PQ
http://rapidshare.com/files/281888491/Ice-Dynasty.zip
http://d01.megashares.com/dl/90ffa1c/Ice-Dynasty.zip
Request a mirror.

icenews.sql - Only need this if you dont want to have to reinstall the whole CMS
http://rapidshare.com/files/281891997/icenews.sql
http://www.filefront.com/14556849/icenews.sql
http://www.megaupload.com/?d=E9DDO3LA

PSD Download:
http://www.filefront.com/14549021/ice-dynasty.psd
http://rapidshare.com/files/281333822/ice-dynasty.psd
http://www.megaupload.com/?d=8FQ32FZD
Request a mirror.

Fonts:
http://www.dafont.com/hand-of-sean.font?nb_ppp=50

End Notes:
Most of this was copy paste from the original dynasty topic, anyways, but thats just because this inst a brand new CMS rather a revamp of Dynasty CMS, also, keep in mind, this is a 'lite' template and coding, so minimalism is considered above all else.

If you find any bugs please post or pm me, also if you have any ideas on things you would like see in the admin cp or user cp let me know and i will be glad to do it or at least try to do it for you.
Last edited by -DefaulT on Fri Sep 18, 2009 8:18 pm, edited 2 times in total.
Image
User avatar
-DefaulT
Smoulie
Smoulie
 
Posts: 44
Joined: Wed Sep 12, 2007 5:16 am

Re: Ice Dynasty CMS Lite

Postby thriel on Thu Sep 17, 2009 6:48 pm

not bad.

grats on a job well done :)
We Have it all at RoseZA... Image
Image
User avatar
thriel
Rackie
Rackie
 
Posts: 194
Joined: Fri Jun 05, 2009 7:36 am
Location: South Africa

Re: Ice Dynasty CMS Lite

Postby -DefaulT on Thu Sep 17, 2009 6:54 pm

Thanks I like the feedback keep it coming.
Image
User avatar
-DefaulT
Smoulie
Smoulie
 
Posts: 44
Joined: Wed Sep 12, 2007 5:16 am

Re: Ice Dynasty CMS Lite

Postby PurpleYouko on Thu Sep 17, 2009 6:56 pm

Nice job DefaulT

How come it took you such a long time to start posting over here? That's what i wonder. ;)
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Ice Dynasty CMS Lite

Postby -DefaulT on Thu Sep 17, 2009 7:22 pm

PurpleYouko wrote:Nice job DefaulT

How come it took you such a long time to start posting over here? That's what i wonder. ;)



Ha, well ICON gave me the idea over msn, lol dono why I haven't before..
Image
User avatar
-DefaulT
Smoulie
Smoulie
 
Posts: 44
Joined: Wed Sep 12, 2007 5:16 am

Re: Ice Dynasty CMS Lite

Postby -DefaulT on Fri Sep 18, 2009 8:12 pm

double post i know, but updated.
Image
User avatar
-DefaulT
Smoulie
Smoulie
 
Posts: 44
Joined: Wed Sep 12, 2007 5:16 am

Re: Ice Dynasty CMS Lite

Postby Rifke on Sat Sep 19, 2009 12:21 pm

Nicely done :)


Comments:
  • Variables outside the quotes
  • No backtics in MySQL queries (don't use reserved names, so you don't have to use them)
  • There's no strait line in coding, every page has their differences... Somtimes you do it, other wise you don't.
Rifke
Pero pero
Pero pero
 
Posts: 719
Joined: Thu Aug 09, 2007 3:01 pm
Location: Belgium

Re: Ice Dynasty CMS Lite

Postby -DefaulT on Sat Sep 19, 2009 3:07 pm

Rifke wrote:Nicely done :)


Comments:
  • Variables outside the quotes
  • No backtics in MySQL queries (don't use reserved names, so you don't have to use them)
  • There's no strait line in coding, every page has their differences... Somtimes you do it, other wise you don't.

that means quite a bit coming from u thanks :]
Image
User avatar
-DefaulT
Smoulie
Smoulie
 
Posts: 44
Joined: Wed Sep 12, 2007 5:16 am

Re: Ice Dynasty CMS Lite

Postby Rifke on Sun Sep 20, 2009 11:43 am

I came by some other 'mistakes'

General comments:
  • a function is to return something, it should normaly never echo anything.
  • At your configuration table... Is kinda built up wierd... But if it works than it's great, but you'll get into much trouble if you have more things to configure.
  • Try not to trust user input so much...
  • Try to catch up some errors and display some error message why some thing did not work like it should

functions.php
  1.  
  2. error_reporting(0);
  3.  

It should belong in your INDEX file on top (under session_start())

delete_acc.php
  1.  
  2. $result = mysql_query("DELETE FROM accounts WHERE id = '".$row['id']."'");
  3. $result = mysql_query("DELETE FROM items WHERE owner = '".$row['id']."'");
  4. $result = mysql_query("DELETE FROM characters WHERE id = '".$row['id']."'");
  5. $result = mysql_query("DELETE FROM list_quest WHERE owner = '".$row['id']."'");
  6. $result = mysql_query("DELETE FROM list_friend WHERE id = '".$row['id']."'");
  7. $result = mysql_query("DELETE FROM storage WHERE owner = '".$row['id']."'");
  8.  

Nice attempt, but you do know you'll be deleting someone else their inventory / character/quest / items and friends :D ^^

  1.  
  2. $result1 = mysql_query("SELECT * FROM accounts WHERE username = '".$_SESSION['account']."' ORDER BY id LIMIT 1");
  3.  
  4. while($row = mysql_fetch_array( $result1 )) {
  5.  
  6. echo "<strong>Delete account:&nbsp;".$row['id']."?<BR></strong>";
  7. }
  8.  

Basicly there should only be 1 username (which you force by LIMIT 1) but the while loop in there, is kinda... unnessecarily



account_delete.php / character_delete.php
You only delete the account, no characters/storage/inventory/etc

clan_delete.php
You only delete the clan, but you don't restore the characters table.

class_change.php / edit_char.php (2 files for the same?)
I would just change the class, but I would reset some things aswel, not only the class

index.php... I'm kinda lost why you require almost all files ?

level_change.php
Not only the level changes, but a lot more changes as wel

name_change.php
You should also check if the new name does not already exist!

reset_level.php
Same as level_change.php

stat_change.php
I would not do it like you've done it there
  1.  
  2. mysql_query("UPDATE characters SET ".$_POST['textfield2']." = '".$_POST['textfield3']."' WHERE char_name = '".$_POST['textfield1']."'");
  3.  

Now you're allowing your moderators to edit everything of a user.. and if the person does not know what he/she is doing she can screw up things.
Rifke
Pero pero
Pero pero
 
Posts: 719
Joined: Thu Aug 09, 2007 3:01 pm
Location: Belgium

Re: Ice Dynasty CMS Lite

Postby -DefaulT on Sun Sep 20, 2009 12:33 pm

Thanks for looking it over, ill get rite on it :D
Image
User avatar
-DefaulT
Smoulie
Smoulie
 
Posts: 44
Joined: Wed Sep 12, 2007 5:16 am

Next

Return to PHP / Web Guides, Scripts and tools.

Who is online

Users browsing this forum: No registered users and 7 guests

cron