vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Question about Forum Leaders Page (https://vborg.vbsupport.ru/showthread.php?t=205199)

Cledus James 02-13-2009 02:13 AM

Question about Forum Leaders Page
 
First let me say that I'm no vB expert, so please do state the oblivious.


What I'm trying to do is edit my showgroups.php page by removing the online status column in the table that lists each user. Now I have my forum setup to display and sort the showgroups.php page by Usergroups. What I wanted to do in add rank images for each member in that same column instead of the online status icons.

Problem came about because I use a style that doesn't use icons for that column but instead text. It simply states in text whether or not the user is online. Now since I'm not experienced enough to go in and add those icons, requires me actually writing the code instead of just editing, I was going to just replace that column with rank images since my forum is heavly based on ranks and there's so much empty space on that page for each user.

Anyways, the template that displays each user with this style is the showgroups_usergroupbit template.

Here's my template as of now:

Code:

<tr>
        <td class="$bgclass">$userinfo[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>
        <if condition="$show['contactinfo']">
        <td class="$bgclass" nowrap="nowrap">
                <if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$user[userid]" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="<phrase 1="$user[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if>
                <if condition="$show['emaillink']"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$user[userid]" rel="nofollow"><img src="$stylevar[imgdir_button]/email.gif" alt="<phrase 1="$user[username]">$vbphrase[send_message_via_email_to_x]</phrase>" border="0" /></a></if>
        </td>
        </if>
</tr>
</html>

I also tried using $prepared[rank] instead $userinfo[rank].

Thanks for any help anyone can offer.

Dismounted 02-13-2009 08:27 AM

Should be just $user[rank] (I'm not sure if ranks are actually fetched, but you can try).

Cledus James 02-13-2009 08:04 PM

Quote:

Originally Posted by Dismounted (Post 1742676)
Should be just $user[rank] (I'm not sure if ranks are actually fetched, but you can try).


Worked. Thank you.


All times are GMT. The time now is 11:03 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.01481 seconds
  • Memory Usage 1,719KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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