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)

m002.p 03-26-2007 02:35 PM

I have tried removing forum, but the directory "images" is within it, so its needed in order to display.

May I ask, why are you not so keen on images in this hack?

I mean your hack is brilliant but I wanted to add the IM icons and an xfire icon too which of course requires an image as well as makes it look better than just pure text.

However I would understand the authors wish if so...

EDIT: After including the full link to the image and not including "$post[field10].gif" the image displayed. Any ideas if that code mentioned above is incorrect or is unsupported?

hellbringer80 03-26-2007 03:08 PM

I changed it to orderid, and all it does is put every user in one group and messed it all up =/

m002.p 03-26-2007 04:00 PM

When researching further into this, I believe that a particular variable needs to be customised in the showroster.php file.

Only thing is, looking at the code im not sure where it is located.

Could this be something to do with the other issues above also?

Sarcoth 03-26-2007 05:01 PM

moo2.p - By keen, I didn't mean I wasn't interested in putting images in it. I was hoping to eventually do that as well. I just meant I haven't tried it yet so I didn't know an answer. I'll see what I can find out about the $post variable. I haven't used it before so not sure what it is. Can you tell me another page where it is used?

hellbringer80 - What table is the orderid located in?

m002.p 03-26-2007 05:29 PM

Sorry, I didnt understand properly before. Ok well.. This variable will post a particular field or image so to speak like $post[field10] etc.

The variable is also used in templates such as "postbit_legacy"

Do a search to see the uses, but here are some examples:

$post[musername]
$post[usertitle]
$post[avatarurl]
$post['joindate']
$post[signature]

Hope this helps...

Out of interest, do you have xfire? I would be happy to help you on this one if needed :)

Regards

Matt

hellbringer80 03-26-2007 05:43 PM

orderid is int he groups table

Sarcoth 03-26-2007 06:07 PM

moo2 - NP. Sadly, no chat programs here at work and I really don't use any of them cept for MSN a couple times a week. I rarely have time for them since I'm usually playing Vanguard when I'm at home. :) I need to work today, so not sure I'll get to work on this much more till tomorrow. I'll be sure to check into it though.

hellb - I'm guessing you mean the usergroup table right? Not sure why it isn't working. Can you export your usergroup table (.sql) when you get a chance and send it to me. You can rename it to .txt. I think that will help me figure this out. I'll look into it more today if I get the time else tomorrow.

m002.p 03-26-2007 06:13 PM

Ok no problem Sacroth. Keep me informed on how it goes as I think adding images to it would be a good step for a clan roster.

Thanks for your time

Sarcoth 03-26-2007 06:50 PM

Quote:

Originally Posted by m002.p (Post 1212170)
Hi,

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

This is what I enter:

Code:

<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!

Just out of curiousity, what is field10 set to and what's in it?

m002.p 03-26-2007 08:05 PM

field10 is set to the country of a user. Like UK, Germany, France etc

This is linked to a image (.gif) on the server which means using $post[field10].gif will result in it displaying the members country flag on the roster :)

grecostimpy 03-26-2007 08:52 PM

Quote:

Originally Posted by Sarcoth (Post 1212744)
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.

I triple checked.....unfortunately, they are all good.

Edit: Figured it out...see two posts down.

m002.p 03-26-2007 09:58 PM

Ok ive managed to understand the variant and add images. This is my example below:

www.sog-team.co.uk/forum/showroster.php

This is the information contained in the templates:

showroster_usergroup

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat" colspan="8">$user[title]</td>
</tr>
<tr>
        <td class="thead">$vbphrase[user_name]</td>
        <td align="center" class="thead">Real Name</td>
        <td align="center" class="thead">Country</td>
        <td align="center" class="thead">Flag</td>
        <td align="center" class="thead">Games</td>
        <td align="center" class="thead">Contact</td>
        <td align="center" class="thead">Xfire</td>
       
       
$usergroupbits
</table>
<br />

showroster_usergroupbit

Code:

