The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm trying to edit my showgroups_usergroupbit template to display the rank image of each user in each usergroup. Basically Im just replacing the online status column with rank images of that user. I've tried using user[rank], prepared[rank], and userinfo[rank] to call the rank image with no luck.
Anyone know what call I should be using? Here's a copy of my template if it's needed. HTML Code:
<tr> <td class="$bgclass">$user[rank]</td> <td class="$bgclass"> <a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a> <if condition="$show['locationfield'] AND $user['field2']"><div class="smallfont" title="$vbphrase[location_perm]">$user[field2]</div></if> </td> <if condition="$showforums"> <td class="$bgclass"><div class="smallfont">$user[forumbits]</div></td> </if> </tr> </html> |
#2
|
||||
|
||||
![]()
You can't spit out a variable that isn't included in the query. You will need to add a "JOIN rank as rank" type statement to the query and to get the rank for the users. (Sorry, I hate writing queries for others cuz I don't consider myself good at writing them.)
|
#3
|
|||
|
|||
![]()
Ok questions about that.
Thanks for your time. |
#4
|
||||
|
||||
![]()
I don't have a page from 3.7.3, so I can't answer the question about why you could do it then. I'd guess the query was written differently? Or, you had a modification that included that in the query.
Look through your old page and compare it to your current one. Or, even rename it to showgroups2.php and upload it and point your browser to and see if it works then. |
#5
|
|||
|
|||
![]()
Dont have the old page since it was overwritten when I uploaded the 3.8 files, I only backed up the database, not the files.
![]() |
#6
|
||||
|
||||
![]()
You don't keep a backup of all your files on your computer? I've got mine all the way back to 3.0.2 when I first installed my board.
Anyway, if you were using a mod and you clicked Installed, then it's listed under Installed Modifications. |
#7
|
|||
|
|||
![]()
I know Im not making this easy but...I wasnt using a mod that had anything to do with the showgroups.php page. Basically was just taking the online status column out and adding a column that shows the user's rank image. Did the samething with the member's list page. The rank images do still work there. I used userinfo[rank] there.
|
#8
|
||||
|
||||
![]()
go to vbulletin.com and download the 3.7.3 package from the members area and then open the showgroups.php page and compare it to the showgroups.php page from 3.8.4
i have had this problem also and i just used the showgroups.php file from 3.6.8 IIRC to get my showgroups page to show the info i wanted ![]() |
#9
|
|||
|
|||
![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|