Core Hacks

Here you can contact the editors of our Extensions site, as well as access infomation relating to this site.

Moderators: tydust, LorenzoG, timothy.stiffler

Forum rules
Forum Rules
READ ME <-- please read before posting, this means YOU.
Post Reply
User avatar
mjaz
Joomla! Intern
Joomla! Intern
Posts: 63
Joined: Thu Nov 10, 2005 10:08 am
Contact:

Core Hacks

Post by mjaz » Mon May 01, 2006 11:46 pm

I just re-read the rules and realised that my extension to remove double keywords is not allowed, as it requires a hack to a core file.
http://extensions.joomla.org/component/ ... Itemid,35/

Of course, I willl delete it to comply to the rules, but I was wondering: Wouldn't it be possible to have the listing show that the extension requires a hack? Perhaps a little icon similar to the component/module/plugin/tool icons.

In my case: the plugin requires a small core hack (which, I just realised, can be improved -- will do that tomorrow), but apart from that it functions like a normal mambot. In Joomla 1.5, the hack won't even be necessary anymore.
Joomlatools Team Member - DOCman Lead Developer
http://www.joomlatools.org
Read the blog!
http://blog.joomlatools.org

User avatar
ot2sen
Joomla! Ace
Joomla! Ace
Posts: 1384
Joined: Thu Aug 18, 2005 9:58 am
Location: Hillerød - Denmark
Contact:

Re: Core Hacks

Post by ot2sen » Tue May 02, 2006 6:47 am

Hi mjaz,

Thanks for letting us know. I didn´t realize that a hack was needed when your extension was approved.
Hacks which alter Joomla! source code must do so through the standard Joomla! install and uninstall process. Uninstalling should revert any changes made to Joomla! source code.

According to this rule, hacks that revert any changes when uninstalling can be approved.

Your extension has been unpublished for now, but if you make any changes to it, so it can be approved according to the rules, then please send a pm, and I will publish it again.

*When you know that your mambot make changes to core, you perhaps should put that information in the file description at the forge project.
Ole Bang Ottosen - http://www.ot2sen.dk
Danish Joomla! support site – http://joomladanmark.org

User avatar
mjaz
Joomla! Intern
Joomla! Intern
Posts: 63
Joined: Thu Nov 10, 2005 10:08 am
Contact:

Re: Core Hacks

Post by mjaz » Tue May 02, 2006 7:14 am

Hi,

sorry for the confusion, guess I was a bit too enthusiastic in releasing it!  ;D
I've added the info about the hack on the forge.

I don't think there's a "clean" way to have the plugin install and uninstall the hack code. But I've been thinking: My first version only worked on content items, I later added to hack to make it work for the whole site. Maybe I could make that optional, so that the plugin would work out of the box on content. Users then could decide for themselves if they need the hack.

Also, I'll change the hack code so that if you uninstall the extension but leave the code, it won't affect anything.

Maybe these changes would be sufficient?

If not, we'll all just have to wait for J!1.5...  :)

EDIT: Making the hack optional isn't possible due to J!1.0.x structure.
The new version 1.0.1 with better hack code is available at the forge: http://forge.joomla.org/sf/projects/mjaztools
Last edited by mjaz on Wed May 03, 2006 2:11 pm, edited 1 time in total.
Joomlatools Team Member - DOCman Lead Developer
http://www.joomlatools.org
Read the blog!
http://blog.joomlatools.org


Post Reply