![]() |
|
Thread Tools |
#1
|
|||
|
|||
Show usergroup's description on a page
I couldn't find this searching so I figured I'd make a thread about it to hopefully get it working.
I'm using a roster plugin and I'm trying to customize it a bit more. I'd like the description of each usergroup to be shown by the list of members who are in that usergroup. The description being the usergroup description you enter when you edit a usergroup. See the screenshot I attached to see what I'm looking to do. I think I need something like $something1[something2] to be there, but I can't figure it out and I don't even know if I'm on the right track. Would you mind pointing me in the right direction or letting me know what I need to do for it to work? Help would be much appreciated. - Revenga No members have liked this post.
Last edited by Revenga; 01 Feb 2014 at 16:25. |
#2
|
||||
|
||||
Take a look at the showgroups_usergroup template and see what variable is being used in there and then put $variable[description] in where you want it and see if that works.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#3
|
||||
|
||||
It didn't seem to work or do anything really. I tried doing what you said with showgroups and it didn't work. Though I'm not using showgroups in that screenshot I attached in original post, I'm using a Showroster Hack, but it didn't seem to work there either. Here's the showroster_header template I'm trying to work with if that helps at all:
I highlighted where I want the usergroup description in red. - Revenga No members have liked this post.
|
#4
|
||||
|
||||
You will need to look at the script that uses that template and see if the usergroup.description is even selected in the query and then get the variable name from there.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#5
|
||||
|
||||
It doesn't look like it, assuming I'm looking in the right area. I'm not exactly a php wizard yet, so I guess I'll post the part in the showroster.php file that I'm looking at:
What needs to be edited, or added exactly? - Revenga No members have liked this post.
|
#6
|
||||
|
||||
As Lynne said, you would need to add usergroup.description to the select, like:
Then you could try using $groupcache[0][description], but I'm not sure if that will always work. No members have liked this post.
|
#7
|
|||
|
|||
It works! And I learned a little something new too so that's a bonus in my opinion. Thank you both for your help.
- Revenga The following members like this post: Lynne
|
![]() |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Administrative and Maintenance Tools Nexia's Show Usergroup Description in Manager | vbenhancer | vBulletin 4.x Add-ons | 0 | 03 Mar 2012 16:52 |
Show Usergroup Description on Show Groups | Link14716 | vBulletin 3.5 Add-ons | 18 | 21 Aug 2008 22:34 |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 23:17.