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!
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...
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!
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.
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.
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.
// #############################################################################
// 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
));
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?
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.