Quote:
I will give you code a go. Thanks for your quick help. I appreciate it very much. Kether --------------- Added [DATE]1307976670[/DATE] at [TIME]1307976670[/TIME] --------------- Quote:
Well, I am still having trouble getting this to work. I guess I need a conditional to show a field only to the admin user group and the individual who posted the information. So, I use the following code to identify a field, but need help with the conditional to make it only be seen by the admin group and the individual who posted the information: <vb:if condition="$field['fieldid'] == 6"> Any suggestions? Thanks again. Kether |
The important thing about the conditional I gave you is it only works in posts/the postbit.
You could show it to admins OR the user who's viewing his own post with: Code:
<vb:if condition="($bbuserinfo['userid'] == $post['userid']) OR (is_member_of($bbuserinfo, 6))"> But the fact your mentioning fields makes me think this code isn't for the postbit. If you're using custom profile fields you can mark them as private to limit who sees them. |
Quote:
No actually, I am editing the SHOWENTRY template in vbadvanced dynamics. I have added custom fields and would like to specify who can see one or two specific private fields. Sorry I did not make that clear in the first place. The bit of code I put in my previous 'merged' post: <vb:if condition="$field['fieldid'] == 6"> Tells the forum to put the information in field 6 in that location in the SHOWENTRY. I want to wrap a conditional around it to only display the information in field '6' to the admin group and the person who actually posted the information in the first place. I believe it should be fairly simple to wrap a conditional around this conditional, but so far I have not been able to figure it out. Thanks for your response. Kether |
Quote:
Code:
<vb:if condition="$field['fieldid'] == 6 AND is_member_of($bbuserinfo, 6)"> Code:
<vb:if condition="$field['fieldid'] == 6 AND (is_member_of($bbuserinfo, 6) OR OTHER_CONDITION_HERE)"> |
Why, this code is now working for me on postbit_legacy template:
Code:
|
Quote:
Much appreciative, Kether |
Quote:
|
$post['onlinestatus'] is not working to :(
Can you help me how to register a variable for template? Or can I make something like, if POSTBIT A, else B?? Thank you! |
Unfortunately preregistering variables was never something I mastered, one of the big reasons I prefer VB 3.x over VB 4.x. I just try to avoid doing anything where I have to preregister.
This is the article that is supposed to help: https://vborg.vbsupport.ru/showthread.php?t=228078 I'm not sure what yo mean by POSTBIT A and B? |
Thank you!
|
All times are GMT. The time now is 06:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|