First I should say, I'm not a PHP expert, I am very much a beginner in every sense of the word. I could probably write a program in PHP that printed, "Hello World", or create a rudimentary web page that wouldn't be much more advanced than a page coded in pure HTML. I've also "fixed up" a couple of modules for PHP Nuke, modules that were no longer under development and were no longer compatible with more recent versions of PHP Nuke. This involved mostly comparing and cutting and pasting. I'm a bit better than a newbie at HTML, I've coded a basic website, and recoded the headers for my Xanthia theme.
Anyway, what I would like to do now is create a very simple module, if anyone knows anything about PsychoStats, I'm trying to create a module that displays game server stats in a simple block on my Post Nuke home page, using the PsychoQuery code that comes with PsychoStats 2. I want it to query the server and show a small picture of the map being played, as well as a list of the players on the server with their kills and deaths.
I have the query code for the server. I don't understand it, but I think I can probably get some help with that, so all I'll need, hopefully, is a simple module that I can plug the variables into and display them. I've been looking at the example module and I am wondering if there is anywhere some simple basic tutorial on creating a simple Post Nuke module. I checked the Wiki and it seemed like everything I looked at had no information available, ie. no one had submitted anything.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Newbie in Need of Assistance to Create a Simple Module
-
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
If all you want is a block, why not paste the PHP code you've been given into a PHP block?
--
itbegins.co.uk - Zikula Consulting
birtwistle.me.uk - Personal Blog
Please read the Support Guide -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 6
That might be a good idea. I guess I had it in the back of my mind that I'd like to eventually create a full PsychoStats module for Post Nuke, the way one has been created for PHP Nuke, and I was thinking if I could learn how to create a module for PsyhoQuery, this would be a step in that direction. I was thinking also I would like to be able to do some simple things like have the information from the last game played stored in the database so that would come up when you start the website, instead of a blank block template, together with an indication as to whether the server is up or down.
I'll have to think about this some more. Creating a simple block might be a better place to start as it would obviously be much easier. I'm having a hard time even figuring out what I need to do with the PsychoQuery code... -
- Rank: Softmore
- Registered: Jul 16, 2004
- Last visit: Oct 21, 2009
- Posts: 406
The Example module and the basic Developer documentation on this site is a good place to start looking and learning on how to make your first module.
- Moderated by:
- Support
