View Full Version : Anti-Spam Options - Disable Member Homepage Profile Option based on Post Count or Usergroup by BOP5
BirdOPrey5
01-02-2011, 10:00 PM
Brought to you by BirdOPrey5
www.Qapla.com (http://www.qapla.com/mods/)
Update Version 1.7 -
Usergroup permissions now work for primary OR secondary (additional) usergroups.
You now check a box to choose usergroups- no more looking up specific IDs.
Added option to delete homepage link of any users who get perm banned.
Official Mod Thread now on Qapla.com (http://www.qapla.com/mods/showthread.php/351-Disable-Member-Homepage-Profile-Option-based-on-Post-Count-or-Usergroup-by-BOP5).
Update Version 1.5 - This upgrade will disable links to homepages for users who may have entered a homepage before this mod was installed. As usual it will also block new members from entering a homepage based on the rules you set (post count or usergroup.)
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 4.0.8, 4.1.11, and 4.1.12. It should work on other 4.0/4.1 versions as well. It will not work on 3.8, I have a 3.x version available in the 3.8 mods section.
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 see the manual edits in Post #12 of this thread.
Install as normal, full instructions included in text file inside zip.
Contains: No files to upload, 4 plugins, 2 phrases, some new options.
You can change the default messages by editing the two phrases.
See screenshots for details.
Live Demo: www.qapla.com/mods/ (but you will need to register to see it in action.)
------------------------------------------------------
Please "Mark as Installed" if you use this. :)
Donations always appreciated. :up:
Nominate MOTM if you LOVE it! ;)
rob01
01-03-2011, 05:02 AM
thanks, installed
sulasno
01-03-2011, 08:23 AM
tagged and thanks
MatiasCandy
01-03-2011, 10:21 PM
What I asked for an more! Exactly what I needed. Simple cool mod
LOVE IT!
DAMINK
01-03-2011, 10:29 PM
Yep i have asked for this before too.
Great mod mate. Seriously i get loads of members try register just to spam there profiles.
This will put a stop too that.
Installed and rated.
OldSchoolDSL
01-04-2011, 01:39 AM
Very useful
Installed and working
4.1 PL2
MatiasCandy
01-04-2011, 02:41 PM
The bots sign up and get stuck because they cannot fill in this information I love it.
What we did was disabled signatures for new registered users, created another group for anyone that has been a member over 30 days and has 30 posts. Once you reach this limit the forums will move you into this group. Now you can use Signatures and Home Link.
The word is already out and the SPAM is gone.
Thank you once again I wish this was a default option of vBulletin.
Leica.Robbiani
01-04-2011, 11:07 PM
Hi,
The bots sign up and get stuck because they cannot fill in this information I love it.
If this is the only reason why you may you use this mod, there's a much better solution out there, called GlowHost. In four months I had just one (!) registration of a silly bot.
But anyway, I installed this mod here for some other "friendly" guys, working great. Thanks a lot.
Best regards
L.R.
mikez006
01-05-2011, 11:57 AM
Great! Installing now
mikez006
01-05-2011, 05:09 PM
Installed it, but I still see the Homepage link on profiles that shouldn't have it. Does this only affect new users?
BirdOPrey5
01-05-2011, 05:13 PM
No it should work on all... If you have a heavily customized style it may not work, I can give you manual template edits in that case.
Curious - can I get a link to the site?
BirdOPrey5
01-05-2011, 05:40 PM
The manual template edits for those interested is...
Open modifyprofile template... search for "homepage"
The code will look something like, but not exactly, this:
<div class="blockrow">
<label for="tb_homepage">{vb:rawphrase home_page_url}:</label>
<input type="text" class="primary textbox" name="homepage" id="tb_homepage" value="{vb:raw bbuserinfo.homepage}" maxlength="200" dir="ltr" tabindex="1" />
<p class="description">
{vb:rawphrase let_other_visitors_know_url}
</p>
</div>
To disable it for everyone change type="text" to type="hidden", change value="{vb:raw bbuserinfo.homepage}" to value="" and change {vb:rawphrase let_other_visitors_know_url} to your own disabled message, like: This option has been disabled.
To block it until a set number of posts is reached is a little more difficult. Replace the text above with:
First you need a condition:
<vb:if condition="$vbulletin->userinfo['posts'] < 10">
<div class="blockrow">
<label for="tb_homepage">{vb:rawphrase home_page_url}:</label>
<input type="hidden" class="primary textbox" name="homepage" id="tb_homepage" value="" maxlength="200" dir="ltr" tabindex="1" />
<p class="description">
You don't have enough posts to use this option.
</p>
</div>
<vb:else />
<div class="blockrow">
<label for="tb_homepage">{vb:rawphrase home_page_url}:</label>
<input type="text" class="primary textbox" name="homepage" id="tb_homepage" value="{vb:raw bbuserinfo.homepage}" maxlength="200" dir="ltr" tabindex="1" />
<p class="description">
{vb:rawphrase let_other_visitors_know_url}
</p>
</div>
</vb:if>
But remember this won't be your exact code so make sure you keep your customizations, you really just need to alter the code in red.
Change the number 10 in the if condition to whatever minimum value of posts you want.
mikez006
01-05-2011, 07:04 PM
yes, its using a custom theme, my site is http://www.worgen.info/forums/
thanks, i'll try the changes and see if that works.
BirdOPrey5
01-05-2011, 07:20 PM
It seems to be working fine from what iIcan see... Did you have your "test" user in the "immune" usergroup maybe?
https://vborg.vbsupport.ru/attachment.php?attachmentid=125276&stc=1&d=1294262411
mikez006
01-06-2011, 02:59 PM
Ah I see now.
It is working. I thought it would also remove the Homepage link from current members.
http://www.worgen.info/forums/member.php?28-aabulgarForeva
This person registered before the mod and still have the homepage URL visible.
BirdOPrey5
01-06-2011, 03:19 PM
I see what the issue is... I will work on it... Until/unless the member with the existing homepage link updates their profile the existing link will stay.
I will see if I can make a change so it can pro-actively remove homepage links for people who set it before the mod was installed.
Thanks for pointing this out.
BirdOPrey5
01-06-2011, 11:57 PM
OK... Updated to version 1.5... it will now block homepage links for people who may have entered one before you installed this mod and who wouldn't be allowed to have one under your new "rules."
djbaxter
01-07-2011, 12:07 AM
Download Now
Google Analytics in Archive by BOP5 - VB4-14.zip (3.1 KB, 0 downloads)
Looks like you uploaded the wrong file. :)
BirdOPrey5
01-07-2011, 12:12 AM
Oh jeeze... it's been a long day. Fixed. :o
DAMINK
01-07-2011, 12:52 AM
Latest update just completes this mod.
Great mod and a must have for every forum.
This will annoy the marketers and there bots :)
Thanks again. :)
OldSchoolDSL
01-07-2011, 02:40 AM
Update, installed (allow overwrite, yes).
Working
4.1 PL2
The Rocketeer
01-07-2011, 05:40 AM
Seems to be Working with 4.1 PL2, Thanks a whole lot for this one..
A Request, can you please make a mod like this for user albums , visitor messages and some other minor things? so that I can completely disable those spammers from posting any links of their nasty sites even on their profiles..?
Great work by the way ..
BirdOPrey5
01-07-2011, 12:02 PM
Albums and visitor messages, PMs, and such can be controlled by usergroup permissions coupled with a promotions system so that when they reach 10 (or whatever) posts they are given extra permissions.
A quick outline to implement this...
Assuming your Registered Users group is the "normal" permissions you want everyone to have...
Go to your Usergroup Manager -> Add A New Usergroup... choose to copy the permissions from your Registered Users group, so that will make your "New Group" identical to "Registered Users."
Now go to Registered Users and disable visitor messages, albums, attachments, PMs, anything you want to disable for new members.
(You might want to close your board for this so active members don't get upset their permissions went away for a short time,..)
Now in Admin CP go to Usergroups -> Promotions -> Add a New Promotion
Usergroup: Registered Users
Reputation: 0
Days Registered: 0
Posts: 10 (or whatever you choose)
Promotion Strategy: Posts
Reputation Comparison Strategy: (ignored - doesn't matter)
Move to Usergroup: Set this to the New Group you just created.
OK... now the "hard" work is done but your users are still all in "Registered Users" because promotions are run from a scheduled task... so we want to force that to run now...
In Admin CP -> Scheduled Task Manager -> User Promotions -> Click on "Go"
This will promote all your existing registered users who have enough posts to your New group so they will have the same permissions from when you started.
And now going forward all new members will start off with limited permissions. They will automatically be promoted within 1 hour of reaching any minimum post number you set (10 in my example.)
FreshPrince
04-23-2011, 05:22 PM
Is there a way or a mod to just make the banned usergroup unable to use the homepage option? I like to ban the fake users created by bots. When they start an account, their casino or DUI homepage tells me that I should ban them, but I would also like them to be deprived of that link after I ban them. Thanks. :)
BirdOPrey5
04-23-2011, 07:00 PM
That's a good idea, I will try to include that the next time I update this mod.
FreshPrince
04-23-2011, 07:25 PM
Sounds good. I'll definitely take it. Other smart VB owners will too. No point in having 3 spammers a day create accounts without banning them.
sticky
05-09-2011, 04:21 AM
Very useful.
Welshy2008
06-23-2011, 01:15 PM
** Tagged** And will be installing. Would love to see the same thing included in this mod, but for the prevention of URL links in signatures.
I do know there are some already out there, or at least there was, but I would prefer the one mod to do it. :)
Any plans on doing this, please?
Many Thanks.
BirdOPrey5
06-23-2011, 06:24 PM
Disabling links in signatures would be a very different mod. Disabling signatures completely is a possibility.
Welshy2008
06-23-2011, 08:36 PM
Disabling links in signatures would be a very different mod. Disabling signatures completely is a possibility.
Disabling links in signatures is what I was requesting. not the latter. :(
Thanks for your reply. :)
Welshy2008
06-27-2011, 09:22 AM
Installed and working on 4.1.3 AND 4.1.4.
WreckRman2
07-24-2011, 04:25 PM
Geeting errors from this after upgrading to 4.1.4, anyone else?
BirdOPrey5
07-24-2011, 07:24 PM
What type of errors? It's working fine on my 4.1.4 test site.
Luca_ITA
08-07-2011, 02:03 AM
THX. Works perfect on 4.1.5pl1
synseal
08-09-2011, 10:07 PM
Exactly what I was looking for, Thank you!.
We get so many signing up and adding there homepage without posting just trying to get links to there site around the web.
As above, working fine on 4.1.5-pl1.
*Installed + rated.
bigfish
11-18-2011, 04:11 PM
thanks, it's installed and working fine on new signups. However, the homepage link is still showing on previously registered users. Any way to remove it from them with one fell swoop?
BirdOPrey5
11-19-2011, 08:04 PM
Version 1.5 should be hiding the link even if previously entered- can I get a link to your site- to a page with the problem?
Luca_ITA
12-23-2011, 01:02 PM
On my forum mod works good. I'm using v4.1.9.
Thank you!
DAMINK
12-23-2011, 11:04 PM
Personally my favorite mod above all.
I simply love it when spam bots come and beat the registration mods i have but fail in the homepage url.
Simple and sweet. LOVE IT.
datoneer
12-24-2011, 01:00 PM
Awesome mod. Installed and rated! Thanks. Works with 4.1.8
Welshy2008
01-23-2012, 09:11 AM
Can anyone confirm this working on 4.1.10 please?
ForceHSS
01-23-2012, 11:44 AM
Can anyone confirm this working on 4.1.10 please?
yes it does have it myself
BirdOPrey5
04-10-2012, 02:52 PM
Updated to Version 1.7
Includes FreshPrince's suggestion to delete Homepages of (perm) banned users.
Also updated code to work with primary or secondary groups.
Also made it easier to pick immune usergroups.
ForceHSS
04-10-2012, 04:43 PM
thanks for the update
reginasmola
05-01-2012, 03:06 AM
The manual template edits for those interested is...
Open modifyprofile template... search for "homepage"
The code will look something like, but not exactly, this:
<div class="blockrow">
<label for="tb_homepage">{vb:rawphrase home_page_url}:</label>
<input type="text" class="primary textbox" name="homepage" id="tb_homepage" value="{vb:raw bbuserinfo.homepage}" maxlength="200" dir="ltr" tabindex="1" />
<p class="description">
{vb:rawphrase let_other_visitors_know_url}
</p>
</div>
To disable it for everyone change type="text" to type="hidden", change value="{vb:raw bbuserinfo.homepage}" to value="" and change {vb:rawphrase let_other_visitors_know_url} to your own disabled message, like: This option has been disabled.
To block it until a set number of posts is reached is a little more difficult. Replace the text above with:
First you need a condition:
<vb:if condition="$vbulletin->userinfo['posts'] < 10">
<div class="blockrow">
<label for="tb_homepage">{vb:rawphrase home_page_url}:</label>
<input type="hidden" class="primary textbox" name="homepage" id="tb_homepage" value="" maxlength="200" dir="ltr" tabindex="1" />
<p class="description">
You don't have enough posts to use this option.
</p>
</div>
<vb:else />
<div class="blockrow">
<label for="tb_homepage">{vb:rawphrase home_page_url}:</label>
<input type="text" class="primary textbox" name="homepage" id="tb_homepage" value="{vb:raw bbuserinfo.homepage}" maxlength="200" dir="ltr" tabindex="1" />
<p class="description">
{vb:rawphrase let_other_visitors_know_url}
</p>
</div>
</vb:if>
But remember this won't be your exact code so make sure you keep your customizations, you really just need to alter the code in red.
Change the number 10 in the if condition to whatever minimum value of posts you want.
I have installed this on 4.1.12 Patch Level 1 with the default VBulletin template and it disables all Home Page links no matter what settings I choose.
Settings:
Enable Block Member Homepages: Yes
Minimum Post Count: 10
Don't Allow Member Homepages: Yes
Usergroup Override: Check two of private user groups
Delete Homepage on Ban: Yes
My goal is to only have Home Page links display for two usergroups only, which I checked in the Usergroup Override.
Do you have a manual template edit code to only display to usergroups 9 & 10?
Your help would be appreciated.
BirdOPrey5
05-01-2012, 08:43 AM
First- Turn the option to "Don't Allow Member Homepages" to No.
Then in the manual template edit instructions edit the line:
<vb:if condition="$vbulletin->userinfo['posts'] < 10">
to
<vb:if condition="is_member_of($bbuserinfo, 9, 10)">
That will block it only for usergroups 9 and 10.
Then, if it works, please "Mark as Installed" in the top post. :)
addamroy
06-09-2012, 07:47 PM
I installed this... however I had to go the 'manual template edits' route to set the limit.
You however neglected to mention what manual template edits we need to make to disable homepages for people who have already put one in before the mod was installed. This isn't working by default so if you could share the manual template edit to accomplish that, that would be awesome!
BirdOPrey5
06-10-2012, 10:44 AM
Disabling homepages for people who have already entered it shouldn't need manual template edits. They are done by code that should work regardless of your style.
MyGameCompany
07-19-2012, 11:37 AM
Installed, and working great!
But now I see a few spammers are dumping links into the biography and other profile fields. Is there a way to turn off the biography, location, interests, occupation, ICQ UIN, Yahoo ID, and other such fields for a particular user group? (I want the Registered users group in my forum to be extremely limited - once I know a user is not a spammer, I promote that user to an Approved user group that has normal forum privileges).
Alternatively, is there a way to prevent links or web addresses in those fields?
BirdOPrey5
07-19-2012, 05:19 PM
Installed, and working great!
But now I see a few spammers are dumping links into the biography and other profile fields. Is there a way to turn off the biography, location, interests, occupation, ICQ UIN, Yahoo ID, and other such fields for a particular user group? (I want the Registered users group in my forum to be extremely limited - once I know a user is not a spammer, I promote that user to an Approved user group that has normal forum privileges).
Alternatively, is there a way to prevent links or web addresses in those fields?
Those things are no doubt possible but not part of this mod, no easy way to adapt it to cover those fields either.
https://vborg.vbsupport.ru/showthread.php?t=256383
Won't do all u ask but will help a bit
? Linked back to this mod?
ForceHSS
07-19-2012, 08:59 PM
Those things are no doubt possible but not part of this mod, no easy way to adapt it to cover those fields either.
? Linked back to this mod?
Lol I did, that will teach me not to pay attention
Marcin_J_
09-04-2012, 12:23 PM
working fine on 4.2.0 PL2
chaz7979
12-20-2012, 10:40 AM
Seems to work fine on 4.2.0 PL3 as well.
tanzeelniazi
03-20-2013, 08:57 PM
working fine in 4.2.0
mikez006
07-18-2013, 07:10 PM
I installed the mod and its partially working, however for those members who already have homepage links and under 10 posts , they are still showing. How do we get rid of those links?
BirdOPrey5
07-18-2013, 10:23 PM
Can I get a link to your forum?
WHere are you seeing their homepage URLs? (the people with < 10?)
Do you have a custom style? If so can you see if the homepages are visible on the default style. it will let me know where the issue is.
ForceHSS
07-18-2013, 10:33 PM
I installed the mod and its partially working, however for those members who already have homepage links and under 10 posts , they are still showing. How do we get rid of those links?
Edit there profiles
BirdOPrey5
07-18-2013, 10:36 PM
Edit there profiles
Shouldn't be necessary as of version 1.5.
ForceHSS
07-18-2013, 10:43 PM
Had to on mine not sure what version it was then
BirdOPrey5
07-18-2013, 10:54 PM
Hmmm... Do you have a custom style? I haven't looked at this mod a year+, it's possible something changed.
ForceHSS
07-19-2013, 08:59 AM
Just a skin from here when it happened
BirdOPrey5
07-19-2013, 10:18 AM
Unfortunately getting it here doesn't mean anything in terms of quality or coding standards.
The way this mod removes the links for existing URLs is to look through the template code for specific values and just removes or replaces it with its own code.
Basically if the code it looks for is different than it expects it never finds it and the code can't be removed.
Usually even in custom mods the default code tends to be left alone with most changes done by CSS, so the mod works- but not always.
The way to debug if this is due to a custom style is to try against the real default style and see if the problem exists there. If it does then it a problem with the mod itself. If it does work on the default style the issue is with the custom template- the mod or the template can likely still be made to work, just means I need to change different code and not the core logic.
ForceHSS
07-19-2013, 10:41 AM
was not a problem was easy to fix at the time
TundraSoul
09-22-2013, 08:02 PM
Do you have a quick query I can run to remove the home page links from those who have posted them prior to this plugin being installed?
I don't believe this plugin purges any current links prior to it being installed?
BirdOPrey5
09-22-2013, 08:28 PM
No it does not purge old links but it should block them from being accessible.
ALWAYS HAVE A DATABASE BACKUP BEFORE RUNNING A MANUAL QUERY- This is untested, use at your own risk.
I would try-
UPDATE user SET homepage = '' WHERE homepage <> '' AND posts < 10
That should update the user table, it will set the homepage field to blank for any user where it isn't already blank who has less than 10 posts.
If you really want to wipe it out for everyone completely, including admins/mods then the query is just-
UPDATE user SET homepage = '' WHERE homepage <> ''
Note in all cases those are two single quotes next to each other '' not a single double-quote character.
MEdwards
11-09-2013, 06:02 PM
Again, kudos for a great mod. Easy to import, easy to modify.
Works great.
newguy
01-10-2014, 10:20 AM
Thanks
dougdirac
12-08-2014, 05:20 AM
Does this still work under PHP 5.5? I moved servers recently and I see new members with homepages.
RawBoard
12-13-2014, 08:15 PM
thanks...
rahuldhangar
06-22-2015, 04:20 PM
Thanks a huge! Installed :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.