Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   01-19-2008, 03:57 PM
CMartucci has a spectacular aura about Join Date: Dec 2007 Posts: 114 Location: Florida
Can someone tweak a mod for me?


I have a modification which shows the stats for member's profile fields.

PolitiCity - Stats

But as you can see, there are a lot of "N/A" and "Undisclosed" fields. This is because 1) bots sign up and choose the default fields; and 2) inactive members never bother modifying their profiles.

So my solution to this problem is to make it only show stats for ACTIVE members. For example, only members active in the past 30 or 60 days.

I don't know how to do that, and unfortunately this mod is not supported. But I figured it's probably simple to do. Wouldn't you just add some sort of conditionals?

I don't know how to do it...but maybe someone here does. I've attached the product...maybe someone can edit it??? Please?
Attached Files
File Type: rar profilestats.rar (5.6 KB, 0 views)
--------------------
PolitiCity.net - Political debate & discussion
Quote   |  



#2   01-19-2008, 06:14 PM
RedMatrix is a jewel in the rough Join Date: Sep 2006 Posts: 201 Location: Texas
Re: Can someone tweak a mod for me?


I can't tweak, but if I were in your shoes, I would try to get around the problem.

I would try to get all active members into one group, and inactive's in another group. But this would be manually done. But, could be a cron job? Then I would try to see if I could only get the mod to show up for certain groups. (maybe I would try that first)
--------------------
Need Help With Your Computer? Hate to reboot?
Introducing my Computer Help Desk & Discussion Forum
Quote   |  



#3   01-19-2008, 06:25 PM
bdude is a jewel in the roughbdude is a jewel in the rough Join Date: Aug 2007 Posts: 584 Location: Tasmania, Australia
Re: Can someone tweak a mod for me?


I'll see if I can tweak the SQL to exclude N/A responses.
--------------------
Bryce R [[ BLOG ]]
The Blogging Café - Blogging Forum
Do you run a forum? Check out my forum owners blog.
Quote   |  



#4   01-19-2008, 07:12 PM
CMartucci has a spectacular aura about Join Date: Dec 2007 Posts: 114 Location: Florida
Re: Can someone tweak a mod for me?


Quote:
Originally Posted by RedMatrix View Post
I can't tweak, but if I were in your shoes, I would try to get around the problem.

I would try to get all active members into one group, and inactive's in another group. But this would be manually done. But, could be a cron job? Then I would try to see if I could only get the mod to show up for certain groups. (maybe I would try that first)
Wouldn't making the mod only show stats for users active in the last 30 days be easier than that?

Quote:
Originally Posted by bdude View Post
I'll see if I can tweak the SQL to exclude N/A responses.
I don't think that would really help either. My point is that I want the stats to accurately reflect the current member-base. The only way to do that would be for the stats to only include members active in the last, say 30 days.
--------------------
PolitiCity.net - Political debate & discussion
Quote   |  



#5   01-19-2008, 08:11 PM
bdude is a jewel in the roughbdude is a jewel in the rough Join Date: Aug 2007 Posts: 584 Location: Tasmania, Australia
Re: Can someone tweak a mod for me?


Here we go, by default it's set to only get the data from users where their last activity date was less than 30 days ago. You can change it at the top of the file.

Box.net - Free Online File Storage, Internet File Sharing, Online Storage, Access Documents & Files Anywhere, Backup Data, Send Files
--------------------
Bryce R [[ BLOG ]]
The Blogging Café - Blogging Forum
Do you run a forum? Check out my forum owners blog.
Quote   |  



#6   01-19-2008, 08:23 PM
CMartucci has a spectacular aura about Join Date: Dec 2007 Posts: 114 Location: Florida
Re: Can someone tweak a mod for me?


Awesome! Thanks a lot bdude!

Just one more thing. In "What's Going On?" it says this when someone is looking at the stats:

Unknown Location
/profilestats.php

Do you know how to fix that?
--------------------
PolitiCity.net - Political debate & discussion
Quote   |  



#7   01-20-2008, 03:26 AM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,560 Location: Anaheim, CA
Re: Can someone tweak a mod for me?


[How-To] vBulletin API Basics: Creating Custom Pages & Misc. - vBulletin.org Forum
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#8   01-20-2008, 02:26 PM
CMartucci has a spectacular aura about Join Date: Dec 2007 Posts: 114 Location: Florida
Re: Can someone tweak a mod for me?


Thanks. I fixed it, and I learned something new, lol. Except I wasn't able to use the phrases correctly for some reason, so I just typed in the text myself. Are you able to call phrases from plugins?
--------------------
PolitiCity.net - Political debate & discussion
Quote   |  



#9   01-20-2008, 10:31 PM
bdude is a jewel in the roughbdude is a jewel in the rough Join Date: Aug 2007 Posts: 584 Location: Tasmania, Australia
Re: Can someone tweak a mod for me?


You should be, as long as the phrase group is loaded already.
--------------------
Bryce R [[ BLOG ]]
The Blogging Café - Blogging Forum
Do you run a forum? Check out my forum owners blog.
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Tags
mod

Thread Tools
Display Modes

 
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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -6. The time now is 03:57 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory