Go Back   The PokéCommunity Forums > Official Forums > Community Feedback and Support

Notices
For all updates, view the main page.

Community Feedback and Support This is the place for your concerns, praises or help relating to the PokéCommunity. Unsure of how to post a thread (though you should find out pretty quickly)? How do you get a blog? Maybe you don’t like a certain feature. Make a thread here and get responses from your fellow members and staff.



Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #1    
Old October 6th, 2011 (09:29 AM).
Truality
Left for good
 
Join Date: Aug 2011
Gender: Male
Send a message via Windows Live Messenger to Truality Send a message via Skype™ to Truality
Hello everyone, I've thought several times about posting this but I was quite hesitant, and I finally got enough info on it today.

So this suggestion is about adding something to each member's profile 'statistics' page, which shows a percentage of their posts and in which section they make it. I've seen it in a forum I frequent and it's really cool, the best plus of it is-of course-that it lets you know which sections you or anybody else frequents the most and the least.


For example:


Code:
Truality's Active Area

Community Questions and feedback: 22% 
Emulation: 18%
Art Gallery: 26%
Other Voting Polls: 20%
Other Chat: 14%
That's just a mere example with names and numbers, supposedly more forums could be added to show a 0%, meaning the member has no posts in that area.

The thing I was searching for all this time, though, was a code, and I finally found it somewhere in that forum. Here's the code and credits for it go to the member's name mentioned:

Spoiler:
[link]
Quote originally posted by KeepWalking:
Hi.
I've created a cron job with this code:
Code:
$_ACTIVEFORUMS = array(
        28 => "Forum name1",
        30 => "Forum name2",
        109 => "Forum name3",
        108 => "Forum name4",
        107 => "Forum name5",
        110 => "Forum name6",
        87 => "Forum name7",
        115 => "Forum name8",
        114 => "Forum name9",
        52 => "Forum name10",
        112 => "Forum name11",
        27 => "Forum name12",
        123 => "Forum name13"
        // ETC ETC ETC // 
);

// WE PUT THE FORUM ID AND THE ACTIVE AREA NAME

$Q = $db->sql_query("
select post.threadid, thread.forumid as forumid, userid, postid FROM post LEFT JOIN thread ON thread.threadid = post.threadid
WHERE post.visible = 1 AND post.infraction = 0
");
$TOTAL = array();
while ($row = $db->sql_fetchrow($Q))
{
        $TOTAL[$row['userid']]++;
        if ($_ACTIVEFORUMS[$row['forumid']]) $ACTIVE[$row['userid']][$_ACTIVEFORUMS[$row['forumid']]]++;
}

$RESULT = array();
foreach ($ACTIVE as $i => $v)
{
        if (!empty($v))
                foreach ($v as $j => $k)
                        $RESULT[$i][$j] = round(100*$k/$TOTAL[$i]);
}


foreach ($RESULT as $i => $v) $db->sql_query("REPLACE INTO `activearea` VALUES ($i, '".serialize($v)."')");

/*
THE ACTIVE AREA TABLE
CREATE TABLE `activearea` (
  `userid` int(11) NOT NULL auto_increment,
  `stats` text,
  PRIMARY KEY  (`userid`)
) ENGINE=MyISAM AUTO_INCREMENT=816210 DEFAULT CHARSET=latin1
*/
After that i created a new class in includes/class_profileblock.php
Code:
/**
* Profile Block for Mini Statistics
*
* @package vBulletin
*/
class vB_ProfileBlock_MiniStats extends vB_ProfileBlock
{
    /**
    * The name of the template to be used for the block
    *
    * @var string
    */
    var $template_name = 'memberinfo_block_ministats';

    /**
    * Variables to automatically prepare
    *
    * @var array
    */
    var $auto_prepare = array();
    function prepare_output($id = '', $options = array())
    {
        $USERID = $this->profile->userinfo['userid'];
        $RESULT = $this->registry->db->query_read_slave("SELECT * FROM activearea WHERE userid = $USERID");
        $DATA = $this->registry->db->fetch_array($RESULT);
        $DATA = unserialize(trim($DATA['stats']));

        $this->block_data['activearea'] = '';
        $total = 0;

        $ACTIVEAREAS = array(
            "DotA Chat","Game Strategy","Advanced Mechanics","DotA Replays","Suggestions","DotA Media","DotA Tools & AI","DotA Chinese",
            "Competitive Scene","Member Service","Random Chat"
        );

        foreach ($ACTIVEAREAS as $v)
        {
            if (!$DATA[$v]) $this->block_data['activearea'] .= $v.': 0%<br />';
            else
            {
                $this->block_data['activearea'] .= $v.": {$DATA[$v]}%<br />";
                $total += $DATA[$v];
            }
        }
        $this->block_data['activearea'] .= "Others: ".(100-$total)."%";

    }
}
After that in member.php you must add the new class in array
Code:
$globaltemplates = array(.....
    'memberinfo_block_infractions',
    'memberinfo_block_ministats',
    'memberinfo_block_profilefield',
    'memberinfo_block_visitormessaging'
....);
And in array $blocklist where you store the order of the blocks

Code:
$blocklist = array(
    'stats_mini' => array(
        'class' => 'MiniStats',
        'title' => $vbphrase['mini_statistics'],
    ),
    'friends_mini' => array(
        'class' => 'Friends',
        'title' => $vbphrase['friends'],
    ),
........);
And to show it you find template memberinfo_block_ministats and add:

Code:
<dt class="shade">Members Active area<dt>
<dd>$block_data[activearea]</dd>
Anyway, i dont know if this helps to much, this of course can be achieved using hooks and plugins
I don't know if it can't be implemented here but that's all I got.


So that's about it. I really want to know what you think about it. Let's see how this goes, shall we?
__________________
This is my December . . .
  #2    
Old October 6th, 2011 (09:42 AM).
Oryx's Avatar
Oryx
CoquettishCat
Community Supporter
 
Join Date: Mar 2011
Age: 22
Gender: Female
Nature: Relaxed
Wow, you definitely put a lot of research into this. The only argument I can see against this (outside of the usual "we don't need anything let's not change a thing" people) is if it can't be implemented here. I'd really like to hear from the people that would implement it to see if it's possible, but I think it's a pretty awesome idea and I would use this really often.
__________________


Theme * Pair * VM * PM

Not all men...

Are all men stupid?

That's right.

  #3    
Old October 6th, 2011 (09:51 AM).
Alli's Avatar
Alli
kong
 
Join Date: Feb 2008
Location: Alabama
Age: 22
Gender: Female
Nature: Timid
That's pretty nifty, actually. But you'd all be mad that 90% of my posts are invisible to y'all. :'( jk But I think this is a cool feature. I'd like to see it implemented if it's possible!
__________________
DIXIE KONG
mother of challenges
super mod
paired to diddy

  #4    
Old October 6th, 2011 (09:54 AM).
Patchisou Yutohru's Avatar
Patchisou Yutohru
Community Supporter
 
Join Date: Oct 2004
Oh I love this idea, and you put so much thought into for me to really even contemplate saying no.

I'd be really interested to know where most of my activity (in numbers) goes to. What about forums that aren't accessible to everyone, though?
  #5    
Old October 6th, 2011 (09:57 AM).
Truality
Left for good
 
Join Date: Aug 2011
Gender: Male
Send a message via Windows Live Messenger to Truality Send a message via Skype™ to Truality
Quote originally posted by Patchisou Yutohru:
What about forums that aren't accessible to everyone, though?
I think you can manipulate the forums included with the variables, and just add an 'Other' for those not supposed to be viewed. Or not include them at all and let 'em guess where the rest of the posts go to. xD
__________________
This is my December . . .
  #6    
Old October 6th, 2011 (10:08 AM).
Vrai
can you feel my heart?
Community Supporter
 
Join Date: Jun 2008
Age: 20
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to Vrai
I think this is pretty neat. Not necessary, but definitely neat. Can we do it? 8)
__________________
aka Zebraiken | pairs; Ω & ζ | bffl; λ | now; Ϟ | twin; ξ | brother; φ | sister; Ψ | neeks; Ϫ
  #7    
Old October 6th, 2011 (10:09 AM).
Ausaudriel's Avatar
Ausaudriel
lieutenant commander
 
Join Date: May 2005
Location: The Frozen North
Age: 23
Gender: Male
Nature: Gentle
Let me make sure it's okay with HQ before I add it, but thanks for providing the code. C: I like it.
__________________
x paired with sylphiel
x i won't burn out i'll just burn up
  #8    
Old October 6th, 2011 (10:27 AM).
Drew's Avatar
Drew
erase the noise.
Community Supporter
 
Join Date: Jul 2005
Location: Kansas, USA
Gender: Female
Nature: Brave
Well for those of us who post in hidden areas the most, the names for them could still be shown. Names are no huge deal, and its not like people would be able to click and visit them. XD;

Love this idea though, I've always wanted PC to have something of the sort. 8D
__________________
"I suppose this rose is for Beautifly, right?"
"Yeah, something like that."

slateport cityanimu tumblrpair
Currently playing entirely too much ORAS.
Talk to me about Hoenn.
  #9    
Old October 6th, 2011 (10:47 AM).
Alley Cat's Avatar
Alley Cat
Advanced Trainer
 
Join Date: Jun 2011
I like this idea a lot, and the work is already done, it just omes down to it geting approved and put in pace. I don't see a way for this information to be super practical, but I don't really care, it's just for fun.
  #10    
Old October 6th, 2011 (11:33 AM).
Kaori's Avatar
Kaori
tragedy
 
Join Date: Oct 2008
Location: +
Age: 3
Gender: Female
Nature: Modest
Send a message via Windows Live Messenger to Kaori
Wow, I'm surprised something like this hasn't been thought of before. o_o It's a really good idea though, wish I had even thought of it myself.

Hopefully the H-Staff decide to approve of this!
__________________

smile. paired to vrai & karpman & drew
  #11    
Old October 6th, 2011 (11:42 AM).
Xyrin's Avatar
Xyrin
Furret
 
Join Date: May 2008
Location: Northern Indiana, USA
Age: 16
Gender: Male
Nature: Jolly
Yes I LOVE this idea, it would be pretty awesome to see where all my posts are. Hopefully this will be implemented quickly.
__________________

Furret


The Creeper Hub ~ x - Icons by Anastasia - My Twitter ~ x
  #12    
Old October 6th, 2011 (11:46 AM).
Chikara's Avatar
Chikara
Toucher of Butts
Community Supporter
 
Join Date: Oct 2004
Location: Missouri, why? ◉◡◉
Age: 23
Gender: Female
Nature: Bold
Aaaaaha, I like this a lot :D

Honestly, I don't think I'll be using it much, but it'll be interesting to check out. Now, will this count all posts we've ever made, or will it just be what posts we do after the thing gets added, if it gets added? Hopefully the first one ):
__________________

  #13    
Old October 6th, 2011 (11:50 AM).
Crimson5M's Avatar
Crimson5M
what
Community Supporter
 
Join Date: Feb 2011
Location: Scotland
Age: 19
Gender: Male
Nature: Quiet
So everybody likes this idea?
Well...I DON'T OMG IT SUX IT SUX SOOOOOOO BAD!!!!!
Jk, it seems pretty neat actually :)
__________________

Because it should've won HotY.
Pear
Frodo Baggins
Twitter
Youtube
CBC
  #14    
Old October 7th, 2011 (04:15 AM).
Cassino's Avatar
Cassino
 
Join Date: Oct 2006
Gender: Other
Nature: Serious
Provided I can opt-out/hide it, I'm fine with this.
  #15    
Old October 7th, 2011 (04:25 AM).
vaporeon7's Avatar
vaporeon7
My life would suck without you
Community Supporter
 
Join Date: Aug 2010
Location: Preparing for trouble and making it double.
Gender: Male
Nature: Adamant
Send a message via Skype™ to vaporeon7
I think this is a great idea. I think it would be really interesting to see what I post in the most, as well as a few others ;) I can't see a reason why not, unless it isn't possible.
__________________
  #16    
Old October 7th, 2011 (05:43 AM).
countryemo's Avatar
countryemo
The Day I've been running from
Community Supporter
 
Join Date: Dec 2009
Location: Littleroot Town
Age: 20
Gender: Male
Nature: Quiet
Send a message via Skype™ to countryemo
Quote originally posted by Ausaudriel:
Let me make sure it's okay with HQ before I add it, but thanks for providing the code. C: I like it.
I say we can take this as a yes. No?

This is really neat idea, surprised it hasn't been done, haha. And we got the code already so even better! Cant wait, more to stalk! erm..
__________________
PC Mentions: Best Little Sister ever | Credits | My Amazing Pair

  #17    
