Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Easy Template Update Details »»
Easy Template Update
Version: 1.0.0, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-06-2005 Last Update: 12-07-2005 Installs: 56
Code Changes Is in Beta Stage  
No support by the author.

Easy Template Update

Description
This Hack helps you to update your templates, by allowing you to semi-automatically merge changes into your templates.

Details
1 Product XML (5 Phrases)

This Hack is unsupported! All support requests except proved Bugs will be ignored.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 12-08-2005, 01:19 PM
C_P's Avatar
C_P C_P is offline
 
Join Date: Sep 2004
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #23  
Old 12-08-2005, 01:42 PM
C_P's Avatar
C_P C_P is offline
 
Join Date: Sep 2004
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #24  
Old 12-08-2005, 02:17 PM
Mastar's Avatar
Mastar Mastar is offline
 
Join Date: Sep 2005
Posts: 680
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #25  
Old 12-08-2005, 02:18 PM
Mastar's Avatar
Mastar Mastar is offline
 
Join Date: Sep 2005
Posts: 680
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 12-08-2005, 06:05 PM
Mastar's Avatar
Mastar Mastar is offline
 
Join Date: Sep 2005
Posts: 680
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

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

DID YOU DO THE EDIT ABOVE?
Reply With Quote
  #27  
Old 12-08-2005, 06:08 PM
Mastar's Avatar
Mastar Mastar is offline
 
Join Date: Sep 2005
Posts: 680
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #28  
Old 12-08-2005, 06:13 PM
C_P's Avatar
C_P C_P is offline
 
Join Date: Sep 2004
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

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.
Reply With Quote
  #29  
Old 12-08-2005, 06:26 PM
Mastar's Avatar
Mastar Mastar is offline
 
Join Date: Sep 2005
Posts: 680
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #30  
Old 12-08-2005, 06:35 PM
C_P's Avatar
C_P C_P is offline
 
Join Date: Sep 2004
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #31  
Old 12-09-2005, 08:09 AM
Mastar's Avatar
Mastar Mastar is offline
 
Join Date: Sep 2005
Posts: 680
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:06 PM.


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.06185 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete