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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2006, 01:59 AM
simsimt simsimt is offline
 
Join Date: Nov 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do you set your template editing environment?

Hello,

Editing templates on large scale basis can be really overwhelming. I've come across this when trying to make huge editing to my FORUMHOME template. In order to be able to experiment freely, I made another template & called it FORUMHOME_test & copied FORUMHOME content into it. Then I made a test.php script using Gary King's method to work as a second index page.

But things were not satisfying to me as the new index page was empty & I have to manually create other forums so that I can visually test modifications results! Another problem I came upon is vBulletin variables within templates as there are no ready lists to variables that are required in templates. I thought of using some IDE editors but I know of no FREE ones that can do this. Other simple editors like EditPlus & Notepad do not provide such advanced features.

So, how do you work with template editing inside vBulletin? Do you have any tips & tricks you would like to share that can make template modifying easier?
Reply With Quote
  #2  
Old 11-24-2006, 04:15 AM
da420 da420 is offline
 
Join Date: Nov 2005
Posts: 1,232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have set up a dev board for anything I may want to test out.

Just make install a separate instance of vB installed on your server that is not open to the public to test things out.
Reply With Quote
  #3  
Old 11-24-2006, 05:02 AM
simsimt simsimt is offline
 
Join Date: Nov 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by da420 View Post
I have set up a dev board for anything I may want to test out.

Just make install a separate instance of vB installed on your server that is not open to the public to test things out.
I already have a localhost server setup on my PC which I use for all development & non-production activities. I am looking for another way of editing templates rather than the traditional way of editing then reverting.
Reply With Quote
  #4  
Old 11-29-2006, 10:26 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I create a child style and work in that then when I have it right I copy the template to the parent.

Of course if the template isn't edited to start with then if it all goes wrong a revert fixes everything.
Reply With Quote
  #5  
Old 11-30-2006, 12:50 AM
simsimt simsimt is offline
 
Join Date: Nov 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks peterska2.

I didn't thought of creating child styles! Good idea, but how do you deal with template variables? Do you write them down on a paper or just depend on your eyes? I'm talking about large-scale template editing!
Reply With Quote
  #6  
Old 11-30-2006, 08:46 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just make them up as I go along

Well actually most of them I know now without having to look things up so I know that if one doesn't work then it is the other one.

I know about large scale edits too. Some of mine are complete rewrites so it can be fun and games sometimes.

If it is a really large scale thing, then every time you get a bit done and functioning correctly, create a child style of that one and carry on.That way if you need to debug then you can always revert back a step without losing the whole lot.

You should see the style manager on my dev board. It's horrendous for child of child of child of child of child of child of default style and even longer chains!
Reply With Quote
  #7  
Old 11-30-2006, 09:09 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in most cases, the compare ('View History') option in vbulletin would suffice ... I suggest checking it out.

if you don't like ... get yourself Beyond Compare
Reply With Quote
  #8  
Old 11-30-2006, 09:11 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The compare tool is very good for when you are performing upgrades to see what has changed. Generally though, the method that you use depends entirely on exactly what you are doing.
Reply With Quote
  #9  
Old 12-01-2006, 06:22 PM
simsimt simsimt is offline
 
Join Date: Nov 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you both for comments. I found this to be very useful & fits exactly into what I've been trying to overcome:
http://www.vbhackers.com/f93/tool-te...ml-files-5419/
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 07:03 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.04469 seconds
  • Memory Usage 2,236KB
  • 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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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