![]() |
Disable Member Homepage Profile Option based on Post Count or Usergroup
1 Attachment(s)
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. :) |
Reserved.
|
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. |
ok, how about one for required post count before being able to add a signature?
|
You can easily hide a signature via a quick template edit-
Edit your postbit or postbit_legacy template Find the code: Code:
__________________<br /> Code:
<if condition="$post[postcount] > 10"> 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. |
You suspect correctly. Thank you...Sorry to hijack your thread over other topic.
|
Definitely a good suggestions on the signature. I am definitely adding this right now to ALL my forums.
|
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?
|
No it won't remove it until/unless they update their profile. If they update their profile it will get removed.
|
Quote:
https://vborg.vbsupport.ru/ This sure would look good in my admincp.... |
Quote:
|
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: |
Is it possible they put it in before you installed the mod? It won't delete ones already there unless they update their profile.
|
Quote:
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! |
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.
|
Working perfectly on 3.8.5
Thanks Joe :up: |
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. |
what would it take to get it working on 4x?
|
4.x version here: https://vborg.vbsupport.ru/showthread.php?t=256383
|
Thank you. Look for this and seems really good.
|
Sorry for the huge necro... did the Signature option ever make it?
Home Page + Signature limitations would be pure win! |
Quote:
|
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.
|
I ended up adding conditionals around sig link in the USERCP_SHELL template.
Find: Code:
<if condition="$show['siglink']"> Change it to: Code:
<if condition="$show['siglink']"> |
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. |
That stops any member without 10 post the ability to have a sig or even see the link in usercp.
|
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"). |
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 |
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. |
Quote:
Code:
<phpcode><![CDATA[if (!in_array($vbulletin->userinfo['usergroupid'], explode(',' , $vbulletin->options['blhomebop5_ugs']))) Quote:
Quote:
Thanks, Jim |
Untested but...
if you change Code:
if (!in_array($vbulletin->userinfo['usergroupid'], explode(',' , $vbulletin->options['blhomebop5_ugs']))) Code:
if (!is_member_of($vbulletin->userinfo, explode(',' , $vbulletin->options['blhomebop5_ugs']))) |
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 |
All times are GMT. The time now is 07:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|