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)

K4GAP 04-27-2010 09:15 PM

I really love this but lack the knowledge to create proper user fields and such. Anyone here willing to take on the job probono?

Hey I just have to ask because this is would be a really slick addition to my site.

www.publicwarriors.com

drainpan 04-27-2010 11:28 PM

Sarcoth,

I sent you a pm.

Thank you in advance for your help.

drainpan 04-29-2010 12:47 AM

never mind... I figured it out

dxds 05-04-2010 01:23 AM

Quote:

Originally Posted by drainpan (Post 2028851)
never mind... I figured it out

Whats the problem?.. same thing happen to me...

dxds 05-04-2010 03:48 PM

Quote:

Originally Posted by drainpan (Post 2027126)
:crickets: any idea why this is happening?

I followed the instructions to a "T" and I cannot get any people to show up on the list.


How did you fix it???...

MudRacing 05-04-2010 10:07 PM

1 Attachment(s)
how can I change the background color?

dxds 05-04-2010 10:21 PM

Quote:

Originally Posted by MudRacing (Post 2031841)
how can I change the background color?

How you get the small avatar by name like that?... I just setup mine... http://aogamers.com/forums/showroster.php

MudRacing 05-04-2010 10:33 PM

Quote:

Originally Posted by dxds (Post 2031843)
How you get the small avatar by name like that?... I just setup mine... http://aogamers.com/forums/showroster.php

adminCP -> Option -> Showroster setting

MudRacing 05-05-2010 09:10 AM

the awards is possible in the roster?

I'm using this: https://vborg.vbsupport.ru/showthread.php?t=232684

Thanks

Sarcoth 05-07-2010 01:30 PM

Anything is possible, it just depends on how difficult it is to accomplish. I'd have to look over the code to see how that would fit. I plan to start working on a new version next Wednesday after my last final on Tuesday. Summer classes don't start till June so I have a 3 weeks to add a lot of new stuff. I'll see if I can find a way to allow awards for you next week Mud. It won't be part of my upgrade, just a side howto thing.

MudRacing 05-07-2010 01:32 PM

Thaks :)

Gamershosting 05-16-2010 12:02 PM

Hi all,

Ok I seem to be having an issue getting some of the Usergroups to display.

In my vBulletin/Options/ShowRoster settings I have the following for the Usergroups displayed:

6,7,2

6 = Administrators
7 = Moderators
2 = Registered Users

Seems the Registered Users is the only Usergroup showing.

I have the primary sort set at title.

THanks and your help is greatly appreciated.

TripleChin 05-17-2010 10:21 PM

I love this mod. I am have done a few custom tweeks to it and would like some help with one I can't seem to work out.

In lieu of displaying a particular profile field, I would like to display an image in it's place. The field is not required, so some users will have it and other's won't. I am attempting to only display if the user has selected 'Yes'.

In "showroster_userbits" template I have made the following modification without success. If you have a suggestion as to how I could get it working that would be great.

Code:

<vb:if condition="$show[field4th]"><td nowrap="nowrap" align="center"><vb:if condition="$userinfo.$column[columns4] == /yes/i"><img src='http://myimages.com/image.gif'></vb:if></td></vb:if>
Thank you.

aflax045 05-24-2010 12:32 AM

I have not played with this a whole bunch, but I have not figured this out. Is there a way to display the following? (Going to break this down so it is more easily understood).

A forum exists for multiple game guilds under one roof. I would like a roster that separates the rosters by the games played.

So for example:

WoW Guild Usergroups:
WoW Guild Leaders
WoW Guild Members

Aion Guild Usergroups:
Aion Legion Leaders
Aion Legion Members


I would like the roster page to separate the WoW users and Aion users into two separate areas or perhaps different pages.


Roster Page:

WoW Member Count: #

Leaders
A
B

Members
A
B
C
etc.

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

Aion Member Count: #

Leaders
A
B

Members
A
B
C
etc.

Trip3151 05-29-2010 12:44 AM

Quote:

Originally Posted by dxds (Post 2031438)
Whats the problem?.. same thing happen to me...

Same nothing works :| this is all I get

http://www.outkasts.net.au/forum/showroster.php

Sarcoth 06-08-2010 07:08 PM

Okay. I am back. Life got a little busy. I am hoping to start working on an update next week. If anyone is still having any problems, post them now and I'll get back to you. I'll look into the above stuff over the next 2 days. Depends on how long it takes me to fix my site. Apparently a few things are broke after updating.

fusionpot 06-09-2010 04:37 AM

glad your back, just installed it and i get this error when i try to see the .php

Code:

Fatal error: Class 'vB_Template' not found in /home/?????/public_html/forum/showroster.php on line 500
here is whats on line 500.

Code:

$templater = vB_Template::create('showroster_navbar');
any ideas???

Sarcoth 06-09-2010 07:36 PM

None yet. I'll set up a new test forum tomorrow and do a fresh install with the current version. Perhaps it has something to do with 4.0.3 but I don't know. I updated to 403 on Monday and I had no problems with the roster, but mine was already installed.

403 the version you have?

docvader 06-09-2010 08:14 PM

Sarcoth, excellent script here. I'm trying to adapt it, to turn it into a STAFF PAGE. Which is something that vbulletin needs, and doesn't have. Your script can do it, but there are some things that need to be changed. Can you direct me?

Profile fields that contain a lot of characters do not line wrap: they just stretch across. Is there a way to fix the size of the tables so that the text wraps?

Profile field text is centered, which works great for what you're doing with this, but really throws off things if you have a paragraph of text. Any way of making it LEFT oriented?

I realize that these must be simple template edits, but I haven't explored it yet.

Also putting the avatar in the name box, or near it, might be useful.

Thanks!

EDIT: fixed the align center issue easily. Now for the word wrapping part...(change align center to align left in product xml)
EDIT: fixed the wrap stuff. (change all "nowrap" to "wrap" in product xml)

Now, changing the actual Navbar phrase..... EDIT: found it!

Great staff page!

Sarcoth 06-10-2010 02:20 AM

LOL. So, it sounds like you fixed all your issues then right?

You sound like me. I like to ask my questions and then go to work on the problem in case someone else gives me the answer before I find it on my own. Funny thing is, I always figure it out first. :)

masonox 06-10-2010 05:22 PM

Hello! Great product, I do have a problem however. I did not read all these replies, but my problem is if I make a new user field like

Class = Bounty Hunter

when I select that in the profile, and go to the roster page it just shows numbers, like 1, 2, 3 or whatever my classes would be, but not the text that I had entered in the profile field creation. Any ideas?

Thanks in advance.

Sarcoth 06-10-2010 05:38 PM

It sounds like you are using radio selections rather than a dropdown selection. It can still work with radio, but you'd have to do some extra coding. I suggest you do dropdown selection instead.

masonox 06-10-2010 05:40 PM

Quote:

Originally Posted by Sarcoth (Post 2051655)
It sounds like you are using radio selections rather than a dropdown selection. It can still work with radio, but you'd have to do some extra coding. I suggest you do dropdown selection instead.

I tried a multiple line text, I didn't see a traditional "form like" drop down. But checkbox and multiple line is same results, 1,2,3,4 etc,

masonox 06-10-2010 05:43 PM

nm it works now, it was as you said, they just labeled it odd. Thanks for help :)

Sarcoth 06-10-2010 06:00 PM

No problem!

Sarcoth 06-11-2010 08:04 PM

Quote:

Originally Posted by IR15H (Post 2014029)
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?

You are 100% correct and it gave me a headache just trying to get it to work. Definitely not simplistic. Most likely it could be coded better, but it was the best I could do with what I had. One day, I will rewrite it all and make it a lot better, but not for awhile. For now, we are stuck with my hogwash mod of code. Initially, back in the previous versions, it did a sort by userid or username. So many people asked to have the usergroups sorted in whatever way they wanted though. I did my best.

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

Quote:

Originally Posted by IR15H (Post 2014029)
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.

Actually, I set something up for my guild officers where they could see some additional columns. It works along a similiar way to what you just described. I think it is doable, but I need to come up with a way to make it all configurable by the admins. I was thinking of making two ShowRoster Setting pages, but as soon as I give the option for two rosters, someone will want three. I have another idea that will deal with that problem and should make it much easier for me. I want to get the next version published that fixes a few problems and adds some more options...and then I will begin work on the multiple rosters.

Dragonsys 06-18-2010 06:09 PM

CSS does not seem to be applying to the roster. I mean, it just looks ugly. I'm sure I am just missing something here, as in your demo it looks as I would expect.

You can see what I mean here - http://forums.texas-fbody.org/showroster.php

Sarcoth 06-18-2010 07:11 PM

I guess the look all depends on the style of the forum and how that style translates to this mod. I am looking into a css for this though and maybe that will help, but the problem is that every forum has a different style so it will always look different. You can always make your own adjustments in the templates though. That requires a little html knowledge.

JohnnyNorCal 06-20-2010 04:28 AM

Great System, thanks so much.

I have a question. I have a gaming group and the only people I want on the roster are people that are active according to who the mods and admins think should be on there. Basically we only have one usergroup for registered users. Is there an easy way to have the admins control who goes on the roster? If I did it by usergroup I am either allowing everyone or disallowing everyone...if that makes sense.

Sarcoth 06-20-2010 04:56 AM

Quote:

Originally Posted by JohnnyNorCal (Post 2056185)
Great System, thanks so much.

I have a question. I have a gaming group and the only people I want on the roster are people that are active according to who the mods and admins think should be on there. Basically we only have one usergroup for registered users. Is there an easy way to have the admins control who goes on the roster? If I did it by usergroup I am either allowing everyone or disallowing everyone...if that makes sense.

I have something similiar in place on my roster. I set up a "user profile field" called status with the choices of "Active/Inactive". I made the default "inactive". I then told all the active users to set it to active. You then can put some code in the php file that only displays users if this is set to active. I will look up the code for you if that is the way you really want to go...

Personally, I think you should go another route. The reason is, for some of these people, you are going to have to set their status anyhow because users tend to be ignorant when it comes to updating their information. :) Just the way it is. Because of that, you'll need to go into their profiles. The better way to go is to make a usergroup, and add all the users you want to be on the roster to this group. You don't have to give the group any permissions or anything, just use your registered group for that. Keep that as the primary usergroup for everyone while you check the box of the people you want on the roster. Maybe even call the group the Roster group or something.

That's what I would do. I'll check back in a couple days and give you the code though if you want to go the more difficult route.

JohnnyNorCal 06-20-2010 05:52 AM

Ok...I'm going to set up a secondary usergroup and see if I can just manually add users to that group with permissions to access the specific profile fields the roster uses. The reason I was hesitant to do this is because the rank system is somewhat intricate and I didn't want to interfere with it.

I guess my question now is, where can I control this new usergroup to be able to view the extra profile fields and set the old usergroup to not view or edit the extra profile fields? I don't remember seeing a way to do this in the usergroup manager. Theres so many options, sometimes I get lost in with all the switches here and there.

Dragonsys 06-20-2010 04:00 PM

Quote:

Originally Posted by JohnnyNorCal (Post 2056197)
Ok...I'm going to set up a secondary usergroup and see if I can just manually add users to that group with permissions to access the specific profile fields the roster uses. The reason I was hesitant to do this is because the rank system is somewhat intricate and I didn't want to interfere with it.

I guess my question now is, where can I control this new usergroup to be able to view the extra profile fields and set the old usergroup to not view or edit the extra profile fields? I don't remember seeing a way to do this in the usergroup manager. Theres so many options, sometimes I get lost in with all the switches here and there.

add this new usergroup to the users as a secondary group, and it should not affect your rank system at all.

Dragonsys 06-20-2010 04:04 PM

Quote:

Originally Posted by Sarcoth (Post 2055551)
I guess the look all depends on the style of the forum and how that style translates to this mod. I am looking into a css for this though and maybe that will help, but the problem is that every forum has a different style so it will always look different. You can always make your own adjustments in the templates though. That requires a little html knowledge.

I could have sworn I had this problem with the vb3.7 version of this mod, and it was just one little tweak I had to make to get it to view properly, but I can't find where I posted about it.

well they do say the memory is the first thing to go...


EDIT: ok, so I was looking at the templates, and it's something with this mod. Looking at the garage templates (http://forums.texas-fbody.org/garage.php) it uses the same classes your templates do, but it displays properly, when the roster does not. At least this is what it looks like to me.

Sarcoth 06-20-2010 04:35 PM

Quote:

Originally Posted by Dragonsys (Post 2056475)
EDIT: ok, so I was looking at the templates, and it's something with this mod. Looking at the garage templates (http://forums.texas-fbody.org/garage.php) it uses the same classes your templates do, but it displays properly, when the roster does not. At least this is what it looks like to me.

I am going to be incorporating a bunch of template changes in the next version thanks to IR15H. Maybe that will fix your problem. If not, I will look into it more then. I've got some other things going on but my goal is to have the update released by the end of the month.

Dragonsys 06-20-2010 04:39 PM

Quote:

Originally Posted by Sarcoth (Post 2056494)
I am going to be incorporating a bunch of template changes in the next version thanks to IR15H. Maybe that will fix your problem. If not, I will look into it more then. I've got some other things going on but my goal is to have the update released by the end of the month.

Cool, I will wait for your update. In the meantime, I'm gonna keep looking at my site and just see if I can narrow it down some. I made several changes to the SHOWROSTER template, but they don't seem to have any real affect on the page display.

Thanks

a7lameza.com 06-20-2010 05:30 PM

thank you

strudinox 07-12-2010 03:42 PM

Not working since I upgraded to 4.0.4

Any development on a solution? The issue is when I click on the custom profile options, it takes me to an empty page within the profile.

Dragonsys 07-13-2010 02:55 PM

would it be possible to only display users on the roster based upon their primary UserGroup, not all of their Usergroups?

For example, I have two groups, Members & Officers. All of the Officers (primary group) belong to Members (secondary group), but not vice versa. I want to Display a Roster of the members, but not have the Officers listed. As it is right now, the Officers get listed, since they belong to the members Group, even though it is not their primary group.


EDIT:
Ok, I found it, I just needed to remove:
Code:

OR FIND_IN_SET(usergroup.usergroupid, user.membergroupids)
But I think it might work best if this was a selectable option. Or maybe a var, like m=x
Where x is 1, 2 or 3 (1 for primary, 2 for secondary, or 3 for either/both)

I have also made this script work for multiple group displays (almost multiple rosters). I will PM my changes to the Author and see if he is interested. It still uses all the same settings in admincp, only the group displayed changes.
You can see an example here:
Default View - http://forums.texas-fbody.org/showroster.php
Single Usergroup - http://forums.texas-fbody.org/showroster.php?id=6
Multiple Usergroups - http://forums.texas-fbody.org/showroster.php?id=6,9

Barteh 07-15-2010 01:30 PM

I've been trying to modify the clan roster to include images in the user fields, but so far without much luck. Would it be possible to simply let the script interpret all html (or BB codes) within these fields, thus displaying images? I've set the corresponding profile options to only be radio button selectable, so no risk of someone inadvertently breaking the layout.

Dragonsys 07-15-2010 01:53 PM

Quote:

Originally Posted by Dragonsys (Post 2068609)
Code:

OR FIND_IN_SET(usergroup.usergroupid, user.membergroupids)
But I think it might work best if this was a selectable option. Or maybe a var, like m=x
Where x is 1, 2 or 3 (1 for primary, 2 for secondary, or 3 for either/both)

I got this working.
1 = Secondary Group Membership only
2 = Primary or Secondary Group Membership
Default = Primary Group Membership only

You can see it in action here:
Default - http://forums.texas-fbody.org/showroster.php
1 - http://forums.texas-fbody.org/showroster.php?m=1
2 - http://forums.texas-fbody.org/showroster.php?m=2
With Group ID - http://forums.texas-fbody.org/showroster.php?m=1&id=12


All times are GMT. The time now is 06:03 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.01660 seconds
  • Memory Usage 1,853KB
  • 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
  • (5)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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