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)

Welshy2008 01-23-2012 09:11 AM

Can anyone confirm this working on 4.1.10 please?

ForceHSS 01-23-2012 11:44 AM

Quote:

Originally Posted by Welshy2008 (Post 2291322)
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

Quote:

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

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:

Code:

<vb:if condition="$vbulletin->userinfo['posts'] < 10">
to

Code:

<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

Quote:

Originally Posted by MyGameCompany (Post 2349472)
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.

Quote:

Originally Posted by ForceHSS (Post 2349519)
https://vborg.vbsupport.ru/showthread.php?t=256383
Won't do all u ask but will help a bit

? Linked back to this mod?


All times are GMT. The time now is 01:45 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.01123 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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