vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   online/offline memberinfo user profile (https://vborg.vbsupport.ru/showthread.php?t=168025)

Taragon 01-17-2008 05:26 PM

online/offline memberinfo user profile
 
When viewing a board/member profile whilst being offline, some features ie. friends/contact functions are hidden.

Would it be possible to make these settings viewable for visitors also perhaps, and show a 'you must be logged in to use these settings' window instead? (a template edit perhaps?)

alexgeek 01-17-2008 06:41 PM

You could just use a template if. I think this it:
Code:

<if condition="!$vbuserinfo">
display you must be logged in
<else />
normal code here
</if>

that's most likely wrong though.

Shawn Yue 03-12-2008 02:24 AM

Can View This Link

https://vborg.vbsupport.ru/showthread.php?t=32133

Marco van Herwaarden 03-12-2008 07:07 AM

Quote:

Originally Posted by Shawn Yue (Post 1462703)

Shawn,

We do appreciate that you are trying to help others, but please verify your advise before posting:
- You are linking to a vBulletin 2.x modifcation, doubtfull that the member asking this question is running vBulletin 2.
- The modification you are linking to is archived, thus not available at this time.
- The threadstarter asked to show a message when a guest is viewing a profile that he can not see contact info on that member until logged in. This has nothing to do with the modification you are linking to.

Taragon 03-12-2008 08:03 AM

Thanks everyone; I have to admit
Code:

<if condition="!$vbuserinfo">
display you must be logged in
<else />
normal code here
</if>


didn't work for me.
Code:

<if condition="$show['guest']">
normal code
</if>


did do the trick as needed.


All times are GMT. The time now is 02:42 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.01250 seconds
  • Memory Usage 1,719KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete