PDA

View Full Version : Petitions Improved


Lalolyen
09-13-2007, 09:59 AM
Guys and Gals,

I'm actually starting a php project to improve the petition system. I think we can all agree that the system needs quite a bit of work. Though I'm unable to really manipulate/develop anything inside the source of EQEMU I have developed an idea I think will help outside the client itself.

Here are a few key features:

1. admin/staff access is controlled via EQEMU database (via access levels) or a stand-alone database.
2. A cron will be running to constantly check for new petitions (of course you can customize your cron to check every second or every 30 mins), in the event a new petition is queried, an email will be sent to the staff (We can even go as far as to send out instant messages, pages, cellphone, text messages but not a high priority development issue).
3. Clients can reply to the petitions via a webpage that will use their LS account name as their user name and character as the password (So mini-login users and public servers can take advantage of this).
4. Many other features to be added like, escalations to higher GM's, bugs, etc.

Lalolyen
09-14-2007, 01:19 AM
to keep everyone up to speed, the login is done and I have the system pulling from the petitions.

1. So far the features include admin access level control login.
2. The ability to view a list of petitions.
3. The ability to click and see the petition.
4. The ability to delete the petition.
5. THEMEABLE (allowing the header.php navigation.php and footer.php to be customized with any html).

You can see the development here:
http://emu.norrath.info/petitions

I'll be putting up a demo site soonish.

Working on now:
1. Delete, Reply, Modify permissions based upon access levels
2. Integration with PEQ Database Editor and phpBB3 RC 6.

So far the system is using md5 password encoding for a bit more security.

Lalolyen
09-14-2007, 01:45 AM
Anyone actually interested in an alpha of this?

cavedude
09-14-2007, 06:19 AM
I would certainly be, this looks to be an awesome idea and very helpful.

gernblan
09-14-2007, 08:04 AM
Definitely Interested! :)

I also think this would be a valuable addition to the emu's built-in web management tool.

Lalolyen
09-16-2007, 01:13 AM
Ok I'm going to post the alpha this afternoon.

Right now its doing the basics. I will add in the gm replies prob sometime this comming week (mon or tues). Its pretty cool so far though... It is secured by md5 password authentication from any table really, but mine is setup for peq_admin; you can even set it up for your accounts table for eqemu if you are running your own login or just want to set it up so that the accounts are used from there.

Its really flexable, and if you guys have some php knowledge, you'll prob laugh at how simple it really is =)

I'm a believer of making something efficient, to do that keep the code short and sweet, therefore there is a total of... errr 6 files, main index.php, header.php, navigation.php, functions.php, include.php, and footer.php.

Lalolyen
09-16-2007, 04:24 AM
Here is the DEMO SITE (http://emu.norrath.info/demo/) =) Enjoy! In a few mins the demo username and pass will be "demo".

Lalolyen
09-16-2007, 07:00 AM
Right now I'm currently working on the checkin-checkout system via the web. For the most part it is complete...

Here are some of the features it adds:

Status:
NULL/NEW - Any GM may check it out and view it.
CHECKED OUT - Any gm may view it but there is a big message that says its not the GM's petition (will make it unreadable in the future except to the GM that has it checked out.)
ESCALATED - Any GM can check it out (A way to decheck a petition but to let others know a GM has been working on it and could not resolve it. Resolved petitions are deleted.)


TODO's:
1. Get access levels implemented.
2. Get user access implemented.
3. Get user posting/GM posting implemented.
and WAY DOWN THE LIST
4. Allow the system to be integrated into phpBB and MediaWiki systems. (though this seems to be a pain in the ass being that MediaWIki seems to encrypt both the username and password TOGETHER, and phpbb... Well that would be easier.)

DOWNLOAD COMING WITHIN HOURS!

Lalolyen
09-16-2007, 07:20 AM
Here we go... the moment we have all been waiting for =)

http://emu.norrath.info/petitions.zip

gernblan
09-16-2007, 08:17 AM
VERY NICE!!!

Now if this can be weaved into the eqemu built-in server management tool, it would be double valuable :)

GREAT WORK!

Lalolyen
09-16-2007, 11:05 AM
Ty gernblan.

I'm very close to getting the user replies and gm replies complete =) USER SIGNUPS ARE COMPLETE... However I do need to clean up the code a bit before I release that lol...

I don't currently have a demo of that yet, as it requires more than just a petition, zone, and peq table... It wants the account tables as well... so for the moment, just trust me that it works he he.

Lalolyen
09-16-2007, 02:35 PM
I one day I'll go from alpha to beta =)

Ok... In a few hours, I'll be posting the beta up.

So far I have working with the system:

1. Admins can view ALL petitions.
2. Users can view their OWN petition (with no s).
3. Thats RIGHT USERS! Users can register! Upon registration their account is linked to their petitions!
4. Admins can reply to their own petitions, if the petition is not checked out, by the admin he/she cannot reply!
5. Old petition replys are cleaned up when a new petition of the same id is created. If you want to archive your petitions, let me know for a simple code fix.


