|
Title: Cannot publish static content to front page after Mambo-SMF installation Post by: Brat on May 27, 2005, 12:57:09 AM Hello. I tried to do a search for this but couldn't find anything.
There seems to be a quirk that occurs when Mambo-SMF modifies Mambo's index.php file. Basically, with the altered file, I cannot publish static content to the front page; I can do this with the normal index.php file in place. I'm no coding expert, but I think the problem may lie in the following code: Code: ob_start(); if ($path = $mainframe->getPath( 'front' )) { $task = mosGetParam( $_REQUEST, 'task', '' ); $ret = mosMenuCheck( $Itemid, $option, $task, $gid ); if ($ret) { require_once( $path ); } else { mosNotAuth(); } } else { echo _NOT_EXIST; } $_MOS_OPTION['buffer'] = ob_get_contents(); ob_end_clean(); Again, because I'm not an expert, I really can't swear this is it. I just know that, somewhere in the hacked Mambo index file, there is code that is interfering with the ability to publish static content to the front page. It's as if this file is forcing Mambo to default to its "regular" front page. For now, I've had to backup the hacked index.php file and restore the original one. Any suggestions? Title: Re: Cannot publish static content to front page after Mambo-SMF installation Post by: Brat on May 28, 2005, 01:29:54 PM Okay, I've done some fiddling in Mambo's backend and have published the desired static content as a normal content item and marked it for Front Page.
ALMOST exactly what I need, except one problem... I have my Frontpage settings such that NO titles are supposed to be showing (I only want the actual content to show). Unfortunately, with the index.php hack, the titles that are turned off in the backend are being published in the front end. How do I alter the code so that the hacked index.php "honors" the settings I have in the backend?
Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved. |