vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Upgrade to 2.2.2 From 2.2.1 (https://vborg.vbsupport.ru/showthread.php?t=34632)

Scott MacVicar 01-29-2002 10:00 PM

1 Attachment(s)
This file contains all the changes you must make to upgrade your forums to 2.2.2 from 2.2.1. I have used this on my forums and it has worked successfully. Unfortunately we will unable to provide support for this, if you are getting errors then you may have applied the change in the wrong place.

Make sure you backup your files and database before doing this.

Once you have changed all the files you must upload them plus the new vBulletin.style upgrade15.php and some other files which were changed too extensively to justify a list of all the changes.

Scott

SirSteve 01-30-2002 07:06 PM

Thank the maker! This will save major time!

:D

Princeton 01-30-2002 08:14 PM

Thank you ... uploaded with no problems.:)

djr 01-30-2002 08:17 PM

Scott,

First, a big major thanks for all your efforts! Did a great job on this document!

Second, does this mean we'd only have to change these .php files and leave all others untouched? For example: you don't say anything about member.php, does this mean I can just leave the 2.2.1 version of this file?

- djr

Scott MacVicar 01-30-2002 08:56 PM

correct
if its not mentioned it doesn't need to be modified, as this release was mainly a bug fix not every file was edited.

I also had someone emailing me asking if Jelsoft allowed this, John had no quams with me posting this here.

djr 01-30-2002 08:59 PM

Great, thanks! /me needs to do some serious editing now :-)

... and off I am

Jawelin 01-30-2002 09:58 PM

Wonderful!!
Great, Scott. :D

I never saw before a FULL UPGRADE HACK... ;)
Yeah, it's the hack itself.
Thanks

P.S.: what did you use ?
Araxis Merge, Beyond Compare, eight pairs of eyes and hands, or what ? :pleased:

SWFans.net 01-30-2002 10:30 PM

You sir, are a saint among men. Thank you!!!!

Tim Wheatley 01-30-2002 11:30 PM

Thanks :D

Princeton 01-30-2002 11:33 PM

squawell,
Look at it more closely ... you'll see it was a typo, e was left out.

squawell 01-30-2002 11:33 PM

thankz PPN~:D:D

it's very useful~~

Lionel 01-31-2002 12:22 AM

you are God sent. Thank you

SirSteve 01-31-2002 02:18 AM

I noticed if you have the contract/expand hack installed and the community bulletin hack, some of this code makes it unusable.

FWC 01-31-2002 03:31 AM

Quote:

Originally posted by SirSteve
I noticed if you have the contract/expand hack installed and the community bulletin hack, some of this code makes it unusable.
I upgraded my test board and noticed some interesting things. Hacks that were inserted into the default templates were mostly moved to custom templates. This happened to vBStats and everything was fine. Some of the Contract Posts templates were blown away. I made new custom templates for modifyoptions_hideposts_ie and showthread_hideposts and everything was back to normal. I'm glad I'm testing everything on the test board first. :)

Freddie Bingham 01-31-2002 04:10 AM

You can only lose templates IF you put them into your database with a templateset id of -1. You should never use templateset -1 as those are the base templates and they are removed and replaced with every upgrade.

FWC 01-31-2002 04:17 AM

Quote:

Originally posted by freddie
You can only lose templates IF you put them into your database with a templateset id of -1. You should never use templateset -1 as those are the base templates and they are removed and replaced with every upgrade.
Some of the hacks intsall that way. I was just testing to see what would happen. The interesting thing is most of them didn't get deleted but moved to custom templates. I thought that was pretty slick. I only had to add two back. :)

FWC 01-31-2002 06:23 AM

OK, here's a trick. If you have hack templates installed into the default templates, you will lose them in the upgrade. Unless they are modified. If they've been modified they will move to custom templates. I went through my vBStats, Contract Posts and vBLinks templates and modified the ones I hadn't touched. I added some junk and then took it out. I did NOT revert them. Then when I upgraded my real board, they all got moved to custom templates. If you combine this with hacking the PHP files according to PPN's instructions (be very careful if you have a hack in any of the modified code), you will have no problems. :)

Scott MacVicar 01-31-2002 07:49 AM

Those hacks shouldn't replace the default template in my opinion.

Remi 01-31-2002 08:40 AM

I think ther is a mistake in the instructions

=====================
/admin/functions.php

look for
eval("standarderror(\"".gettemplate("error_banip") ."\");");

below it add
exit;
=============

I think it should be remove "exit;"

please correct me if I am wrong

Jawelin 01-31-2002 09:31 AM

Quote:

Originally posted by FWC
OK, here's a trick. If you have hack templates installed into the default templates, you will lose them in the upgrade. Unless they are modified. If they've been modified they will move to custom templates. I went through my vBStats, Contract Posts and vBLinks templates and modified the ones I hadn't touched. I added some junk and then took it out. I did NOT revert them. Then when I upgraded my real board, they all got moved to custom templates. If you combine this with hacking the PHP files according to PPN's instructions (be very careful if you have a hack in any of the modified code), you will have no problems. :)
Let me check if understood.
You say if I edit each my 'default template' which was added by any hack (installer or not), to see near it the three links [edit] [revert to original] [view original] instead of the standard two, I'll be sure they'll be moved to 'custom template' section after the upgrade; or at least they will not reverted by the upgrade ....

Is it true ?
Thanks

Scott MacVicar 01-31-2002 02:21 PM

remi this was a change between 2.2.2 RC and 2.2.2 final i'll have to wait until i am home to confirm this for you.

FWC 01-31-2002 04:43 PM

Quote:

Originally posted by Jawelin

Let me check if understood.
You say if I edit each my 'default template' which was added by any hack (installer or not), to see near it the three links [edit] [revert to original] [view original] instead of the standard two, I'll be sure they'll be moved to 'custom template' section after the upgrade; or at least they will not reverted by the upgrade ....

Is it true ?
Thanks

That's how it worked on both my test board and live board.

orca 01-31-2002 04:44 PM

Thanks for the good work

Linus 02-01-2002 07:34 AM

Does this mean I can use this without losing my hacks ?

Scott MacVicar 02-01-2002 07:57 AM

yes it is a list of all changes in the files between 2.2.1 and 2.2.2

Jawelin 02-01-2002 08:51 AM

Just FYI, in today's feb 1 download of VB 2.2.2,
upload/admin/vbulletin.style has changed.

Bye

Scott MacVicar 02-01-2002 03:33 PM

did they announce on the site that it had changed?

cause the downloads are made dynamically the creation date will always be different, depending on when you downloaded it as they use CVS.

Jawelin 02-01-2002 04:08 PM

I know well.
The dates change, but the file content doesn't.... ;)

Instead, I checked the two zips with a my slight utility which compares file-CRCs .... That file is the only changed in the past day.

I often check when new release comes out, as the first two or three days there are a lot mods...
For example, the 2.2.1 just came out, in four days changed about 3 times.

Hwr, this time only the style changed. This shouldn't affect your great job.

Bye

Mystics 02-01-2002 09:24 PM

Big Thx @PPN for your great work!

But, one little fault: :rolleyes:

In online.php, you also have to do this changes:
Code:

look for
      if (($userinfo["$key"]['lastactivity'] < $user['lastactivity']) or !$userinfo["$key"]['lastactivity']) {

below it add
        $userinfo["$key"]['realname'] = $user['username'];

I only noticed this, because it affected a bug I posted on vbulletin.com :p

Greetings,
Mystics

Hoffi 02-01-2002 09:27 PM

It works great. I just used it, with a german Style and all works perfeclty. You saved me much time.

Erwin 02-01-2002 11:01 PM

Done! It works well, thanks for the upgrade "hack"!!!

:)

Tim Wheatley 02-01-2002 11:03 PM

For those having trouble -- OBVIOUSLY you modify the new code around your existing hacks. Someone (I take it?) says that the contract/expand hack doesn't work? It did on my board -- I just had to re-insert the mods into the templates again.

I keep full records of EVERY modification I make to the board on my site, the forums are what make my site and I reeeeeeally don't want them screwed up for long if I can help it.

When I was installing 2.2.2 I didn't even have to turn the board off, users didn't even know I'd upgraded -- but I haven't had a single 'my link in e-mail doesn't work' e-mail. :)

I'd just like to thank 'PPN' again for taking the time to do this. :D

Erwin 02-01-2002 11:12 PM

Yup - just run the install_contractposts.php to reinstall the templates - no need to make any code or template changes.

SirSteve 02-02-2002 04:58 AM

$pagenav = getpagenav($totalposts,"showthread.php s=$session[sessionhash]&threadid=$threadid&perpage=$perpage".iif(isset($h ighlight), "&highlight=$highlight", ""));

Where is the question mark after .php?

Is it not supposed to be there?

Scott MacVicar 02-02-2002 07:02 AM

there is a question mark in my version

SirSteve 02-02-2002 12:35 PM

Thanks. Odd, it's stripped out on my end... also, was that double "exit;" correct?

nafae 02-02-2002 01:38 PM

this was so incredibly helpful... TANKIE YOUZ!

X-Fan 02-02-2002 02:02 PM

Thank you sooooooooooo much for this!!! You've saved me a lot of time and effort!

All I had to do was re-run the VBStats hack and select upgrade to re-initialize that hack - the rest remained untouched and intact!!!

Thanks again!

Scott MacVicar 02-02-2002 02:37 PM

yeah it should have been remove exit; someone distracted me at the time on ICQ, can't remember who though probably FireFly ;)

SirSteve 02-02-2002 04:57 PM

Do you remember which file that was in?


All times are GMT. The time now is 10:23 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.01472 seconds
  • Memory Usage 1,806KB
  • 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_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete