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?

ForceHSS 07-19-2012 08:59 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2349588)
Those things are no doubt possible but not part of this mod, no easy way to adapt it to cover those fields either.



? Linked back to this mod?

Lol I did, that will teach me not to pay attention

Marcin_J_ 09-04-2012 12:23 PM

working fine on 4.2.0 PL2

chaz7979 12-20-2012 10:40 AM

Seems to work fine on 4.2.0 PL3 as well.

tanzeelniazi 03-20-2013 08:57 PM

working fine in 4.2.0

mikez006 07-18-2013 07:10 PM

I installed the mod and its partially working, however for those members who already have homepage links and under 10 posts , they are still showing. How do we get rid of those links?

BirdOPrey5 07-18-2013 10:23 PM

Can I get a link to your forum?

WHere are you seeing their homepage URLs? (the people with < 10?)

Do you have a custom style? If so can you see if the homepages are visible on the default style. it will let me know where the issue is.

ForceHSS 07-18-2013 10:33 PM

Quote:

Originally Posted by mikez006 (Post 2434328)
I installed the mod and its partially working, however for those members who already have homepage links and under 10 posts , they are still showing. How do we get rid of those links?

Edit there profiles

BirdOPrey5 07-18-2013 10:36 PM

Quote:

Originally Posted by ForceHSS (Post 2434346)
Edit there profiles

Shouldn't be necessary as of version 1.5.

ForceHSS 07-18-2013 10:43 PM

Had to on mine not sure what version it was then

BirdOPrey5 07-18-2013 10:54 PM

Hmmm... Do you have a custom style? I haven't looked at this mod a year+, it's possible something changed.

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 09:22 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.01396 seconds
  • Memory Usage 1,813KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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