vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Make An easy template edit using a product (https://vborg.vbsupport.ru/showthread.php?t=106287)

Developer 01-25-2006 12:44 PM

Make An easy template edit using a product
 
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

Code:

<?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

Quote:

Originally Posted by Developer
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.


All times are GMT. The time now is 02:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02011 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete