PDA


View Full Version : news module - not following "Module Shell Template Options"


eden
07-15-2005, 01:01 PM
news module - not following "Module Shell Template Options"

I've set te option:

Use Module Shell Template
This option will dispaly the output of this Module within your 'adv_portal_module_shell' template.

to NO and it stills display the shell template :(

Brian
07-15-2005, 02:41 PM
If you'll look in your modules/news.php file for this code:
eval('$home[$newsmod[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_module_shell') . '";');

And replace it with this:
if ($newsmod['useshell'])
{
eval('$home[$newsmod[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_module_shell') . '";');
}
else
{
$home["$newsmod['modid']"]['content'] = $modulehtml;
}

Then that should take care of the problem.

eden
07-15-2005, 03:50 PM
I can confirm this happens when you have "Separate news posts?" set to NO