Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 11-25-2008, 07:57 AM
dismas's Avatar
dismas dismas is offline
 
Join Date: Jun 2007
Location: Vermont
Posts: 720
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Are you sure it is field 5?

Certain.
Reply With Quote
  #12  
Old 12-17-2008, 09:03 AM
dismas's Avatar
dismas dismas is offline
 
Join Date: Jun 2007
Location: Vermont
Posts: 720
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, I'm still trying to figure out why this doesn't work...

I want this profile field to show in the postbit to those who are a member of both usergroups 2 and 15. No matter what group the poster is in.

Now I'm trying variations on a theme. I tried doing this but I don't know if it's even possible:

Code:
<if condition="is_member_of($bbuserinfo, 2) AND is_member_of($bbuserinfo, 15)">
     <div>
         <if condition="$post['field5']">
             a.k.a.: $post[field5]
         </if>
     </div>
</if>
It doesn't return any errors when I save it but it also does not show the profile field to those members. Can an "AND" be used in this fashion?
Reply With Quote
  #13  
Old 12-17-2008, 10:02 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<if condition="is_member_of($bbuserinfo, 2) AND is_member_of($bbuserinfo, 15)">
Is the same as:
Code:
<if condition="is_member_of($bbuserinfo, 2, 15)">
(Note this only applies in this case, and does not apply to every function.)
Reply With Quote
  #14  
Old 12-17-2008, 01:23 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried

Code:
<if condition="(is_member_of($bbuserinfo, 2,15)) AND ($post[field5]) ">
a.k.a.: $post[field5]
</if>
Reply With Quote
  #15  
Old 12-17-2008, 02:10 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Code:
<if condition="is_member_of($bbuserinfo, 2) AND is_member_of($bbuserinfo, 15)">
Is the same as:
Code:
<if condition="is_member_of($bbuserinfo, 2, 15)">
(Note this only applies in this case, and does not apply to every function.)
I thought this:
Code:
<if condition="is_member_of($bbuserinfo, 2, 15)">
Is the same as this:
Code:
<if condition="is_member_of($bbuserinfo, 2) OR is_member_of($bbuserinfo, 15)">
At least, that is the way I've always used it.
Reply With Quote
  #16  
Old 12-18-2008, 10:20 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My bad, Lynne. Late at night and not enough coffee.

I stand corrected.
Reply With Quote
  #17  
Old 12-19-2008, 04:05 PM
dismas's Avatar
dismas dismas is offline
 
Join Date: Jun 2007
Location: Vermont
Posts: 720
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FRDS View Post
Have you tried

Code:
<if condition="(is_member_of($bbuserinfo, 2,15)) AND ($post[field5]) ">
a.k.a.: $post[field5]
</if>
As I understand it, that would mean that anyone who had filled out field 5 and was a member of UG #2 would see this. Which would mean that any regular user who filled out field 5 would be able to see everyone's field 5 entry. Right?
Reply With Quote
  #18  
Old 12-19-2008, 04:09 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dismas View Post
As I understand it, that would mean that anyone who had filled out field 5 and was a member of UG #2 would see this. Which would mean that any regular user who filled out field 5 would be able to see everyone's field 5 entry. Right?
It reads, if you are in usergroup 2 or 15, and the user has field 5 entered, it will show it to you.

If you aren't in usergroup 2 or 15 and the user has it entered, it wont show it to you

If you are in usergroup 2 or 15 and the user doesn't have field 5 entered, it shows nothing


So you probably just want the usergroup ID of 15 there (and not 2), and the field5
Reply With Quote
  #19  
Old 12-19-2008, 04:33 PM
dismas's Avatar
dismas dismas is offline
 
Join Date: Jun 2007
Location: Vermont
Posts: 720
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FRDS View Post
It reads, if you are in usergroup 2 or 15, and the user has field 5 entered, it will show it to you.
My club members have 15 as primary and 2 as additional. It does not show for them. Is there a way to change that "or" to "and"?
Reply With Quote
  #20  
Old 12-20-2008, 02:57 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<if condition="is_member_of($bbuserinfo, 2) AND is_member_of($bbuserinfo, 15) AND $post['field5'] ">
a.k.a.: $post[field5]
</if>
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 09:51 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.12386 seconds
  • Memory Usage 2,261KB
  • Queries Executed 11 (?)
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
  • (10)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete