View Full Version : Make An easy template edit using a product
Developer
01-25-2006, 12:44 PM
i see a hack that using a template edit using a product and it is wonderful
this hack made by MarcoH64 , Private Message Workbench: Read, Search, Delete, Report and more
and the product for no template edit was like that
mY Comments in Green
<?xml version="1.0" encoding="ISO-8859-1"?>
<locations productid="product id here">
<location template="template name" location="location i don't know what is this" title="title">
<search><![CDATA[Search for text in template]]></search>
<replacement><![CDATA[replace with]]></replacement>
</location>
</locations>
Borgs8472
01-25-2006, 06:58 PM
red?
Developer
01-25-2006, 10:47 PM
Edited (sorry cuz i was post this thread in vb.com but they told me to ask here)
Wild-Wing
01-26-2006, 12:40 AM
ah how does it work?
Developer
01-26-2006, 01:04 PM
I Asked that
Marco van Herwaarden
01-26-2006, 07:58 PM
see a hack that using a template edit using a product and it is wonderful
this hack made by MarcoH64
Hehe thanks.
Not sure what you are asking though, but i guess you want to know what product that is.
Well in some of my hacks i edit templates during runtime, by simply doing a search/replace in the templatecache. This works fine as long as people are using a default template (or custom as long as the search string isn't changed).
Most hacks i created using this technique, are checking if another of my hacks is installed: Dynamic Template Modifications
This hack does the same, but give the user (admin) the option to override for each style the dynamic modifications that are made, so that my hacks can also be used on modified styles. The XML-File you quoted is the file added to a hack, that will tell my Dynamic Template Modifications hack (if installed) what changes need to be made to which templates.
I however never released the Dynamic Template Modifications hack (it is running beta for a long time now on some sites), since i feel that it should be perfect before releasing it as a lot hacks (mine, from others???) might be going to use it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.