vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Profile Enhancements - Customizable Roster (https://vborg.vbsupport.ru/showthread.php?t=235326)

IR15H 03-28-2010 09:04 PM

1 Attachment(s)
Glad to see this has made it to vB4 :).

Quote:

Originally Posted by kevius (Post 2011092)
i'm sorry but, where is the sort menu ?????

Beneath the main navigation menu when you're on the Roster 'tab'.

Quote:

Originally Posted by dennisuello (Post 2011403)
How do I rename the tab? I don't want it to say Roster.

Edit the template showroster_navbar, change <a class="navtab" href="showroster.php{vb:raw session.sessionurl_q}">Roster</a> to whatever you want.

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

I had a play around with the templates on my test site, mainly moving all the styling to a separate css sheet so that the table would take on the style of whatever the user was viewing in, but also the odd tweak. Below are two examples;

Grouped:
http://img149.imageshack.us/img149/1912/roster1.png

Single Table:
http://img25.imageshack.us/img25/2255/roster2.png

I also thought of some ideas/requests for future versions;
  • as mentioned previously, default order is that which user group IDs are entered in the settings
  • multiple rosters
  • allow HTML in group titles (where my first screen shot has all the <span> stuff)
  • make each group listing collapsible
  • find a way to get multiple-selection user profile fields to work in the roster
  • add page pagination for long rosters
  • add an age column (assuming user has set age to be public)
  • add a PM/Email/MSN/Skype column (following default permissions)
  • phrase the few remaining unphrased words (eg. Roster)

Anyway, if you're interested in the template/css changes I made let me know and I'll give you what I've done.

Hope your exam went okay :).

Bojangles 03-29-2010 05:33 PM

Great mod!

I would love to see the ability (in a future version) to replace the text group name with an image instead (image path is entered as an option in the group). If that ever happens, would it look prettier to have the image centered over the listing of the people in the group, instead of fixed on the left?

Thanks again for making this!

CoZmicShReddeR 03-29-2010 08:18 PM

IR15H I think that is amazing and exactly what this needed!

Please share if you could with Sarcoth or maybe with us here... I would love that if you could share it with me either way...

Thanks!

Sarcoth 03-31-2010 07:39 PM

Quote:

Originally Posted by IR15H (Post 2011881)
I had a play around with the templates on my test site, mainly moving all the styling to a separate css sheet so that the table would take on the style of whatever the user was viewing in, but also the odd tweak.

Are you talking about the different browser types? Hmmm, I know the tables looked different in Firefox and IE, but I didn't know I could do much about that. I'm interested in the css sheet and what you did to the templates if you don't mind. Thank you.

Quote:

Originally Posted by IR15H (Post 2011881)
I also thought of some ideas/requests for future versions;
  • as mentioned previously, default order is that which user group IDs are entered in the settings
  • multiple rosters
  • allow HTML in group titles (where my first screen shot has all the <span> stuff)
  • make each group listing collapsible
  • find a way to get multiple-selection user profile fields to work in the roster
  • add page pagination for long rosters
  • add an age column (assuming user has set age to be public)
  • add a PM/Email/MSN/Skype column (following default permissions)
  • phrase the few remaining unphrased words (eg. Roster)

1) You mean the default order isn't working for you? I did add it to this version, but it only works when the default sort is usergroupid.
2) I had thought of doing that already, but just haven't gotten around to it. Easy enough to do.
3) Hmmm, that may be more of a challenge. I know how to do collapsable groups, but I wonder how that would work for this type of mod. This would be a fun one to work on.
4) I guess I've never used them so never noticed they were not working. I'll chalk this one up for much later.
5) Ack, sadly I don't know about that for this mod. I'd be better off redoing the whole code and mimicing the memberlist.php. This mod was initially built as a way to reuse the showgroup.php file, but it became so customizable I had to redo it as a mod. You're welcome to the challenge if you'd like.
6) I had this once, but removed it since I didn't see it in use anywhere. I'll readd the code and then provide a way to have it added without actually adding ANOTHER column. Maybe just set it up in a way that you can type birthday in one of the field columns.
7) I had thought of doing this as well. I'll look into it but this one may be two versions later.
8) Yea, I meant to actually do that in the last version. I was so excited about getting the big things working that I never got around to this.

Thanks for the suggestions.

Quote:

Originally Posted by IR15H (Post 2011881)
Hope your exam went okay :).

It didn't actually. I decided to read only 2 of the 3 chapters so I only got around 70%. But, the good news is, that was good enough to give me a 90.8 in the class. I still have 2 more tests to take this semester, but they will only improve my grade, not make it worse. So, basically, if I get 62 out of the remaining 168 questions, I'll have a 100 for the semester. Not important since I already have an A. I thought the extra credit would be easier and more fun than taking the tests...I was right.

Sarcoth 03-31-2010 07:42 PM

Quote:

Originally Posted by Bojangles (Post 2012372)
Great mod!

I would love to see the ability (in a future version) to replace the text group name with an image instead (image path is entered as an option in the group). If that ever happens, would it look prettier to have the image centered over the listing of the people in the group, instead of fixed on the left?

Thanks again for making this!

I'm not sure putting images in the group names would be widely used. Plus, it would be code intensive adding the code in there for the select few that want to do that. Instead, I'll see what I can do in telling you how to accomplish it on your own. Let me know if you are still interested.

