PDA

View Full Version : Php changes after upgrading from vb2 to vb3


getthat
07-24-2004, 08:14 PM
Hi,

A while ago I bought a nice website which was built on vb 2.2.8. It was running very nice until I decided to upgrade my forum to vb 3.0.3.

Just to make sure I installed the whole site on a different domain to test the upgrade process. Upgrading vBulletin worked like a charm ... but unfortunately some of the php scripts don't work anymore.

An index.php and an include.php file are attached.

I guess vb 3.0.3 uses other functions than vb 2.2.8. I already found out that gettemplate is replaced by fetch_template and dooutput is replaced by print_output. If i change these functions I get no php error, but the site shows a white homepage (as if the html code is not loaded from the database). Can someone help me out here ? Is there a list of changes somewhere ?

Getthat

Musicpill
07-24-2004, 09:10 PM
I dont fully understand where you are coming from with this. Do you mean you havent overwritten your files?

getthat
07-24-2004, 09:31 PM
Well, the files in attachment are custom-written files (not from vb), but they are using the functions from vb (and also the config.php file).

Getthat

Reeve of shinra
07-25-2004, 05:56 AM
Did you copy over the templates being called on in these scripts to the new vb3 style?

getthat
07-25-2004, 08:00 AM
Yes, Reeve of Shinra, I did

Colin F
07-25-2004, 08:11 AM
which of these three templates are your selfmade templates?

you can only print_output one template, as there is an exit; or something there, meaning the others wont load.
look at this thread, it might help you: https://vborg.vbsupport.ru/showthread.php?t=62164