Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-26-2012, 11:37 AM
lsti lsti is offline
 
Join Date: Jun 2011
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Hiding member profile to guests.

By hiding i meant, guests should not be able to click on the profile hyperlink of members.
Reply With Quote
  #2  
Old 01-26-2012, 12:28 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try creating a plugin using hook member_start and this code:

Code:
if ($vbulletin->userinfo['userid'] == 0)
{
   print_no_permission();
}
Reply With Quote
Благодарность от:
lsti
  #3  
Old 01-26-2012, 12:35 PM
lsti lsti is offline
 
Join Date: Jun 2011
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. I have to replace 0 with my guest user group id right?

Still it is not working. I can click on the members links.

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

I even replaced userid with my guest user group id, still not working.

Thanks.
Reply With Quote
  #4  
Old 01-26-2012, 12:41 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The userid is 0 if the user is not logged in. You could also check for the groupid but it should give the same result.

It works for me, so maybe I don't understand what you want. If you want the link to be inactive, then edit the postbit or postbit_legacy template and put

Code:
<vb:if condition="$show[member]"> ...</vb:if>
around the link. (The reason I chose the other method is that, while taking out the link will stop them from clicking on it, it won't keep guests from going directly to the profile url).
Reply With Quote
  #5  
Old 01-26-2012, 12:54 PM
lsti lsti is offline
 
Join Date: Jun 2011
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
The userid is 0 if the user is not logged in. You could also check for the groupid but it should give the same result.

It works for me, so maybe I don't understand what you want. If you want the link to be inactive, then edit the postbit or postbit_legacy template and put

Code:
<vb:if condition="$show[member]"> ...</vb:if>
around the link. (The reason I chose the other method is that, while taking out the link will stop them from clicking on it, it won't keep guests from going directly to the profile url).
I want the link to be inactive. I am already using the condition method.But still people can click on others profile, while they search or during the showthread or forum display.

So, i am looking to disable it globally. So when they click on a user name, they are not taken to the members profile.

I am on vb 4.1.10

Thanks for your time.
Reply With Quote
  #6  
Old 01-26-2012, 12:57 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you get the plugin to work then? If it didn't do anything for you, there must be something wrong somewhere.

I don't know of any way to disable all links without finding them all and editing the templates.
Reply With Quote
  #7  
Old 01-26-2012, 01:08 PM
lsti lsti is offline
 
Join Date: Jun 2011
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Did you get the plugin to work then? If it didn't do anything for you, there must be something wrong somewhere.

I don't know of any way to disable all links without finding them all and editing the templates.

The plug in didn't do anything for me.

Thanks for your time.
Reply With Quote
  #8  
Old 01-26-2012, 01:16 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lsti View Post
I want the link to be inactive. I am already using the condition method.But still people can click on others profile, while they search or during the showthread or forum display.

So, i am looking to disable it globally. So when they click on a user name, they are not taken to the members profile.


I am on vb 4.1.10

Thanks for your time.
This in the bold makes it ambiguous to me - are you saying you do not want logged in members able to check profiles either? Or just the unregistered/not logged in class?
Quote:
Originally Posted by lsti View Post
Thank you. I have to replace 0 with my guest user group id right?

Still it is not working. I can click on the members links.

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

I even replaced userid with my guest user group id, still not working.

Thanks.
You're checking this while logged out, right?
Reply With Quote
  #9  
Old 01-26-2012, 01:53 PM
lsti lsti is offline
 
Join Date: Jun 2011
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Max Taxable View Post
This in the bold makes it ambiguous to me - are you saying you do not want logged in members able to check profiles either? Or just the unregistered/not logged in class?You're checking this while logged out, right?
Only the admins have the ability to click on some one else profile. Yes, i checked this while logged in as well as logged out.
Reply With Quote
  #10  
Old 01-26-2012, 02:24 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, it just occurred to me that you don't need a plugin. I think there's a usergroup setting for 'can view member info' that you can set for the unregistered user group in the usergroup manager.
Reply With Quote
Reply


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 11:57 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.04591 seconds
  • Memory Usage 2,265KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete