Shoutbox
Moderators: PaGaisu, Vegeta, TM-Patrol
Shoutbox
Apparently, some of you were interested on the Onyx shoutbox and wanted to integrate the same in their manialink.
So better to share my code.
Requirements:
- http server with php5 (maybe it works on php4, i did not try)
- MySql (if you have another database, you ll have to do some adjustement)
Php code: http://www.dndnetworks.com/onyx/manialink/shoutbox.txt (to be saved as php file)
Sql code: http://www.dndnetworks.com/onyx/maniali ... ox.sql.txt
Example: Onyxcolor>
Note: I marked in the php code where you should change the coordinates for the shoutbox location.
So better to share my code.
Requirements:
- http server with php5 (maybe it works on php4, i did not try)
- MySql (if you have another database, you ll have to do some adjustement)
Php code: http://www.dndnetworks.com/onyx/manialink/shoutbox.txt (to be saved as php file)
Sql code: http://www.dndnetworks.com/onyx/maniali ... ox.sql.txt
Example: Onyxcolor>
Note: I marked in the php code where you should change the coordinates for the shoutbox location.
- jimos94
- happy cruiser
- Posts: 122
- Joined: 06 Jan 2007 22:52
- Owned TM-games: TMUF
- Manialink(s): fun
- Contact:
Re: Shoutbox
Good Job Pagaisu, kool design 

http://www.tm-planet.net/ Server hosting, Interviews, Events and more 

Re: Shoutbox
Thanks for the chat Pag
But can someone explain me how to put our informations about SQL ? Really difficult, first time using it

But can someone explain me how to put our informations about SQL ? Really difficult, first time using it

Re: Shoutbox
If u have phpmyadmin, it s pretty straight forward.
u just need to copy/paste the SQL after having selected/created a database.
u just need to copy/paste the SQL after having selected/created a database.
Re: Shoutbox
I've already made this chat with kev717's help. But now, I've got full errors on the php code 
(sorry bad english)

(sorry bad english)
- Terron
- speedy pilot
- Posts: 445
- Joined: 02 Jun 2007 15:00
- Owned TM-games: all full+some betas
- Location: Earth
Re: Shoutbox
Code: Select all
$http_location="http://".$_SERVER["HTTP_HOST"].$_SERVER["PHP_SELF"];
STALKER-SVK
XASECO STALKER's Tools
XASECO STALKER's Tools
Re: Shoutbox
U have not to change http_location.
The only parameters to modify are the following :
Change this and create the right tables in the right location of ur DB using the sql file.
It s quite basic, u can do it manually if u prefer. The sql just create a table:
The only parameters to modify are the following :
Code: Select all
/** To change: database details **/
$db_host = "localhost"; // ip:port
$db_user = "DATABASE_USERNAME";
$db_pass = "DATABASE_PASSWORD";
$db_name = "DATABASE_NAME";
/** end **/
It s quite basic, u can do it manually if u prefer. The sql just create a table:
Code: Select all
CREATE TABLE `manialink_shoutbox` (
`id` mediumint(8) NOT NULL auto_increment,
`login` varchar(255) collate utf8_unicode_ci NOT NULL,
`nickname` varchar(255) collate utf8_unicode_ci NOT NULL,
`lang` varchar(10) collate utf8_unicode_ci NOT NULL,
`path` varchar(255) collate utf8_unicode_ci NOT NULL,
`message` varchar(255) collate utf8_unicode_ci NOT NULL,
`timestamp` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=680 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=680 ;
- Terron
- speedy pilot
- Posts: 445
- Joined: 02 Jun 2007 15:00
- Owned TM-games: all full+some betas
- Location: Earth
Re: Shoutbox
I did it but when i want to view it by in-game browser, it says INVALID MANIALINK ILE, I have also registered it at playerpage
STALKER-SVK
XASECO STALKER's Tools
XASECO STALKER's Tools
Re: Shoutbox
Can u give me the url of ur manialink ? i ll take a look on the xml which has been generated by the php.
-
- cyclist
- Posts: 46
- Joined: 07 Jul 2009 15:23
- Owned TM-games: TMUF
- Manialink(s): tmtp:///:Gooblaster
Re: Shoutbox
Errr.... How do you install this? lol..
I know... Im noob.. Could anyone be so kind as to help me out here?
I know... Im noob.. Could anyone be so kind as to help me out here?

My Manialink: Gooblastercolor>
Re: Shoutbox
You need to have a minimum of knowledge on php and DB.
Can u find a friend to explain u this ?
Can u find a friend to explain u this ?