-
AuthorPosts
-
July 13, 2010 at 10:28 pm #152538
Hi,
I use the ai_contactsafe component on my sites to embed contact forms into articles, unfortunately it seems the Rasite template does not have the <jdoc:include type=”message” /> (section message) in the index,php file for this to work. I need to add these 2 lines to the index,php file:<jdoc:include type=”message” />
<jdoc:include type=”component” />Wherever I add these lines into the template index.php file the whole site crashes reporting errors at the location I pasted the above code.
I am no web developer but I can tinker a little and copy and paste code. I haven’t found anything on the forum or google that helps solve this issue so any help would be appreciated.
Thanks
aaronfarias Friendaaronfarias
- Join date:
- July 2010
- Posts:
- 132
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 12 times in 12 posts
July 13, 2010 at 11:52 pm #349825I believe it depends where you are adding these lines. Try adding it above all the php and see how it turns out.
July 14, 2010 at 9:29 am #349886This is the index.php content below, I can’t see where I need to add the 2 lines here:
// no direct access
defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );include_once (dirname(__FILE__).DS.’libs’.DS.’ja.template.helper.php’);
if( defined(‘_DEMO_MODE_’) ) {
$tmplTools = JATemplateHelper::getInstance($this, array(‘ui’, JA_TOOL_SCREEN, JA_TOOL_MENU, JA_TOOL_COLOR, ‘main_layout’, ‘direction’));
} else {
$tmplTools = JATemplateHelper::getInstance($this, array(‘ui’, JA_TOOL_SCREEN, JA_TOOL_MENU, ‘main_layout’, ‘direction’));
}//Calculate the width of template
$tmplWidth = ”;
$tmplWrapMin = ‘100%’;
switch ($tmplTools->getParam(JA_TOOL_SCREEN)) {
case ‘auto’:
$tmplWidth = ‘97%’;
break;
case ‘fluid’:
$tmplWidth = intval($tmplTools->getParam(‘ja_screen-fluid-fix-ja_screen_width’));
$tmplWidth = $tmplWidth ? $tmplWidth.’%’ : ‘90%’;
break;
case ‘fix’:
$tmplWidth = intval($tmplTools->getParam(‘ja_screen-fluid-fix-ja_screen_width’));
$tmplWrapMin = $tmplWidth ? ($tmplWidth+1).’px’ : ‘771px’;
$tmplWidth = $tmplWidth ? $tmplWidth.’px’ : ‘770px’;
break;
default:
$tmplWidth = intval($tmplTools->getParam(JA_TOOL_SCREEN));
$tmplWrapMin = $tmplWidth ? ($tmplWidth+1).’px’ : ‘981px’;
$tmplWidth = $tmplWidth ? $tmplWidth.’px’ : ‘980px’;
break;
}$tmplTools->setParam (‘tmplWidth’, $tmplWidth);
$tmplTools->setParam (‘tmplWrapMin’, $tmplWrapMin);//Main navigation
$ja_menutype = $tmplTools->getMenuType();
$jamenu = null;
if ($ja_menutype && $ja_menutype != ‘none’) {
$japarams = new JParameter(”);
$japarams->set( ‘menutype’, $tmplTools->getParam(‘menutype’, ‘mainmenu’) );
$japarams->set( ‘menu_images_align’, ‘left’ );
$japarams->set( ‘menupath’, $tmplTools->templateurl() .’/ja_menus’);
$japarams->set(‘menu_images’, 1); //0: not show image, 1: show image which set in menu item
$japarams->set(‘menu_background’, 1); //0: image, 1: background
$japarams->set(‘mega-colwidth’, 200); //Megamenu only: Default column width
$japarams->set(‘mega-style’, 3); //Megamenu only: Menu style.
$japarams->set(‘rtl’,($tmplTools->getParam(‘direction’)==’rtl’ || $tmplTools->direction == ‘rtl’));
$jamenu = $tmplTools->loadMenu($japarams, $ja_menutype);
}//End for main navigation
$layout = $tmplTools->getLayout ();
if ($layout) {
$tmplTools->display ($layout);
} -
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by dismoon 14 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum