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: Tue Jul 17, 2007 5:17 pm
Location: Mali Lošinj, Croatia
Contact:

Joomla module

Post by biza » Fri Aug 17, 2007 6:39 pm

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: Sat Jun 23, 2007 6:42 am
Location: Melbourne, Australia

Post by JoshLangley » Sat Aug 18, 2007 4:00 am

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: Tue Jul 17, 2007 5:17 pm
Location: Mali Lošinj, Croatia
Contact:

Post by biza » Sat Aug 18, 2007 1:50 pm

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: Thu Dec 09, 2004 7:50 pm
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn » Sat Aug 18, 2007 3:50 pm

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: Tue Jul 17, 2007 5:17 pm
Location: Mali Lošinj, Croatia
Contact:

Post by biza » Sat Aug 18, 2007 6:56 pm

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