• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Znote AAC] Simple news system

Raggaer

Godly Member
Joined
Jul 25, 2012
Messages
1,557
Solutions
8
Reaction score
957
Location
Spain
Hello, i recently started using Znote aac, amazing! I made this news system for my ots!

- Photos -
*Add news system ( needs admin )!
Untitled-2.jpg

*Index view
Untitled-4.jpg

- 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>
with this:
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

Last edited by a moderator:
Approved.

Thanks for your contribution. :)

Tip: Since init.php is included, all variables from config.php is available to use. So you could etc use $config['date'] as date format and thus use same date format on all date related things on Znote AAC. :)
 
Last edited:
Yea I can make that, in my next release, you can delete in mysql database while I make the new version
 
Nice JOB !

Can you make sms shop ? in acc is only PayPall ;/

I think many people need this.

- - - Updated - - -

or multi world system :D

- - - Updated - - -

P.S Znote acc is better than Modern Or Gesior
 
On layouts/widgets/loggedin.php
Use this,
Code:
<li>
                <a href='admin.php'>Admin Page</a></li>
               <li><a href='addnews.php'>Admin Add News</a>

because you put out hit, with li was newline xd
 
Hi,

It's very simple to remove your News!

Just go to your "phpmyadmin" and find at your database -> Zenote, 'zenote_news' and there you can edit or anything as you want.. But also removing it :)
I hope it does for you and everyone.
 
some do not have phpmyadmin and turning off the server to move this with command line is silly XDD. Update your mod please =)
Thanks so much
 
If you dont have PHPMYADMIN you cant even use this, but its ok glad you like it
 
who dont use phpmyadmin running a ot? well maybe someone? xD
 
Most likely the console, but there are other external alternatives such as Navicat, Sequel Pro etc.
 
Gotta be able to edit and delete the news, thanks for the great release though! Helped me a lot.
 
To edit delete just go to phpmyadmin znote_news table..
 
Back
Top