vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Find all changed files BEFORE upgrading vBulletin 4? (https://vborg.vbsupport.ru/showthread.php?t=303222)

findingpeace 10-10-2013 02:14 PM

Find all changed files BEFORE upgrading vBulletin 4?
 
I know it's bad practice to edit the physical vB files, but I've done it for a few, and I can't for the life of me remember which ones, but I know they're important! Is there a scanner or plugin that will find which ones don't match the original 4.2.1 files, before I upgrade to 4.2.2?

Thanks!

ForceHSS 10-10-2013 03:09 PM

Don't go to 4.2.2 to many problem wait until they are fixed

findingpeace 10-10-2013 03:29 PM

Ok thanks, will do! Is PHP 5.4 known to be faster than 5.3? Will I see any performance boosts once we make the jump?

squidsk 10-10-2013 04:27 PM

Quote:

Originally Posted by findingpeace (Post 2451812)
I know it's bad practice to edit the physical vB files, but I've done it for a few, and I can't for the life of me remember which ones, but I know they're important! Is there a scanner or plugin that will find which ones don't match the original 4.2.1 files, before I upgrade to 4.2.2?

Thanks!

We've altered a bunch of default vbulletin files as well with our site. The way to check which files have been altered is to go into admincp, and go to Maintenance->Diagnostics and choose the Suspect File Version. Any file that is reported as not having expected contents has been edited.

Another way we keep track of which files have been altered is through the use of a version control system, we use git. Our system actually has two repositories setup, one contains vanilla vbulletin files which we use as the source repository (is not web reachable) and the second repository is the actual forum directory and is a downstream repository. Any changes to code/images/whatever on the site are then tracked and when it comes time to upgrade vbulletin we can do a git rebase which applies (or at least tries to apply) all our changes to the new code in the new version.

findingpeace 10-10-2013 04:33 PM

That is SO helpful squidsk!!! Great tool, thanks!

tbworld 10-10-2013 08:06 PM

I would append a unique worded header comment in each file you have modified. Then you can search for that unique header when you want to find all your modified files. Remember the vbulletin tool only works for vbulletin files, not files that you have additionally added to vB.

Another thing you can do is add an additional file to the server for each modified file. Call it something like: "forum.php___#fp#.php. Something that sticks out. Now you can search for file names with #fp# in them and they will also stand out in a file-manager.

There are a lot of solutions, but as long as you have a system in place you will be okay.

Sometimes there is just not a hook where you want it, but you can add your own hooks -- of course you still have to replace the hook on an upgrade.


All times are GMT. The time now is 01:10 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.00969 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete