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)

cerulean 04-06-2007 09:21 PM

How can I change the sort so it isnt by username but by say Field11?

Sarcoth 04-07-2007 06:01 AM

Quote:

Originally Posted by cerulean (Post 1221406)
How can I change the sort so it isnt by username but by say Field11?

Please remember to click installed.

Right now it is by group title and then username, so I'm assuming you want to keep the group and then do field11 in place of username.

Open the showroster.php.

Find:

Code:

$u = strtoupper($user['username']);
Replace with:

Code:

$u = strtoupper($user['field11']);
That's it. :)

Sarcoth 04-07-2007 06:07 AM

Quote:

Originally Posted by JBMoney (Post 1221399)
Maybe a better choice of words is simply style.

I'd like to use a style other than my forum's default style. I haven't seen a place where I can change the style for this page.

Sorry for the misstatement.

I'm sorry JB, I'm still not sure what you mean. I'm more than willing to help if I can.

Are you trying to change the layout of the showroster.php page?

@ moo2.p - I'm working hard to get the coding for sorting put in this as well. I am hoping to have that included in the next update. I came up with a good way to handle it today and now just need to get the code together.

m002.p 04-07-2007 07:31 PM

@JB > if you mean the showroster.php forum style, you need to edit the templates for the particular style you have not the default style templates. Like Sarcoth im not understanding what you mean but im sure we could help ;)

@Sarcoth > im looking forward to the release it has helped me learn alot more about variables & coding. I like my roster now thanks to your work but doesnt mean to say i wont install it and see whats new :)

Good Job.. are you planning to release any other hacks clan or guild related? lol

Matt

Sarcoth 04-07-2007 10:15 PM

@ moo2.p - Well, I got the sorting to work on my test server. I need to play with it a bit more so it looks nice and then I'll get it added to my live version so others can see it in action. I should have it ready for release on Monday or Tuesday.

I'm always up for making new things useable for my guild site, but I don't have any idea's right now. The roster has always been a biggy for me.

Sarcoth 04-08-2007 03:05 PM

I've gotten the sorting put together for the most part. I still need to work out a few parts of the code. Take a look at my test example on my guild site. Let me know if the sorting interests you.

Showroster Sort Testing

The sorting bar is just beneath the ShowRoster Title. I'll get the color for that changed later as well so it stands out more.

m002.p 04-08-2007 05:22 PM

yea i like that alot mate. I would utilize that for my site also.

Good job and keep up the good work!

JBMoney 04-09-2007 02:50 PM

Quote:

Originally Posted by Sarcoth (Post 1221683)
Are you trying to change the layout of the showroster.php page?

My main forums use a certain style.

My gaming forum use a different style.

I'd like the roster to use the style that the gaming forum uses, not the style that the main forums use.

How can I set that or customize it?

Sarcoth 04-09-2007 05:19 PM

Sorry guys. I'm going to have a delay on getting an update out. I also won't be active her for about a week. Something has come up and I'll be on travel till next week.

@JBMoney - Can you give us a link to your site for an idea of what you mean. I'm not quite sure how you are using two different styles. I'll try to help you when I get back.

cerulean 04-09-2007 05:40 PM

I see your Mod relies on a file that is downloaded from another area. I would like to use this program to its full extent but our site is not WOW. Any easy way to convert this or give the way this file looks so we can use it.

JBMoney 04-09-2007 06:40 PM

Sorry, I don't know any other way to describe it. At my place, different sub-forums use different styles. I thought that was pretty common in vb world. I didn't want to use my forum's default style for the game roster.

e.g. the default, http://bressler.org/forum/index.php
e.g. a subforum, http://bressler.org/forum/forumdisplay.php?f=10
e.g. gaming forum, http://bressler.org/forum/forumdisplay.php?f=8

If there's not a way to set it dynamically, I can just strip out and replace $header in the SHOWROSTER template. Fortunately, so far, the difference is limited to mostly the banner. Just means I'll have to change that template by hand every time I change styles.

JBMoney 04-09-2007 07:18 PM

Great mod, btw!

I'm using it in conjunction with 'Extra Profile Fields Page v.2.1.0', which gives me a separate place for folks to enter their character info. Only a small % of my members are involved with the gaming guild, so it keeps those form fields from being combined with the general info form fields.

odie3 04-10-2007 01:09 AM

I wonder if I could use this some how for our roster but we play First Shooter games [BF2:PR and sometimes Americas Army]....

Brian31fl 04-13-2007 04:50 AM

Quote:

Originally Posted by odie3 (Post 1223732)
I wonder if I could use this some how for our roster but we play First Shooter games [BF2:PR and sometimes Americas Army]....

