MyBB Community Forums

Full Version: Requesting tutorial
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I'm setting up a mybb board for the first time and must admit it's a very nice and fun system, but I run into a problem now and then and I can't find any good resources on how to do this.

Basicly I want to use information from one page on the forums and display it on another.

In my current task I want to show the Richest Users from this page: http://exalted-swtor.com/forums/newpoint...tion=stats

and add it to a block on my portal on this page: http://exalted-swtor.com/forums/portal.php

I'm figuring that many others will want to do this as well so a tutorial of some sort would have been ace Smile
You may request this one as plugin here: http://community.mybb.com/forum-65.html
Yes, but it would be nice to be able to do it myself as there might be other parts of the forums I'd like on my portal as well Smile

I'm working on it now and it shouldn't be too hard, now should it?

My logic says so far:
On portal.php
-> require file to pull data from - Like: require_once MYBB_ROOT."newpoints.php";
-> add eval $xxxx - Like: eval("\$richest_users .= \"".$templates->get('newpoints_statistics_richest_user')."\";");

On portal template in :
{$xxxx} - Like: {$richest_users}

But this doesn't work now does it! ^^
(2011-10-07, 08:10 AM)Wood_Exalted Wrote: [ -> ]Yes, but it would be nice to be able to do it myself as there might be other parts of the forums I'd like on my portal as well Smile

I'm working on it now and it shouldn't be too hard, now should it?

My logic says so far:
On portal.php
-> require file to pull data from - Like: require_once MYBB_ROOT."newpoints.php";
-> add eval $xxxx - Like: eval("\$richest_users .= \"".$templates->get('newpoints_statistics_richest_user')."\";");

On portal template in :
{$xxxx} - Like: {$richest_users}

But this doesn't work now does it! ^^
No it shouldn't be too hard, though I'm not very familiar with NewPoints itself. Basically you have that part correct for the actual portal.php page, but unless NewPoints has a 'richest_user' function built in (which i don't think it does), you'll have to either manually add it to the plugin, or make a separate plugin that hooks into NewPoints.