acabei agora de instalar o iSyndicat e da me este erro:
Fatal error: Call to a member function print_adsense() on a non-object in /home/forumsan/public_html/linktoapple/classes/DirSmarty.php on line 48
Nao faço a menor ideis do que será...
vou postar aqui o file a ver se alguem ajuda.
<?php
/***************************************************************************
* MAFiASCRiPTS
* Implements class-connector between script code and smarty class
***************************************************************************/
require_once('smarty/Smarty.class.php');
class gDirSmarty extends Smarty
{
function gDirSmarty()
{
global $gDirConfig;
$this->Smarty();
$this->template_dir = $gDirConfig['templates'].$gDirConfig['tmpl'].'/';
$this->compile_dir = 'tmp/';
$this->config_dir = 'configs/';
$this->cache_dir = 'cache/';
$this->caching = false;
}
}
$gDirSmarty = new gDirSmarty();
/** global arrays used in the script **/
$gDirSmarty->assign_by_ref('config', $gDirConfig);
$gDirSmarty->assign_by_ref('lang', $gDirLang);
$gDirSmarty->assign_by_ref('editor', $gDirEditor);
$gDirSmarty->assign_by_ref('tab', $gTab);
/** register modifiers **/
$gDirSmarty->register_modifier("sslash", "stripslashes");
/** register functions **/
$gDirSmarty->register_function("navigation", "navigation");
$gDirSmarty->register_function("convert_str", "convert_str");
$gDirSmarty->register_function("text_to_html", "text_to_html");
$gDirSmarty->register_function("text_html", "text_html");
$gDirSmarty->register_function("in_array_exist", "in_array_exist");
$gDirSmarty->register_function("array_to_lang", "array_to_lang");
$gDirSmarty->register_function("print_stars", "print_stars");
$gDirSmarty->register_function("print_pagerank", "print_pagerank");
$gDirSmarty->assign('templates', $gDirConfig['base'].$gDirConfig['dir'].$gDirConfig['templates'].$gDirConfig['tmpl']);
$gDirSmarty->assign('img', "{$gDirConfig['base']}{$gDirConfig['dir']}{$gDirConfig['templates']}{$gDirConfig['tmpl']}/img/");
$gDirSmarty->assign('adsense', $gDirLayout->print_adsense());
?>
cumps