Customizing SMF > SMF Coding Discussion

Modifications.xml Generator

<< < (2/2)

AV-2:

--- Quote from: Arantor on May 30, 2012, 01:43:32 PM ---I don't recall ever seeing one, but that's because I always wrote directly into .xml files so instead of doing diffs I was always building straight into the mod file as I went (so I could test it by installing it), plus that meant I was able to make better decisions about what find/replaces were done to avoid collisions.

A lot of 2.0 stuff can be done with hooks, though far from all.

--- End quote ---

Well, since there is a hook for modifying the html code just before it gets sent, in theory you can do anything with hooks, but is far from ideal. I also like to carefully pick my code for replacement searching, but the process is faster when building on top of something (maybe some autogenerated file) than when building from scratch. Info such as file being modified and xml structure already in place.


--- Quote from: phantomm on May 30, 2012, 04:40:58 PM ---Sometimes I'm using this SMF Mod Creator => http://sourceforge.net/projects/smfmc/files/smfmc/1.0/ or http://sleepycode.com/pacmangen/ :)

But mostly I do everything in Notepad++ :D

--- End quote ---

Ah! Thanks a lot!! It is not exactly what I want, but I can base my program on this one.

Arantor:
Thing is, I've written a vast number of mods for SMF (I think I stopped counting at about 70), including a very large helpdesk mods, so yes, I'm more than a shade familiar with the pros and cons of the hooks system in SMF currently ;) (It's also why I completely gutted and rewrote from scratch the package manager in one of the SMF forks.)

In any case none of the generators make use of hooks currently, nor would that be ideal to attempt to automate anyway.

I've found that using XML generators rarely produces a particularly maintainable result, though.

Navigation

[0] Message Index

[*] Previous page

Go to full version