vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Templateconvert from vB3 to vB4 (https://vborg.vbsupport.ru/showthread.php?t=235030)

punishment 02-03-2010 10:00 PM

Templateconvert from vB3 to vB4
 
1 Attachment(s)
Warning: This Mod is only for developers! Don't use this in live boards.

With this script you can convert vB3 templates to the vB4 syntax. You can make backup from the old templates, to a later error compare.

Before you merge the templates you can compare old and new syntax.

The folder /dev/backup => CHMOD 0777.

Good Luck. ;)

PHP Code:

/*
* OWN RISK !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*
* <if condition="xyz">    to    <vb:if condition="xyz">
* <else />                to    <vb:else />
* </if>                    to    </vb:if>
*
* $vbphrase[xyz]        to    {vb:rawphrase xyz}
* $vboptions[xyz]        to    {vb:raw vboptions.xyz}
* $session[xyz]            to    {vb:raw session.xyz}
* $bbuserinfo[xyz]        to    {vb:raw bbuserinfo.xyz}
* $pagenav                to    {vb:raw pagenav}
*
* $foo(.*)       to {vb:raw foo(.*)} Textarea Input you can use multiple variables $foo(.*) and $baz(.*) etc.
*/ 


saadessa 02-04-2010 09:32 PM

vrey great job thank you

treyb 02-04-2010 09:47 PM

Great Idea

Charlie98902 02-04-2010 09:49 PM

Wow, after I redid it all manually. I am sure there is some waiting on something like this though.

Trek 02-04-2010 09:52 PM

Nice! There are a few more mods I want to convert, this should come in very handy, thank you!

Sador 02-05-2010 09:35 AM

Hm. I hope there will be a version that can be used by non-developers as well, cause this would be one of the best mods available right now.

cad2go 02-05-2010 09:40 AM

I asked would this be included as part of the vb3->vb4 upgrade. I may as well have asked for the moon.

Thanks a lot for releasing this.

MARCO1 02-05-2010 12:40 PM

Very Good, I will install it in my tests forum

Installed and Rated 5 stars.

Zaiaku 02-05-2010 02:02 PM

Anyone besides me thinking that shis should of been a stand tool for vb4? This could of help so many people on day 1.

scan-pa 02-05-2010 02:04 PM

Nice, great job. This is something else that jelsoft should have had built in vB4.


All times are GMT. The time now is 08:19 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.01147 seconds
  • Memory Usage 1,725KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete