Don't have an account yet? You can create one, it is free, just click here
as a registered user you have some advantages like free downloads, comments and posting on our forums, depending upon this site's configuration and options.
Joined: Mar 15, 2005
Posts: 102
Location: Spain
Member
 Posted:
Dec 14, 2006 - 02:51 AM
Post subject: Afina PowerPack for MDPro: AJAX support and more
As I promised, here's a pack of patches and utilities for MDPro released under the GPL license by Afina Sistemas: the Afina PowerPack for MDPro (complete with documentation and examples).
This pack enables AJAX support for MDPro 1.07x, and introduces a new, unbreakable sanitization scheme, a popular client-side JavaScript library used by Ruby on Rails (not developed by Afina), a simple way to call new-style modules inside other modules, and a set of database, ISO date, and other utilities.
Although it's naturally allowed by the GPL license, I'd like to explicitly state that you're welcome to use any of this code for future MDPro releases. You'll find patches and functions inside the PowerPack includes are separated by task, so that taking individual functionality packages is easy.
Look below for my third post to get the PowerPack version 1.1.
Feel free to ask questions on how to use or integrate the PowerPack in this thread.
Last edited by Wiseman on Dec 23, 2006 - 02:29 AM; edited 1 time in total
TiMax Project Manager
Joined: July 31, 2003
Posts: 1553
Location: Quebec - Canada
 Posted:
Dec 14, 2006 - 06:46 PM
Thanks for your contribution, I will take a look then i send you email about
_________________ TiMaxMAX s.o.s.Fantasia e dinamicità Italiane, qualità e servizi Canadesi Web Services, hosting ed housing professionali
Wiseman MD user level 5
Joined: Mar 15, 2005
Posts: 102
Location: Spain
bannato
 Posted:
Dec 16, 2006 - 12:13 AM
(This post was related to PowerPack 1.0; please disregard it. The current version is PowerPack 1.1 and it has no known issues. If you had downloaded PowerPack 1.0, please download version 1.1 and replace it, reapplying the hacks you used.)
Last edited by Wiseman on Dec 23, 2006 - 02:31 AM; edited 2 times in total
Wiseman MD user level 5
Joined: Mar 15, 2005
Posts: 102
Location: Spain
bannato
 Posted:
Dec 23, 2006 - 02:28 AM
Another issue was found in PowerPack regarding the support for file attachments to be uploaded from new-style modules (echoing the files and returning ''), e.g. Pagesetter uploads and image uploads. This situation had not previously arisen in our production portal because we're using a slightly different core.
However, I'm aware that a 100% compatible solution is desirable for a community which needs to keep generic and support as many modules as possible.
Therefore, I've developed a new AJAX scheme for PowerPack, and here's PowerPack 1.2 implementing it. Please disregard PowerPack 1.0 and the $additional_header issue; both $additional_header and file attachments are compatible with PowerPack 1.2. The changes are detailed in the readme file.
(If you had downloaded PowerPack 1.0, please download version 1.2 and replace it, reapplying the hacks you used.)
Attached to this post you will find Afina PowerPack 1.2, with the extra functions and AJAX support for MDPro 1.07x. Enjoy!
Last edited by Wiseman on Feb 09, 2007 - 09:53 PM; edited 1 time in total
NateM MD user level 5
Joined: June 18, 2005
Posts: 165
bannato
 Posted:
Dec 25, 2006 - 09:56 PM
Is it possible to give an overview of exactly what this does and what it's used for? My Spanish is pretty terrible and so I wasn't able to grasp all that much from the website listed above.
Edit: Nevermind: readmes are my friend.
Wiseman MD user level 5
Joined: Mar 15, 2005
Posts: 102
Location: Spain
bannato
 Posted:
Feb 09, 2007 - 09:55 PM
Afina PowerPack has been updated to version 1.2, with the following changes:
- Date functions (Date_) have been expanded and improved.
- *UserConfig functions no longer trigger_error, but use ppdebug's LogStr.
- The REX function is now available from JavaScript for simpler remote execution. It's meant to be used instead of IL and ILi (which are still available).
I've updated my previous post with the attachment. Be sure you are getting the file "PowerPack12.zip".
To update from PowerPack 1.1, you only need to replace your includes/powerpack.php and includes/ppdebug.php files included in the ZIP.
Wiseman MD user level 5
Joined: Mar 15, 2005
Posts: 102
Location: Spain
bannato
 Posted:
July 26, 2007 - 12:31 AM
We're releasing the final version of PowerPack, 1.3, and at the same time we're deprecating it in favour of what we'll release next...
Joined: July 31, 2003
Posts: 1553
Location: Quebec - Canada
 Posted:
July 26, 2007 - 12:43 AM
Is it compatible with MDPro 1.08x ? and what you want to release in future ?
_________________ TiMaxMAX s.o.s.Fantasia e dinamicità Italiane, qualità e servizi Canadesi Web Services, hosting ed housing professionali
Wiseman MD user level 5
Joined: Mar 15, 2005
Posts: 102
Location: Spain
bannato
 Posted:
July 26, 2007 - 12:55 AM
I haven't tested it but I bet it works with little to no modifications. There are some changes to apply to the way modules are loaded from index.php, but they should be easy to adapt, and the most useful stuff - the functions themselves, should work without modifications.
This is what we were up to, we're releasing the base framework we use to create our internal applications. Enjoy!