Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2009, 07:46 AM
Cledus James Cledus James is offline
 
Join Date: Oct 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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>
Reply With Quote
  #2  
Old 08-21-2009, 03:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #3  
Old 08-21-2009, 11:13 PM
Cledus James Cledus James is offline
 
Join Date: Oct 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 08-22-2009, 12:03 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 08-22-2009, 06:59 PM
Cledus James Cledus James is offline
 
Join Date: Oct 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 08-22-2009, 07:14 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 08-22-2009, 07:41 PM
Cledus James Cledus James is offline
 
Join Date: Oct 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 08-22-2009, 09:06 PM
tipoboy's Avatar
tipoboy tipoboy is offline
 
Join Date: Dec 2005
Location: scotland
Posts: 693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 08-22-2009, 09:56 PM
Cledus James Cledus James is offline
 
Join Date: Oct 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tipoboy View Post
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
Good idea, Ill try it and let you know.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 04:21 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.04576 seconds
  • Memory Usage 2,242KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete