vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Option to hide user profile (https://vborg.vbsupport.ru/showthread.php?t=321192)

Elixar 01-04-2016 01:36 AM

Thanks Mark!

setishock 01-04-2016 06:55 AM

Mark this would be helpful to keep the bots from looking at user profiles. Since at my forum they seem to be looking up banned user profiles.

Instead of having to put in each user name, is there a way to do an "all" command instead of individual names?

Elixar 01-05-2016 12:00 PM

Quote:

Originally Posted by setishock (Post 2561918)
Mark this would be helpful to keep the bots from looking at user profiles. Since at my forum they seem to be looking up banned user profiles.

Instead of having to put in each user name, is there a way to do an "all" command instead of individual names?


For groups?

MarkFL 01-06-2016 05:45 AM

1 Attachment(s)
Okay, version 1.2 (which I have attached), allows you to select entire usergroups whose profiles will be hidden (from the groups you select from which to hide them), and allows you to select usergroups who will see a new link on the profile pages of users (not part of a hidden groups already) that will allow you to hide/unhide their profiles.

There is an external script you need to upload this time (it handles the hiding/unhiding from the clickable link).

If a user whose profile is being viewed is NOT a member of a usergroup that is hidden, and the browsing user is a member of a usergroup allowed to hide/unhide profiles, then if the profile being viewed is not hidden the following link will appear:

https://vborg.vbsupport.ru/attachmen...1&d=1452066148

And if that user's profile is already part of the hidden list (by username), this link will appear:

https://vborg.vbsupport.ru/attachmen...1&d=1452066148

Here are the settings for this updated version:

https://vborg.vbsupport.ru/attachmen...1&d=1452066148

Enjoy! :)

Elixar 01-06-2016 03:02 PM

Muchos gracias Senor Mark. :D

--------------- Added [DATE]1452100467[/DATE] at [TIME]1452100467[/TIME] ---------------

Fatal error: require_once(): Failed opening required '/home/science/public_html/*.com./includes/adminfunctions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/science/public_html/*.com/hideprofile.php on line 4

Dragonsys 01-06-2016 03:24 PM

Quote:

Originally Posted by Elixar (Post 2562090)
Muchos gracias Senor Mark. :D

--------------- Added [DATE]1452100467[/DATE] at [TIME]1452100467[/TIME] ---------------

Fatal error: require_once(): Failed opening required '/home/science/public_html/*.com./includes/adminfunctions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/science/public_html/*.com/hideprofile.php on line 4

OPEN: hideprofile.php
FIND:
PHP Code:

require_once(DIR './includes/adminfunctions.php');
require_once(
DIR './includes/adminfunctions_options.php'); 

REPLACE WITH:
PHP Code:

require_once('./includes/adminfunctions.php');
require_once(
'./includes/adminfunctions_options.php'); 


MarkFL 01-06-2016 03:34 PM

1 Attachment(s)
Quote:

Originally Posted by Elixar (Post 2562090)
Muchos gracias Senor Mark. :D

--------------- Added [DATE]1452100467[/DATE] at [TIME]1452100467[/TIME] ---------------

Fatal error: require_once(): Failed opening required '/home/science/public_html/*.com./includes/adminfunctions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/science/public_html/*.com/hideprofile.php on line 4

Okay...try the attached...

MarkFL 01-06-2016 03:35 PM

Quote:

Originally Posted by Dragonsys (Post 2562095)
OPEN: hideprofile.php
FIND:
PHP Code:

require_once(DIR './includes/adminfunctions.php');
require_once(
DIR './includes/adminfunctions_options.php'); 

REPLACE WITH:
PHP Code:

require_once('./includes/adminfunctions.php');
require_once(
'./includes/adminfunctions_options.php'); 


Yes, that's the exact change I made. :)

The original worked on my local dev site, but not on my online dev site. Go figure. :)

Elixar 01-06-2016 03:37 PM

One thing, because of an additional usergroup I have on my account, it hide the profile from me. Anyway there is a way to make a list of exempt people that can see the profile always?

Dragonsys 01-06-2016 03:56 PM

Quote:

Originally Posted by MarkFL (Post 2562097)
Yes, that's the exact change I made. :)

The original worked on my local dev site, but not on my online dev site. Go figure. :)

Dev site Windows?


All times are GMT. The time now is 10:12 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.02073 seconds
  • Memory Usage 1,747KB
  • 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
  • (4)bbcode_php_printable
  • (5)bbcode_quote_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