Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-21-2008, 05:50 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Point me in the right direction...

I was wondering if an xml sheet could be created that would allow you to edit templates automatically after a vbulletin update?

For those mods that still require template edits that are erased after an update.

Is there a mod that will automatically do this?

Can someone point me in the right direction?
Reply With Quote
  #2  
Old 03-21-2008, 07:01 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure what you mean. After you do an upgrade, vb tells you all the templates that you have modified that need to be 'updated'. You can then go edit that template, hit History, and then Compare your current version to the vbulletin default version and see what the differences are. You can then just copy/paste these differences into your template and Save it. I don't think you would want something to do that all 'automatically' because sometimes you will choose to just revert the template and thus delete your chances (for whatever reason).
Reply With Quote
  #3  
Old 03-21-2008, 09:58 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just feel that there's got to be an easier process.

I'd like to be able to have a mod that does it all for me. This mod could give me options like:
  • Style to be edited. (hit cntrl+a to select all)
  • Template to be edited:
  • Find: (input field) (example below)
    Find:
    Code:
    <input type="hidden" name="s" value="$session[sessionhash]" />
  • Dropdown box with 3 options: (replace with, add above, and below). (Example Below)
    Add Below:
    Code:
    <if condition="$vboptions['invites_enabled'] AND $verify_invite">
    	<input type="hidden" name="invite" value="$verify_invite[invitehash]" />
    </if>

It's especially difficult for those who have custom designs. I upgraded from 3.6.8 to 3.7 with many different styles. This resulted in 200+ templates that I had to look at template history for.

And being that I have a custom style, if I do take the time to compare and edit each template NOW, I would have to do it all over again once the style gets upgraded to 3.7 (which they will not do until the gold release.)...this time re-installing mods that require template edits.

The ideal process would be the below:
  • Upgrade to 3.7.
  • Revert ALL templates.
  • Upgrade style.
  • Add template edits for mods.

That would be the easiest process, for those with custom designs, not the template history. My suggestion above with the mod that gives you the options to find, replace, add above, below, etc. would make the process go by even quicker.

Also, imagine this same mod keeps track of these changes, allowing you to name each (preferably with the name of the mod) and save to the database. When it's time to upgrade again, you could simply go through the list, check off what mods you decide to continue using, and then download an xml file that will do the edits for you automatically so that you do not have to do it all over again.

There are endless possibilities with this mod. The most popular mods that require template edits could come default with the mod.

What do you think?
Reply With Quote
  #4  
Old 03-22-2008, 12:12 PM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe Kirby (Andreas) released a modification that does this kind of thing.
Reply With Quote
  #5  
Old 03-22-2008, 04:40 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is exactly what I was looking for...

Here it is for anyone interested:
https://vborg.vbsupport.ru/showthread.php?t=152931
Reply With Quote
Reply


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 12:35 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.03435 seconds
  • Memory Usage 2,194KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete