vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Member's Group in Post-Bit(legacy) (https://vborg.vbsupport.ru/showthread.php?t=106485)

Developer 01-26-2006 10:00 PM

Member's Group in Post-Bit(legacy)
 
Description:
this is a simple modification that show every member's group in his post
installation:
open Post-Bit(legacy) and find
Code:

                                        <div>
                                                $vbphrase[posts]: $post[posts]
                                        </div>

then add below it
Code:

<if condition="is_member_of($post,1)">Member's Group:Guests</if>
<if condition="is_member_of($post,2)">Member's Group:Members</if>
<if condition="is_member_of($post,3)">Member's Group:Users Awaiting Email Confirmation</if>
<if condition="is_member_of($post,4)">Member's Group:(COPPA) Awaiting Moderation</if>
<if condition="is_member_of($post,5)">Member's Group:Super Moderators</if>
<if condition="is_member_of($post,6)">Member's Group:Administrators</if>
<if condition="is_member_of($post,7)">Member's Group:Moderators</if>
<if condition="is_member_of($post,8)">Member's Group:Banned</if>

Donation::.
Feel Free To https://vborg.vbsupport.ru/external/2010/09/1.gif
aT lAsT:
click Install

ProjectTR 01-27-2006 07:25 PM

thanks :) I will add phrase for another language

Cyricx 01-27-2006 07:47 PM

A better way then a bajillion <if> statements would prolly be using the rank system. You can make a rank for each usergroup.

Just an alternate idea :)

Yorixz 01-28-2006 06:35 AM

You could also simply use this:
Code:

<div class="userinfo"><b>$vbphrase[usergroup]:</b> $post[displaygrouptitle]</div>
- it uses the title of a usergroup so it basically shows the same but doesn't use <if>'s ;)

Snake 01-28-2006 12:22 PM

Yep I've already figured that for my forums. ;)

Developer 01-28-2006 12:32 PM

it is just a way from many ways

amadergaan 01-30-2006 11:08 PM

Yorixz,

exactly where do i put the code...below this?

Code:

<div>
                                                $vbphrase[posts]: $post[posts]
                                        </div>


Developer 02-02-2006 02:24 AM

yes.

Akagi 02-04-2006 03:44 PM

is it possible to display the membergroup as well?
something like this thread:

https://vborg.vbsupport.ru/showthrea...5&page=2&pp=15

BabyNameAddict 03-10-2006 04:17 AM

Quote:

Originally Posted by Yorixz
You could also simply use this:
Code:

<div class="userinfo"><b>$vbphrase[usergroup]:</b> $post[displaygrouptitle]</div>
- it uses the title of a usergroup so it basically shows the same but doesn't use <if>'s ;)

Excellent :banana:


All times are GMT. The time now is 01:17 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.01307 seconds
  • Memory Usage 1,735KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete