php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#313693 - 03/23/07 08:58 AM Upgrading With Hacks : Best Practices
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 85
Loc: UK
Don't Shoot me as i did try to post
this topic in the "How To/Site Help Library"
And I wasnt permitted too?

Question : Upgrading With Hacks : Best Practices

As i'm now getting into installing the hacks that
are being posted its coming up to a upgrade very soon.

I'm Running Threads 7.1 and i'm sure 7.1.1 is about to be released.
I have installed various hacks,

You TUBE : Hack
Top 30 day Posters
Posts in the last 24hrs
and another one i'm sure.

How do you guys go about a upgrade with the hacks installed?
Do you...

Overwrite all the files and then install the hacks again
one by one?

Ammend the new version files with the hacks and then upload.

I'm curious as you guys must have been doing it for a while
now and getting good at upgrading with hacks,

I have started to add //HACK to my files where the amendments
have been made.

What would you recommend,
as a best practice route?

Thanks.
p.s. Move me if you wish as I'm not sure where the best place
to post this is? Thanks.

Top
#313694 - 03/23/07 01:53 PM Re: Upgrading With Hacks : Best Practices [Re: Mark_S]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Beyond Compare smile

I copy my site to my HDD
I then compare the copy to the new files - and copy my hacks over to the new files.

Then upload the new files to my site smile

_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#313697 - 03/23/07 03:41 PM Re: Upgrading With Hacks : Best Practices [Re: Ian_W]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
I tend to upload the files then re-apply the hacks by hand; but in the past I've used Beyondcompare to do things...

Reason for not using BC anymore? well, a, I lost the license I was using, and b, i like ensuring things are there properly by doing it manually; but then again yous ee where all of the changes are in BC so it's not too easy to mess things up lol
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#313700 - 03/24/07 03:43 AM Re: Upgrading With Hacks : Best Practices [Re: Gizmo]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 85
Loc: UK
Thanks for the feedback, I'm sure others will benefit too.

I'm guessing this is the software?
Click Me

I think i'm going to take a little from both of your advice.

Thank you.

Will let you know which route i take when its upgrade time. smile

Top
#313703 - 03/24/07 10:21 AM Re: Upgrading With Hacks : Best Practices [Re: Mark_S]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
indeed - you can download a trial - which is on a month trial I think.

use a regular expression rule of .*Script Version.*

This will then ignore the script version line that Rick adds to the top of every file that changes with each release.

Essentially once you run this rule on all files both within the latest release and on your site, you should be left with just the files that either you or Rick has altered on each upgrade. it is then just a case of importing your changes into the ricks files and upload. If you have marked your changes then it should be nice and quick.

When you scroll through each file that has differences remaining it is usually fairly easy to see which files you have altered.

In minor releases i.e. 7.1.1 then the changes made by Rick are probably going to be small and hopefully all current mods should work.

I think upgrading to 7.1 took me no more than 10 minutes or so once I had a fresh copy of my site on my PC.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#313728 - 03/27/07 08:14 AM Re: Upgrading With Hacks : Best Practices [Re: Ian_W]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
I'll do a fresh upgrade and re-add the mods, marking them THIS time because I've forgot wot I got !

laugh
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#313735 - 03/29/07 03:00 AM Re: Upgrading With Hacks : Best Practices [Re: Ian_W]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 85
Loc: UK
Originally Posted By: Ian_W

use a regular expression rule of .*Script Version.*

This will then ignore the script version line that Rick adds to the top of every file that changes with each release.


Thanks for the extra TIP wink

Top
#313921 - 04/21/07 09:54 AM Re: Upgrading With Hacks : Best Practices [Re: Mark_S]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 85
Loc: UK
Humm i'm having a little trouble with the Regular Expression?
Or i dont think i have the results i expect.

// Ultimate Bulletin Board -->> // Ultimate Bulletin Board
// Script Version 7.1.1 -->> // Script Version 7.0.0rc1



And then the following in most of the older unused files. ?
//
// You may not distribute "hacks" for UBB without approval from
// Groupee, Inc.

As the newer file has that removed.

Ive used the Regualr Expression with *Script Version.*
in the drop box "Filters".

Just need a little help on what i do and how?
Whats the correct search option?

In the Session Manager i have this.

General
Left = Newer files
Right = From Server

By Name
Include Files = *Script Version*
Include Folders = *

By Date
Nothing Ticked

Other
Nothing Ticked

Criteria
Compare Contents - Binary Comaparison

More
Nothing Ticked

Help with the Sessions Manager options would be appreciated
Thanks smile