<tr>
       
        <td class="$bgclass">
                <a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>
        </td>
       
        <td align="center" class="$bgclass" nowrap="nowrap">$user[field12]</td>
        <td align="center" class="$bgclass" nowrap="nowrap">$user[field10]
                                </td>
        <td align="center" class="$bgclass" nowrap="nowrap"><img src="images/flags/$user[field10].gif"></td>
        <td align="center" class="$bgclass" nowrap="nowrap">$user[field8]</td>
        <td align="center" class="$bgclass" nowrap="nowrap"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$user[userid]" rel="nofollow"><img src="images/imagesblue/sendpm.gif" Border=0></a>
                <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$user[userid]" rel="nofollow"><img src="images/imagesblue/email.gif" Border=0></a>
        <td align="center" class="$bgclass" nowrap="nowrap"><if condition="$user[field14]"><a href="xfire:add_friend?user=$user[field14]"><IMG STYLE="border: none;" SRC="images/misc/icon_xfire.gif"></a></if></td>

       

</tr>

And of course in order to do that (add images) you need to user the "$user" variant opposed to "$post" even though it could be added to the php file

Hope that helps

grecostimpy 03-26-2007 11:03 PM

OK...I figured it out.

I had ALL of my usergroups included on the View Forum Leaders. (Namely because I want all my users to show on this special page if they filled out the custom field irregardless of their usergroup).

Problem is, there's too many to list...so the white page.

When I took the biggest usergroup off of the View Forum Leaders...the page started displaying perfectly.

So...two things:
  1. Is there a way to not display users who do not have the custom profile field filled out? (Filter them out) This way, only the users whohave a value in the field show on the page and users who have not filled out the custom profile field are ignored
  2. Can we have it so it displays 50 or so users, then starts a new page (a la the memberlist)

Sarcoth 03-27-2007 11:55 AM

Quote:

field10 is set to the country of a user. Like UK, Germany, France etc

This is linked to a image (.gif) on the server which means using $post[field10].gif will result in it displaying the members country flag on the roster
Are your gif files in the same format as the country names?

Meaning. If Germany is their country, are you referring to Germany.gif?

EDIT: I just saw your second post. That's exactly what I was going to be suggesting as long as the files were in the same format as the country name. Otherwise, I was going to put some code in the PHP file that would make the whole word lowercase. Glad you got it working.

Sarcoth 03-27-2007 12:05 PM

Quote:

Originally Posted by grecostimpy (Post 1213187)
OK...I figured it out.

I had ALL of my usergroups included on the View Forum Leaders. (Namely because I want all my users to show on this special page if they filled out the custom field irregardless of their usergroup).

Problem is, there's too many to list...so the white page.

When I took the biggest usergroup off of the View Forum Leaders...the page started displaying perfectly.

Well that's something I never expected. How many users do you have?

Quote:

Originally Posted by grecostimpy (Post 1213187)
Is there a way to not display users who do not have the custom profile field filled out? (Filter them out) This way, only the users whohave a value in the field show on the page and users who have not filled out the custom profile field are ignored

I can definitely do that, should be very easy. How many profile fields are you using and I'm guessing you only want them filtered out if all the fields are blank? Meaning, if they even fill in one of the fields, they'll be on the list.


Quote:

Originally Posted by grecostimpy (Post 1213187)
Can we have it so it displays 50 or so users, then starts a new page (a la the memberlist)

Sorry, that's not the direction I'll be going with the the roster.

grecostimpy 03-27-2007 02:34 PM

Thanks Sarcoth,

I'd like it to only show users who have entered anything into field5. (so if nothing was entered in field5, they would not be included)

Thanks a lot for your assistance!

Sarcoth 03-27-2007 03:05 PM

Quote:

Originally Posted by grecostimpy (Post 1213636)
I'd like it to only show users who have entered anything into field5. (so if nothing was entered in field5, they would not be included)

Open the showroster.php file and find:
Code:

if (sizeof($groupcache) >= 1)
{
        ksort($groupcache); // alphabetically sort usergroups
        foreach ($groupcache AS $users)
        {
                ksort($users); // alphabetically sort users
                $usergroupbits = '';
                foreach ($users AS $user)
                {
                        exec_switch_bg();
                        $user = process_showgroups_userinfo($user);

                        ($hook = vBulletinHook::fetch_hook('showgroups_user')) ? eval($hook) : false;
                        eval('$usergroupbits .= "' . fetch_template('showroster_usergroupbit') . '";');
                }

                ($hook = vBulletinHook::fetch_hook('showroster_usergroup')) ? eval($hook) : false;
                eval('$usergroups .= "' . fetch_template('showroster_usergroup') . '";');
        }
}

