Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 30 Jan 2014, 00:10
Revenga Revenga is offline
 
Join Date: Mar 2012
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

Last edited by Revenga; 01 Feb 2014 at 16:25.
Reply With Quote
  #2  
Old 30 Jan 2014, 00:22
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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.)
Reply With Quote
  #3  
Old 30 Jan 2014, 02:16
Revenga Revenga is offline
 
Join Date: Mar 2012
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


I highlighted where I want the usergroup description in red.

- Revenga
Reply With Quote
  #4  
Old 30 Jan 2014, 18:49
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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.)
Reply With Quote
  #5  
Old 31 Jan 2014, 21:40
Revenga Revenga is offline
 
Join Date: Mar 2012
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


What needs to be edited, or added exactly?

- Revenga
Reply With Quote
  #6  
Old 31 Jan 2014, 22:01
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
As Lynne said, you would need to add usergroup.description to the select, like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Then you could try using $groupcache[0][description], but I'm not sure if that will always work.
Reply With Quote
  #7  
Old 31 Jan 2014, 22:54
Revenga Revenga is offline
 
Join Date: Mar 2012
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
Reply With Quote
Reply

Similar Threads
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



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:17.

Layout Options | Width: Wide Color: