Current time: 02-09-2010, 04:07 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 3 Votes - 2.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Download] MyBB Statistics Signature
07-09-2009, 11:36 PM (This post was last modified: 07-10-2009 06:04 PM by Ooka.)
Post: #1
[Download] MyBB Statistics Signature
So, um, I was tired of not knowing how to get a statistics signature for my website, so I finally decided to look for how to do it, and I did. Thanks to http://php.net I can finally do it, and I don't want everyone else to be in the dark as well, so here is a free download on how to do it, not really a tutorial, but I didn't know where else to put this. :/


Just so people know, it's to make a signature like the one I have.

Also, statsig2 has the information reversed, as in, it has the link at the top of the sig and the information at the bottom.


Attached File(s)
.zip  statsig.zip (Size: 94.19 KB / Downloads: 185)
.zip  statsig2.zip (Size: 94.19 KB / Downloads: 167)

LiteBulletin 1.2 is now running on our LiteSoft Forums!

http://community.litesoft.info
Find all posts by this user
Quote this message in a reply
07-09-2009, 11:43 PM (This post was last modified: 07-09-2009 11:44 PM by MattRogowski.)
Post: #2
RE: [Download] MyBB Statistics Signature
More a plugin that a tutorial really, moved to releases Smile

One thing I will say though is this... instead of doing:

PHP Code:
//This Calculates Your Total Posts
$total_posts_query mysql_query("SELECT * FROM ".TABLE_PREFIX."posts");
$total_posts mysql_num_rows($total_posts_query);

//This Calculates Your Total Members
$total_members_query mysql_query("SELECT * FROM ".TABLE_PREFIX."users");
$total_members mysql_num_rows($total_members_query);

//This Calculates Your Total Threads
$total_threads_query mysql_query("SELECT * FROM ".TABLE_PREFIX."threads");
$total_threads mysql_num_rows($total_threads_query); 

Maybe do:

PHP Code:
//This Calculates Your Total Posts
$total_posts mysql_query("SELECT COUNT(*) FROM ".TABLE_PREFIX."posts");

//This Calculates Your Total Members
$total_members mysql_query("SELECT COUNT(*) FROM ".TABLE_PREFIX."users");

//This Calculates Your Total Threads
$total_threads mysql_query("SELECT COUNT(*) FROM ".TABLE_PREFIX."threads"); 

Otherwise you'll have a huge array of all of the posts, users and threads, this should be much faster.

My Personal Site - Twitter
MyBB Support Team
MyBB Directory, coming soon.
[Image: lqscs]
Visit this user's website Find all posts by this user
Quote this message in a reply
07-09-2009, 11:58 PM (This post was last modified: 07-10-2009 12:02 AM by Ooka.)
Post: #3
RE: [Download] MyBB Statistics Signature
K, thanks, I'm not that great at PHP, just looked it up to make this, so yeah, I'll change the download real quick. Wink

I also gave you credit for the help in the file.

LiteBulletin 1.2 is now running on our LiteSoft Forums!

http://community.litesoft.info
Find all posts by this user
Quote this message in a reply
07-10-2009, 01:55 AM (This post was last modified: 07-10-2009 01:55 AM by Gene53.)
Post: #4
RE: [Download] MyBB Statistics Signature
Nice work in progress, may I suggest that the forum name be on the first line and the stats on the 2nd?

“The road to positivity is strewn with the abandoned vehicles of the faint-hearted.” Peter McWilliams
Find all posts by this user
Quote this message in a reply
07-10-2009, 02:06 AM
Post: #5
RE: [Download] MyBB Statistics Signature
Alright, well, I'll make that an alternate download, however, it's pretty easy to do yourself. xD

LiteBulletin 1.2 is now running on our LiteSoft Forums!

http://community.litesoft.info
Find all posts by this user
Quote this message in a reply
07-10-2009, 03:01 PM
Post: #6
RE: [Download] MyBB Statistics Signature
How many queries makes this plugin?, how this plugin works?, well, when it makes the thread count?.

I think this plugin is good, but maybe server intensive. ¿?

-Rafael
Im a Big MyBB Fan!!! Cool
My Forum
My Blog
PM Me if you want a Lockerz Invitation
Visit this user's website Find all posts by this user
Quote this message in a reply
07-10-2009, 03:06 PM
Post: #7
RE: [Download] MyBB Statistics Signature
Looks to me as if you'd have 3 huge queries every time the image is displayed - that will stress the server...

I think Labrocca's way to use the cache is much better...

[Image: mybbaddonssignatur.gif]
Owning MybbAddons.com MybbDesign.com Mybb-Themes.com MybbDesign.co.uk and Mybboard.biz
Visit this user's website Find all posts by this user
Quote this message in a reply
07-10-2009, 04:04 PM
Post: #8
RE: [Download] MyBB Statistics Signature
Like I said, I'm not that great with PHP, I just read up to make this. :/

LiteBulletin 1.2 is now running on our LiteSoft Forums!

http://community.litesoft.info
Find all posts by this user
Quote this message in a reply
07-10-2009, 04:30 PM (This post was last modified: 07-10-2009 04:31 PM by querschlaeger.)
Post: #9
RE: [Download] MyBB Statistics Signature
Hi,

what's the licence of this file? Maybe we can work together to perfect it. If it's a free licence (for example GPLv3?) I would contribute some caching possibilities. Wink

Please vote: Should paid plugins separated from the free ones on MyBBoard.net?

Pharmaboard - Leipzigs Pharmaziestudenten
Visit this user's website Find all posts by this user
Quote this message in a reply
07-10-2009, 04:38 PM
Post: #10
RE: [Download] MyBB Statistics Signature
I haven't went into License specifics yet, however, I don't want a link to the Pharmaboards in it. Toungue

LiteBulletin 1.2 is now running on our LiteSoft Forums!

http://community.litesoft.info
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: