vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Who's online permissions: hide location? (https://vborg.vbsupport.ru/showthread.php?t=234532)

ceho 01-30-2010 08:36 PM

No, he is not, only in that specific usergroup (which is the normal registered users by the way). And I know from many other registered users that they can see the location as well, although the setting says they can't.

Edit: I just tested another registered user account, it's the same, they can see it.

--------------- Added [DATE]1264891838[/DATE] at [TIME]1264891838[/TIME] ---------------

To exclude a problem with skin I use: I checked the issue using the dafult style, it's the same.

Lynne 01-30-2010 10:20 PM

OK, well to do it the template way... open up the template whosonlinebit and find this:
HTML Code:

    <td class="alt2" width="35%">
        <div>
            <span style="float:$stylevar[right]">
                <if condition="$show['lockedout']"><img src="$stylevar[imgdir_statusicon]/wol_lockedout.gif" alt="$vbphrase[viewing_forum_closed]" /></if>
                <if condition="$show['nopermission']"><img src="$stylevar[imgdir_statusicon]/wol_nopermission.gif" alt="$vbphrase[viewing_no_permission_message]" /></if>
                <if condition="$show['errormessage']"><img src="$stylevar[imgdir_statusicon]/wol_error.gif" alt="$vbphrase[viewing_error_message]" /></if>
                <if condition="$show['reallocation']"><img src="$stylevar[imgdir_misc]/question_icon.gif" alt="$userinfo[location]" /></if>
            </span>
            $userinfo[action]
        </div>
        <if condition="$show['where']">
            <div class="smallfont" style="margin-top:1px">
                <if condition="$show['subscribed']"><img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /></if>
                $userinfo[where]
            </div>
        </if>
    </td>

To disallow registered users and guests from seeing that and just put 'nothing' in that spot, change it to this:
HTML Code:

    <td class="alt2" width="35%">
<if condition="$show['member'] AND !is_member_of($bbuserinfo, 2)">
        <div>
            <span style="float:$stylevar[right]">
                <if condition="$show['lockedout']"><img src="$stylevar[imgdir_statusicon]/wol_lockedout.gif" alt="$vbphrase[viewing_forum_closed]" /></if>
                <if condition="$show['nopermission']"><img src="$stylevar[imgdir_statusicon]/wol_nopermission.gif" alt="$vbphrase[viewing_no_permission_message]" /></if>
                <if condition="$show['errormessage']"><img src="$stylevar[imgdir_statusicon]/wol_error.gif" alt="$vbphrase[viewing_error_message]" /></if>
                <if condition="$show['reallocation']"><img src="$stylevar[imgdir_misc]/question_icon.gif" alt="$userinfo[location]" /></if>
            </span>
            $userinfo[action]
        </div>
        <if condition="$show['where']">
            <div class="smallfont" style="margin-top:1px">
                <if condition="$show['subscribed']"><img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /></if>
                $userinfo[where]
            </div>
        </if>
<else />
&nbsp;
</if>
    </td>

You could also do it by plugin if you don't want to edit templates (just set those two variables to nothing if a member of usergroup 2).

Marco van Herwaarden 01-31-2010 09:00 AM

Please post a print screen of the edit user page showing the primairy and secondary usergroups for the user "Jeroen".

ceho 01-31-2010 10:12 AM

1 Attachment(s)
Here you are. Thanks for helping!

Attachment 111405

@ Lynne: it worked (of course ;-)), although there now is am empyt column which makes users ask what happened. Is there any chance to hide that column?

Attachment 111406

Lynne 01-31-2010 02:10 PM

Quote:

Originally Posted by ceho (Post 1971137)
Here you are. Thanks for helping!

Attachment 111405

@ Lynne: it worked (of course ;-)), although there now is am empyt column which makes users ask what happened. Is there any chance to hide that column?

Attachment 111406

Why not just put "Unknown" in that column. You could remove the column, but it would mean editing other templates also - the one with the column heading. If you want to go that route, to find that template to edit, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)


All times are GMT. The time now is 10:00 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.01120 seconds
  • Memory Usage 1,747KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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