By Apovtx (manialink: funteamcolor>)
Greek maniazones moderator
Hi all this is my first script i 've made for manialinks!
I started to learn php a month ago so don't expect too much:P
Well this script helps you to add news in the manialink without change the *.xml or php or anything!
You can add news through a web page and they will automatically been added to your manialink.
To install this script you have to make a SQL database or if you already use one (for ex if you have a shoutbox) you can create a table inside the database by importing the news.sql file included in the zip
After that you must rename your manialink from name.xml to name.php.
Then you must put this code in the start of the page berore the <manialink> tag:
Code: Select all
<? header("Content-type: application/xhtml+xml"); require 'news/config.php'; echo "<?xml version='1.0' encoding='utf-8'?>\n"; ?>
Also after the manialink tags
for ex these:
you have to input this code:
Code: Select all
<? include 'news/news.php'; ?>
ATTENTION: In this version i couldn't intergrate a security system so anyone can add news if he find the newsinput.php so you should put it somewhere hm....hidden:P I'll try to change this in the next versions
ATTENTION 2: The zip should be extracted in the main folder of the manialink (the newsinput.php can be placed anywhere in the webserver)
HOW TO MAKE IT WORK
After having done all things above you should open the config.php inside the news folder that included in the zip
There you must change the database details. There you can change also the location of the whole frame and costumize it as you want. Then you must change the database details in the newsinput.php(the same details as the previous one)
Download it from here
Readme file included
EDIT: UPDATED Password check added. Link changed. Config Changed
Now you don't need to change anything in the newsinput.php. Also The newsinput must be placed outside the news folder
For more information contact me on: