Page 1 of 1

*NEW* Trigger Parser

Posted: Sun Feb 15, 2009 10:59 am
by 3ICE
After a whole day of work, I proudly present my own trigger parser written in PHP:

Usage: Visit http://trigger.3ice.hu/
It is a work in progress, public beta. Feedback is welcome.
(http://trigger.3ice.hu/?i=1)

ToDo:
Add icon to ability comparisons that don't start with a parenthesis. (eg "Acid Bomb is equal to (Ability being cast)" (This is a rare condition, but fixing it will be a lot of work)
Save trigger name in the database
&mode=raw outputs the trigger without icons
Javascripted button for switching between &mode=raw and &mode=normal
Remove newlines from source
Delete /Update buttons (Will require a unique password that'll be emailed to you [optional])
Return a "No such ID" error if someone tries to request a deleted trigger (Or passes an invalid attribute to the script)
New bbcode that behaves like the [iframe} tag (maybe)
Browse triggers

Tutorial.gif:
* Right click on a trigger name
* Select Copy As Text
* Switch to firefox
* Paste into textbox
* Fill in author field
* Copy bbcode
* Post the trigger

Decorate the result page:
* Automatically select iframe code (onclick="javascript:this.Select()")
* Add more possibilities (eg link2page, 100% wide iframe, smallbox)
* Display trigger author in a corner
* Output the trigger not just the code

Fix IE bugs:
* I wish everyone would just use Firefox...
* Remove the default 30px padding from IE's iframe.
* Find more bugs in IE...