• 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!

[SQL] News System for your WebSite

tatu hunter

Insane Mind~
Joined
Jun 6, 2007
Messages
354
Reaction score
23
Location
Itaporã, Brazil
Hello...

FIRST OF ALL
Works only with SQL-Server based.

I made a news system then I'll release it for everyone who need.
With this system you can add, edit and delete news.
The system work with the accounts in your database, you configure in the install.php what group_id the player need to make a news.

How to use:
  • First open the index.php from your site and at the top add:
PHP:
include "./news/class.php";
  • Second add an include where the news will appear. Add this include:
PHP:
<?php include "./news/noticia.php"; ?>
  • Third make an file news_adm.php at your root website directory and put this:
PHP:
<?php
session_start();
include("./news/class.php");
include("./news/painel.php");
?>

PS: Don't rename the folder "news", put it in your root website directory.

It's all I think, if you cant make it work post a message here to me help you.

ScreenShot:


AdminPanel:





SORRY MY ENGLISH :)
cya...
 

Attachments

Last edited:
This has an adminpanel where you can write the news in I think? If so could you add a screenshot from it plz?
 
I ma having a problem when entering news_admin.php

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at E:\xampp\htdocs\News_admin.php:6) in E:\xampp\htdocs\News_admin.php on line 16

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at E:\xampp\htdocs\News_admin.php:6) in E:\xampp\htdocs\News_admin.php on line 16

I see the login form but it wont log me in.
how come?
how to fix?




And now I get thie when I change the config path in class for the news to work.

"Error when connect to DataBase, check your config if you set the correct information."
but its 100% accurate
 
Last edited:
Back
Top