Old October 7th, 2011 (06:03 AM).
Patchisou Yutohru's Avatar
Patchisou Yutohru
Community Supporter
 
Join Date: Oct 2004
This is going to be added. It got majority.
  #18    
Old October 7th, 2011 (06:44 AM). Edited October 7th, 2011 by Zet.
Zet's Avatar
Zet
Community Supporter
 
Join Date: Sep 2007
Location: Brisbane, Australia
Age: 24
Gender: Male
Nature: Jolly
I know this is probably late but.... correct me if I'm wrong but wouldn't this feature search for all your posts just to get the results? So wouldn't that strain the server a bit?
  #19    
Old October 7th, 2011 (06:56 AM).
Squirrel's Avatar
Squirrel
This'll be a blast!
Community Supporter
 
Join Date: Sep 2011
Location: England
Age: 20
Gender: Male
Nature: Quirky
Hmm, pretty cool idea... But wouldn't it take up a lot of space? :s
__________________
  #20    
Old October 7th, 2011 (07:20 AM).
Eliminator Jr.'s Avatar
Eliminator Jr.
Gym Leader
 
Join Date: Apr 2009
Location: Melbourne, Australia
Age: 21
Gender: Male
Nature: Calm
Quote originally posted by Zet:
I know this is probably late but.... correct me if I'm wrong but wouldn't this feature search for all your posts just to get the results? So wouldn't that strain the server a bit?
I'm not an expert on computers by any means, but perhaps this won't place much stress on the server because unlike name-changing, all this code does is gather information and statistics from posts, not implement changes to all those posts.
  #21    
Old October 7th, 2011 (07:47 AM).
Team Fail's Avatar
Team Fail
See that, Aster?
Community Supporter
 
Join Date: May 2009
Age: 19
Gender: Male
Nature: Brave
It looks like you went through a lot of work to get the details on this feature. It looks quite useful so we can see where we frequent. I like the idea myself.
Quote originally posted by Patchisou Yutohru:
This is going to be added. It got majority.
Seeing this makes me happy. :D
__________________

You are challenged by Lorekeeper Zinnia!
Pairs | Twitter | Alt | Alt II | PHO
  #22    
Old October 8th, 2011 (05:46 PM).
Melody's Avatar
Melody
Singing Nature's Melody
Community Supporter
 
Join Date: Oct 2004
Location: Cuddling those close to me
Age: 26
Gender: Female
Nature: Gentle
Send a message via Skype™ to Melody
My only beef with this idea would be if we were unable to hide this from our profile or make it private. Please make sure that we have some level of control over it's view ability. I don't like being tracked for public spectacle.
__________________
Crystal Supporter Melody


"It loves to bask in the sunlight. It uses the leaf on its head to seek out warm places."
Chikorita

  #23    
Old October 8th, 2011 (05:53 PM).
Zet's Avatar
Zet
Community Supporter
 
Join Date: Sep 2007
Location: Brisbane, Australia
Age: 24
Gender: Male
Nature: Jolly
Quote originally posted by Pachy:
My only beef with this idea would be if we were unable to hide this from our profile or make it private. Please make sure that we have some level of control over it's view ability. I don't like being tracked for public spectacle.
why have the option to hide it when anyone can easily view posts you have made, to get a general idea in which forum you post a lot in.
  #24    
Old October 8th, 2011 (05:58 PM).
Oryx's Avatar
Oryx
CoquettishCat
Community Supporter
 
Join Date: Mar 2011
Age: 22
Gender: Female
Nature: Relaxed
Yeah, this isn't showing anything new, and nothing in statistics is able to be hidden afaik, so no reason to assume this will be.
__________________


Theme * Pair * VM * PM

Not all men...

Are all men stupid?

That's right.

  #25    
Old October 8th, 2011 (06:07 PM).
marz's Avatar
marz
ô.o
Community Supporter
 
Join Date: Dec 2006
Location: Canada
Age: 22
Gender: Male
Nature: Relaxed
Quote originally posted by Zet:

why have the option to hide it when anyone can easily view posts you have made, to get a general idea in which forum you post a lot in.
Why not have the option to hide it to ensure satisfaction by all members, rather than only a certain portion?
__________________
like competitive team fortress 2? check out my blog!

everlasting rivalry with murderface +
Closed Thread
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 05:57 PM.