vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Customizable Roster (https://vborg.vbsupport.ru/showthread.php?t=180432)

GlitchersCorner 05-26-2008 01:32 AM

Nice Mod!

By any chance can you make an add-on for this or an option for users to create their own rosters? That would be extremely cool. I'd pay for that option!

iogames 05-26-2008 04:56 AM

Quote:

Originally Posted by GlitchersCorner (Post 1531438)
Nice Mod!

By any chance can you make an add-on for this or an option for users to create their own rosters? That would be extremely cool. I'd pay for that option!

I chip-in!

michael5472 05-26-2008 08:07 AM

I have installed but can i make it show BBCODE in the profile field ?

doesn't work for me
http://www.theoldbreed.com/showroster.php

Sarcoth 05-26-2008 03:53 PM

Quote:

Originally Posted by stwilson (Post 1530990)
Allow for a header footer field that shows above or below the Roster/Memberlist?

I don't think that would be very difficult to add, but what do you want to put there? The roster should already be using the forums header/footer.

Quote:

Originally Posted by stwilson (Post 1531030)
I have a question. I am trying to include a member's Join Date in a column but the number that shows up is a ten digit number. How do I convert it back to the standard VB date format?

I recall something similiar to that, I'll look into it this week.

Quote:

Originally Posted by ssslippy (Post 1531095)
Added a usergroup with almost 400 members and the script fails to run, gives a white page. I get no emails reporting errors.

We had a problem with large usergroups back in vBulletin 3.6.x as well. I just tested it out on my roster with a usergroup that has 289 users in it; it worked successfully. I'd be curious to know if others are having any problems? How many fields are you using? Did you also try a smaller usergroup; if you have one? I'm sure you did, just asking though.

Quote:

Originally Posted by GlitchersCorner (Post 1531438)
By any chance can you make an add-on for this or an option for users to create their own rosters? That would be extremely cool. I'd pay for that option!

Maybe in the future...but I fear that would be a lot of work. I'll research it though and maybe it can be done. No promises though.

Quote:

Originally Posted by michael5472 (Post 1531620)
I have installed but can i make it show BBCODE in the profile field ? doesn't work for me http://www.theoldbreed.com/showroster.php

You need to give unregistered users permissions to view it as well. I can't see it.

michael5472 05-26-2008 06:42 PM

Quote:

Originally Posted by Sarcoth (Post 1531974)
You need to give unregistered users permissions to view it as well. I can't see it.

Done

Sarcoth 05-27-2008 02:11 PM

Quote:

Originally Posted by stwilson (Post 1531030)
I have a question. I am trying to include a member's Join Date in a column but the number that shows up is a ten digit number. How do I convert it back to the standard VB date format?

Completed.

Open the showroster.php file.

Find:
Code:

  fetch_musername($user);
After it add:
Code:

        $user['datejoined'] = vbdate($vbulletin->options['dateformat'], $user['joindate'], true);
Your code in the showroster_userbits template should look similiar to this:
Code:

        <td class="$bgclass" nowrap="nowrap">$user[datejoined]</td>

I'll be sure to add this in the next version for those that wish to use it.

stwilson 05-28-2008 03:33 AM

Worked like a charm. Thank you for the super mod!!!

michael5472 05-29-2008 04:05 PM

Quote:

Originally Posted by Sarcoth (Post 1531974)
You need to give unregistered users permissions to view it as well. I can't see it.


Done any chance ?

IR15H 05-29-2008 07:19 PM

A few things...

Firstly, thanks for releasing this :).

Some Questions
  • How do I sort user groups in a custom order, say id 1, 4, 5, 3, 2 or name A, D, E, C, B? A similar thing is done for user groups in a legend by Cyberntec in his "Visitors in Last X Hours" mod, but not being a coder I can't work it out myself.
  • How would I pull a user's age (not DOB), provided they haven't set it to private (Hide Age + DOB, Display Only Day and Month of Birth)? I spent quite a while trying to figure it out, with no joy.
  • How would I do the feature that is in ADMIN CP > Forums & Moderators > Show All Moderators, whereby it displays the last online in different colours, based on their last activity? I managed to find the code in forum/admincp/moderator.php;

PHP Code:

if ($supergroup['lastactivity'] >= $unixtoday)
{
$onlinecolor 'modtoday';
}
else if (
$supergroup['lastactivity'] >= ($unixtoday 86400))
{
$onlinecolor 'modyesterday';
}
else if (
$supergroup['lastactivity'] >= ($unixtoday 864000))
{
$onlinecolor 'modlasttendays';
}
else if (
$supergroup['lastactivity'] >= ($unixtoday 2592000))
{
$onlinecolor 'modsincetendays';
}
else
{
$onlinecolor 'modsincethirtydays';


Which I unsuccessfully tried to convert into;

PHP Code:

<if condition="$user['lastactivity'] >= $unixtoday">$user[lastonline]
<else />
<if 
condition="$user['lastactivity'] >= ($unixtoday - 86400)"><span style="color:green">$user[lastonline]</span>
<else />
<if 
condition="$user['lastactivity'] >= ($unixtoday - 864000)"><span style="color:blue">$user[lastonline]</span>
<else />
<if 
condition="$user['lastactivity'] >= ($unixtoday - 2592000)"><span style="color:orange">$user[lastonline]</span>
<else />
<
span style="color:red">$user[lastonline]</span>
</if></if></if></if> 

What am I doing wrong?

Some Suggestions
  • postbit_onlinestatus is uncached. Opening up showroster.php, and adding the following appears to fix this;

    Quote:

    // pre-cache templates used by all actions
    $globaltemplates = array(
    'SHOWROSTER',
    'showroster_header',
    'showroster_userbits',
    'postbit_onlinestatus'

    );
  • Replace all instances of <br> (9) with <br /> for XHTML validation.
  • Continuing with XHTML, still in showroster.php change the following line to include;

    Quote:

    $avatarimage='<img src="'.$avatarurl.'" border="0" alt="" />'; //Use $avatarimage in userbits to display avatars
  • Also XHTML, in product-showroster.xml, find and edit;

    Quote:

    Originally Posted by (showroster_header template)
    <td class="thead">Avatars</td>
    </tr>
    $rosterbits
    </table>

  • "Last Online" can be phrased using $vbphrase[last_online].

A Request

Rather than decide who appears/can view a roster via bitfields, would it be possible to do it via a ADMIN CP > vBulletin Options > Edit Settings Option (Similar to Cyb's mod I mentioned earlier)? I have quite a lot of usergroups, and I imagine most people who have clans/guilds use their forums do too, and it's a bit of a pain having to update each user group manually for those permissions, particularly if you use more than one roster. Those options would ideally include;
  • "User groups to show in roster" and a input area, where by the user group ids entered would be shown on the roster, in the order entered.
  • "User groups who can view roster" where you enter the user groups id that can view it, and where 0 means all groups can view it.

If doing it via that method is a lot of work/you think bit fields is a better way then no worries, I just thought I'd ask :).



----------------------------

Quote:

Originally Posted by michael5472 (Post 1535267)
Done any chance ?

I don't know how to enable BB code in the field, and I can't view users profiles without signing up, so don't know what else you use the "Play Monitor" field for, but a possible idea that may you might find suitable is;
  • Change your "Play Monitor" description to say "Enter the server IP you wish to track".
  • Enter the IP in that field: eg; 217.163.28.224:28960
  • In your showroster_userbits template, put this;
Quote:

<if condition="$user[fieldX]"><img src="http://www.gametracker.com/server_info/$user[fieldX]/b_560x95.png" alt="$user[fieldX]" border="0" /><else />No Server Tracked</if>
If that's not of any use to you then I'm afraid you'll have to wait for someone else to reply regarding enabling BB code, as I can't help you.

Sarcoth 05-29-2008 09:14 PM

Quote:

Originally Posted by michael5472 (Post 1535267)
Done any chance ?

Not yet. I usually try to look over code while at work...don't tell please...but I can't get to your site from there. My evenings have been busy this whole week. I'll definitely get around to taking a look as soon as time permits; probably this weekend.


All times are GMT. The time now is 01:51 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.01215 seconds
  • Memory Usage 1,781KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (15)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
  • (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