Look at some fancy jQuery + Ajax samples

Hey,

i was just looking through some jQuery plugins and i found a few very nice plugins.

i thing that all the following plugins will make there way in MageDB:

- http://digitalbush.com/projects/masked-input-plugin (good for keys or fields that require a certain length)

- http://john.jquery.com/plugins/rating/ (wonderful rating system!!  will need to be edited a little)

- http://www.trendskitchens.co.nz/jquery/contextmenu/ (hotmail has a context menu on right click. perhaps it`s a good idea to add something simulair to MageDB aswell?)

- http://stilbuero.de/jquery/thickbox_reloaded/ (good for images…)

- http://stilbuero.de/jquery/tabs/index.html#fragment-1 (handy and uses ajax. bug effective enough for MageDB? depends on where i put it)

- http://cherne.net/brian/resources/jquery.hoverIntent.html (nice, but not sure if i can use it anywhere)

and i`m looking at othe fancy things aswell.

the above are just the plugins that are likely to be preinstalled in magedb. those are by far not all the effects that will go in MageDB :)

Current MageDB progress is standing a little still.. just keep an eye open for this blog.

Mark.

Extension checking code

    $extension_array = array(‘names’ => array(‘apc’ => ‘001′, ‘xmlreader’ => ‘002′, ‘xmlwriter’ => ‘003′, ‘json’ => ‘004′, ‘fileinfo’ => ‘005′, ‘imagick’ => ‘006′, ‘gd’ => ‘007′, ‘bz2′ => ‘008′, ‘curl’ => ‘009′, ‘mysql’ => ‘010′, ‘mysqli’ => ‘011′, ‘pgsql’ => ‘012′, ‘zlib’ => ‘013′, ‘zip’ => ‘014′),
‘more_info’ =>
array
(
‘001′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘002′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘003′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘004′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘005′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘006′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘007′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘008′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘009′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘010′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘011′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘012′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘013′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’),
‘014′ => array(‘description’ => ‘This extension is WONDERFULL’, ’style’ => ‘red’, ‘loaded’ => ‘no’)
),
);

The code that you see above is the code that i will use (or just made actually) to check if extensions are loaded or not. atthis moment i`m checking for 14 extensions but it might get bigger (mbstring mightget in aswell). This check (actual checking code won`t be posted.. still working on that) isn`t causing anything bad for your magedb installation.. it will just inform you about the status of your MageDB and how you can improve the functionallity of MageDB. the users won`t notice a thing with this check.

The users WILL likely (you can turn that on/off) see a custom error message if GD and I(mage)magick are not enabled. this is because image gd/imagemagick is being used to generate the thumbnails on MageDB and without it you won`t see any images at all (unless you have choosen not to thumbnail the images or if there are thumbnails in the cache.

i will post some more on this checking and how it looks later on. also not that the above code isn`t done like the actual checking code but it`s just to give you a impression of what extensions are gonna be used with MageDB.

till next blog.

Mark.

how i`m gonna “promote” php 5.

Hey,

some of you might know that i`m verry PRO php 5.2.x and that i hate it that alot of hosts still only offer php 4..

And to encourage you people to make the move to php to be able to use this script i willhave all the PHP 5 stuff in magedb by default and you will need to download special .php files to get MageDB running in php 4.

Lets just tell you some of the new things that i`m gonna use in php 5.

- Image Magick

- XMLReader

- XMLWriter

- APC (Alternative PHP Cache)

- Fileinfo

the above modules/extensions will be used in magedb. and the first 4 will be used ALOT (Fileinfo perhaps a little.. depends on where i could use it). and when you have php 5 you will have some nice speed improvements aswell because i don`t need to write entire classes to do something (for example the xml reading and writing) the unlucky php 4 fellows won`t have a hard time making the script working on php 4.. they probably will have that option during the installation, than the installer will download the patched files.

as of this moment i haven`t done much in magedb besides testing alot of different stuff so i`m afraid the release isn`t sooner than expected.. although the permissions system is getting somewhere.. (in sql code.. no php yet)

that`s it for now

till next blog.

Posted in MageDB. 2 Comments »