Home arrow Forum
Cannot publish static content to front page after Mambo-SMF installation
  Welcome, Guest. Please login or register.
December 02, 2008, 07:29:49 PM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: Cannot publish static content to front page after Mambo-SMF installation « previous next »
Pages: [1] Go Down Print
Author Topic: Cannot publish static content to front page after Mambo-SMF installation  (Read 1804 times)
Brat
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Cannot publish static content to front page after Mambo-SMF installation
« 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?
Logged
Brat
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: Cannot publish static content to front page after Mambo-SMF installation
« Reply #1 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?
Logged
Pages: [1] Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: Cannot publish static content to front page after Mambo-SMF installation « previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved.
TERMS OF USE