PDA

View Full Version : Miscellaneous Hacks - Other Usergroup Display


squidsk
03-06-2013, 11:00 PM
A mod to allow the optional display of additional usergroups, by their title and markup (if any) at a choice of postbit locations.

This mod works by assembling a list of groups which aren't the users display group and if they meet the display criteria, such as group that can override primary group, it will display it as a list of usergroups in the location chosen. The default location is postbit_userinfo_left.

There are two hooks to enable customization of the information being displayed.

squidsk
03-06-2013, 11:07 PM
Saved for later use.

sweetpotato
03-07-2013, 04:21 AM
Interesting, will try it tonight
Thanks,

sweetpotato
03-07-2013, 06:36 AM
Just installed it but see nothing change. How to config this mod please?

squidsk
03-07-2013, 06:41 AM
Admincp -> Options -> Other Usergroup Display Settings

First option specifies which criteria to use for displaying additional groups (default is do not display additional groups)
Second options (textbox) is used if you've selected Show Selected Groups, in which case a comma separated list of usergroup ids with no spaces should be entered
Third where in the postbit you want the additional groups displayed.

sweetpotato
03-07-2013, 06:44 AM
Fixed it and work now
Thanks,

abdobasha2004
03-08-2013, 06:09 PM
nice work, thanks

cflyrun
07-11-2013, 06:20 PM
Does this work with the legacy postbit or just the new postbit?
EDIT: Uploaded the two files to specified directory, changed settings, no change in postbit new or legacy :(

squidsk
07-11-2013, 07:52 PM
Does this work with the legacy postbit or just the new postbit?
EDIT: Uploaded the two files to specified directory, changed settings, no change in postbit new or legacy :(
It works for both, though some setting will only work for one postbit or the other. What are the settings you're using? I should note that not all the locations that you can display the information is in the postbit.

PHP FAN
09-03-2013, 05:27 PM
Hi

Nothing to show!

I try everything in the settings, even with vB4 Default Style!

vBulletin 4.2.1

squidsk
09-06-2013, 01:25 PM
Hi

Nothing to show!

I try everything in the settings, even with vB4 Default Style!

vBulletin 4.2.1
Did you change the setting to enable it? I have it running perfectly fine on a vbulletin 4.2.1 install so there should be no issues. Also the user(s) you are looking at need to have other usergroups, aside from their primary usergroup, that meet the requirements for the settings you've chosen.

TheLastSuperman
09-06-2013, 01:26 PM
*Tagged ;).

PHP FAN
09-07-2013, 03:52 PM
There is no enable or disable option!

But I tried every available option!

I tray remove first and last line from postbit_other_usergroup_display template but still nothing to show


And yes of course I am trying this on users with multiple groups :)

I tried: "Show All Groups" and I tried "Show Groups That Can Override and Show Forum Leader Groups" and I don't know what those two means!

And "Show Selected Groups" and I inter all usergroups IDs except Banned

still nothing!

I am using postbit_legacy template and I tried all "Location in postbit" options:
postbit_userinfo_left
postbit_userinfo_right
postbit_userinfo_right_after_posts
postbit_signature_start
postbit_signature_end

I also switch to postbit template and still nothing

I also copy code from postbit_other_usergroup_display template to postbit_legacy template and nothing!

datoneer
09-08-2013, 07:04 PM
Thanks it works in 4.2.1

PHP FAN
09-09-2013, 02:47 PM
I install it in another forum site and same problem :confused:

PHP FAN
09-09-2013, 03:03 PM
Sorry about this but now I just install it in a third site with vBulletin 4.2.0 Patch Level 3 and still nothing to show at all

* I even reviewed the hole code with my humble PHP experience and I can't find any thing wrong!

I also disable all other plugins and use default style in all 3 sites but no joy :(

PHP FAN
09-09-2013, 03:36 PM
just notes in product-other_usergroup_display.xml

line 134 and 137 are duplicated

<optioncode>select:piped
postbit_userinfo_left|postbit_userinfo_left
postbit_userinfo_right|postbit_userinfo_right
postbit_userinfo_right_after_posts|postbit_userinf o_right_after_posts
postbit_userinfo_left|postbit_userinfo_left
postbit_signature_start|postbit_signature_start
postbit_signature_end|postbit_signature_end</optioncode>

* this didn't fix any thing

squidsk
09-09-2013, 03:54 PM
There is no enable or disable option!

But I tried every available option!

I tray remove first and last line from postbit_other_usergroup_display template but still nothing to show


And yes of course I am trying this on users with multiple groups :)

I tried: "Show All Groups" and I tried "Show Groups That Can Override and Show Forum Leader Groups" and I don't know what those two means!

And "Show Selected Groups" and I inter all usergroups IDs except Banned

still nothing!

I am using postbit_legacy template and I tried all "Location in postbit" options:
postbit_userinfo_left
postbit_userinfo_right
postbit_userinfo_right_after_posts
postbit_signature_start
postbit_signature_end

I also switch to postbit template and still nothing

I also copy code from postbit_other_usergroup_display template to postbit_legacy template and nothing!

I install it in another forum site and same problem :confused:

I'd have to see the site (one of them) to at least have a change of figuring out why you can't get it to work. The only thing I can think of is that there's a conflict with another product, or you changed the default code. What other products do you have installed that are shared with both forums you've installed it on.

PHP FAN
09-09-2013, 04:23 PM
I have one site (that I own) under "VPS" with no traffic and have English interface I will send you PM

this site have those mods:
Forum Runner (disabled)
PostRelease (disabled)
Skimlinks Plugin (unused)
GlowHost - Spam-O-Matic
vBadvanced CMPS
vBulletin Project Tools
vBulletin CMS
Other Usergroup Display just today installed for testing





The site I need this mod for in the first place is a site I just manage and maintain under "dedicated server" and it have:

Advanced Application Forms (disabled ate this time)
PostRelease (disabled)
Skimlinks Plugin (disabled)
Force Users to Read a Thread
GlowHost - Spam-O-Matic
Other Usergroup Display
PB Usergroup Choice on Registration
VSa - Login To User Account
VSa - Sub-Forum Manager
vBulletin Blog (disabled)
vBulletin CMS
vBadvanced CMPS (installed today after Other Usergroup Display)


Thanks