How to convert PHP-Fusion to SMF....need solution to errors

Started by razorblitz07, March 16, 2007, 10:16:51 PM

Previous topic - Next topic

razorblitz07

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.


razorblitz07

Get rid of the errors so that I can successfully convert my PHP-Fusion forum into SMF.

Orstio

What was the last thing you did before the errors began?

razorblitz07

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

Orstio

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?

razorblitz07

Yes, I'm using SSI.  I'm using the SSI.php file from the SMF package.

Orstio

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?

razorblitz07

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

Orstio

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?

razorblitz07

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?

Orstio

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.


Orstio

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.

razorblitz07

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?

Orstio

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.

Advertisement: