nexialys
05-10-2005, 06:12 PM
YES, my first request of the decade...
i'm too lazy today, the newborn is taking all my energy, so i will request it, as a challenge...
the process is supposed to be simple, but i need it to be clean. in a single file call, i need to rebuild all the templates in the system, and be able to apply some filters before saving the results.
so, i need something like:
A: $templates = SELECT * FROM ".TABLE_PREFIX."template
B: foreach($templates AS $template), apply a great filter that will clean all useless spaces and characters...
C: save the new templates, and template_un... nothing else changed (or cheat and change the username!)
... i have most of it, maybe someone can build it, and be the king of the day ?!
the use of this hack can be multiple:
we can even give the job to filter all comments in html "<!-- -->", delete useless spaces between tags like "<tr> <td>" ...
and by this, ease the job for some designers that wish to clean the entire list of templates...
...
forget it, i found the key... had to build a simple hack, anyway not useful for anybody.. ;)
i'm too lazy today, the newborn is taking all my energy, so i will request it, as a challenge...
the process is supposed to be simple, but i need it to be clean. in a single file call, i need to rebuild all the templates in the system, and be able to apply some filters before saving the results.
so, i need something like:
A: $templates = SELECT * FROM ".TABLE_PREFIX."template
B: foreach($templates AS $template), apply a great filter that will clean all useless spaces and characters...
C: save the new templates, and template_un... nothing else changed (or cheat and change the username!)
... i have most of it, maybe someone can build it, and be the king of the day ?!
the use of this hack can be multiple:
we can even give the job to filter all comments in html "<!-- -->", delete useless spaces between tags like "<tr> <td>" ...
and by this, ease the job for some designers that wish to clean the entire list of templates...
...
forget it, i found the key... had to build a simple hack, anyway not useful for anybody.. ;)