IR15H 03-31-2010 09:44 PM

1 Attachment(s)
Quote:

Originally Posted by Sarcoth (Post 2013653)
Are you talking about the different browser types? Hmmm, I know the tables looked different in Firefox and IE, but I didn't know I could do much about that. I'm interested in the css sheet and what you did to the templates if you don't mind. Thank you.

As far as I can see, they render the same way in the latest versions of FireFox, IE and Chrome. I've attached the xml file with the template changes.

Quote:

1) You mean the default order isn't working for you? I did add it to this version, but it only works when the default sort is usergroupid.
The default order works fine but what I would like is a custom order, which is defined by the order in which I enter the user group IDs in the settings box. In regards to the other suggestions, thanks for the feedback on them (although I think you missed the one about HTML in the user group titles).

As for your exam, I did the trick of only revising half of the material once but nailing it so I got the mark I needed, sounds like you're going to get the marks you need too :).

CoZmicShReddeR 03-31-2010 11:30 PM

Thanks IR15H,
I think having the gamerscard icons show or the mini banners would be a nice plus or someone could make an addon for ShowRoster for those that want it to display... Same with the Messengers Icons...

Sarcoth 04-01-2010 11:54 AM

Quote:

Originally Posted by IR15H (Post 2013705)
As far as I can see, they render the same way in the latest versions of FireFox, IE and Chrome. I've attached the xml file with the template changes.



The default order works fine but what I would like is a custom order, which is defined by the order in which I enter the user group IDs in the settings box. In regards to the other suggestions, thanks for the feedback on them (although I think you missed the one about HTML in the user group titles).

As for your exam, I did the trick of only revising half of the material once but nailing it so I got the mark I needed, sounds like you're going to get the marks you need too :).

Thanks for the file, I'll check it out.

I spent days trying to get the custom order to work when sorting was used and it broke no matter how I tried it. I don't think it will work because the way the grouping is done. Maybe one day I'll try to change over to something else.

Nope, #2 was the HTML one. I missed the multiple rosters suggestion. Still not sure how to do it. That is one I'd like to do though. The main problem there is how to do permissions. I would definitely need to add some tables and a lot more code to make it to work. Not sure I'll have the time to come up with something like that in the near future.

Andyucs 04-01-2010 12:55 PM

Quote:

Originally Posted by IR15H (Post 2013705)
.

Thank you

very nice upgrade

IR15H 04-01-2010 01:26 PM

Quote:

Originally Posted by CoZmicShReddeR (Post 2013749)
Thanks IR15H,
I think having the gamerscard icons show or the mini banners would be a nice plus or someone could make an addon for ShowRoster for those that want it to display... Same with the Messengers Icons...

It's easy enough to get banners for xbox, xfire etc. by going to the relevant site, selecting the banner you like, then editing the generated code very slightly and putting it in your showroster_userbits template. For example;

Replace {vb:var userinfo.{vb:var columns[columnX]}} with the following;
  • xfire
    Quote:

    <img src="http://miniprofile.xfire.com/bg/sh/type/3/{vb:var userinfo.{vb:var columns[columnX]}}.png" alt="{vb:var userinfo.{vb:var columns[columnX]}}" />
  • xbox
    Quote:

    <img src="http://card.mygamercard.net/presence/{vb:var userinfo.{vb:var columns[columnX]}}.png" alt="{vb:var userinfo.{vb:var columns[columnX]}}" />

Replace X with whatever column you're using for xfire/xbox etc.

Quote:

Originally Posted by Sarcoth (Post 2013985)
Thanks for the file, I'll check it out.

I spent days trying to get the custom order to work when sorting was used and it broke no matter how I tried it. I don't think it will work because the way the grouping is done. Maybe one day I'll try to change over to something else.

Nope, #2 was the HTML one. I missed the multiple rosters suggestion. Still not sure how to do it. That is one I'd like to do though. The main problem there is how to do permissions. I would definitely need to add some tables and a lot more code to make it to work. Not sure I'll have the time to come up with something like that in the near future.

Every time I look at PHP I can never quite figure it out and end up with a headache but from what I can gather, you've basically said;
  1. What usergroups do you want to show on the roster?
  2. What attribute of usergroups should be the primary one, user id or user title?
  3. How should I sort that attribute, ascending or decending? (If none defined, then sort ascending)

As I don't really understand PHP, this may be overly simplistic, but what happens if you simply remove steps 2 and 3? Is the default behaviour to simply fetch display in the order they are entered, or is there some inherit sort behaviour that needs to be overwritten?

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

In regards to multiple rosters, I was thinking along the lines of two entries for showroster_display_groups in the settings then some crazy if conditions like if showroster_display_groups_2 is not blank then display roster2, which would use the same fields/columns as roster1, but appear on a different tab. Of course the downside to that approach would be that you'd be limited to using the same user profile fields for both rosters. However, as I said, I don't really understand PHP so don't know how feasible such an idea would be.

Quote:

Originally Posted by Andyucs (Post 2014007)
Thank you

very nice upgrade

Glad you like it :).


All times are GMT. The time now is 09:45 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.01473 seconds
  • Memory Usage 1,795KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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