PDA

View Full Version : Hide PostCount


Hellspire
11-26-2005, 10:00 PM
Someone asked me to write this up and I figured I might as well share it with everyone. This is an EXTREMELY simple hack that hides the post count on postbit, and member profile.

Recently modified, see this post: https://vborg.vbsupport.ru/showpost.php?p=833986&postcount=12

0 file edits, 2 plugin edits (very quick), 0 template edits.

Nination
11-27-2005, 03:13 AM
It's awesome, but it maybe would be better if the selected user could determine if they would like the post count hidden?

Hellspire
11-27-2005, 04:32 AM
It's awesome, but it maybe would be better if the selected user could determine if they would like the post count hidden?
Would be but that'd involve adding bitfields to the usergroup permissions as well as phrases, and all that all stuff that simply goes beyond the scope of why I wrote this hack. Also that sort of defeats the purpose... if a member has the ability to choose whether or not he/she can view their and other's post count then the one use (if not only, as I can't think of others for this hack) of discouraging an outlet of spam (to gain the highest post count) would be defeated eh? Sorry mate, no time, and other projects to work with.

Nination
11-27-2005, 04:35 AM
No problem. I understand.

Snake
11-27-2005, 10:49 AM
Great work!

FleaBag
11-27-2005, 12:08 PM
You could actually do the user selectable on/off using a custom user profile field.

COBRAws
11-27-2005, 09:40 PM
no more template edits when upgrading! greeeeat!

Hellspire
11-27-2005, 09:44 PM
You could actually do the user selectable on/off using a custom user profile field.
Naturally but then again these are options and that's a profile field... so the only reason why I didn't was because it would be improper to place it there.

no more template edits when upgrading! greeeeat!
Glad it was of use... was this done in 3.0.x by someone else, just curious?

Lea Verou
11-27-2005, 10:03 PM
You could do that via template changes without the need of a plugin :)

Hellspire
11-27-2005, 10:06 PM
You could do that via template changes without the need of a plugin :)
Obviously... so let's go back and now have our long laborous IF conditions, not to mention the fact that you have to do it for every style you have (smiles). So I think this is MUCH simpler =p.

Nination
11-27-2005, 10:06 PM
You could do that via template changes without the need of a plugin :)
As he said, it was to avoid template changes. Sure, you can allow users to turn it on and of with a custom profile field and template change. However, that defeats some of the intent. :ermm:

Hellspire
11-27-2005, 11:58 PM
Dear Installee's:

The hack has been updated out of Beta (probably final release of this as I see no further usage of this hack). What it does in this version is adds a custom field and allows the user to choose whether or not he/she wants to hide post count. Editting of the field, once installed will enable administrators to grant or revoke said ability. This no longer effects usergroups as a whole though if anyone wants to change that to their liking just compare the old code.

Editting of 2 plugins is required and installation should take no more than 15 seconds. Please be sure to UNINSTALL the former edition first.

- Hellspire.
Take note....

Xplorer4x4
11-28-2005, 10:13 AM
Obviously... so let's go back and now have our long laborous IF conditions, not to mention the fact that you have to do it for every style you have (smiles). So I think this is MUCH simpler =p.

Yes but with template edits there is less chance of the plug-in causing problems with another plug in. Plus if you just go into the extensions forum and install the template manager there is no hastle of editing every template. ;)

Hellspire
11-28-2005, 01:10 PM
Yes but with template edits there is less chance of the plug-in causing problems with another plug in. Plus if you just go into the extensions forum and install the template manager there is no hastle of editing every template. ;)
Nice comeback ;) Though let me retort by saying that 99% of the plugins that will have to utilize the variable I hid will not be installed on boards that use ones that conflict with this... unless it's in the background inwhich case yes templates would be better.

Noonster
12-08-2005, 08:07 AM
Would it be possible to use this but make it so Admins can still see post counts??

Cheers
Darren

Hellspire
12-08-2005, 09:52 AM
Would it be possible to use this but make it so Admins can still see post counts??

Cheers
Darren
This hack only allows you to hide post counts in general. So all you'd have to do is have your admins go to their CP and disable the hide to begin with. As such, this hack has been, and will remain to be, something that deludes people into the sense that postcount does not exist.... and you can simply make the fields private and set them all to on in your acp and that'd be the end of that.

Lissa
12-20-2005, 12:11 PM
I love this hack! My users are so concerned about their post counts it's driving me crazy!

I'm not very good at this stuff, so can someone help me out?

I don't want anyone to even know post counts exist. At this point it says "hidden" at post count, and there is an option in the UCP to turn post count on off. I'd like it so that there's no option to turn post count on off, and maybe have it so it doesn't say hidden?

Thanks for the hack!

Hellspire
12-20-2005, 01:03 PM
TY. As stated earlier go into your custom profile fields section of your ACP and make the field private. Have the value set to No for everyone, or you can change the IF condition in the 3 plugins to call a field that doesn't exist (thereby effectively turning it off whether or not the option is enabled).

Lissa
12-20-2005, 01:30 PM
Thanks! That worked :)

