Home N-13 News Forums Help Search
RegisterForgot password?
Login with facebook , twitter and google account aningbo
I have the following error at the top of the page how to fix it Rayc

Latest N-13 News 4.0.2

What is N-13 News?
Where can I get help?

Forums N-13 News N-13 News 3.3
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
Suishide
Posted on 30 Jan 2010, 09:13:50

Access: Member
Total Posts: 6
Joined: 2010-01-30

i think i'll have to give that a go then, your script is by far the best one so far for what i need. previously i have tried phpns which works well, but doesn't let you sort the articles by date and the admin panel is overly complicated.

if i need to continue my search, is there a specific name or term for cms systems which are used by 'embedding' articles into existing pages by copying in php code?

thanks alot for your swift help! :)
#1775
Chris
Posted on 30 Jan 2010, 09:30:40

Access: Admin
Total Posts: 1349
Joined: 2006-05-19

I was just thinking, a much easier way to always show the menu would be to edit the mysqliclass.php file and change this

Code:
    public function getaccess($section){
        if($_SESSION['userlogged20'] == "true"){
            global $newsusers, $newsaccess;
            $allowed = self::fetch("SELECT $newsaccess.$section AS allowed FROM $newsaccess INNER JOIN $newsusers ON $newsaccess.uid = $newsusers.access WHERE $newsusers.user = ?", $_SESSION['name']);
            if($allowed['0']['allowed'] == "1"){
                return true;
            }else{
                return false;
            }
        }else{
            return false; 
        }
    }


to this

Code:
    public function getaccess($section){
        if($_SESSION['userlogged20'] == "true"){
            return true;
        }else{
            return false; 
        }
    }
#1776
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
Network-13.com © 2011