Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: razorblitz07 on March 16, 2007, 10:16:51 PM

Title: How to convert PHP-Fusion to SMF....need solution to errors
Post by: razorblitz07 on March 16, 2007, 10:16:51 PM
When I'm not logged in:

Warning: Cannot modify header information - headers already sent by (output started at /home/www/9dragonshq.awardspace.com/footer.php:22) in /home/www/9dragonshq.awardspace.com/forum/Sources/Subs-Auth.php on line 312

Warning: Cannot modify header information - headers already sent by (output started at /home/www/9dragonshq.awardspace.com/footer.php:22) in /home/www/9dragonshq.awardspace.com/forum/Sources/Subs-Auth.php on line 313

Warning: Cannot modify header information - headers already sent by (output started at /home/www/9dragonshq.awardspace.com/footer.php:22) in /home/www/9dragonshq.awardspace.com/forum/Sources/Subs-Auth.php on line 314
Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.


When I'm logged in:

(Inside the Shoutbox)
Notice: Undefined variable: action in /home/www/9dragonshq.awardspace.com/infusions/shoutbox_panel/shoutbox_panel.php on line 35

Notice: Undefined variable: step in /home/www/9dragonshq.awardspace.com/infusions/shoutbox_panel/shoutbox_panel.php on line 192

Notice: Undefined variable: sortby in /home/www/9dragonshq.awardspace.com/infusions/shoutbox_panel/shoutbox_panel.php on line 435

Notice: Undefined variable: sortby in /home/www/9dragonshq.awardspace.com/infusions/shoutbox_panel/shoutbox_panel.php on line 615

Warning: Cannot modify header information - headers already sent by (output started at /home/www/9dragonshq.awardspace.com/footer.php:22) in /home/www/9dragonshq.awardspace.com/forum/Sources/Subs-Auth.php on line 312

Warning: Cannot modify header information - headers already sent by (output started at /home/www/9dragonshq.awardspace.com/footer.php:22) in /home/www/9dragonshq.awardspace.com/forum/Sources/Subs-Auth.php on line 313

Warning: Cannot modify header information - headers already sent by (output started at /home/www/9dragonshq.awardspace.com/footer.php:22) in /home/www/9dragonshq.awardspace.com/forum/Sources/Subs-Auth.php on line 314
Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.


The coding:

/home/www/9dragonshq.awardspace.com/forum/Sources/Subs-Auth.php =

// Don't cache this page!
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-cache');


/home/www/9dragonshq.awardspace.com/infusions/shoutbox_panel/shoutbox_panel.php on line 35 =

if (checkrights("S") && $action == "delete" && isNum($shout_id))

/home/www/9dragonshq.awardspace.com/infusions/shoutbox_panel/shoutbox_panel.php on line 192 =

if ($step == "ban")

/home/www/9dragonshq.awardspace.com/infusions/shoutbox_panel/shoutbox_panel.php on line 435 =

echo "[<a href='" . FUSION_SELF . $aidlink . "&amp;step=ban&amp;act=on&amp;sortby=$sortby&amp;rowstart=$rowstart&amp;user_id=" . $data['user_id'] . "' class='side'>" . $locale['fb_010'] . "</a>]";


/home/www/9dragonshq.awardspace.com/infusions/shoutbox_panel/shoutbox_panel.php on line 615 =

echo "[<a href='" . FUSION_SELF . $aidlink . "&amp;step=ban&amp;act=on&amp;sortby=$sortby&amp;rowstart=$rowstart&amp;user_id=" . $data['user_id'] . "' class='side'>" . $locale['fb_010'] . "</a>]";

Need help please.
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: Orstio on March 16, 2007, 10:22:30 PM
What are you trying to do?
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: razorblitz07 on March 16, 2007, 10:24:38 PM
Get rid of the errors so that I can successfully convert my PHP-Fusion forum into SMF.
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: Orstio on March 16, 2007, 10:46:37 PM
What was the last thing you did before the errors began?
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: razorblitz07 on March 16, 2007, 11:08:02 PM
Uploaded a new shoutbox_panel.php and parser.php into the shoutbox_panel infusion folder.  The shoutbox I use can be seen on my GunZ fansite:  http://gunzunlimited.com
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: Orstio on March 16, 2007, 11:11:45 PM
I guess the part I don't understand is why you are getting errors from SMF on a PHP-Fusion page?  Are you using SSI on a PHP-Fusion page?
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: razorblitz07 on March 16, 2007, 11:46:59 PM
Yes, I'm using SSI.  I'm using the SSI.php file from the SMF package.
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: Orstio on March 16, 2007, 11:53:55 PM
And how are you using the SSI.php file?  What are you using it for?  If you remove your use of the SSI.php file, does the error go away?
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: razorblitz07 on March 17, 2007, 12:14:30 AM
Like I said, I'm just using the SSI.php file because it is included in the latest SMF package.  I tried removing it but the errors were still there.  I also have ssi_examples.php and ssi_examples.shtml.

Could I ask why the SSI file is even in the SMF package?

Edit:  The website is here http://9dragonshq.awardspace.com/forum/index.php
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: Orstio on March 17, 2007, 12:23:01 AM
SSI.php is there for help with integrating SMF functions in other applications.

I'm wondering why your PHP-Fusion page is appearing where your forum should be?  Are you trying to convert your PHP-Fusion to SMF, or are you trying to integrate SMF into PHP_Fusion?
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: razorblitz07 on March 17, 2007, 12:38:31 AM
I'm trying to integrate SMF into PHP-Fusion.  I want to convert my PHP-Fusion forums into SMF.

If you are trustworthy enough, could we chat on a messenger and you could get on my website control panel and figure out the problem?
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: Orstio on March 17, 2007, 12:42:50 AM
SMF won't integrate with PHP-Fusion without some major changes to one or the other.  There are too many variable and function name collisions.
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: razorblitz07 on March 17, 2007, 12:45:13 AM
So could you help me?
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: Orstio on March 17, 2007, 12:48:15 AM
The problem is that you are trying to integrate two scripts that use variables that have the same name, but are used for different things in each script.

Converting from PHP-Fusion to SMF is possible, but I would not recommend trying to use both together.
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: razorblitz07 on March 17, 2007, 12:54:21 AM
But I want to do it.  It would make my site a lot better.  That 9Dragons site was a testing site for it.

I read in one tutorial that I had to edit some files in the Sources folder inside SMF but I didn't quite get that step.  Umm, is there anyway you could tell me how to combine both PHP-Fusion and SMF together.  If not, is there another forum system I can use to combine with PHP-Fusion?
Title: Re: How to convert PHP-Fusion to SMF....need solution to errors
Post by: Orstio on March 17, 2007, 01:01:48 AM
As far as I know, this hasn't been done successfully.  If you modify SMF for the integration, you'll end up needing to repeat it each time you upgrade SMF.  You will also have problems with mods you install in SMF, as they are very likely to use the same variables as the rest of SMF.

Likewise, if you modify PHP-Fusion, you'll have similar problems with upgrading and adding Infusions.