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, 12:40 AM)brad-t Wrote: [ -> ]The apostrophe isn't optional!

I missed it!!! Angel
Posted this in the NeueBlue thread but I think it could go here as well.

I needed to separate the index page board stats numbers for NeueBlue's sidebar. Got jQuery out and started coding:
http://codepen.io/ryanmcgrane/pen/cEFed
(2013-05-29, 02:18 AM)Ferron Wrote: [ -> ]Posted this in the NeueBlue thread but I think it could go here as well.

I needed to separate the index page board stats numbers for NeueBlue's sidebar. Got jQuery out and started coding:
http://codepen.io/ryanmcgrane/pen/cEFed

Cleverrrr
Interesting, but couldn't this have been done with a language file?
(2013-05-29, 02:42 AM)brad-t Wrote: [ -> ]Interesting, but couldn't this have been done with a language file?

I said the same but because this is for a release he didn't want to modify and core files.
I guess, but it's not like it's hard to change the language file back. Ah well.
(2013-05-29, 02:52 AM)brad-t Wrote: [ -> ]I guess, but it's not like it's hard to change the language file back. Ah well.

Think about website owners with multiple themes or services like InstantMyBB that run off 1 core installation.

It's pretty clever what Ryan has done actually.
I just don't want to add an extra step in the installation process. There might be people who buy the theme, try to install it just like they normally would (upload theme images file and xml), and wonder why the sidebar's broken. Or they might also be wary of editing core files and wouldn't feel comfortable updating the language file.

It's a roundabout way of doing things, but it takes complexity away from the user.
Fair enough!
Could'nt you access the $stats array? It doesn't format numbers, and the profile link to the newest member is $newestmember.