vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   SHowgroups Template (https://vborg.vbsupport.ru/showthread.php?t=221398)

Cledus James 08-21-2009 07:46 AM

SHowgroups Template
 
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>


Lynne 08-21-2009 03:21 PM

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.)

Cledus James 08-21-2009 11:13 PM

Ok questions about that.
  1. Why was I able to call the rank images in 3.7.3 before I urgraded this week? I mean, I was using user[rank] and it was working. Then I upgraded to 3.8.4 this week and the images no longer show up. So something changed between 3.7 and 3.8 preventing me from doing this? Here's a topic I created awhile back. https://vborg.vbsupport.ru/showthread.php?t=205199
  1. Can you point me in the direction of someone who can give me a query to run to get the images to show?

Thanks for your time.

Lynne 08-22-2009 12:03 AM

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.

Cledus James 08-22-2009 06:59 PM

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. :(

Lynne 08-22-2009 07:14 PM

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.

Cledus James 08-22-2009 07:41 PM

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.

tipoboy 08-22-2009 09:06 PM

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 :D

Cledus James 08-22-2009 09:56 PM

Quote:

Originally Posted by tipoboy (Post 1872315)
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 :D

Good idea, Ill try it and let you know.


All times are GMT. The time now is 09:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01181 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete