PDA

View Full Version : Anti-Spam Options - Disable Member Homepage Profile Option based on Post Count or Usergroup


BirdOPrey5
12-23-2010, 10:00 PM
This mod will remove the option to allow members to post a "Homepage" URL in their profile based on post count and/or usergroup id. In addition you can disable it for everyone if you want.

This is often requested because some admins feel some members join their forum only to place links to their own pages and never contribute to the forum. This will require users attain a minimum post count before posting- or stop them from using a homepage altogether.

You may override these settings by specifying immune usergroups- usually admins and maybe mods.

This has been tested on 3.8.6 and will work across all 3.8 versions. It should work on earlier versions too but not tested. It will not work on vBulletin 4.0 and above.
4.x version is here: https://vborg.vbsupport.ru/showthread.php?t=256383

If you have a heavily customized style then it is possible this mod will not work at all- it works based on automatic template edits and if the right default code isn't there nothing will happen. This is not a "bug." If you have a customized style try it first, if it doesn't work I can help you with some manual template edits to achieve the same effects as using this mod.

Install as normal, full instructions included in text file inside zip.

Contains: No files to upload, 1 plugin, 2 phrases, some new options.

You can change the default messages by editing the two phrases.

See screenshots for details.

Live Demo: www.juot.net/forums/ (but you will need to register to see it in action.)

Please Mark as Installed if you use this. :)

BirdOPrey5
12-24-2010, 06:00 PM
Reserved.

blind-eddie
12-27-2010, 11:39 PM
Awesome!!
The blind guy clicks installed..
After reading https://vborg.vbsupport.ru/showthread.php?t=255798 I knew you would make it.

I too get hit with the spammers joining just to add a home page link, a sig with links & thier ICQ Number.
Installed, tested & working on 3.8.4
Thank you.

blind-eddie
12-28-2010, 12:50 AM
ok, how about one for required post count before being able to add a signature?

BirdOPrey5
12-28-2010, 03:05 AM
You can easily hide a signature via a quick template edit-

Edit your postbit or postbit_legacy template

Find the code:
__________________<br />
$post[signature]
Replace it with:
<if condition="$post[postcount] > 10">
__________________<br />
$post[signature]
</if>

That won't show signatures of anyone with 10 or fewer posts...

But now I suspect you mean to disable them from even making a signature... I'll play around with this and see if I can add it to a future version of this mod or a separate release... will post here either way.

blind-eddie
12-28-2010, 12:13 PM
You suspect correctly. Thank you...Sorry to hijack your thread over other topic.

robdawg
01-11-2011, 04:17 PM
Definitely a good suggestions on the signature. I am definitely adding this right now to ALL my forums.

ehmax
01-21-2011, 02:18 AM
If members have already posted a URL in their homepage profile, then this add-on is installed, and then the member doesn't meet the criteria, will the URL be removed?

BirdOPrey5
01-21-2011, 02:43 AM
No it won't remove it until/unless they update their profile. If they update their profile it will get removed.

blind-eddie
02-02-2011, 01:51 PM
But now I suspect you mean to disable them from even making a signature... I'll play around with this and see if I can add it to a future version of this mod or a separate release... will post here either way.



https://vborg.vbsupport.ru/



This sure would look good in my admincp....

Basscat
02-11-2011, 08:44 PM
http://blind-eddie.com/forum/imagehosting/14d497c60582cb.png



This sure would look good in my admincp....

I would like this also! :cool:

Basscat
04-04-2011, 09:35 PM
I have this installed. Somehow....a member is still able to add his home page without making any posts. :(

The hack appears to work correctly when I try it. :confused:

BirdOPrey5
04-04-2011, 11:22 PM
Is it possible they put it in before you installed the mod? It won't delete ones already there unless they update their profile.

Basscat
04-06-2011, 10:05 PM
Is it possible they put it in before you installed the mod? It won't delete ones already there unless they update their profile.

This has been happening since I installed the modification.....but its only one person. It happened again today. :( This person is a spammer, who uses multiple email address and ip's that have been showing up on stopforumspam.com.

I just checked a username I registered a month ago to test this with, and your hack is working properly. Some how, and I am not sure how.....but they are doing it. Something I have noticed.....They register, leave, and come back about an hour or so later, and I believe this is when they make the change.

I am beginning to think they are doing it another way. I am running vb3.8.2, because I did not want to do the upgrade. Some of the hacks I am using will not work the newest version of vb3.8.7. I may break down and do the upgrade anyways. Unfortunately, this time of year is when my website is the busiest.

Thanks again!

BirdOPrey5
04-07-2011, 02:30 AM
I suppose they could be using some type of hacking tool to edit the code being submitted via the form element and bypassing the mod. Unfortunately I can't think of much of a way to prevent that at the moment.

viper357
04-12-2011, 07:21 PM
Working perfectly on 3.8.5

Thanks Joe :up:

MjrNuT
04-13-2011, 07:08 PM
Hey BOP,

Your mod has spurned an idea. Not meaning to ask on including.

Ability to lockdown entire profile. Using your same options of post count or usergroup.

Curious to know if possible to say change a person's ugroup such that they are prevented from modifying their profile at all.

Thanks for any input and/or redirection to a mod that addresses this. I searched based on the thread prefix "Administrative and Maintenance Tools" w/o anything seemingly fitting this idea.

Edit: duh. Can just create a Ugroup that removes that permission. My bad.

mountainlife
04-16-2011, 02:07 PM
what would it take to get it working on 4x?

BirdOPrey5
04-16-2011, 10:02 PM
4.x version here: https://vborg.vbsupport.ru/showthread.php?t=256383

azn_romeo_4u
03-02-2013, 04:37 PM
Thank you. Look for this and seems really good.

ETDC
03-20-2013, 08:38 PM
Sorry for the huge necro... did the Signature option ever make it?

Home Page + Signature limitations would be pure win!

viper357
03-21-2013, 07:38 AM
Sorry for the huge necro... did the Signature option ever make it?

Home Page + Signature limitations would be pure win!I use this mod for that - https://vborg.vbsupport.ru/showthread.php?t=249378

ETDC
03-21-2013, 09:41 AM
Thanks but would prefer post-count based. I do have Cyb's post count hack but it's a monumental pain to enable for each of my many categories.

blind-eddie
03-21-2013, 11:31 AM
I ended up adding conditionals around sig link in the USERCP_SHELL template.

Find:
<if condition="$show['siglink']">
<tr>
<td class="$navclass[signature]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr>
</if>


Change it to:

<if condition="$show['siglink']">
<tr><if condition="$bbuserinfo['posts'] > 10">
<td class="$navclass[signature]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></if></tr>
</if>

Works perfect....

ETDC
03-21-2013, 01:30 PM
Thanks. What does that actually do? Not show sig and/or prevent adding one?

The other complication is that the above also prevents paid members having a sig.

blind-eddie
03-21-2013, 01:42 PM
That stops any member without 10 post the ability to have a sig or even see the link in usercp.

eJM
10-23-2013, 06:07 AM
I just installed this mod and discovered the Usergroup Override is not working as it should. I added 8 usergroups, each separated by a comma (I also tried separating by a comma AND a space). When I try it out with my test user account, it still will not allow the user to add a home page URL.

After testing this a while, it appears that the usergroup override has to be a Primary usergroup. That doesn't work in my situation because the primary usergroup would have to be manually changed - none of the 8 groups I want to override are attained via vB Promotion. Is there a way to fix this?

Thank you,

Jim
PS: if you update the whole mod, please correct the misspelling (vB Options, min. post count: "much" should be "must").

eJM
03-22-2014, 12:09 AM
Joe, are you no longer supporting this mod?

I am also experiencing a problem reported previously that a user has been able to add a URL home page with only 3 posts, instead of the 10 required. And he is not a spammer or hacker. He claims the option was available and used it. I just tested it with one of my test accounts and the mod seemed to work they way it should. I don't know what the other member did different.

Jim

BirdOPrey5
03-23-2014, 12:19 PM
Hello,

Yes this mod was only designed to work with primary usergroups. It would need a code change to work with secondary groups.

If someone added the URL before the mod was installed it would still exist, there is nothing in this mod to remove URLs set before installation.

Also these days with mobile apps or mobile styles it is possible to get around this mod- those could be possible ways he did it.

eJM
03-23-2014, 05:54 PM
Yes this mod was only designed to work with primary usergroups. It would need a code change to work with secondary groups.
Any hope of this being done? Is there a line in the XML that I can modify myself? This is the only line of code that mentions usergroupid:
<phpcode><![CDATA[if (!in_array($vbulletin->userinfo['usergroupid'], explode(',' , $vbulletin->options['blhomebop5_ugs'])))
{

If someone added the URL before the mod was installed it would still exist, there is nothing in this mod to remove URLs set before installation.
As you have mentioned before. I understood this. My last post above was in reference to a new member. He is in usergroup 9. I don't recall how many original vB usergroups there were.

Also these days with mobile apps or mobile styles it is possible to get around this mod- those could be possible ways he did it.
This might be the problem. I have Tapatalk installed, but don't know if he uses it.

Thanks,

Jim

BirdOPrey5
03-24-2014, 11:32 AM
Untested but...

if you change

if (!in_array($vbulletin->userinfo['usergroupid'], explode(',' , $vbulletin->options['blhomebop5_ugs'])))

to

if (!is_member_of($vbulletin->userinfo, explode(',' , $vbulletin->options['blhomebop5_ugs'])))

should work with secondary groups...

eJM
03-24-2014, 01:07 PM
Yes, that does work. I tested it with a fake member and it worked fine. While I was editing the XML, I also edited line 65 and changed the word "much" to "must."

Thank you very much.

Jim