vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Template Backup System! (https://vborg.vbsupport.ru/showthread.php?t=33072)

Admin 01-09-2002 08:46 AM

Sure... keep in mind it won't work on all servers though, which is why I didn't put it in in the first place.

WildWayz 01-09-2002 08:51 AM

Might leave it then - save on the confusion :)

--James

Jawelin 01-09-2002 09:16 AM

:p

Original (I forgot it, after +30 hacks... :) ) admin/index.php file.
Lines 330...334 .... ;)
What's it ?

Thanks a lot and many compliments for your hard and complete work...
(p.s.: on a linux server, it doesn't manage to create the template directory... :eek: )

Stretchr 01-09-2002 08:33 PM

This is a must for the next vB edition. Thanks, Chen!

Dade 01-09-2002 08:40 PM

Awesome Chen, thanks for this! :)

Aaow AnD wHiTe 01-11-2002 10:29 AM

This hack is just AMAZING O_O

Thank you so much, Chen!!

kippesp 01-29-2002 03:46 PM

My Linux server prevents the export function from working. I also don't own the server. So I made modifications to email the templates. I won't post my entire modification since it is so system specific. Once the zip file is created on a particular system, this code will ship it out.

PHP Code:

// Prepare email
echo "Preparing email and attaching file $zipfile...";

$mail_boundary "----=" md5(uniqid(time()));
$mail_headers "";
$subject "vBulletin templates file for $bbtitle";
$mail_headers .= "From: \"vBulletin Mailer\" <$webmasteremail>\r\n";
$mail_headers .= "MIME-Version: 1.0\r\n";
$mail_headers .= "Content-type: multipart/mixed; boundary=\"$mail_boundary\"\r\n\r\n";
$mail_headers .= "This is a multi-part message in MIME format.\r\n\r\n";
$fp fopen("$tmppath/$zipfile""r");
$file fread($fpfilesize("$tmppath/$zipfile"));
$file chunk_split(base64_encode($file));
$mail_body "--$mail_boundary\r\n";

$mail_body .= "Content-type:text/plain; charset=ISO-8859-1\r\n\r\n";
$mail_body .= "The attached file '$zipfile' contains the vBulletin templates\r\n";
$mail_body .= "from the '$setinfo[title]' set of $bbtitle.\r\n\r\n";
$mail_body .= "--$mail_boundary\r\n";

$mail_body .= "Content-type:unknown/unknown; name=$zipfile\r\n";
$mail_body .= "Content-transfer-encoding: base64\r\n\r\n";
$mail_body .= $file "\r\n\r\n";
$mail_body .= "--$mail_boundary--";

mail("$email",$subject,$mail_body,$mail_headers); 


Jawelin 01-29-2002 10:15 PM

[QUOTE]Originally posted by FireFly
[...]
Why you ask? This could help a lot when upgrading to a new version of vBulletin. Just like you can compare files using programs such as Araxis Merge or Beyone Compare, you can now also compare templates, and easily keep track of changes that were done between versions.
After you save all changes to the template files, you use this script again only this time in the opposite directions - restoring the templates back into the system.
[...]

Admin 01-30-2002 04:40 AM

Sure.
  • Add a new Template Set, that will use the default templates from vBulletin. Call it Before Upgrade.
  • Complete the upgrade (this includes the step where you install all the new templates - don't worry, your customized templates will not be damaged!).
  • Add a new Template Set, that will use the default templates from vBulletin. Call it After Upgrade.
  • Use this hack to import both template sets (Before and After) to different folders.
  • Use a comparing program (such as Araxis Merge) to compare the two folders, and then commit every change you find to your live template set (the one you are really using).

That should be it I think, don't forget to backup everything before you do this. :)

Jawelin 01-30-2002 08:28 AM

Thank you very much...
Sorry, but didn't understand.
Now I have only the 'default' template set: how could I assign all the templates simply adding a new set 'before upgrade' ?

Much probably I lack some basic information about templates and sets (and styles ... see here), but where could I read some FAQ or introduction about the VB concept of this matter ?

[QUOTE]and then commit every change you find to your live template set (the one you are really using).


All times are GMT. The time now is 09: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.01162 seconds
  • Memory Usage 1,753KB
  • 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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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