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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-23-2010, 10:57 PM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to show usergroup title markup for one group to all

I want to show one of my usergroups title as a certain markup. The code i want to use for the markup is:

Code:
<span style="font-weight:bold;font-style:italic;color:red;">$post[usertitle]</span>
And I only want one usergroup to show this markup in the postbit_legacy where the user title is. All the other usergroups would stay normal. What is the conditional code that I can use? I've tried several already that have not worked yet. Here is what I have right now and its not working:

Code:
<if condition="$post['usertitle']"><div class="smallfont"><if condition="$bbuserinfo[usergroupid] == 9"><span style="font-weight:bold;font-style:italic;color:red;">$post[usertitle]</span>
         <else />$post[usertitle]</div></if></if>
I also want to show inside the vb text editor certain info for the users to fill out and have a thread title already coded into the threads in only one forum id, how would I go about that as well?
Reply With Quote
  #2  
Old 12-23-2010, 11:22 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there some reason you're not just entering the markup for the usergroup in the ACP? (Maybe because you only want it in postbit?)

Anyway, I think you want something like:

Code:
<if condition="is_member_of($post, 9)">

if you use $bbuserinfo it will check the current user (the one viewing), not the one for each post.
Reply With Quote
  #3  
Old 12-23-2010, 11:49 PM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do not want it just for one post. And I already tried doing the markup in the usergroup itself. It allows for markup for the username only I guess. I tried both html & bb code neither works. I've attached a couple of screenshots to show what I'm trying to do.

postbit explanation




Cannot place html or bb markup in this space.

Reply With Quote
  #4  
Old 12-23-2010, 11:54 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, sorry - I missed that "title" in your first post. So anyway, did you try that condition? (Here's what you posted with the condition changed)

Code:
<if condition="$post['usertitle']"><div class="smallfont"><if condition="is_member_of($post, 9)"><span style="font-weight:bold;font-style:italic;color:red;">$post[usertitle]</span>
<else />$post[usertitle]</div></if></if>

And I also don't know about this but just so it won't get lost:

Quote:
I also want to show inside the vb text editor certain info for the users to fill out and have a thread title already coded into the threads in only one forum id, how would I go about that as well?
Reply With Quote
  #5  
Old 12-24-2010, 01:06 AM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey that worked. Thanks. Now for the other one.
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 07:35 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.05243 seconds
  • Memory Usage 2,197KB
  • 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
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete