PDA

View Full Version : Problem with NBS installation


korbn
07-13-2006, 01:02 PM
Hi,

I have a problem while installing NBS. I followed all the instructions but when I want to connect to the admin page it tells me:

Warning: Smarty error: unable to read resource: "login.tpl" in /data/10/0/108/135/760950/user/778188/htdocs/nbs3/nbs/smarty/Smarty.class.php on line 1093

As well, when I launch new_forum.php :
Warning: Smarty error: unable to read resource: "script_offline.tpl" in /data/10/0/108/135/760950/user/778188/htdocs/nbs3/nbs/smarty/Smarty.class.php on line 1093

There is a problem with the templates. I followed exactly all the instructions in the readme.txt. I don't know what went wrong.

Can somebody help me please? Thanks for your answers! =)

korbn
07-13-2006, 09:05 PM
Sorry, I didn't search on the forum before. I tried the solution that is on this page:
http://www.nbsdesignz.com/forums/showpost.php?p=55947&postcount=3
and it works. Thanks Derek!

korbn
07-13-2006, 09:41 PM
I had another problem. It didn't want to give me access to the admin panel, even when I connected with the admin login.

I had to open admin.php and modify this

$permchk1 = "SELECT user_level FROM " . TABLE_PREFIX . "users WHERE accessname='" . $db->escape_string($_SESSION['accessname']) . "'";
$permchk2 = $db->query($permchk1);
$permchk3 = $db->fetch_array($permchk2);
if ($permchk3['user_level'] != 1)
{
print $lang['no_permission'];
exit;
}

to this:

$permchk1 = "SELECT user_level FROM " . TABLE_PREFIX . "users WHERE accessname='" . $db->escape_string($_SESSION['accessname']) . "'";
$permchk2 = $db->query($permchk1);
$permchk3 = $db->fetch_array($permchk2);
if ($permchk3[0] != 1)
{
print $lang['no_permission'];
exit;
}

The query didn't take the key 'user_level' but only the value

korbn
07-13-2006, 10:29 PM
I talked too fast. I have another problem. Once I open a new forum, if I want to open it, it tells me:

The requested URL /data/10/0/108/135/760950/user/778188/htdocs/nbs3/handler.php was not found on this server.

But handler.php does exist and it has a 777 CHMOD. I can't find the same the bug. Does somebody know what it could be?

Derek
07-13-2006, 11:33 PM
Try this fix (http://www.nbsdesignz.com/forums/showpost.php?p=55971&postcount=8) to fix your admin problem.

Derek

Derek
07-13-2006, 11:34 PM
I talked too fast. I have another problem. Once I open a new forum, if I want to open it, it tells me:



But handler.php does exist and it has a 777 CHMOD. I can't find the same the bug. Does somebody know what it could be?
Can you PM me the contents of your nbs_config.php file so that I can take a look? You can mask out any passwords if you would like. Also a url to the script would be helpful as well.

Thanks,
Derek