ToDo's:
1. In version 1.1 RELEASE (not 1.0 RELEASE) make it so that petitions and replies are all archived.
2. Before release, set a default theme.
3. Tighten security! (Keep in mind that the sessions are using cookie/session authentication only, if you have two installs, there are no checks to see that the admins username is in the database every time they hit the site. This will be changed to constantly poll the auth table for admin credentials. I have already implemented this in development of the user interface.
4. Display race/classes.
5. Create emailed responses, even maybe pipe emails to ACERTAIN@ADDRESS.COM to the program, so users can reply via email and without having to login to the website.

I am sorry there are no demo's at this time. The best demo is the one I posted above or you can create an account on our server and /petition [TEST] (and all the text you want) and we will leave it alone so you can see the user interface.

Right now I'm just cleaning up this code, and the looks a bit and I'll be packaging it up and uploading it.

*will be adding some graphics to it this time around so its not like finger-nails on a chalkboard to the eyes he he*

Lalolyen
09-16-2007, 04:49 PM
And here we go...

http://emu.norrath.info/petitions-1.0-beta.zip

So far there is no script that will upgrade from alpha to beta... If you need manual instructions, let me know. Any features you would like to see added or optionally (by switching on or off) taken away, let me know.

Lalolyen
09-16-2007, 05:27 PM
Though its not in the readme.txt file yet, if you are using peq admin, change the table in include.php to peq_admin and it will authorize from your PEQ Admin install =). BUT you must add one column to the peq_admin table called "account" varchar 255.

Some screenshots (being there is not demo):

Admin System
http://emu.norrath.info/petitions3.jpg

User System
http://emu.norrath.info/petitions1.jpg

http://emu.norrath.info/petitions2.jpg

Lalolyen
09-17-2007, 10:09 AM
Will be posting beta2 later on =).

So far the newest features are:
1. User/Admin manager cleaned up (will be adding a delete option).
2. Addons System created*

New Addon's System
This pretty much makes the script very versitile. So far I have two addons pre-packaged:
1. News Manager - For the Allakhazam clone
2. My Petitions - Admin side petitions that are invisable to the game*

My Petitions
This is a useful little addon that will allow admins to create esclalations webside to allow a petition to be resolved without the origional admin having to drop rights to it. This may be implemented for the users later on, (at least letting them create or submit an online petition, though I don't know why they just wouldn't use email =( ).

The other thing in the works is allowing the admins to have a profile, at least for editing a signature so they don't have to go...
Regards,
Some Big GM
In eveyr petition. This of course will be an addon =).

Add-on's can be very simply added/removed by editing one file or by simply deleting them... includes/addons.php will disable preinstalled addons.

You can add your own by dropping them in the directory pages/*/ where * is "user" or "admin" . Depending on what your access level is, is which folder the addons are pulled from.

For example, you can create a page, that has javascipt of the current time, place it in admin and user and name the file time.php . Then just go to index.php?page=time and it will display your clock within the site (within the headers and footers and it will keep the authorization for the logged in user).

Lalolyen
09-17-2007, 12:15 PM
Beta2 is up...

http://emu.norrath.info/petitions-1.0-beta.2.zip

Lalolyen
09-17-2007, 06:13 PM
Beta3 is up

http://emu.norrath.info/petitions-1.0-beta.3.zip

That is where I rest...

1. Security has been tightened down, a lot.
2. Version information is on all files now.
3. CAPTCHA image verification for user registrations and can be disabled in the config by setting $gd_installed to 0 instead of 1. I would suggest keeping it on 1 if you have the GD library =) (thinking about doing the same for admin logins).
*EDIT*
4. The ability to preview news (before posting) and delete users has been added =).

And whos ever in charge of the wiki, please and by all means use that CAPTCHA! He he.. That system by itself is very hard for most bots to guess =),

Docs
09-18-2007, 11:02 PM
Great job, keep up the work.

Lalolyen
09-19-2007, 03:56 AM
its RC1
http://emu.norrath.info/petitions-1.0.RC1.zip

Some other minor security fixes and mainly the ability to UPGRADE via the installer now =).

Lalolyen
10-10-2007, 06:55 PM
Just An Announcement!

Edit:
No More Of This
Angelox

Angelox
10-10-2007, 10:47 PM
Mattmeck is just cleaning up my mess - I should have stopped this a long time ago, but for being nice, look what happened!
You have a misunderstanding of why these forums exist. All you guys lashing back at everyone have done nothing to better this project. So far, it's just been worries and headaches for me - I spent the last week or so, babysitting threads when I could have done more productive things for the project.
Makes me think Lalolyens fix to the Wikki was just to bait us. If you are so smart, and can do so much, why do you waste your time like this?