vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Rebuild templates one by one.. (https://vborg.vbsupport.ru/showthread.php?t=81270)

nexialys 05-10-2005 06:12 PM

Rebuild templates one by one..
 
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.. ;)


All times are GMT. The time now is 02:31 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.00900 seconds
  • Memory Usage 1,699KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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