Change to:
Code:

if (sizeof($groupcache) >= 1)
{
        ksort($groupcache); // alphabetically sort usergroups
        foreach ($groupcache AS $users)
        {
                ksort($users); // alphabetically sort users
                $usergroupbits = '';
                foreach ($users AS $user)
                {
                        if ($user['field5'] != '') {
                                exec_switch_bg();
                                $user = process_showgroups_userinfo($user);

                                ($hook = vBulletinHook::fetch_hook('showgroups_user')) ? eval($hook) : false;
                                eval('$usergroupbits .= "' . fetch_template('showroster_usergroupbit') . '";');
                        }
                }

                ($hook = vBulletinHook::fetch_hook('showroster_usergroup')) ? eval($hook) : false;
                eval('$usergroups .= "' . fetch_template('showroster_usergroup') . '";');
        }
}

Let me know how that works.

SgtOliver 03-27-2007 04:17 PM

I managed to get the users avatar working in mine using https://vborg.vbsupport.ru/showthread.php?t=83150

I am using this for more of an "About Us" page http://www.goblinarmy.com/community/aboutus.php

My showroster_usergroup

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat" colspan="3">$user[title]</td>
</tr>
<tr>
        <td class="thead">Member</td>
        <td class="thead">Biography</td>
        <td class="thead">Favorites</td>

       
$usergroupbits
</table>
<br />


My showroster_usergroupbit

Code:

<tr height=150>
       
<td class="$bgclass">
<a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a><br>$user[usertitle]<br>
<if condition="$vbulletin->userinfo['avatarid']">
<img src="$user[avatarpath]" alt="$bbuserinfo[username]'s Avatar" border="0" />
<else />
        <if condition="$vbulletin->userinfo['hascustomavatar']">
                  <if condition="$vbulletin->options['usefileavatar']">
                        <img src="$vboptions[avatarurl]/avatar$user[userid]_$user[avatarrevision].gif" title="$user[username]'s Avatar" alt="Avatar" border="0" />
                  <else />
                        <img src="image.php?u=$user[userid]&amp;dateline=$avatar[dateline]" title="$user[username]'s Avatar" alt="Avatar" border="0" />
                  </if>
          <else />
                <img src="$stylevar[imgdir_misc]/noavatar.gif" alt="guestavatar.gif" title="No Avatar Specified" border="0" />
          </if> 
</if>
</td>



        <td class="$bgclass"><b>Real name:</b><br>
                                $user[field14]<br><br>
                            <b>Location:</b><br>
                                $user[field2]<br><br>
                            <b>Ocupation:</b><br>
                                $user[field4]<br><br>
                            <b>Interests:</b><br>
                                $user[field3]</td>


        <td class="$bgclass"><b>Map:</b><br>
                            $user[field13]<br><br>
                            <b>Second Map:</b><br>
                            $user[field15]<br><br>
                            <b>Weapon:</b><br>
                            $user[field11]<br><br>
                            <b>Sec Weapon:</b><br>
                            $user[field12]</td>




       

</tr>


Sarcoth 03-27-2007 05:18 PM

That great SgtOliver. The funny thing is I have been working on it since yesterday and just got it work about an hour ago but went out to lunch. I'll post my changes here for you anyhow. Use them if you are interested.

Open the showroster.php file.

***************************

Find:
Code:

require_once('./global.php');
Below it add:
Code:

require_once(DIR . '/includes/functions_user.php');
***************************

Find:
Code:

                        ($hook = vBulletinHook::fetch_hook('showgroups_user')) ? eval($hook) : false;
                        eval('$usergroupbits .= "' . fetch_template('showroster_usergroupbit') . '";');

Above it add:
Code:

                        $avatarurl=fetch_avatar_url($user[userid]);
                       
                        if (!$avatarurl) {
                                $avatarurl = 'images/spacer.gif';
                        } else {
                                $avatarurl = $vbulletin->options['bburl'] . '/' . $avatarurl[0];
                        }
                       
                        $avatarimage='<img src="'.$avatarurl.'" border="0">';

***************************

Add a column for the Avatar header to your showroster_usergroup template.
Code:

<td class="thead">Avatar</td>
***************************

Add a column for the Avatar image to your showroster_usergroupbit template.
Code:

<td class="$bgclass">$avatarimage</td>
***************************

You would also have to make some table adjustments (ie. colspan) to get it all even again.

The spacer.gif image I am using is attached if you want to use that as well.

That's it.

m002.p 03-27-2007 08:27 PM

Thanks Sacroth.

I have another question, how do you create the title for the page like the one in your demo "Clan Roster"?

Ie the title you have "Sacred Haven - Vanguard Guild Roster"

Sarcoth 03-27-2007 08:30 PM

I updated the hack to version 1.02 for anyone that is interested.

I am planning to add the ability to sort the columns but I'm concerned what effect that will have on the current design. I like the current usergroup/user look of it. If that doesn't flow with sorting, I may have to make a separate hack for it.

BTW, please pay close attention to the fact that I changed the names of some variables. You do not need to do this upgrade if you are happy with your current version. If you update, follow all the steps over again so you don't miss anything.

Thank you to all those that have installed this hack.

m002.p 03-27-2007 08:32 PM

Great "First Install" :D

Sarcoth 03-27-2007 08:33 PM

Quote:

Originally Posted by m002.p (Post 1213918)
Thanks Sacroth.

I have another question, how do you create the title for the page like the one in your demo "Clan Roster"?

Ie the title you have "Sacred Haven - Vanguard Guild Roster"

Here's the code I use for my SHOWROSTER template. You'll have to make adjustments depending on the template you are using. BTW, that's my real guild roster too. Makes a great demo I think. :)

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[show_roster]</title>
</head>
<body>
$header
$navbar

<table width="100%"  cellpadding="0" cellspacing="0" border="0">
        <td width="9" height="6"><img width="9" height="6" border="0" src="images/Darkness/darkness/a4.gif"></td>
        <td width="100%" height="6" background="images/Darkness/darkness/a5.gif"></td>
        <td width="9" height="6"><img width="9" height="6" border="0" src="images/Darkness/darkness/a6.gif"></td>
</table>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr align="center">
                <td class="tcat">Sacred Haven - $vbphrase[show_roster]</td>
        </tr>
</table>

<table width="100%"  cellpadding="0" cellspacing="0" border="0">
        <td width="9" height="6"><img width="9" height="6" border="0" src="images/Darkness/darkness/a1.gif"></td>
        <td width="100%" height="6" background="images/Darkness/darkness/a2.gif"></td>
        <td width="9" height="6"><img width="9" height="6" border="0" src="images/Darkness/darkness/a3.gif"></td>
</table><BR>

$usergroups (or $rosterheader)

$footer
</body>
</html>


Brian31fl 03-27-2007 08:36 PM

can u make it where its shows differant groups than forum leaders?

Sarcoth 03-27-2007 08:38 PM

Quote:

Originally Posted by Brian31fl (Post 1213938)
can u make it where its shows differant groups than forum leaders?

What do you mean Brian? I'm willing to give you help with almost anything on this. I'm having a lot of fun with the coding. Learning something new everytime someone asks me a question. :)

Also, check back to the following post in case that answers your question.

https://vborg.vbsupport.ru/showpost....6&postcount=30

Brian31fl 03-27-2007 08:46 PM

Quote:

Originally Posted by Sarcoth (Post 1213940)
What do you mean Brian? I'm willing to give you help with almost anything on this. I'm having a lot of fun with the coding. Learning something new everytime someone asks me a question. :)

Also, check back to the following post in case that answers your question.

https://vborg.vbsupport.ru/showpost....6&postcount=30

basicly i want the roster to show differant usergroups then whats on the forum leaders page is it possable to do that?

m002.p 03-27-2007 08:54 PM

the new mod doesnt seem to be functioning Sacroth. The page doesnt display (ie the usergroup bits) :S

Sarcoth 03-27-2007 08:56 PM

Oh. Yes, it is possible. That is something I am working on as well. I forgot to mention that in post #61. My goal is to steer away from the showgroups and include a new group. I could probably get it working with a few code adjustments in the .php file, but I'd rather get it done the right way. Sounds like something I should focus on next and just put sorting off a little longer.

I'll send out an update message when I get that one done.

Sarcoth 03-27-2007 08:58 PM

Quote:

Originally Posted by m002.p (Post 1213948)
the new mod doesnt seem to be functioning Sacroth. The page doesnt display (ie the usergroup bits) :S

Did you follow the new steps? I'll verify everything when I get home. Time for me to go.

Brian31fl 03-27-2007 09:00 PM

Quote:

Originally Posted by Sarcoth (Post 1213950)
Oh. Yes, it is possible. That is something I am working on as well. I forgot to mention that in post #61. My goal is to steer away from the showgroups and include a new group. I could probably get it working with a few code adjustments in the .php file, but I'd rather get it done the right way. Sounds like something I should focus on next and just put sorting off a little longer.

I'll send out an update message when I get that one done.

okay thanks would like to see that :) since i want my forum leaders and guild roster seperate.

thanks for the fast reply

grecostimpy 03-27-2007 09:04 PM

Quote:

Originally Posted by Sarcoth (Post 1213655)

Let me know how that works.

PERFECT! Thank you so much!

Only problem is it still crashes (white screens) when I try to include all usergroups.

Hmmmm....we'll get it figured out!

Sarcoth 03-27-2007 09:40 PM

Quote:

Originally Posted by grecostimpy (Post 1213969)
PERFECT! Thank you so much!

Only problem is it still crashes (white screens) when I try to include all usergroups.

Hmmmm....we'll get it figured out!

Try upgrading to the new version. Maybe we'll get lucky and that will have fixed the problem. I removed a bunch of code and maybe part of it was causing the white screen on your forums. I wish I could generate the same problem as you for testing.

Sarcoth 03-27-2007 09:56 PM

Pay close attention to the following changes if you do upgrade to the new version. I would recommend just going through all the steps again and copying the updated templates.

Templates were renamed:
  • SHOWROSTER stayed the same.
  • showroster_usergroup was renamed to showroster_header
  • showroster_usergroupbit was renamed to showroster_userbits

Variables in templates were renamed:
  • In SHOWROSTER: $usergroups was renamed to $rosterheader
  • In showroster_header: $usergroupbits was renamed to $rosterbits

Sorry for any confusion but I'm trying to fork away from the showgroups page.

grecostimpy 03-27-2007 11:11 PM

Quote:

Originally Posted by Sarcoth (Post 1214016)
Templates were renamed:
  • SHOWROSTER stayed the same.
  • showroster_usergroup was renamed to showroster_header
  • showroster_usergroupbit was renamed to showroster_userbits

FYI: In the instructions you have it renamed to showroster_rosterbits. Mine was not working until I realized the difference.

Unfortunately, still getting the white screen of death on large usergroups....my main registered users group (which is the one it fails on) only has around 1,800 users. Any ideas?

grecostimpy 03-27-2007 11:20 PM

...also...(sorry for so many requests)

Since the php file changed, could you show what edits I would need to make to only show users who have filled out custom profile field 5 again (I tried myself, but could not make it work)

Sarcoth 03-28-2007 12:03 AM

Quote:

Originally Posted by grecostimpy (Post 1214072)
FYI: In the instructions you have it renamed to showroster_rosterbits. Mine was not working until I realized the difference.

Unfortunately, still getting the white screen of death on large usergroups....my main registered users group (which is the one it fails on) only has around 1,800 users. Any ideas?

Ahhh, thanks for pointing that out. I apologize for the typo. :)

1,800 users. Really not sure why it would be failing. I'll see if I can come up with a way to page it out for you, but that is probably a bit above my knowledge right now. I'll see if I can figure it out.

Quote:

Originally Posted by grecostimpy (Post 1214079)
...also...(sorry for so many requests)

Since the php file changed, could you show what edits I would need to make to only show users who have filled out custom profile field 5 again (I tried myself, but could not make it work)

NP. I'm actually enjoying this.

Find:
Code:

                foreach ($users AS $user) {
                        exec_switch_bg();
                        $usercount++;
                        $avatarurl=fetch_avatar_url($user[userid]);
                        if (!$avatarurl) {
                                $avatarurl = 'images/spacer.gif';
                        } else {
                                $avatarurl = $vbulletin->options['bburl'] . '/' . $avatarurl[0];
                        }
                        $avatarimage='<img src="'.$avatarurl.'" border="0">';  //Use $avatarimage in userbits to display avatars
                        eval('$rosterbits .= "' . fetch_template('showroster_userbits') . '";');
                }

Change to:
Code:

                foreach ($users AS $user) {
                        if ($user['field5'] != '') {
                                exec_switch_bg();
                                $usercount++;
                                $avatarurl=fetch_avatar_url($user[userid]);
                                if (!$avatarurl) {
                                        $avatarurl = 'images/spacer.gif';
                                } else {
                                        $avatarurl = $vbulletin->options['bburl'] . '/' . $avatarurl[0];
                                }
                                $avatarimage='<img src="'.$avatarurl.'" border="0">';  //Use $avatarimage in userbits to display avatars
                                eval('$rosterbits .= "' . fetch_template('showroster_userbits') . '";');
                        }
                }


grecostimpy 03-28-2007 12:25 AM

Thanks Sarcoth....

As for the large usergroups...

I'm wondering if something similar can be done as what was with the Timeslip database. It created custom profile fields for all users and then only showed users who had them filled out. Not sure how they got around the white screens, but perhaps someone can chime in?

Again...thanks for all of your help. You truly are a great supporter of your product!

ssslippy 03-28-2007 02:26 AM

ok what code should I replace to pick the usergroups manually, is this possible. Would be much easier for me as I need to have multiple rosters.

ssslippy 03-28-2007 02:31 AM

Quote:

Originally Posted by Sarcoth (Post 1214108)
Ahhh, thanks for pointing that out. I apologize for the typo. :)

1,800 users. Really not sure why it would be failing. I'll see if I can come up with a way to page it out for you, but that is probably a bit above my knowledge right now. I'll see if I can figure it out.



NP. I'm actually enjoying this.

Find:
Code:

                foreach ($users AS $user) {
                        exec_switch_bg();
                        $usercount++;
                        $avatarurl=fetch_avatar_url($user[userid]);
                        if (!$avatarurl) {
                                $avatarurl = 'images/spacer.gif';
                        } else {
                                $avatarurl = $vbulletin->options['bburl'] . '/' . $avatarurl[0];
                        }
                        $avatarimage='<img src="'.$avatarurl.'" border="0">';  //Use $avatarimage in userbits to display avatars
                        eval('$rosterbits .= "' . fetch_template('test_showroster_userbits') . '";');
                }

Change to:
Code:

                foreach ($users AS $user) {
                        if ($user['field5'] != '') {
                                exec_switch_bg();
                                $usercount++;
                                $avatarurl=fetch_avatar_url($user[userid]);
                                if (!$avatarurl) {
                                        $avatarurl = 'images/spacer.gif';
                                } else {
                                        $avatarurl = $vbulletin->options['bburl'] . '/' . $avatarurl[0];
                                }
                                $avatarimage='<img src="'.$avatarurl.'" border="0">';  //Use $avatarimage in userbits to display avatars
                                eval('$rosterbits .= "' . fetch_template('test_showroster_userbits') . '";');
                        }
                }


Slight error in this code, you have 'test_showroster_userbits' and it should be 'showroster_userbits'

Sarcoth 03-28-2007 02:50 AM

Quote:

Originally Posted by ssslippy (Post 1214178)
ok what code should I replace to pick the usergroups manually, is this possible. Would be much easier for me as I need to have multiple rosters.

That's my primary project for this hack right now. I'll let you know once I have it working.

Quote:

Originally Posted by ssslippy (Post 1214182)
Slight error in this code, you have 'test_showroster_userbits' and it should be 'showroster_userbits'

Thanks for pointing that out. I use a test_ page for making changes. I forgot to drop the prefix before posting the code.


All times are GMT. The time now is 05:55 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.01635 seconds
  • Memory Usage 1,925KB
  • 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
  • (18)bbcode_code_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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