yeah you can you just have to make the profile fields you need.... I have a guildwars guild site and i use this for that ill show an exsample altho its an older version havent had time to mess with the new 1 but i do have it downloaded.
http://sacred-dragoons.com/forums/showroster.php

m002.p 04-13-2007 11:30 AM

Hey nps Sarcoth, there is only so much you can do ;)

I also have a question;

Could it be possible to add a total member count?

$usercount is used for catergory totals, but what about an absolute total of all catergories? It could be displayed next to the showroster title....

Sarcoth 04-13-2007 02:52 PM

Quote:

Originally Posted by cerulean (Post 1223456)
I see your Mod relies on a file that is downloaded from another area. I would like to use this program to its full extent but our site is not WOW. Any easy way to convert this or give the way this file looks so we can use it.

Cerulean - What file do you mean? This Mod has no connection to WoW or any other game, it should be useable for just about any site or for any reason. I use it for my Vanguard: Saga of Heroes guild. My Mod can work well with the Extra Profile Field hack if that is what you mean. I think using that hack will make it easier to use this Mod if you are using profile fields.

Sarcoth 04-13-2007 02:55 PM

Quote:

Originally Posted by JBMoney (Post 1223500)
Sorry, I don't know any other way to describe it. At my place, different sub-forums use different styles. I thought that was pretty common in vb world. I didn't want to use my forum's default style for the game roster.

e.g. the default, http://bressler.org/forum/index.php
e.g. a subforum, http://bressler.org/forum/forumdisplay.php?f=10
e.g. gaming forum, http://bressler.org/forum/forumdisplay.php?f=8

If there's not a way to set it dynamically, I can just strip out and replace $header in the SHOWROSTER template. Fortunately, so far, the difference is limited to mostly the banner. Just means I'll have to change that template by hand every time I change styles.

The good news, I understand what you mean now. I'll look into this for you soon as I get back from my travel. I'm sure there is a way to do it. Just figuring it out is the key. :)

Quote:

Great mod, btw!

I'm using it in conjunction with 'Extra Profile Fields Page v.2.1.0', which gives me a separate place for folks to enter their character info. Only a small % of my members are involved with the gaming guild, so it keeps those form fields from being combined with the general info form fields.
Thanks. Yea, that I think is the best way to do it when you are using profile fields.

Sarcoth 04-13-2007 02:57 PM

Quote:

Originally Posted by odie3 (Post 1223732)
I wonder if I could use this some how for our roster but we play First Shooter games [BF2:PR and sometimes Americas Army]....

This game be used for any game or site that would like to display a roster with profile fields. I think it has a lot of use. I don't see why you couldn't use it for a FPS game.

Sarcoth 04-13-2007 02:59 PM

moo2.p - Yea, that would be easy to do. I'll give you a file update next week when I get back. I'll make sure to have that in the next upgrade as well. I always meant to have it in there, but kept getting side-tracked with other options.

lulanglo 04-13-2007 03:34 PM

Hey Sarcoth !

I really love the sort feature you have on your roster how did you do it ?

another thing i like is the joined date, I am trying to use $user[joindate] but i end up with the unix date, how did you format it ?

Cheer!

cerulean 04-13-2007 04:32 PM

Quote:

Originally Posted by Sarcoth (Post 1226760)
Cerulean - What file do you mean? This Mod has no connection to WoW or any other game, it should be useable for just about any site or for any reason. I use it for my Vanguard: Saga of Heroes guild. My Mod can work well with the Extra Profile Field hack if that is what you mean. I think using that hack will make it easier to use this Mod if you are using profile fields.






Main Settings
SQL Debug Output on off
Debug Mode on off
SQL Window on off
Min CP Version
Min GP version
Min PvPLog version
Roster Main Language deDE -enUS- esES frFR
Website Address
Roster URL
char.php Compatibility Mode on off
Interface Directory URL
Interface Image Extension -jpg- png gif
Alt Interface Image Extension jpg png -gif-
Roster Images Directory URL
Timezone
Time Offest -12 -11 -10 -9 -8 -7 -6 -5 -4 -3.5 -3 -2 -1 -0- +1 +2 +3 +3.5 +4 +4.5 +5 +5.5 +6 +6.5 +7 +8 +9 +9.5 +10 +11 +12 +13
Allow upload of PvPLog Data yes no
Addon Update Triggers on off

When I go into the Admin.php file and hit Guild config I get a block for

Guild Name
Server Name
Guild Description
Server Type -PvE- PvP RP RPPvP
Alt-Text Search
Alt-Search Field -Player Note- Officer Note Guild Rank Number Guild Title



