vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Profile Enhancements - Customizable Roster (Member List) (https://vborg.vbsupport.ru/showthread.php?t=141311)

sheryarpatel 03-15-2007 11:30 PM

Quote:

Originally Posted by Sarcoth (Post 1203222)
That question was already asked and is something I'm working on. :) I need to get something else done first though.

woot ok can't wait for the changes :up:

JeffreySmith 03-20-2007 02:16 AM

Awesome, your da MAN! Thanks for the support my friend.

I clicked installed too.

Sarcoth 03-22-2007 12:17 PM

I've attached instructions on how to add a Class Statistics Counter to those Vanguard Rosters. You could easily do something similiar for any game, but you would need to alter the class names within the code.

Class Statistics Counter

hellbringer80 03-24-2007 07:47 PM

Hey sacroth, thanks for this mod, am using and lovin it. One question, I see on your demo site you have the groups organized, I have a group for ever rank in my clan kind of like what you have. However I need to order them by a mysql column that I made titled orderid... Is there anyway to order them in a different way then what they are. I tried adding a "ORDER BY orderid ASC" type code to the end of the mysql query you have set in the php file for showroster.php however you already have a order in alphabetical order that I just don't understand because I don't code with vB, only custom. If you could help me out on this, I would greatly appreciate it.

grecostimpy 03-24-2007 11:21 PM

I only get a blank white page unfortunately....

Here's what I did, I'm using your hack (brilliant, BTW) to display our member's Ebay Usernames from a custom profile field.

Here's what I did:

I uploaded showroster.php to my forum's root

I created a custom profile field called Ebay Usernames (field5)

I created a custom phrase (GLOBAL) with the varname: show_roster Text: Users on Ebay

I created the SHOWROSTER template exactly as shown in the instructions...no changes

I created the showroster_usergroup as shown below:

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat" colspan="2">$user[title]</td>
</tr>
<tr>
        <td class="thead">$vbphrase[user_name]</td>
        <td class="thead">Ebay<br>Username</td>

       
$usergroupbits
</table>
<br />

I then created the template for showroster_usergroupbit as shown below:

Code:

<tr>
       
        <td class="$bgclass">
                <a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>
        </td>
       
        <td class="$bgclass">$user[field5]</td>


</tr>

I then set View Forum Leaders to Yes (and changed all usergroups to show on the Forum Leader's list)

Any ideas why this would not be working? All I get is a blank white page.

Note: When I go into Vbulletin Options and disable the Forum Leader's Page, I get the permission error as opposed to the blank white page.

I know this is bit outside the scope you originally intended it, but I think its a great way to display custom profile fields.

Thanks for your help!

m002.p 03-25-2007 09:25 PM

Hi,

Im having a problem inserting an image into the "showroster_usergroupbit" template.

This is what I enter:

Quote:

<td align="center" class="$bgclass" nowrap="nowrap">$user[field10]
<img src="forum/images/flags/$post[field10].gif"></td>
The image doesnt seem to display even when the code works elsewhere.

Can you spot the problem?

Thanks in advance!

SgtOliver 03-26-2007 10:38 AM

Anyone know how I can include the persons avatar in this list? I have tried adding

Code:

<td><img src="$user[avatarurl]" $user[avatarsize] alt="<phrase 1="$user[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>

Sarcoth 03-26-2007 01:06 PM

Quote:

Originally Posted by hellbringer80 (Post 1211283)
Hey sacroth, thanks for this mod, am using and lovin it. One question, I see on your demo site you have the groups organized, I have a group for ever rank in my clan kind of like what you have. However I need to order them by a mysql column that I made titled orderid... Is there anyway to order them in a different way then what they are. I tried adding a "ORDER BY orderid ASC" type code to the end of the mysql query you have set in the php file for showroster.php however you already have a order in alphabetical order that I just don't understand because I don't code with vB, only custom. If you could help me out on this, I would greatly appreciate it.

Look at post #30 above. I think you may be able to get this to work by changing $user['title'] to $user['orderid'].

grecostimpy - I've only seen blank pages when something in the PHP file doesn't call up the correct template files. Double-check the names of your templates. I'll see if I can figure out any other problems that may be causing it.

m002.p - I'm not too keen on images in this hack, but try removing forum/ from that code.

SgtOliver - I'll look into it.

Sarcoth 03-26-2007 01:53 PM

Quote:

Originally Posted by SgtOliver (Post 1212612)
Anyone know how I can include the persons avatar in this list? I have tried adding

Code:

<td><img src="$user[avatarurl]" $user[avatarsize] alt="<phrase 1="$user[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>

I tested a few things but I couldn't get it to work. I can't really spend much time on it, sorry. I would suggest looking over the memberlist.php and using code from there. There will be a lot of if statements involved with it for sure. I'll try to get back to this eventually though. I'm interested in making it work.

Sarcoth 03-26-2007 02:29 PM

grecostimpy - I've looked over your process a dozen times and I don't see anything wrong with it. The only thing I can think of is that one of the templates are spelled incorrectly; typo maybe. Double check and let me know.


All times are GMT. The time now is 08:00 PM.

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.01314 seconds
  • Memory Usage 1,751KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete