Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #62  
Old 07-19-2013, 08:59 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a skin from here when it happened
Reply With Quote
  #63  
Old 07-19-2013, 10:18 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

was not a problem was easy to fix at the time
Reply With Quote
  #65  
Old 09-22-2013, 08:02 PM
TundraSoul TundraSoul is offline
 
Join Date: Mar 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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-

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

Code:
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.
Reply With Quote
Благодарность от:
TundraSoul
  #67  
Old 11-09-2013, 06:02 PM
MEdwards MEdwards is offline
 
Join Date: Mar 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Again, kudos for a great mod. Easy to import, easy to modify.

Works great.
Reply With Quote
  #68  
Old 01-10-2014, 10:20 AM
newguy's Avatar
newguy newguy is offline
 
Join Date: Nov 2007
Location: USA
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
Благодарность от:
BirdOPrey5
  #69  
Old 12-08-2014, 05:20 AM
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this still work under PHP 5.5? I moved servers recently and I see new members with homepages.
Reply With Quote
  #70  
Old 12-13-2014, 08:15 PM
RawBoard RawBoard is offline
 
Join Date: Sep 2013
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks...
Reply With Quote
  #71  
Old 06-22-2015, 04:20 PM
rahuldhangar rahuldhangar is offline
 
Join Date: Dec 2014
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a huge! Installed
Reply With Quote
Reply

Thread Tools

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 05:31 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
  • Page Generation 0.07179 seconds
  • Memory Usage 2,342KB
  • Queries Executed 28 (?)
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
  • (2)bbcode_code
  • (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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (8)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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