• 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] Advanced News System

Peacy

Member
Joined
Mar 20, 2008
Messages
488
Reaction score
10
Location
The Netherlands
Hi,

I'm not active with OT. But today I was looking through the forums and found out that Znote created a new AAC. Since there was no news system I decided to create one of my own and share it with you guys.

Screenshots
Znote News System - Imgur

Instructions
To install the News system:
  1. Extract the ZIP in your htdocs or (WWW folder).
  2. Import the mysql.sql file to your database (phpMyAdmin).
  3. You're done.

Let me know what you think about it.

Yours,
Peacy
 

Attachments

Last edited by a moderator:
It looks great in the pics, but i got this in news page
News
Create a new article."; } } while($row = mysql_fetch_array($result)){ echo '
'; echo '
'.$row['title'].'
'; echo '
Posted on '.date('F j, Y',$row['date']).''; if(!empty($row['author'])){ echo ' by '.$row['author'].'
'; }else{ echo '
'; } echo '
'; echo $row['content']; echo '
'; echo ''; } ?>
 
guys.. I've extracted the whole folder to my Uniservermap, imported the mysql file.. it's giving the signs @up, and when I want to add an article it says:

Not Found

The requested URL /\"http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/admin-newnews.php\" was not found on this server.

That's odd cuz it's right in my folder..
Can be a little mistake im making but I followed the instructions that Peacy gave me.
Can someone maybe help me out here? Thanks in advance

- - - Updated - - -

Gosh.. I got to stop posting before checking some more.. I found it, the link was just a little mess (no offence) :)
 
The requested URL /\"http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/admin-newnews.php\" was not found on this server.

Got this problem, too. Please someone help (=
Rep ++
 
in index.php and admin-news.php

replace
<a href=\"http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/admin-newnews.php\">Create a new article</a>
with
<a href=\'http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/admin-newnews.php\'>Create a new article</a>
 
up dindn't worked for me ):
but I change all links to: "<a href='admin-newnews.php'>Create a new article</a>"
Now I can add news, but on the main page there's still the error:
Create a new article."; } } while($row = mysql_fetch_array($result)){ echo '
'; echo '
'.$row['title'].'
'; echo '
Posted on '.date('F j, Y',$row['date']).''; if(!empty($row['author'])){ echo ' by '.$row['author'].'
'; }else{ echo '
'; } echo '
'; echo $row['content']; echo '
'; echo ''; } ?>
 
up dindn't worked for me ):
but I change all links to: "<a href='admin-newnews.php'>Create a new article</a>"
Now I can add news, but on the main page there's still the error:

Can't get it to work either, but mate.. Znote AAC has had an update.
The newest update has a News System, just saying :)
 
How to remove Znote news table i wanna put that mysql , but i have already znote news table.

- - - Updated - - -

nvm fixed the table. But i don't understand i putted that winrar zip in htdocs and i see no changes and can you make a fast video please? or put pics you only putted pics how it sees at website.
 
Most of you get some errors, right?

Open up all news files and add "php" after every "<?". Worked for me
 
Please load news from cache instead of doing clean queries against the database.

PHP:
$cache = new Cache('engine/cache/news');
$news = $cache->load();

if ($news) {
// loop through news array and display the news
}

After creating news in admin panel:
PHP:
$cache = new Cache('engine/cache/news');
$news = mysql_select("SELECT * FROM znote_news;");
$cache->setContent($news);
$cache->save();
 
Back
Top