vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Help with making a member page please! (https://vborg.vbsupport.ru/showthread.php?t=260983)

kinhell 03-26-2011 11:48 PM

Help with making a member page please!
 
Hi, I wanted to know if there was a way to have a page within my CMS (latest version) to list members from specified usergroups and show selected fields from their profile.

Im making a gaming guild site and wanted to show the members of the guild in a list with specified profile attributes so the page is always kept up to date with our members depending on their usergroup

Any help appreciated

Lynne 03-27-2011 03:45 AM

You may create a PHP Direct Evaluation page in the CMS to do this.

bruneiguru 03-27-2011 04:33 AM

Would you have any links or guides on how to create that kind of page please?

kinhell 03-27-2011 09:18 AM

Thanks Lynne is there any example code I could use or anything as Im not sure where to begin really

Lynne 03-27-2011 05:58 PM

Here's a real simple one:
PHP Code:

$x=vB::$vbulletin->userinfo['username'];
$output .="

Your Forum Username Is:<br />
<b>"
.$x."</b>"

Just write your php in there and make sure your output is assigned to $output

AFemaleProdigy 03-28-2011 03:57 AM

Hey, use this to show your specific custom profile fields in your new memberlist...

Code:

{vb:raw userinfo.field12}
Change the number 12 to whatever your custom field number is. Find that number in the admincp user profile fields editor.


All times are GMT. The time now is 06:51 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.01097 seconds
  • Memory Usage 1,716KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete