MyBB Community Forums

Full Version: MyBB Scratchboard – Post your random admin/dev stuff
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2013-05-29, 03:57 AM)Seabody Wrote: [ -> ]Could'nt you access the $stats array? It doesn't format numbers, and the profile link to the newest member is $newestmember.

Looks promising! Though how would I access the array?
In templates, like any other variable.

<span class="badge">{$stats['numusers']} users</span>

Look here - go to the source of index.php, and search for $stats.
(2013-05-29, 04:19 AM)Seabody Wrote: [ -> ]In templates, like any other variable.

<span class="badge">{$stats['numusers']} users</span>

Look here - go to the source of index.php, and search for $stats.

I am speechless. Every stat I need is in there!

You are a god Smile

By the way, for anyone who wants to know, these are the variables I used (in index_stats):
{$stats['numposts']}
{$stats['numthreads']}
{$stats['numusers']}
{$newestmember}
{$mostonline['numusers']}
{$recorddate}
Yeah, those are the variables that most people use to make stats that look similar to this: http://www.tesofguilds.com/
That's how I've always done it too Smile
Wow, totally forgot about that one!!
Was toying around with a new idea to share threads for my upcoming website and came up with something especially unique. It also makes it very easy to read a long article and send it to mobile to finish on the go.

This generates a QR code on the fly with no PHP required. Just a measly IMG tag whilst utilizing another sites generator.

Here's the code:
<img src="http://qrfree.kaywa.com/?l=1&s=8&d={$mybb->settings['bburl']}/showthread.php?tid={$tid}" alt="Share QR" />

Enjoy Smile

See it in action.
This is just a rough idea of something I wanted to do

Basically, instead of having your threads in your basic table/list fashion I wanted to try and make it look a little more "newsy".. I guess. The images behind the Subject/title change depending on what prefix you select when making your thread. So if you were making a thread on a new Ps3 game, the image would change accordingly.

I'm going to work on it later, I'm tired now Toungue
IMO this could work for news (see: http://polygon.com) but for a thread listing it's pretty confusing.
(2013-05-31, 01:37 PM)brad-t Wrote: [ -> ]IMO this could work for news (see: http://polygon.com) but for a thread listing it's pretty confusing.

Sorry, do you mean the way I've designed the thread list is confusing? Or do you mean if you were on a forum where you were going through categories looking at threads, it'd get confusing?

I'm planning to set this up as a single category forum. You'll have one page, then an option to sort through the posts on the page, so I thought this would work just fine.