View Full Version : Small plugin to show Membergroups in Postbit
craiovaforum
02-06-2006, 10:00 PM
This is just a port of the hack made by Gary_King for 3.0. Original thread here (https://vborg.vbsupport.ru/showthread.php?t=61305).
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:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
above that, add:
<if condition="$groupstr != ''"><div>
$vbphrase[member_groups]: <br>$groupstr
</div></if>
3. Add a new phrase called member_groups containing:
Member of
Thats about it. Dont forget to click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=107356) :)
If you like this modification don't forget to donate ;)
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
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
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
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
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
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
would it be difficult to make one of these for usergroups as well?
??
it is for usergroups...
Thanatos
02-19-2006, 03:43 PM
??
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:
foreach (fetch_membergroupids_array($this->post, false) AS $usergroupid)
replace with:
foreach (fetch_membergroupids_array($this->post, true) AS $usergroupid)
Thanatos
02-20-2006, 09:16 PM
Ah, you want it to show the user's primary usergroup as well.
it is actually very simple. edit the plugin and find:
foreach (fetch_membergroupids_array($this->post, false) AS $usergroupid)
replace with:
foreach (fetch_membergroupids_array($this->post, true) 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. >_<
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.