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)

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-

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.

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


All times are GMT. The time now is 12:49 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.01059 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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