Problem with NBS installation - NBS






 

 

Problem with NBS installation - NBS

View Full Version : Problem with NBS installation


korbn
13-Jul-2006, 06: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
14-Jul-2006, 02:05 AM
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
14-Jul-2006, 02:41 AM
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
14-Jul-2006, 03:29 AM
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
14-Jul-2006, 04:33 AM
Try this fix (http://www.nbsdesignz.com/forums/showpost.php?p=55971&postcount=8) to fix your admin problem.

Derek

Derek
14-Jul-2006, 04:34 AM
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