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)

Alfa1 06-07-2008 04:19 PM

Since the template has got hooks for the signature, it seems better to use a separate plugin if you only want to hide signature from guests. Hiding signatures from guests can do a lot of good for your SEO.

Why not use the hooks: postbit_signature_start and postbit_signature_end to add the code that Zieen describes above?

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.

<if condition="!in_array($bbuserinfo['usergroupid'], array(1, 2, 3))">

saviola8x 06-18-2008 04:26 PM

i like it.

Fungsten 06-18-2008 06:34 PM

Quote:

Originally Posted by Alfa1 (Post 1543272)
Since the template has got hooks for the signature, it seems better to use a separate plugin if you only want to hide signature from guests. Hiding signatures from guests can do a lot of good for your SEO.

Why not use the hooks: postbit_signature_start and postbit_signature_end to add the code that Zieen describes above?


<if condition="!in_array($bbuserinfo['usergroupid'], array(1, 2, 3))">

How did that work. If it didn't try "|" without the ".

baktabul 09-12-2008 09:29 AM

I want to hide ads from all members, is there any basic way ?

siliconfinance 10-25-2008 08:34 AM

search template conditionals and locate the if statement that looks like this:

<If guest>
Ad
</if>

Spada_FMC 03-04-2009 04:59 AM

I really love this easy looking mod! However, I was hoping I could just have the ability to hide images in the signature for multiple groups.

What's the best way to accomplish that?

thompson 03-04-2009 11:33 AM

thanks for that

busybeeburns 05-27-2010 06:45 AM

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']"


this worked thanks!


All times are GMT. The time now is 10:32 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.01057 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_php_printable
  • (3)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
  • (8)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