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)

Shana 03-08-2007 04:30 PM

Awesome; installing.

Edit: // Well it seems like it works but it only shows groups that are in the 'Forum Leaders' list. Anyway to make it show only those that appear on Members List? Everything else works smoothly

Sarcoth 03-08-2007 05:19 PM

Shana - Sorry, but right now I have it using the same list as the Forum Leaders. Thanks for pointing that out to me though, I updated Step #5 above. I originally had Memberlist there, but I should have had Forum Leaders.

This may not be ideal for your site, but for mine I changed 'Viewable on Show Groups' to No for all usergroups except for the ones I wanted to appear on the Roster.

Sarcoth 03-08-2007 06:03 PM

I removed some unneeded code from the showroster.php file. Redownloading the file is optional. Just copy it over your old showroster.php file.

Shana 03-08-2007 06:32 PM

Yeah, I did the 'Viewable on Show Group's thing. I don't mind that- just wondering if there's anyway to make it not only show those on Forum Leaders. Like, show those that are on Viewable on Show Groups only.

turnipofdoom 03-08-2007 06:51 PM

Hmmm, removal of those two snippets of code, or one of them, results in just a blank white page for me as opposed to the vBulletin error. I'm going to dig a bit more to see if I can't come up with the reason for the errors I'm getting.

Sarcoth 03-09-2007 01:23 PM

I updated the SHOWROSTER template; removed some extra unneeded code there. It may cause an error if you aren't using the newest showroster.php file that I uploaded yesterday.

I'll have some new updates next week.

1) A counter will be added for each group.
2) Vanguard guilds will have a lot more additional code. The code should be easily adaptable for EQ1 and EQ2 guilds as well, but it will be left up to you to figure it out.

Check out the link to my guilds roster if you want to see where I have it right now.

http://vanguard.sacredhaven.org/forums/showroster.php

oglsmm 03-09-2007 03:42 PM

Very nice mod. I used to to create one for FFXI.

My only question: How do I make it so that only the Members of the Linkshell can view the List?

I can't find anywhere to restrict who can see the forum leaders section.

Sarcoth 03-09-2007 04:30 PM

Sadly this isn't an option for UserGroup management, but there are a few ways you can accomplish this. Rather than upload a whole new showroster.php file, I'll give you the best and quickest way I can think of.

Open your SHOWROSTER template and replace it with the following code.
Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[show_roster]</title>
</head>
<body>
$header
$navbar

<if condition="(is_member_of($bbuserinfo, 5, 6, 9, 10))">$usergroups<else /><center>You do not have permission to view this page! Turn back now or you will be beheaded!</center></if>

$footer
</body>
</html>

Update the numbers in ($bbuserinfo, 5, 6, 9, 10) to whatever usergroups you want to have access to that area. You can also upgrade the warning message to whatever you prefer.

I hope this helps.

Thanks for clicking install.

oglsmm 03-09-2007 09:46 PM

That worked great. Thanks a lot. This really is a great MOD for Guild sites. I've been looking for one forever, and finally there is one :p

One last question, is it possible to make the list sortable by the custom fields?

dbirosel 03-10-2007 05:43 PM

What if i want to add them manually to the list? I don't want them to edit there member profile and get automatically to a usergroup. Is it possible for me to add them manually and of course easier?


All times are GMT. The time now is 04:32 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.01147 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)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