And if I click on Roster tab I get - Could not find guild: 'The GuildFriends' for server ''
You need to load your guild first and make sure you finished configuration

Click here for installation instructions



Also when I click on update progile it is asking for CharacterProfile.Lua and PvPLog.Lua.

Where to some of these files exist or where do I add them.

If I have to add them what format do I need?

Sarcoth 04-15-2007 03:23 PM

@ lulanglo - I'm back in town and should have the sorting feature posted this week. I didn't change anything in my joined date time, it is probably still from a default setting. My guess is you may have changed something regarding display date in the settings.

@ cerulean - That isn't from my Mod. The only admin settings to change for my Mod are in the usergroups and the phrases.

m002.p 04-15-2007 07:38 PM

Hey Sarcoth im looking forward to your new version. Ill keep myself informed of the progress you make.

Looking forward to the total member count & also the sorting bit ;)

Also a question; in the add-on (class stats) what could i use that for? Any ideas etc? Obviously my clan isnt based around the game you have so its a little tricky :(

Cheers & hope you had a good easter break from all this :p

Matt

m002.p 04-15-2007 08:55 PM

Ah i also had an addition to post regarding this mod which will need sarcoths approval before added to the mod as an option etc

Basically in order to have the feel of better intergration with the forums; the little touch of adding some info to the "whos online" page, rather than the current "Unknown Location" message may help you ;)

This is what you very simply need to do:

1. On your web FTP server find this file located in the forum directory:

Code:

/includes/functions_online.php
2. Open it via a text editor and find:
Code:

case 'bugs.php':
        $userinfo['activity'] = 'bugs';
        break;

3. Underneath add this code:

Code:

case 'showroster.php':
        $userinfo['activity'] = 'showroster';
        break;

4. Now find this code:
Code:

case 'modcplogin':
                        $userinfo['action'] = $vbphrase['moderator_control_panel_login'];
                        break;

5. After this code add:

Code:

case 'showroster':
            $userinfo['action'] = 'Viewing Clan Roster';
            break;

*Note: You can change the "Viewing Clan Roster" text to anything you desire but I would suggest using either "Viewing Clan Roster" OR "Viewing Guild Roster"

Hope it helps you add a final touch to this great mod :)

Matt

Sarcoth 04-17-2007 01:27 PM

Ahhh, yes. That "Who's Online" addition comes from one of my favorite articles, "How to create your own vBulletin-powered page!"; not sure if it was posted elsewhere. Thanks for pointing that out moo2.p. I'll definitely be sure to add that in my update.

I'm not really sure what you could use the class stats for. A possibility could be to show the number of people that play SWAT 4, SWAT 4: DSS, and BF2. The only problem is that some people can do more than one so it would be more difficult to code. You'd have to make a lot of changes to that field as well so personally it isn't worth going that route. Other than that, you could do it for countries, but you'd have to manually change it anytime someone joined from a new country. Too much work in my opinion. I don't think it is needed for your roster.

lulanglo 04-17-2007 04:54 PM

Quote:

Originally Posted by Sarcoth (Post 1228375)
@ lulanglo - I'm back in town and should have the sorting feature posted this week. I didn't change anything in my joined date time, it is probably still from a default setting. My guess is you may have changed something regarding display date in the settings.

@ cerulean - That isn't from my Mod. The only admin settings to change for my Mod are in the usergroups and the phrases.

Hey Sarcoth,
really nice to hear the sorting feature will be available soon ! we really apreciate all the time you are puting in this growing project !
for the joined date, i just dont know what to put in my showroster_userbits...

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

Thank.

Luc

m002.p 04-17-2007 06:03 PM

To be honest it was a thread ive never seen. I knew that process due to coding I do on my own site and my knowledge of php code learnt at college. Nevermind, I will certainly follow up those threads.

Thanks for the info too Sarcoth, ill keep the add-on in my mind anyway :)

BTW... when is the new version of the mod expected?

Matt

Mookie 04-18-2007 09:40 PM

Sarcoth, I am loving the hack but a few admins on my gaming site and I are wondering, is it possible to have Multiple Rosters for each game that we play?


Thanks ahead of time.

EDIT: I am using 'Extra Profile Fields Page' for the guild roster profile input fields.

m002.p 04-19-2007 06:18 AM

Yes Mookie, I think it is.

You would need to rename the showroster.php each time along with any other uploads to something different.

Then for it to display correctly you would have to create secondary usergroups for each game and then mod which members appear on each roster. I think it maybe hard to do though and I wouldnt be inclined to try just incase :s

Maybe Sarcoth with know more.

However you could add an extra profile field called "games" then have a dropdown for the games your members play. Then add it to the roster with icons or just text.

Have a look www.sog-team.co.uk/forum/showroster.php

Good luck

Matt

Mookie 04-19-2007 07:06 AM

Let me see if i am understanding you. Each Guild Rank has to have its own Usergroup. Or is there a option where the user can select if he or she is a member of that game.

Also a few suggestions for a update would be:
  • Make a Option for addition of multiple games.
  • Option for user to select which games they would like to be display on.
  • A feature where the Web Admin can select the users rank and if not they go to a predetermined Rank.
  • Incorperate the 'Extra Profile Fields Page' into the hack to seperate the game input rosters.

And if you can do all this I will drop some money in that bank account :D

m002.p 04-19-2007 05:14 PM

Mookie half of that is already availiable.

You just select a custom public usergroup and on the members primary usergroup check "allow users to join public groups".

Well no, the secondary usergroup would be checked for that game and then under display usergroup, change it to the primary or the game. Im sure one must work ;)

Like i said i havent tried it, but i think in theory i know what i mean :s

Sarcoth 04-19-2007 07:13 PM

Just a quick update. Being out of work a week caused some backlog. I'm almost caught up with that, but I have been working on the sorting feature whenever I get some free time. Even though I have the sorting feature working on my site, I'm trying to get the coding down to the minimum needed. If I were to have released it last week, you would have to make numerous changes just to get it to work on your site. I've cut that down quite a bit, but you'll still need to make changes. I'm going to be releasing this as a separate mod for those that don't need the sorting feature. I really don't see it needed for everyone.

@ Mookie - Like M002.p stated, it can be done, but you'd need to rename a lot of files and coding for each game you want a roster for. I think M002.p's suggestion would be best. You'd want to have a extra profile field where the user gets to select which game he plays.

Regarding those suggestions. I use to have a paragraph suggesting users of this mod use the Extra Profile Fields Page mod. I guess I removed it when I upgraded. I'll be sure to readd it. The top two suggestions are really going outside the scope of this mod, I really don't even know where to start to make something like that work. I don't understand the third suggestion, can you elaborate?

m002.p 04-19-2007 07:59 PM

No problem Sarcoth, I cant wait for the release. Ive been on the forums visiting this thread anxiously lol!

If you need any help with testing or anything like that to relieve you slightly, my email is

All the best to you and good luck!

Sarcoth 04-19-2007 08:52 PM

SHOWROSTER - Version 1.1.1 (Manual Update)

In the meantime, for those wishing to add a total count of members to their roster, you can make the following adjustments on your own. I'm going to go ahead and update the main zip file as well for new comers. That way you could just download the new file and upload the new showroster.php file to your server. I'd recommend making a manual update to the SHOWROSTER template rather than uninstalling and reinstalling the mod. This adjustment is small.

Step 1: Admincp > Styles & Templates > Expand > ShowRoster Templates > SHOWROSTER
Find:
Code:

<td class="tcat" colspan="7">$vbphrase[showroster_title]</td>
Replace with:
Code:

<td class="tcat">$vbphrase[showroster_title]<div style="position: absolute; right:9%">Member Count: $totalcount</div></td>
You'll need to adjust the right:#% depending on what works best for your site. It represents how far from the right margin it appears. Trial and error.
Step 2: Edit the showroster.php file and upload it to the /forum/ directory.
Find:
Code:

if ($permissions['showrosteraccesspermissions'] & $vbulletin->bf_ugp['showrosteraccesspermissions']['showrosteraccess']) {
        $rosterheader = '';
        if (sizeof($groupcache) >= 1) {
                ksort($groupcache); // Alphabetically Sort Usergroups
                foreach ($groupcache AS $users) {
                        ksort($users); // Alphabetically Sort Users
                        $rosterbits = '';
                        $usercount = '';
                        foreach ($users AS $user) {
                                //if ($user['field#'] != ''){  //Step 1 - If you wish to limit blank fields from appearing, remove the front two slashes and change field# to a field of your choice
                                        exec_switch_bg();
                                        $user = process_showgroups_userinfo($user);
                                        $usercount++;

Replace with:
Code:

if ($permissions['showrosteraccesspermissions'] & $vbulletin->bf_ugp['showrosteraccesspermissions']['showrosteraccess']) {
        $rosterheader = '';
        $totalcount = '';
        if (sizeof($groupcache) >= 1) {
                ksort($groupcache); // Alphabetically Sort Usergroups
                foreach ($groupcache AS $users) {
                        ksort($users); // Alphabetically Sort Users
                        $rosterbits = '';
                        $usercount = '';
                        foreach ($users AS $user) {
                                //if ($user['field#'] != ''){  //Step 1 - If you wish to limit blank fields from appearing, remove the front two slashes and change field# to a field of your choice
                                        exec_switch_bg();
                                        $totalcount++;
                                        $usercount++;
                                        $user = process_showgroups_userinfo($user);

Rather than do Step 2 manually, you can just download the new showroster_1.1.1.zip file and upload the showroster.php file.

Mookie 04-19-2007 10:47 PM

m002.p and Sarcoth thanks for the reply. I am also waiting on the release of the column sort before installing but I will be adding this for sure (even if just for one game).

Sarcoth I was just coming up with some ideas for you incase you where a little stumped on what to try and add next. The 3rd one was more of a admin feature that would allow administrators to demote and promote users in the roster easily. But what i am understanding the primary user group has to be there game rank. The problem that I run into is with numberous games I have Members in some games and in other games they are officers. Would the secondary user group for that game allow them to be displayed in the Officer area if I have the secondary user group set to Officer of the desired game. I hope i explained that a little better. If not then I will play around with it once the new update comes out. Thanks again.

Sarcoth 04-20-2007 02:04 PM

@ Mookie

I really like suggestions since I sometimes run out of idea's on my own, so keep them coming. :) I might not be able to use them all though. Some things just won't work with the current code and some other things are beyond my abilities at this time. I was thinking more about the multi-game setup and I may have an idea on how to pull it off. Don't expect it for awhile though.

In regards to the 3rd suggestions, I think it is already very easy to promote/demote users. The roster doesn't just look at the primary groups, it looks at primary and/or secondary. On my forum, all my users are in the registered primary usergroup except for myself and my officers. I am in the guild leader primary group and my officers are in the guild officers primary usergroup. I use my member and recruit groups as secondary groups and change my users to those groups as needed. So, as you can see, my roster mod makes use of all groups. It will only show the groups you ask it to show. If I changed the registered user group to appear on the roster as well, you would see many users appear in the member group and the registered user group; they would appear in both.

So, if you wanted to use this roster for multiple games. You could have secondary groups for each game + ranking. For example, Vanguard - Member, Vanguard - Recruit, EverQuest - Member, Everquest - Recruit, WoW - Member, WoW - Recruit. Then every user would appear in their correct group and you would only have to use one roster page.

I hope I understood your question.

Sarcoth 04-20-2007 02:12 PM

I made a small correction in the SHOWROSTER - Version 1.1.1 (Manual Update) as well as the main download.

It seems I was telling you to use showroster_sort_title in the SHOWROSTER template when it should have been just showroster_title. The showroster_sort_title is something I'm using on my test sort page.

BTW, another small update on my progress. I figured out a way to add the sorting to this mod without creating a whole new one. I will be adding the sorting as a optional change rather than forcing it on everyone.

Sarcoth 04-20-2007 03:32 PM

<font size="3">SHOWROSTER - Version 1.1.2 (Manual Update)</font>

I found it easier to add the sorting than I originally thought. So, rather than make a new version of this mod with sorting, I was able to just make the sorting optional. The code will already be placed in the showroster.php file so all you have to do is edit the SHOWROSTER template to get the sorting to work.

Step 1: Download the new showroster_v1.1.2.zip file. Unzip it and upload the showroster.php file to the /forum/ directory.

Step 2: Read the Optional.txt file and follow the instructions for #1; editting the SHOWROSTER template.

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

Those of you less code savey may want to uninstall the last version and just reinstall the new product-showroster.xml file. If you go that route though, you'll still need to make updates to the templates if you have made changes to them. Let me know if you have any problems.

Enjoy!

m002.p 04-20-2007 03:45 PM

Great work mate. Im on the case of upgrading it :)

Thanks for your time and one of the best clan hacks out there ;)

m002.p 04-20-2007 04:07 PM

Hmm ive just installed and get this:

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

It appears the "<" correspond to the usergroup member count :s

Any ideas?

BTW also the member count is not in the header correctly; am I correct in thinking that this "right%" is only to adjust the alignment of the total count text? Im guessing some code is set incorrectly here :s

EDIT: I think the "showroster_sort_title" isnt correct. The phrase doesnt appear on the roster as it is not in the phrase manager.

Thanks

Matt


All times are GMT. The time now is 06:34 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.01588 seconds
  • Memory Usage 1,896KB
  • 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
  • (11)bbcode_code_printable
  • (10)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