vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Few questions. (https://vborg.vbsupport.ru/showthread.php?t=178502)

Carlos X 05-08-2008 05:05 AM

Few questions.
 
I'm running VB3.7.0, have a few questions, this has been asked at official vb forums.

How do I remove "active members" from the "who's online" display on mainpage, only to guests...and registered members? The only ones to see it would be the admins.

I have Gamertag/PSN profile fields, but don't know how to apply them to postbit. So...

How do I add information that I added as profile fields to postbit? I asked a owner of another board about it, and he told me to use conditionals, but never which kinds of conditionals.

How can I turn on "users viewing this forum" and put them on top of the forum display? The same question can be asked for thread display.

Lynne 05-08-2008 01:29 PM

Find these lines in FORUMHOME:
HTML Code:

                $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>

and change it to:
HTML Code:

                $vbphrase[members]: $numbermembers<if condition="$show['activemembers']"><if condition="!is_member_of($bbuserinfo, array(x,y,z))">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if></if>

where x.y.z are the usergroupids of the groups you do want to see Active Members.

As for profile fields in postbit, see this article: How To Add Custom Profile Field Information To The Postbit

Carlos X 05-09-2008 08:11 PM

Thanks! I got them working last night, and am happy now. :)


All times are GMT. The time now is 06:04 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.02659 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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