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)

Sarcoth 07-15-2010 02:11 PM

Quote:

Originally Posted by Dragonsys (Post 2069501)
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

Very cool stuff Dragon. I am actually working on some other code for the roster, but I would be interested in using this as well. Credit to you for your help on this, nice work. :)

Sarcoth 07-16-2010 03:39 PM

Just a quick update. I only did about a few hours a day work on updating this a week for the last month. I am redoubling my efforts to get an update out soon though, hopefully next week. I am nearing completion of the style revisions (big thanks to Irish for help on that), just a few more tweaks and I can finish up a couple other things I have been working on. I can't swear I used everything that Irish suggested, but I really like having a CSS file now. It will allow users to edit the CSS rather than making those changes to the mod templates.

I also will have Dragon's revised code in the next version as well.

For those that are having style problems with their roster, please wait till the next version.

Sarcoth 07-22-2010 01:54 PM

Just another heads up. After some banging our heads together, Dragon's additional code is working for me now. It will be in the next version. I do need to add a few more things and am planning to do that today. I should have all testing completed by tomorrow or this weekend. I will aim for a Monday release.

Trek 07-22-2010 08:20 PM

Nice to hear Sarcoth, I've been waiting for this update myself. =)

Sarcoth 07-23-2010 07:40 PM

Okay, I think it is done. I'm going to send it to a couple users for testing while I work on typing up some new help files. It should be released on Monday or Tuesday unless I can finish the docs this weekend.

Please don't ask to be one of the testers. I will get it out soon.

Trek 07-23-2010 07:51 PM

Quote:

Originally Posted by Sarcoth (Post 2073516)
Okay, I think it is done. I'm going to send it to a couple users for testing while I work on typing up some new help files. It should be released on Monday or Tuesday unless I can finish the docs this weekend.

Please don't ask to be one of the testers. I will get it out soon.

Good to hear! May my roster no longer look like crap, thank you! =)

TripleChin 07-24-2010 02:23 AM

Quote:

Originally Posted by TripleChin (Post 2038826)
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.

Does anyone have any suggestions to the questions I posted?

Sarcoth 07-24-2010 03:00 AM

Quote:

Originally Posted by TripleChin (Post 2073681)
Does anyone have any suggestions to the questions I posted?

Not sure about your second IF condition there, but why not use something like:
<vb:if condition="$userinfo.$column[columns4] != ''">{vb:var userinfo.{vb:var columns[column4]}}<vb:else /><img src='http://myimages.com/image.gif'></vb:if>

Not 100% sure about that since I am a little rusty with the fields. If that does not work, I can take a look at it next week once the new version is released.

Here is how the entire line will look in version 4.0.4:
Code:

<vb:if condition="$show[field4th] AND exec_switch_bg()"><td><vb:if condition="$userinfo.$column[columns4] != ''">{vb:var userinfo.{vb:var columns[column4]}}<vb:else /><img src='http://myimages.com/image.gif'></vb:if></td></vb:if>

Sarcoth 07-24-2010 04:52 AM

Mod has been updated. I know this has been long in the waiting. Please let me know any issues that you find and I will try to get them fixed promptly. To those I sent a pre-release version to, download this one and use it instead. I ended up adding a few more things to the final.

Thank you and enjoy!

ProFifaLeagues 07-24-2010 05:53 AM

Loving this mod thanks Sarcoth great work.

CoZmicShReddeR 07-24-2010 11:04 AM

Thanks for the update!

koolasia 07-24-2010 11:17 AM

Is it possible to use this mod as an house system like we have in harry potter were points are alloted on diffrent aspects

Sarcoth 07-24-2010 03:47 PM

Quote:

Originally Posted by koolasia (Post 2073810)
Is it possible to use this mod as an house system like we have in harry potter were points are alloted on diffrent aspects

Sorry, but I really don't know what you mean. You can always try it out.

Dragonsys 07-24-2010 04:55 PM

Quote:

Originally Posted by koolasia (Post 2073810)
Is it possible to use this mod as an house system like we have in harry potter were points are alloted on diffrent aspects

this mod only displays a list of users who are members of a certain usergroup. So you could use it to display your Houses with their members.

As for the points, you would need a different mod. vBExperience 4 might be worth checking into.

Sarcoth 07-25-2010 08:32 PM

No problems reported so far so I will assume all is well. I did realize I missed testing the sorting functions, so definitely let me know if you run into any problems there. I'll start working on adding a few more things I wanted in there and maybe have something ready before my fall semester begins.

Trek 07-26-2010 04:50 AM

I'm confused on how to use the multiple-rosters thing.

What I'd like to do is have it display different profile fields if the roster is set to something else.

Like if it's displaying game 1, then fields 1,2,3 and if game 2, then fields 4,5,6.

Not sure if you can do that with the mod, but.. thought I'd ask.

If you can't, what exactly is the multiple roster thing for as well?

Sarcoth 07-26-2010 12:57 PM

Quote:

Originally Posted by Trek (Post 2074568)
I'm confused on how to use the multiple-rosters thing.

What I'd like to do is have it display different profile fields if the roster is set to something else.

Like if it's displaying game 1, then fields 1,2,3 and if game 2, then fields 4,5,6.

Not sure if you can do that with the mod, but.. thought I'd ask.

If you can't, what exactly is the multiple roster thing for as well?

By default, you can't display different fields from one roster to another. I'd have to add a LOT more settings in the showroster settings to accomplish this. There are already 4 settings for each column, so I'd have to add another 8x4 for each time lines of settings just to accomplish one extra roster.

The multi-roster is meant to allow the viewers to see different rosters but using the same fields for each. For instance, my guild can be found in different games (Vanguard, AoC, etc.). If I want, I can display each guild on its own roster, but I would have to use the same profile fields to accomplish this. That could be a little annoying because I would have to set all the race/class names in the same profile field and then my members would have to go through a larger list, but oh well. They usually only need to set it once anyhow. You can also just use the multi-roster to show different grouping of usergroups. Say you want to just see Recruits, type in their usergroup id and there you go.

Now, I did say by default. That does not mean you can't get around this with a little extra coding. Something in the code like, if (usergroup = #), then column = field#. I'll test it out and let you know.

Sarcoth 07-26-2010 01:41 PM

Here you go Trek, try this out.

Find:
PHP Code:

            $userinfo['datejoined'] = vbdate($vbulletin->options['dateformat'], $userinfo['joindate'], true);
            
$userinfo['lastactive'] = vbdate($vbulletin->options['dateformat'], $userinfo['lastactivity'], true); 

Add Below:
PHP Code:

if ($userinfo['usergroupid'] == 19) { $columns['title1'] = "TEST"$columns['column1'] = "field12"; } 

Follow this rule. For "$userinfo['usergroupid'] == 19", use the usergroupid for the first group appearing on your alternative roster. This will cause the Title and field id for all following usergroups to use the same as the first. You will need to add additional code for each column you wish to change. Feel free to use this at your own discretion, it may break some things, I don't know. I can see a way to trim down the number of columns as well, if you want that, but I'll leave that one up to you. :)

Enjoy!

Trek 07-26-2010 08:30 PM

Thanks for the info Sarcoth, I'll fool around with it and see what I can break. =)

Sarcoth 07-27-2010 02:55 AM

Quote:

Originally Posted by Trek (Post 2074936)
Thanks for the info Sarcoth, I'll fool around with it and see what I can break. =)

I did leave enough info for you right? I just realized that what I see as something easy may not be for someone that did not make a lot of this code. Basically, you keep adding more title# and column# within that new if statement for each column you want to change. I'll expand on it if you need me to though.

CharlieDelta 08-03-2010 02:19 AM

Quote:

Originally Posted by Trip3151 (Post 2044882)
Same nothing works :| this is all I get

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

I like how you separated your roster with the game banners, nice touch. How did you do that?

Gleedo 08-04-2010 08:17 PM

I am a tad baffled....

I have set which usergroups I want to display by setting the ids, and have also set that I only want primary usergroups displayed. I do indeed now see myself in my primary usergroup (admin), but for some reason I am only seeing some members of one other primary usergroup (clan members).

Only 3 clan members are being displayed and only the usergroups admin and clan members.

My other primary usergroups 'HR Admins', 'Scrim Admins', and 'Server Admins' are not showing at all, even though I have users in those groups as their primary groups.

I have check my list of usergroup id's are correct and comma delimed.

Any thoughts appreciated :)

Sarcoth 08-04-2010 08:31 PM

Quote:

Originally Posted by Gleedo (Post 2079330)
I am a tad baffled....

