vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Small plugin to show Membergroups in Postbit (https://vborg.vbsupport.ru/showthread.php?t=107356)

craiovaforum 02-06-2006 10:00 PM

Small plugin to show Membergroups in Postbit
 
This is just a port of the hack made by Gary_King for 3.0. Original thread here.
The code was actually written by Andreas. I merely put it all together in a plugin for the users that requested it.

Install instructions:

1. Import the plugin
2. Edit the postbit or postbit_legacy template (or both).
find:
PHP Code:

<div>$post[icqicon$post[aimicon$post[msnicon$post[yahooicon]</div

above that, add:
PHP Code:

<if condition="$groupstr != ''"><div>
$vbphrase[member_groups]: <br>$groupstr
</div></if> 

3. Add a new phrase called member_groups containing:
Code:

Member of
Thats about it. Dont forget to click Install :)

If you like this modification don't forget to donate ;)

CBE 02-07-2006 09:23 AM

Great !!!!!!!

The first install :D

Azhrialilu 02-07-2006 10:49 AM

Oh now I like this! Thank you :)

craiovaforum 02-07-2006 01:27 PM

Quote:

Originally Posted by Azhrialilu
Oh now I like this! Thank you :)

you can also change the font, the colors of the text shown, in fact all the formatting, using HTML ;)

I have it blue on my forum, take a look: www.craiovaforum.ro

Snake 02-07-2006 01:30 PM

So this displays a user's group membership in postbit, am I right?

craiovaforum 02-07-2006 01:48 PM

Quote:

Originally Posted by Aftermath
So this displays a user's group membership in postbit, am I right?

Yes, you're right

Snake 02-07-2006 05:48 PM

Oh that's what I've been looking for. Thanks!

craiovaforum 02-07-2006 07:05 PM

Quote:

Originally Posted by Aftermath
Oh that's what I've been looking for. Thanks!

click install then ;)

mrahul 02-08-2006 09:28 AM

I am beginner. Can some one tell me how to make a new phrase ?

craiovaforum 02-09-2006 10:07 AM

admincp -> Languages and Phrases -> Phrase Manager -> Add new phrase button

Benedict 02-09-2006 11:15 AM

OO, I like the look of this.

When adding the Phrase what do I select for each attribute:

Phrase Type: ?
Product: ?
Varname: member_groups
Text: Member of

Thanks :)

Ben

Akagi 02-09-2006 01:01 PM

Quote:

Originally Posted by Benedict
OO, I like the look of this.

When adding the Phrase what do I select for each attribute:

Phrase Type: ?
Product: ?
Varname: member_groups
Text: Member of

Thanks :)

Ben

Phrase Type: Global
Product: vBulletin

cheers! *clicks install*

Benedict 02-09-2006 01:33 PM

Thank you, great mod :)

Clicks install :thumb:

craiovaforum 02-09-2006 03:48 PM

Quote:

Phrase Type: Global
Product: vBulletin
indeed, the defaults should be okay ;)

hmm maybe one of these days i'll update the .xml so it will add the phrase and modify the template automatically upon install.

Snake 02-09-2006 03:52 PM

BTW it works fine on 3.5.3. ;)

mrahul 02-13-2006 02:35 AM

dont know y? I edited the template postbit & added phrase & even installed the plugin. but nothing shows up :o

craiovaforum 02-15-2006 04:56 PM

are you using postbit? perhaps you edited postbit but your style actually uses the postbit_legacy template.
try modifying that one.

mrahul 02-16-2006 08:13 AM

i tried modifying both at a time :o & I am using the default VB style. I dont use any extra r additional styles.

Thanatos 02-18-2006 02:54 PM

would it be difficult to make one of these for usergroups as well?

craiovaforum 02-18-2006 04:17 PM

Quote:

Originally Posted by Thanatos
would it be difficult to make one of these for usergroups as well?

??
it is for usergroups...

Thanatos 02-19-2006 03:43 PM

Quote:

Originally Posted by craiovaforum
??
it is for usergroups...

This one only shows membergroups...I am looking for one that shows usergroups.

Member/Administrator/Moderator in the postbit as well as membergroups.

craiovaforum 02-19-2006 06:34 PM

Ah, you want it to show the user's primary usergroup as well.
it is actually very simple. edit the plugin and find:
PHP Code:

foreach (fetch_membergroupids_array($this->postfalse) AS $usergroupid

replace with:
PHP Code:

foreach (fetch_membergroupids_array($this->posttrue) AS $usergroupid


Thanatos 02-20-2006 09:16 PM

Quote:

Originally Posted by craiovaforum
Ah, you want it to show the user's primary usergroup as well.
it is actually very simple. edit the plugin and find:
PHP Code:

foreach (fetch_membergroupids_array($this->postfalse) AS $usergroupid

replace with:
PHP Code:

foreach (fetch_membergroupids_array($this->posttrue) AS $usergroupid


That did it, thanks.

Any way to easily re-order it?

fishhub 10-27-2006 03:16 PM

cant work in v3.5.4. Anyone faced the same problem?:knockedout:

Thanatos 12-23-2006 04:25 AM

Still works in 3.6.4 (this is by far, one of the little hacks I love the most)

Black Widow 02-09-2007 12:09 PM

thanks.
great hack.
installed...

Lilaena 04-14-2007 03:39 PM

Is there any way for the listed usergroups to be links to your usergroup CP? Or is this something I would do via html?

craiovaforum 04-20-2007 01:29 PM

define usergroup CP.
are you refering to the group memberships option from the group leader's user cp?

Lilaena 04-24-2007 10:43 PM

I meant the group memberships option in each member's user CP. Exactly. Sorry I wasn't using the right terms. >_<


All times are GMT. The time now is 04:59 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.01205 seconds
  • Memory Usage 1,783KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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