Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Disable Member Homepage Profile Option based on Post Count or Usergroup by BOP5 Details »»
Disable Member Homepage Profile Option based on Post Count or Usergroup by BOP5
Version: 1.7, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Anti-Spam Options - Version: 4.x.x Rating:
Released: 01-02-2011 Last Update: 04-09-2012 Installs: 167
Supported Uses Plugins Auto-Templates
Translations  

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!

Download Now

File Type: zip DisableMemberHomepagesbyBOP5 - VB4 v17.zip (4.6 KB, 514 views)

Screenshots

File Type: jpg ss_disablehomepagevb4.jpg (80.4 KB, 0 views)
File Type: jpg ss_disablehomepagevb4_2.jpg (78.0 KB, 0 views)
File Type: jpg ss_disablehomepagevb4_3.jpg (81.0 KB, 0 views)
File Type: jpg disable_hp_vb4_settings.jpg (102.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
Canadianbacon, LOGECT, Luca_ITA, nacaruncr, Watersoul, Welshy2008

Comments
  #42  
Old 01-23-2012, 09:11 AM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone confirm this working on 4.1.10 please?
Reply With Quote
  #43  
Old 01-23-2012, 11:44 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Welshy2008 View Post
Can anyone confirm this working on 4.1.10 please?
yes it does have it myself
Reply With Quote
Благодарность от:
BirdOPrey5
  #44  
Old 04-10-2012, 02:52 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #45  
Old 04-10-2012, 04:43 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the update
Reply With Quote
Благодарность от:
BirdOPrey5
  #46  
Old 05-01-2012, 03:06 AM
reginasmola reginasmola is offline
 
Join Date: Aug 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
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.
Reply With Quote
  #47  
Old 05-01-2012, 08:43 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #48  
Old 06-09-2012, 07:47 PM
addamroy addamroy is offline
 
Join Date: Sep 2010
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #49  
Old 06-10-2012, 10:44 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #50  
Old 07-19-2012, 11:37 AM
MyGameCompany MyGameCompany is offline
 
Join Date: Dec 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Благодарность от:
BirdOPrey5
  #51  
Old 07-19-2012, 05:19 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MyGameCompany View Post
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 View Post
https://vborg.vbsupport.ru/showthread.php?t=256383
Won't do all u ask but will help a bit
? Linked back to this mod?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:31 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06054 seconds
  • Memory Usage 2,370KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (9)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete