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


All times are GMT. The time now is 12:50 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.01269 seconds
  • Memory Usage 1,750KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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