UseBB Community

The official board for UseBB help and discussion

UseBB Community » 1.0 Discussion » Usebb 0.2.3 and PHP5

Usebb 0.2.3 and PHP5

Page: 1

Author Post
Member
Registered: Apr 2004
Posts: 192
Location: Brussels Belgium
First of all Usebb 0.2.3 doesnt work with PHP5. Two simple adjustments can make it php5 compatible. Open the file db_mysql.php that can be found in the sources directory. Then find lines 40 & 41.

//
// Variables in this class
//
var $connection;
var $queries;

and change them to

//
// Variables in this class
//
public $connection;
public $queries;


PS : I'm not 100% the forum will work correct but it seems to do the job.
_______________
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
Do you know which error it returned before changing those lines?

I think it's strange having to change those variabeles to public ones without having to do the same for those in the template class...
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Apr 2004
Posts: 192
Location: Brussels Belgium
It returned that you have to change the "var" commands to "public/private/protected". The board works fine. But if you want I could change every class to the PHP5 method.
_______________
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
Did it return any file name and/or line number? That would be helpful.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Apr 2004
Posts: 192
Location: Brussels Belgium
db_mysql.php line 40
_______________
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
Seems like I need a PHP5 installation to test things... :)
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
At last, the current dev version of 0.3 seems to work fully on PHP 5.0.3. :)
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Nov 2004
Posts: 79
dietrich, that's awesome!!!
now all we need is smileys, heh
im dying to be staff someday, that is my dream
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
Smilies should be in 0.3. But I can't guarantee anything.

To become staff => e-mail contact at usebb.net.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Nov 2004
Posts: 79
if your going to read it, is it not better to post here? All I would say is that I know php/mysql, and that I can do spanish support.

Page: 1

UseBB Community » 1.0 Discussion » Usebb 0.2.3 and PHP5

UseBB Community is powered by UseBB 1 Forum Software