Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

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

Forums N-13 News N-13 News 3.3
1 2 3 4 5 6 7 8 9
Suishide
Posted on 30 Jan 2010, 21: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, 21:30:40

Access: Admin
Total Posts: 1395
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 © 2013