Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 05-11-2005, 01:24 AM
carvster carvster is offline
 
Join Date: Apr 2005
Location: DFW, TX
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Best Way From Test to Production?

We are modding a vbulletin site first on our test domain and then when the mods are proven we make the mod to our live domain. Aside from the database changes, can we just copy the vBulletin directory /forums/ from our test site over to our live /forums/ or do we need to manually set each mod back up on the live site as well?

What strategies are people using and what is the best practice for mod promotion from test to production?
Reply With Quote
  #2  
Old 05-11-2005, 02:28 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im kind of curious about this myself... I guess vb 3.5's hook system will eliminate alot of this but yeah, still good to know.
Reply With Quote
  #3  
Old 05-11-2005, 02:34 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Generally, when I start a mod, I pull the relevant files from my live server to my development/test computer. I make and test the changes and then reupload the files and make the database changes on the live server.
Reply With Quote
  #4  
Old 05-11-2005, 02:47 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats what I am doing atm but I rename the original file on the server so its there should I or another need to fix it in case something pops up.
Reply With Quote
  #5  
Old 05-11-2005, 04:34 AM
code-frog's Avatar
code-frog code-frog is offline
 
Join Date: Oct 2004
Location: Boise, ID
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Based upon the experience I just had with modding in the vbAdvanced CMS Portal I would have to say that it depends on the complexity of the mod.

The vbAdvanced CMS is easy enough to install (I think it took about an hour to go from no domain, to domain, to vBulletin, to vbAdvanced.) This one can be copy pasted without too much trouble. There's a few files you'll have to rename/restore before you do it and those will be obvious.

I don't see any reason for the direct copy to not work in most cases. I suppose a dry-test on a dumb-domain ahead of time would be a safe bet just to make sure you had the method correct.
Reply With Quote
  #6  
Old 05-11-2005, 12:05 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no problem moving files from one server to another but you must be careful (110% sure) that the files are equivalent. In most cases, I recommend against this -- it is better to be safe than sorry.

When I start a mod, I do it on my local computer.

Every line that I modify (vb file) I wrap with the following:
//==========================\\
// == [ HACK A - GTP ]
enter code here
// == [ 00-00-2005 ]
//==========================\\

This allows me to search for 'modified' sections at a later time with a script that I wrote. The script searches for specific phrases (ie. 'hack a', 'GTP', etc) in a file and displays any file(s) that have been modified. From there, I just have to look at the files for the above comments (wrap). This works online/offline.

This allows me to quickly document my modifications. (I document every modification that I do.)
Reply With Quote
  #7  
Old 05-14-2005, 04:28 PM
carvster carvster is offline
 
Join Date: Apr 2005
Location: DFW, TX
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks everyone for your comments/help. Sorry for taking a while to get back here.

Quote:
Originally Posted by princeton
Every line that I modify (vb file) I wrap with the following:
//==========================\\
// == [ HACK A - GTP ]
enter code here
// == [ 00-00-2005 ]
//==========================\\

This allows me to search for 'modified' sections at a later time with a script that I wrote. The script searches for specific phrases (ie. 'hack a', 'GTP', etc) in a file and displays any file(s) that have been modified. From there, I just have to look at the files for the above comments (wrap). This works online/offline.

This allows me to quickly document my modifications. (I document every modification that I do.)
This is a great idea. If the mod requires a change rather than an addition, do you leave the original phrase included in comments? One problem I found is when several complex mods are installed subsequent and they change the same portion of the script.

Perhaps the solution is commenting out the original phrases tagging them as original and then commenting out each subsequent mod change, thus leaving a trail for that particular phrase would help to keep track. That would add a lot of code though. I suppose I could keep an archive copy of all the changes and just single reference to the previous hacks in the production file.
Reply With Quote
  #8  
Old 05-14-2005, 05:59 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It all depends ... if it's a large modification I replace the whole thing.
I already know it's been modified so it doesn't matter if I remove the original code.

However, if it's a small modification (1-3 lines) I comment out the original code.
It helps when upgrading the forum.

You should do what is easier for you.

I have added my script into the CODE MODIFICATIONS forum.
https://vborg.vbsupport.ru/showthread.php?t=81524
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:12 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.03859 seconds
  • Memory Usage 2,217KB
  • Queries Executed 13 (?)
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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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