2012-02-01, 04:58 PM
Hello everyone,
I'm a beginner in developping MyBB plugin (but code in PHP since two years or so), and I'm trying to create a simple plugin, which basically queries a server, gets some statistics through that call, and displays them.
I choose to modify static numbers (with str_replace) instead of dynamically display them (with an echo for example). However, nothing is changed on my page .
Here's the code of my plugin : http://pastebin.com/fUUwcuvB
The plugin is working great, but it doesn't do anything yet, which is quite annoying . I'm not sure by the way if the "pre_output_page" hook is a good choice for the task I want to perform.
Thanks in advance .
I'm a beginner in developping MyBB plugin (but code in PHP since two years or so), and I'm trying to create a simple plugin, which basically queries a server, gets some statistics through that call, and displays them.
I choose to modify static numbers (with str_replace) instead of dynamically display them (with an echo for example). However, nothing is changed on my page .
Here's the code of my plugin : http://pastebin.com/fUUwcuvB
The plugin is working great, but it doesn't do anything yet, which is quite annoying . I'm not sure by the way if the "pre_output_page" hook is a good choice for the task I want to perform.
Thanks in advance .