Firefox PHP

Phorum 3 hack to Phorum 5

Posted by Tante Moege 
Phorum 3 hack to Phorum 5
January 13, 2007 11:52AM
Before upgrading to Phorum 5.1.6 I had a nice little forum with a shout box on one side. The neat part about it was that it used the username from the forum. I must admit that I had help building the integration.

After updating that does not work anymore. Would somebody be kind enough to help me remodelling the code so that it will run again?


chdir("../");
require "./common.php";
print '<input type="hidden" name="user" value="'.$phorum_user['username'].'">';


Thanks in advance
Tante Moege
Re: Phorum 3 hack to Phorum 5
January 14, 2007 11:25AM
try $PHORUM["user"]["username"]

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Phorum 3 hack to Phorum 5
January 15, 2007 03:15PM
Quote
brianlmoon
try $PHORUM["user"]["username"]

That gave me;

Warning: Cannot modify header information - headers already sent by (output started at /forum/shout/maks_form.php:5) in /forum/include/users.php on line 180

Have I made some kind of configuration error in the forum?
Re: Phorum 3 hack to Phorum 5
January 15, 2007 04:13PM
No, you're trying to send header information after having sent page information. Search this forum or google for that error message for more info.

The easiest way to work around this, is adding ob_start() to the start of your scripts.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Phorum 3 hack to Phorum 5
January 17, 2007 12:19PM
Quote
mmakaay
The easiest way to work around this, is adding ob_start() to the start of your scripts.

The easiest way was perfect.

Thanks a lot both of you.
Sorry, only registered users may post in this forum.

Click here to login