lanc3lot
12-20-2005, 02:40 PM
Xm i like the idea, but can this been done, via Usergroups? I mean, to add a field in the options of every Usergroup, and so be able to disable or enable it, accordingly the group that the user is.

:)

Hope its easy to add that feature:)

Hellspire
12-20-2005, 02:43 PM
um yes, through custom bitfields. I will not be doing any modifications however easy they may be on this script however.

lanc3lot
12-20-2005, 02:53 PM
um yes, through custom bitfields. I will not be doing any modifications however easy they may be on this script however.


Xmm, didnt understood what u mean:(

Maybe u mean that u dont have time to do this, although it can be done easily? My coding skills are very low in that case, hope someone can fix this in the near future:)

Hellspire
12-20-2005, 08:01 PM
Xmm, didnt understood what u mean:(

Maybe u mean that u dont have time to do this, although it can be done easily? My coding skills are very low in that case, hope someone can fix this in the near future:)
Forgive me, but this was something I did to satisfy one person and I then did one revision requested here so others could enjoy it. As such this was/is not an ongoing project and I am not offering nor required to upgrade or revise it in any way. If I may state there is no "fixing" involved. What you request is not a "bug" or a problem but merely something you want expanded.

Edit: Sorry I am being short at the moment, but a few minutes ago I got very angry at something. My apologies.

lanc3lot
12-20-2005, 09:25 PM
Forgive me, but this was something I did to satisfy one person and I then did one revision requested here so others could enjoy it. As such this was/is not an ongoing project and I am not offering nor required to upgrade or revise it in any way. If I may state there is no "fixing" involved. What you request is not a "bug" or a problem but merely something you want expanded.

Edit: Sorry I am being short at the moment, but a few minutes ago I got very angry at something. My apologies.


Mate there is no reason to be angry, i hope i didnt insult u or something...i just stated that i couldnt do it my own (i really believed and believe that u meant in previous posts that this can be done easily) and asked for help by other fellow members...

Anyway, sorry again, dont had any intention :)

Hellspire
12-21-2005, 12:37 AM
Mate there is no reason to be angry, i hope i didnt insult u or something...i just stated that i couldnt do it my own (i really believed and believe that u meant in previous posts that this can be done easily) and asked for help by other fellow members...

Anyway, sorry again, dont had any intention :)
nooooooooo no.... you misunderstand... (well i guess it wasn't clear) it wasn't you... it was something with a friend of mind.. sorry about the confusion ;)

Bro_Joey_Gowdy
02-02-2006, 11:16 PM
This sounds great - very effective aginst users who spam the boards to get their post count up.

Can it be controled thru the admincp to target individual users ?

dcpaq2xx
02-25-2006, 01:00 AM
Guys,

This is an excellent mod especially being a plugin.

But this mod needs to be expanded and fine tuned.

Some things to have added would be the ability to hide post counts by user group, and remove the post counts display all together by default without anyone having to modify any code.

The perfect mods are the ones that everything is controlled either through the admin cp or through the users control panel, anything else is just another hack that is a pain in the neck.

Since Hellspire is not willing to do anything further with his hack, would Hellspire be willing to let someone else take over further developement of your mod? And if so is there anyone here that would be willing to take over?

What do you say Hellspire will you let someone take over developement?

Doug

Hellspire
02-25-2006, 01:19 AM
Sure, do as you all please.

dcpaq2xx
02-25-2006, 01:25 AM
Sure, do as you all please.

Thank you Hellspire.

Doug

Scooterpig
02-25-2006, 10:45 PM
Does anyone know how to make this default to Yes instead of the current No it does to now please?

lionslair
04-25-2006, 10:42 AM
Does this work on a per uswergroup basis?

dcpaq2xx
09-13-2006, 12:23 AM
For anyone who is curious, This plugin does not work on Vbulletin 3.6.

When trying to install it you'll get the following database error message.

This is with a fresh install of VB 3.6 with no hacks or mods.

Doug

P.S. Isnt there anyone here on this site thats willing to take over developement of this?

Database error in vBulletin 3.6.0:

Invalid SQL:
INSERT INTO vb3_profilefield (title,description,required,hidden,maxlength,size, displayorder,editable,type,data,height,def,optiona l,searchable,memberlist,regex,form,html) VALUES ('Show Post Count?', 'Allows you to hide post count display or enable it as necessary.', 0, 1, 100, 25, 5, 1, 'radio', 'a:2:{i:0;s:2:"No";i:1;s:3:"Yes";}', 0, 1, 0, 0, 0, '', 5, 0);

MySQL Error : Unknown column 'title' in 'field list'
Error Number : 1054
Date : Tuesday, September 12th 2006 @ 09:19:10 PM
Script : http://www.domainname.com/forums/admincp/plugin.php?do=productimport
Referrer : http://www.domainame.com/forums/admincp/plugin.php?do=productadd
IP Address : 68.163.66.77
Username : ***
Classname : vb_database

Pure Dope
03-11-2007, 01:38 PM
I'm not very good at this stuff, so can someone help me out?


WELL!!!!

Thats ironic.

Pure Dope
03-13-2007, 12:25 AM
dcpa: i got that same error. o well. just go in to ur template and remove or comment out that line. make sure u put good comments incase u want to put it back!