View Full Version : Upgraded code from v2.2.2 to v2.2.4
Jawelin
03-12-2002, 10:00 PM
Hi.
As many discussed here, I'm out now with the awaited upgrade hack from VBulletin v2.2.2 to the lastest available release.
First of all, thanks to PPN for the idea and his last good job.
But I did it myself as I need it now and somewhere else was said it shouldn't be released before a week ... (see here (https://vborg.vbsupport.ru/showthread.php?postid=227060#post227060))
Hwr. I wouldn't be faster than anybody; simply I did it for my needs and just tried to publish here... :rambo:
Note: the 2.2.3(b/c) was a very 'strange' and dynamic release. The newer and lastest 2.2.4 seems much more 'stable' as the last four days never changed.
Hwr. please be always updated following vBulletin 2 Bug Reports (http://www.vbulletin.com/forum/forumdisplay.php?s=&forumid=19) and vBulletin 2 Troubleshooting and Problems (http://www.vbulletin.com/forum/forumdisplay.php?s=&forumid=38)...
This procedure should only replace the 'upload from scratch' part in updating VBulletin.
You shall apply the same the upgradeXX.php and replace templates.
Hopefull, ASAP, I'll write down a similar text for template upgrades from 2.2.2
Exactly, versions reported here are:
- VBulletin v2.2.2 of Feb 4, 2002
- VBulletin v2.2.4 of Mar 12, 2002
Please pay attention because, each new release, within next 2-3 days some files are often modified. So, be sure you have downloaded from http://www.vbulletin.com/members the very lastest release.
Ok. Let me know any problem or addon you could find.
Thanks
Flogge
03-13-2002, 03:00 PM
cool :) will update l8er ... THX for your work!
Flogge
wooolF[RM]
03-13-2002, 05:19 PM
]too late... allready updated myself ;)
nice work anyway!
Erwin
03-13-2002, 05:37 PM
Already did it with Araxis Merge last night, but well done! :)
mewgood
03-13-2002, 05:39 PM
nice
finally someon make it.
Logician
03-13-2002, 05:44 PM
was waiting for it..;) Thx for sharing! :)
Jawelin
03-13-2002, 05:56 PM
Too late... ;) Sorry.
But as said elsewhere, first somebody - me too - prepared the code for 2.2.3, later for 2.2.3b and VB developers said should be better to wait for at least a week.
Meanwhile 2.2.4 raised and now the week is expired... :)
That's all.
Bye
P.S. I would use a tag: teach people to fish instead of giving them fishes...
Lesane
03-13-2002, 06:43 PM
Nice work Jawelin, thanks.
okrogius
03-13-2002, 07:58 PM
Just one smiley to describe it all... :D
okrogius
03-13-2002, 11:19 PM
Great work. Someone should stick this for sometime IMO.
Vivi Ornitier
03-13-2002, 11:57 PM
I have a questio about upgrating and all. Do i just use this hack and i'm set? or do i do this hack first, then use the upgrade files? Or do i use the upgrade files and use the hack?? nice hack tho nonetheless!
Erwin
03-14-2002, 12:06 AM
Use the hack, then run upgrade16.php and upgrade17.php to update your templates. You can download these from vbulletin.com
Vivi Ornitier
03-14-2002, 12:47 AM
what if there's a whole bunch of things that i can't find with this hack? Cause i have way too many hacks myself? Should i not upgrade at all? Or should i just re-install with the 2.2.4 version and backup the database so my posts aren't lost? ahhhhh ..nooooooo!!!!
Erwin
03-14-2002, 01:07 AM
Download a file comparison utility like Araxis Merge, and just use it to copy hacks over. It is actually faster than manually doing it.
If you just install 2.2.4 (ie. upload the files and run install) you will lose all your hacks.
Vivi Ornitier
03-14-2002, 02:32 AM
exactly, that's my pint. Araxis Merge costs moeny I believe so that kinda sux. I don't think hacks for 2.2.4 will be much different than 2.2.2 so i won't both upgrading now since all my hacks will be screwed. I'll wait for 3.0.0 or something and i'll switch completely and start hacking over agaain. thx anyway!
Twig Deez
03-15-2002, 02:51 AM
yeah, thanks for this. :)
i already upgraded myself,
but i was interested to check the changes out here regardless.
Tim Wheatley
03-15-2002, 04:25 PM
What templates are modified by the upgrade files?
VolSports
03-15-2002, 05:55 PM
i only ran upgrade17.php....did i screw something up? can i just run upgrade16.php and then upgrade17.php again? What Do I Do?
Tim Wheatley
03-16-2002, 08:08 AM
Your text file also doesn't include line breaks for me - anyone else?
Erwin
03-16-2002, 08:12 PM
Originally posted by Tim Wheatley
What templates are modified by the upgrade files?
From here:
http://www.vbulletin.com/forum/showthread.php?s=&threadid=41256
From 2.2.2 to 2.2.3
Changed Templates
Note: Upgrading will not overwrite any of your custom templates. If you have customized any template that is listed as 'modified' below, we seriously recommend using the 'revert' option to return them to the default template, then re-applying your customizations.
Modified templates
Postbit_signature - added in a newline character
forumhome, navbar - minor javascript changes
editpost, modifyavatar, newreply, newthread -- enctype="multipart/form-data" was replaced with $enctype
You can view the new templates from in the control panel by clicking on the 'view original' next to your custom template.
And from here:
http://www.vbulletin.com/forum/showthread.php?s=&threadid=41570
From 2.2.3 to 2.2.4
Changed Templates
None
Tim Wheatley
03-16-2002, 08:17 PM
Oh by the way, the line breaks are in your file, it was a problem my end. Thanks for the info. :)
VolSports
03-16-2002, 08:41 PM
Originally posted by VolSports
i only ran upgrade17.php....did i screw something up? can i just run upgrade16.php and then upgrade17.php again? What Do I Do?
any one?
Psychdrone
03-16-2002, 09:30 PM
isn't the only thing this upgrade fixes is a problem with guest posting?
If you don't allow you guests to post, then is shouldn't be a problem right?
X-Fan
03-17-2002, 10:31 PM
After using this hack to do the upgrade, my "New Post" button has completely disappeared, and the "Edit Reason" field has stopped working.
Would anyone have any ideas as to what's happened?
Jawelin
03-20-2002, 07:49 AM
Just a little upgrade.
As usual, in the very next days after a release, something changes.
Well. Now (first on yesterday's release) on VB 2.2.4 was changed memberlist.php.
I could suggest you to re-download the 2.2.4 version and entirely upload that file to your forumhome directory or, apply this new change on your 2.2.4 version:
In memberlist.php, replace
if ($ltr==$letter) {
eval("\$letterbits .= \"".gettemplate("memberlist_letterselected")."\";");
} else {
eval("\$letterbits .= \"".gettemplate("memberlist_letter")."\";");
}
with
if ($ltr==$letter) {
eval("\$letterbits = \"".gettemplate("memberlist_letterselected")."\";");
} else {
eval("\$letterbits = \"".gettemplate("memberlist_letter")."\";");
}
That's all.
Hope this could be useful... again.
Bye
:knockedout:
Lesane
03-20-2002, 07:54 AM
Originally posted by Jawelin
In memberlist.php, replace
if ($ltr==$letter) {
eval("\$letterbits .= \"".gettemplate("memberlist_letterselected")."\";");
} else {
eval("\$letterbits .= \"".gettemplate("memberlist_letter")."\";");
}
with
if ($ltr==$letter) {
eval("\$letterbits = \"".gettemplate("memberlist_letterselected")."\";");
} else {
eval("\$letterbits = \"".gettemplate("memberlist_letter")."\";");
}
That's all.
Hope this could be useful... again.
Bye
:knockedout:
Lol, the replacing code is the same.
Jawelin
03-20-2002, 08:12 AM
Originally posted by Lesane
Lol, the replacing code is the same.
NO! :laugh: :laugh: :laugh:
You missed a dot!!! :lick:
(first, there was a concat dot '.=' .... last there was only the assignment '=' in both template eval )
:D
Lesane
03-20-2002, 08:19 AM
haha, dam.... :D
*runs to store and buys some glasses* ;)
DiSS Troya
03-21-2002, 10:49 PM
what folder am i supppose to be puting this into, cause it's not working in the admin folder..
Jawelin
03-22-2002, 09:44 AM
Originally posted by DiSS Troya
what folder am i supppose to be puting this into, cause it's not working in the admin folder..
:ermm:
You can put it into your TEMP dir... :cool:
It's a .txt file to edit and follow instructions, not a .php script to run...
:knockedout:
P.S.: this is needed ONLY if you have an hacked board... of course. Otherwise use the normal upgradeXX.phps .... :knockedout:
Jawelin
03-25-2002, 02:19 PM
As promised, here is the complete (small... ;)) TEMPLATE list affected by the upgrade v2.2.2 -> v2.2.4 process.
These are all the (default) templates automatically updated by the upgradeXX.php procedure. But if you have customized any of them, you won't get the custom version updated, only the default one.
So, you shall upgrade yourself all custom templates with
the following scheme (I used the same notation of the php code).
Hope it helps.
Thanks
Marshalus
03-27-2002, 09:08 PM
Thanks for the great hack, I've got everything working, except when I post something new, it gives me this error.
Database error in vBulletin 2.2.4:
Invalid SQL: SELECT title FROM thread WHERE threadid=
mysql error: You have an error in your SQL syntax near '' at line 1
mysql error number: 1064
Date: Wednesday 27th of March 2002 05:10:14 PM
Script: http://www.federationstudios.net/forums/forums/newthread.php
Referer: http://www.federationstudios.net/forums/newthread.php?s=&action=newthread&forumid=23
Any ideas?
Marshalus
03-29-2002, 02:55 AM
Nevermind, it had to do with a DB editing line that I forgot to reapply my donations hack to.
Marshalus
03-29-2002, 11:09 PM
Any idea why my un-edited templates are no longer shown in the edit template script?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.