I have set which usergroups I want to display by setting the ids, and have also set that I only want primary usergroups displayed. I do indeed now see myself in my primary usergroup (admin), but for some reason I am only seeing some members of one other primary usergroup (clan members).

Only 3 clan members are being displayed and only the usergroups admin and clan members.

My other primary usergroups 'HR Admins', 'Scrim Admins', and 'Server Admins' are not showing at all, even though I have users in those groups as their primary groups.

I have check my list of usergroup id's are correct and comma delimed.

Any thoughts appreciated :)

Link? And, can unregistered users see? I'll check back here later.

Yea, I know I should be able to figure this out without looking, but just seeing something really does help me. :)

Gleedo 08-05-2010 05:37 AM

Quote:

Originally Posted by Sarcoth (Post 2079336)
Link? And, can unregistered users see? I'll check back here later.

Yea, I know I should be able to figure this out without looking, but just seeing something really does help me. :)

Hi, thanks for looking at this, have set unregistered / not logged in able to see it:
http://www.theoldgitsarmy.com/forums/showroster.php

I know I must just be being thick, but im still stuck lol :o

Sarcoth 08-05-2010 01:00 PM

Quote:

Originally Posted by Gleedo (Post 2079483)
Hi, thanks for looking at this, have set unregistered / not logged in able to see it:
http://www.theoldgitsarmy.com/forums/showroster.php

I know I must just be being thick, but im still stuck lol :o

Alright, I can only think of one thing that would be causing the problem; it is in the showroster settings.

1) You have filtering set and all the other users have left that field blank causing them not to appear on the roster.

If that is not it, please let me know. I'd be willing to take a look at your settings for you if you want to PM me a username/pw.

Gleedo 08-05-2010 03:10 PM

Quote:

Originally Posted by Sarcoth (Post 2079589)
1) You have filtering set and all the other users have left that field blank causing them not to appear on the roster.

Oooooh dear god I am truely a friggin idiot! That was it thanks. How the heck did I miss that :o

Sorry for wasting your time Sarcoth and thanks for a great mod :)

m002.p 08-05-2010 03:39 PM

Does this work with v3.8?

I have your old version but need the adv setting for showing just the primary groups opposed to secondary too.

Sarcoth 08-05-2010 04:11 PM

@Gleedo - No problem and I really didn't mind looking. Glad that did it for you.

@m002 - Hey Moo, long time. I remember you back from the old version. Sadly, I doubt this will work with 3.8. I've added a lot of new code to make it work in the 4.0 version. I remember when I first updated this mod for 4.0 and I tested it on 3.8...I don't think the install even worked. Sorry about that.

m002.p 08-05-2010 04:18 PM

Quote:

Originally Posted by Sarcoth (Post 2079674)
@Gleedo - No problem and I really didn't mind looking. Glad that did it for you.

@m002 - Hey Moo, long time. I remember you back from the old version. Sadly, I doubt this will work with 3.8. I've added a lot of new code to make it work in the 4.0 version. I remember when I first updated this mod for 4.0 and I tested it on 3.8...I don't think the install even worked. Sorry about that.

Hey, wasnt sure if you remembered me :)

Yes this mod has come along way since the first release when I assisted with that WOL. Anyhow, I noticed this by comparing the php files from the old version to the new. Was trying to see if there was a way of just getting the script to ignore additional usergroups fullstop. Even if I cannot have a setting like the v4.0 version, would be great to just stop secondary groups displaying via maybe the "display group" selection in vb?

Is there a simple line I could add to the PHP code to ignore everything except primary usergroup display?

Sarcoth 08-05-2010 04:44 PM

Quote:

Originally Posted by m002.p (Post 2079676)
Hey, wasnt sure if you remembered me :)

Yes this mod has come along way since the first release when I assisted with that WOL. Anyhow, I noticed this by comparing the php files from the old version to the new. Was trying to see if there was a way of just getting the script to ignore additional usergroups fullstop. Even if I cannot have a setting like the v4.0 version, would be great to just stop secondary groups displaying via maybe the "display group" selection in vb?

Is there a simple line I could add to the PHP code to ignore everything except primary usergroup display?

I remember everyone that either helped me...or pissed me off; you are in the former group though. :)

Check out the query's in the new version. I have 6 different ones in the new one, but there was only 1 in the old. I think the query's that have an ifstatement == 2 are the ones that only show the primary groups and ignore the secondary ones. If you can figure out how to adjust that in the old, I bet that would do the trick.

m002.p 08-05-2010 05:02 PM

Thanks Sarcoth,

Didnt take me long to find it. The line concerned is:

user AS user ON(user.usergroupid = usergroup.usergroupid OR FIND_IN_SET(usergroup.usergroupid, user.membergroupids))

Simply removing the OR FIND_IN_SET() did the trick.

Nice to speak again, and once again great work with this mod. Im still using it ;)

Sarcoth 08-05-2010 05:48 PM

Good to hear! :) Take care and stop by anytime.

CharlieDelta 08-05-2010 07:00 PM

Fantastic mod! Nominated!

Gleedo 08-06-2010 05:28 PM

Is there a way to display a users age in the roster? Have been trying to work out where the age comes from when added to memberlist.php but with no joy.

Sarcoth 08-06-2010 05:40 PM

Quote:

Originally Posted by Gleedo (Post 2080151)
Is there a way to display a users age in the roster? Have been trying to work out where the age comes from when added to memberlist.php but with no joy.

There's a way. The question you need to ask, are your members going to like having their age displayed? :) I have a lot of older memebers on my forums, many women. That's usually a no-no for them. Although, we could probably set it to use the same settings as the memberlist and only show age for those that approve it...but that kind of defeats the point does it not? I will look at the code when I get a chance, but don't expect a quick turnaround.

Gleedo 08-06-2010 05:54 PM

Quote:

Originally Posted by Sarcoth (Post 2080162)
There's a way. The question you need to ask, are your members going to like having their age displayed? :) I have a lot of older memebers on my forums, many women. That's usually a no-no for them. Although, we could probably set it to use the same settings as the memberlist and only show age for those that approve it...but that kind of defeats the point does it not? I will look at the code when I get a chance, but don't expect a quick turnaround.

Well we are called The Old Gits Army lol - but I guess having the age displayed based on their preferences would be best. Would be great if you manage to incorporate this into your mod at some stage in the future.

Thanks Sarcoth :)

Sarcoth 08-09-2010 08:20 PM

@Gleedo - I spent a couple hours on this today. Apparently, I have the code needed to display birthdays already in the .php file. All I did was change one of the column's (in the showroster_userbits template) to birthday and that did the trick.

For example, find:
Code:

<vb:if condition="$show[field8th] AND exec_switch_bg()"><td>{vb:var userinfo.{vb:var columns[column8]}}</td></vb:if>
Change to:
Code:

<vb:if condition="$show[field8th] AND exec_switch_bg()"><td>{vb:var userinfo.birthday}</td></vb:if>
Now, the same thing should be true for just changing the word birthday to age to show the user's age, but it doesn't work. Something must be missing, but I don't see what it could be. I think it "should" work. If the birthday works, the age should work. It uses the birthday code when figuring out the age. I've double checked the memberlist.php for any missing code, but I don't see it. Sorry, maybe someone else will know what to look for.

Kr33p3r 08-12-2010 03:46 AM

Great mod, thanks for making it.

2 issues:
  • Usernames do not link to their profiles.
  • Avatars break for all but 1 usergroup (even users in multiple).

http://www.cyberneticpunks.com/forums/showroster.php

Thoughts? I am sure its me.

Sarcoth 08-12-2010 11:14 AM

Quote:

Originally Posted by Kr33p3r (Post 2082515)
Great mod, thanks for making it.

2 issues:
  • Usernames do not link to their profiles.
  • Avatars break for all but 1 usergroup (even users in multiple).

http://www.cyberneticpunks.com/forums/showroster.php

Thoughts? I am sure its me.

I checked into this on my test and live site. The Usernames are linking to their profiles and the avatars look fine. I did notice that now users without avatars have a message: "No Avatar Specified" instead of it just being blank. I will have to look into fixing that, but I am not sure how to fix your problem. I'm blocked from your site here at work so I will try to take a look at it this weekend.

Gleedo 08-12-2010 11:25 AM

Quote:

Originally Posted by Sarcoth (Post 2082618)
I did notice that now users without avatars have a message: "No Avatar Specified" instead of it just being blank.

Thats because the roster is expecting a noavatar.jpg (or something like that) which does not exist (for me at least) in the style images folder, so I changed the path so it would look for it in images/misc and then added the avatar in there :)


All times are GMT. The time now is 10:20 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.01860 seconds
  • Memory Usage 1,867KB
  • 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
  • (2)bbcode_php_printable
  • (19)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