Joomla module

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
User avatar
biza
Peon
Peon
Posts: 25
Joined: 17 Jul 2007, 17:17
Location: Mali Lošinj, Croatia
Contact:

Joomla module

Post by biza » 17 Aug 2007, 18:39

Well, i hope this is right place for this question/request.
I have Joomla! powered website and i would like to have on my main page Mana World server status (how many players is online) like on this web page.
If somebody knows how to create such Joomla! module, or maybe already has it, please inform me.
I think this way is better than banner to interest people about this project.
Malilosinj.info is site about my hometown and have small internet community, mostly young people.
Maybe some of them decide to join the game and eventually the project :)

Thanks!
JoshLangley
Peon
Peon
Posts: 45
Joined: 23 Jun 2007, 06:42
Location: Melbourne, Australia

Post by JoshLangley » 18 Aug 2007, 04:00

Simply include this in a html iframe tag.
http://server.themanaworld.org/status.php :)
kind regards,
Josh Langley.

http://www.myspace.com/Langerz
User avatar
biza
Peon
Peon
Posts: 25
Joined: 17 Jul 2007, 17:17
Location: Mali Lošinj, Croatia
Contact:

Post by biza » 18 Aug 2007, 13:50

I did that, it works, but it is not good.

1. It is preformated to fit in this page (background color, text color) it looks bad on my page :(
2. I would like all text to link on themanaworld.org not on player list.
3. It is on English and whole site is translated in Croatian

Regards!
User avatar
Bjørn
TMW Adviser
TMW Adviser
Posts: 1430
Joined: 09 Dec 2004, 19:50
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn » 18 Aug 2007, 15:50

Here is the PHP source for status.php:

http://server.themanaworld.org/status.php.txt

It parses the online.txt file available at http://server.themanaworld.org/online.txt and produces the formatted HTML summary. It should help you to create something similar for on your own website. We use an iframe both because SourceForge doesn't allow connecting to other websites and this way it can periodically refresh (or fail without affecting page load time).
User avatar
biza
Peon
Peon
Posts: 25
Joined: 17 Jul 2007, 17:17
Location: Mali Lošinj, Croatia
Contact:

Post by biza » 18 Aug 2007, 18:56

Thanks, i did it!!!

And it WORKS!!!!

I have no knowledge of php so if somebody who knows can check it (i just copied file Bjorn recomended and made some small adjustment) :) .
This module should work on Mambo afaik
Just install it as any other module.
You can get it HERE

Please post here if it is working or not working on yours Joomla/Mambo.

Thanks and cheers!!
Post Reply