Top
#313922 - 04/21/07 11:20 AM Re: Upgrading With Hacks : Best Practices [Re: Mark_S]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 85
Loc: UK
I think i'm getting there now,
as i was confusing file Filters with the Regular Experssion Files
once i found the thing lol..

Top
#313925 - 04/22/07 06:22 AM Re: Upgrading With Hacks : Best Practices [Re: Mark_S]
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
That's some program, how sweet smile smile

Ian how did you get around the

//
under the
/ You may not distribute "hacks" for UBB without approval from
// Groupee, Inc.
//

As mine holds on there?
The regular expressions ive been trying don't work?
Something like, ending in a \s

Ive upgraded both live and test forums and they work great smile
And interesting to see the changes live smile

Question
How do you do it in 15 mins?
As i done it manually more or less.

Ive been right clicking on a folder and saying compare.

There was something else but ive forgotten it will come back
to me smile

Top
#313927 - 04/22/07 09:00 AM Re: Upgrading With Hacks : Best Practices [Re: Anonymous]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 85
Loc: UK
Dam that was me lol, forgot to log in.

The other thing now i rememeber is when you run the upgrade
script, it picks up the version numbers?

How do you get around that?

Top
#313947 - 04/26/07 05:31 PM Re: Upgrading With Hacks : Best Practices [Re: Mark_S]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
You have to either file compare your changes into the new forum files or upload the new files and then re-upload your changed files after you've run the upgrade.php script.

Best practices would be to file-compare your changes into the new scripts then upload them prior to running the upgrade.php script.
_________________________
- Allen wavey
- What Drives You?

Top
#314006 - 04/30/07 04:36 AM Re: Upgrading With Hacks : Best Practices [Re: AllenAyres]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
I have all my hacks documented in a file. It's in the forum of "Filename/hack".

I upgrade UBB only uploading new/changed files, and after that I check if any new files need to be rehacked or not.
_________________________

Top
#314035 - 05/05/07 03:43 AM Re: Upgrading With Hacks : Best Practices [Re: blaaskaak]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Mark - did you get this sorted (sorry have been away a lot of the last month, and now I am laid up as I can't walk frown frown )

PM me if you need further help with this - as my set-up works without any issues.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#314902 - 07/23/07 04:00 AM Re: Upgrading With Hacks : Best Practices [Re: blaaskaak]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
Originally Posted By: blaaskaak
I have all my hacks documented in a file. It's in the forum of "Filename/hack".


I changed this practise for my upgrade to 7.2

This documenting thing is fun in theory, but if you are as messy as me, you kinda forget things.

Using BeyondCompare, I compared my current install with 7.1.1 out of the box, re-applying hacks that I wanted in the to be uploaded 7.2 code.

My upgrade never went as smooth as this time. I was done in less then an hour, including backups before and after.
_________________________

Top
#314906 - 07/23/07 09:37 AM Re: Upgrading With Hacks : Best Practices [Re: blaaskaak]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 442
Loc: SoCal
same method, but with UltraCompare works for me. i use the 'Merge' feature a lot, so as to not have to even copy/paste or dice/splice.

also, i try to comment blocks of code where i have a mod with '// SD - Mod: xxxx' in php and {* SD - Mod: xxxx *} in the tpls.

then a simple grep piped to a txt file, where i use a macro to transform it to a csv for excel to be used as a checklist. (this is extra, but i'm a little anal so what the hell) wink
_________________________

Top
#314918 - 07/23/07 06:55 PM Re: Upgrading With Hacks : Best Practices [Re: sirdude]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
I totally vouch for the commenting mod's approach; you never know when you'll be poking around and go "what the hell is this?"
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#314930 - 07/24/07 09:23 AM Re: Upgrading With Hacks : Best Practices [Re: Gizmo]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
We could standardize comment structure to whatever php.net/zend recommends
_________________________
- Allen wavey
- What Drives You?

Top
#314938 - 07/24/07 05:22 PM Re: Upgrading With Hacks : Best Practices [Re: AllenAyres]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 442
Loc: SoCal
makes sense Allen
_________________________

Top
#315297 - 08/19/07 05:16 PM Re: Upgrading With Hacks : Best Practices [Re: AllenAyres]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 85
Loc: UK
Originally Posted By: AllenAyres
We could standardize comment structure to whatever php.net/zend recommends
What would that be?

I just do

//HACK - name

//END OF HACK - name

But i can never find them lol....

I tried beyond comapare from 7.1x to 7.2 and it didnt work so well for me, i dont know why?

So returned to 7.2 default and added the hacks again
as i'm getting more confident now wink

Works a treat, will do bug fix updates with beyond compare
and try again when 7.3 hits the shelf smile

Top
Page 1 of 2 1 2 >


Who's Online
0 registered (), 24 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Today at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks