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)
-   -   Hide Avatars & Signatures from Guests (https://vborg.vbsupport.ru/showthread.php?t=144629)

Mum 11-20-2007 04:28 PM

Quote:

Originally Posted by MoB Dudditz MD (Post 1231665)
In your postbit and postbit_legacy
FIND:
PHP Code:

<if condition="$show['avatar']"

REPLACE WITH:
PHP Code:

<if condition="$show['avatar'] AND $show['member']"

FIND:
PHP Code:

<if condition="$post['signature']"

REPLACE WITH:
PHP Code:

<if condition="$post['signature'] AND $show['member']"


I tried this but doesn't work for 3.6.8 are you able to help me? All i want to do is hide the signatures unless you are logged in.

Fungsten 11-20-2007 05:40 PM

I can't see it using an admin account. Uninstalled the mods.

Mum 11-24-2007 04:38 PM

What do you mean you can't see it? Once you've made the changes, only members will see it. So you need to log out, having an admin account won't help.

Kimmi 03-10-2008 02:14 AM

Will this also stop certain usergroups from seeing the sigs.. or does some k now what code i could change to do so.?

thanks

deezelpope 03-13-2008 01:54 PM

Quote:

Originally Posted by MoB Dudditz MD (Post 1231665)
Very nice - something so simple that I have overlooked but needed.
Cuts loading time and saves bandwidth of visitors.TY

I believe you can go one step further by combining both conditionals.

<if condition="$show['avatar'] AND $show['member']">

<if condition="$post['signature'] AND $show['member']">

SEE BELOW
This way, you avoid the extra </if> since its not needed
and saves a few characters of code in the process.

In your postbit and postbit_legacy
FIND:
PHP Code:

<if condition="$show['avatar']"

REPLACE WITH:
PHP Code:

<if condition="$show['avatar'] AND $show['member']"

FIND:
PHP Code:

<if condition="$post['signature']"

REPLACE WITH:
PHP Code:

<if condition="$post['signature'] AND $show['member']"


Beautiful! Thank you, this is exactly what I've been looking for!:up:

urdu 05-26-2008 09:23 AM

Hello,

if i want add more then 1 group

like Users Awaiting Email Confirmation and (COPPA) Users Awaiting Moderation

so what i do ?

urdu 05-27-2008 08:41 AM

Quote:

Originally Posted by urdu (Post 1531668)
Hello,

if i want add more then 1 group

like Users Awaiting Email Confirmation and (COPPA) Users Awaiting Moderation

so what i do ?

no body here in vb.org can help me ???

Fungsten 06-03-2008 04:51 PM

Quote:

Originally Posted by urdu (Post 1532683)
no body here in vb.org can help me ???

I'm not sure but I think if you go to where the group IDs are you can add them separated by commas.

urdu 06-03-2008 09:29 PM

Quote:

Originally Posted by Fungsten (Post 1539840)
I'm not sure but I think if you go to where the group IDs are you can add them separated by commas.

you mean like this ?

Code:

<if condition="$bbuserinfo['usergroupid'] != 1,2">
or
Code:

<if condition="$bbuserinfo['usergroupid'] != 1, 2">
or
Code:

<if condition="$bbuserinfo['usergroupid'] != 1 , 2">
========
i tryed all these one by one but not working even i got error :confused:

Fungsten 06-03-2008 09:38 PM

Quote:

Originally Posted by urdu (Post 1540041)
you mean like this ?

Code:

<if condition="$bbuserinfo['usergroupid'] != 1,2">
or
Code:

<if condition="$bbuserinfo['usergroupid'] != 1, 2">
or
Code:

<if condition="$bbuserinfo['usergroupid'] != 1 , 2">
========
i tryed all these one by one but not working even i got error :confused:

Don't know. Sorry.


All times are GMT. The time now is 02:15 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.01371 seconds
  • Memory Usage 1,756KB
  • 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
  • (6)bbcode_code_printable
  • (8)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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