vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I make something visible to only one user or usergroup? (https://vborg.vbsupport.ru/showthread.php?t=197151)

Keyser520 11-24-2008 09:28 PM

How do I make something visible to only one user or usergroup?
 
Let's say I have user (user id # 8901) and I want a message to be displayed on the forumhome template for that user and that user only.

How do i do it?

I assume it's something like

<if userid=8901> message
</if>

but I'm not sure of the exact syntax.

Please help.

ORP 11-24-2008 09:38 PM

I've done that with forum permissions. Create the forum, create a usergroup just for that forum. Turn off permissions for everyone for the new forum, then allow that one new group to see it. Add this new group to whatever users you want to see it.
I run private forums for multiple users like this all the time. It works.

Keyser520 11-24-2008 09:48 PM

That's not quite what I'm looking for. I want to change the header for a forum that EVERYONE sees so that only ONE person sees the special message.

I.e. the forumhome template. I want one particular user to see some text .. and only that user.

Lynne 11-24-2008 10:01 PM

I think this would work....
HTML Code:

<if condition="$bbuserinfo['userid'] == 'x'">
stuff to show to userid x
</if>


Keyser520 11-24-2008 10:26 PM

I think that worked!

ReCom 11-25-2008 12:47 AM

vBulletin 3.7.x built-in "Notices" feature can show specific message to specific user or usergroup.


All times are GMT. The time now is 07:09 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.02362 seconds
  • Memory Usage 1,712KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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