Raggaer
Godly Member
Hello, i recently started using Znote aac, amazing! I made this news system for my ots!
- Photos -
*Add news system ( needs admin )!
*Index view
- Install -
Download attach
Add index.php and addnews.php to your znote folder
Add this query
you need to add the button/link:
Open:
\layout\widgets\loggedin.php
Change:
with this:
there we go, hope you like this very simple system :-3
- Photos -
*Add news system ( needs admin )!
*Index view
- Install -
Download attach
Add index.php and addnews.php to your znote folder
Add this query
SQL:
CREATE TABLE IF NOT EXISTS `znote_news` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(20) NOT NULL,
`body` text NOT NULL,
`date` date NOT NULL,
`author` varchar(30) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
you need to add the button/link:
Open:
\layout\widgets\loggedin.php
Change:
PHP:
<li>
<a href='admin.php'>Admin Page</a>
</li>
PHP:
<li>
<a href='admin.php'>Admin Page</a>
<a href='addnews.php'>Admin Add News</a>
</li>
there we go, hope you like this very simple system :-3
Attachments
-
News.rar1.2 KB · Views: 444 · VirusTotal
Last edited by a moderator: