vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   $show['usernoteview'] in postbit ? (https://vborg.vbsupport.ru/showthread.php?t=113635)

makaiguy 04-21-2006 12:52 AM

$show['usernoteview'] in postbit ?
 
I'm playing around with peterska2's User Note Info in Postbit hack, and trying to wrap a conditional around it so that only those authorized to view usernotes would see the link.

Code:

<if condition="$show['usernoteview']">
...
</if>

This conditional is used in MEMBERINFO template but as far as I can tell $show['usernoteview'] is not populated in postbit. Any tips on how to get this to work?

Freesteyelz 04-21-2006 12:54 AM

Try $post instead of $show, though, untested.

Ohh...And I think this thread is in the wrong forum. :)

makaiguy 04-21-2006 12:56 AM

Quote:

Originally Posted by Freesteyelz
Try $post instead of $show.

Ohh...And I think this thread is in the wrong forum. :)

Yes it is, I reported it about 10 seconds after I posted it.

$post would return the info for the poster of the message, I need the info for the person viewing the message.

eNforce 04-21-2006 12:58 AM

<if condition="!is_member_of($bbusergroup, x)">

would that not work? add your usergroups that are allowed to view notes

Freesteyelz 04-21-2006 01:04 AM

Ohh...I C. You want a certain Usergroup to view the usernote in postbit. The conditional you want, at least for the permission, is:

Code:

<if condition="is_member_of($bbuserinfo, x, y, z)">
...
</if>

Where "x", "y" and "z" are change to the Usergroups you want to have access to the Usernotes.

Edited: Ooops! eNforce got it before me. :)

makaiguy 04-21-2006 01:06 AM

Quote:

Originally Posted by eNforce
<if condition="!is_member_of($bbusergroup, x)">

would that not work? add your usergroups that are allowed to view notes

Thanks. I thought about that, but if you change the group permissions, you then have to come back and edit the postbit template. It's much cleaner if it automatically takes care of it.

But it may come to that, yet.

Quote:

Originally Posted by Freesteyelz
Edited: Ooops! eNforce got it before me. :)

Yep. But you got the syntax right. :up:


All times are GMT. The time now is 01:37 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.00948 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_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