vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Anti-Spam Options - Disable Member Homepage Profile Option based on Post Count or Usergroup by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=256383)

BirdOPrey5 01-02-2011 10:00 PM

Disable Member Homepage Profile Option based on Post Count or Usergroup by BOP5
 
1 Attachment(s)
Brought to you by BirdOPrey5
www.Qapla.com


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.

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,

Quote:

Originally Posted by MatiasCandy (Post 2143920)
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:
HTML Code:

                        <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:
Code:

<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

1 Attachment(s)
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/attachmen...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...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

Quote:

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

Quote:

Originally Posted by BirdOPrey5 (Post 2211865)
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


All times are GMT. The time now is 05:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02617 seconds
  • Memory Usage 1,831KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete