vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Easy Template Update (https://vborg.vbsupport.ru/showthread.php?t=102416)

C_P 12-08-2005 01:19 PM

Quote:

Originally Posted by 7thgenCivic.Com
u need to do the fix in my post here https://vborg.vbsupport.ru/showpost....6&postcount=13

Thank you for reply! I did your edit but after selecting all the merge buttons and saving merge, it takes me to next page stating:
Please Complete All Required Fields
I have confirmed ALL buttons were checked so what am I missing?
Ooops wait... I may have missed something...

*Update, yup, I only pasted partial code you put rather than the entire code Andrea did and it works!!!!
Thank you!

C_P 12-08-2005 01:42 PM

Not sure why, but it looks like this is almost acting like a revert as I am losing template modifications that were done like thank you posts mod after doing the merge...

Mastar 12-08-2005 02:17 PM

Quote:

Originally Posted by C_P
Thank you for reply! I did your edit but after selecting all the merge buttons and saving merge, it takes me to next page stating:
Please Complete All Required Fields
I have confirmed ALL buttons were checked so what am I missing?
Ooops wait... I may have missed something...

*Update, yup, I only pasted partial code you put rather than the entire code Andrea did and it works!!!!
Thank you!

Same thing here!

Mastar 12-08-2005 02:18 PM

Quote:

Originally Posted by C_P
Not sure why, but it looks like this is almost acting like a revert as I am losing template modifications that were done like thank you posts mod after doing the merge...

That is exactly what I don't want happen. I got too many hack on my board.

Mastar 12-08-2005 06:05 PM

Quote:

Originally Posted by mini2
Are you checking the checkboxes to the right of the comparison/history page, and making sure the "new" templates looks right before you save merged?

I've used this now, and it's brilliant.

:D

Did you loose any of your hacks or had to edit the hacks back in your templates?

DID YOU DO THE EDIT ABOVE?

Mastar 12-08-2005 06:08 PM

Quote:

Originally Posted by mini2
Nope, I think you just have to be careful what you do and don't decide to "merge".

So how did you did your's?

C_P 12-08-2005 06:13 PM

Quote:

Originally Posted by mini2
Are you checking the checkboxes to the right of the comparison/history page, and making sure the "new" templates looks right before you save merged?

I've used this now, and it's brilliant.

:D

I did but I am not a coder to know what should or should not be merged. I was "assuming" the merge process would merge your sections of old code to the new so there was no need to re-add this code to new section of styles changed... obviously I was mistaken and will not use this now. Oh well.

Mastar 12-08-2005 06:26 PM

I found where I went wrong,

I placed:
Code:

  $_POST['do'] = 'merge';
}

above this:

Code:

// #############################################################################
// generate a diff between two templates (current or historical versions)
if ($_REQUEST['do'] == 'viewversion')

Instead of this:
Code:

// #############################################################################
// generate a diff between two templates (current or historical versions)
if ($_POST['do'] == 'docompare')
{

So now it looks like this:

Code:

if ($_POST['do'] == 'docompare' AND !empty($_POST['domerge']))
{
  $_POST['do'] = 'merge';
}
// #############################################################################
// generate a diff between two templates (current or historical versions)
if ($_POST['do'] == 'docompare')
{
  $vbulletin->input->clean_array_gpc('p', array(
    'left_template' => TYPE_STR,
    'right_template' => TYPE_STR,
    'wrap' => TYPE_BOOL
  ));



So it works!

Can someone verify what I wrote?

C_P 12-08-2005 06:35 PM

Quote:

and with the template merging I had to switch the radio buttons from my tempate being 'new to 'old' and then merge.
Now, that is an interesting statement. What you are saying is you should change the default new old option when you look at history making 3.5.2 the new and (in my case) 3.5.1 the old?

Mastar 12-09-2005 08:09 AM

Quote:

Originally Posted by C_P
Now, that is an interesting statement. What you are saying is you should change the default new old option when you look at history making 3.5.2 the new and (in my case) 3.5.1 the old?

Sorry don't change the radio buttons and basically merge the peach and yellow codes and leave the green.

It works and its easy!


All times are GMT. The time now is 04:14 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.01097 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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