vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How To Hide Avatar (https://vborg.vbsupport.ru/showthread.php?t=203650)

Adeawan 01-30-2009 08:48 PM

How To Hide Avatar
 
hello

i want to hide members avatar in religion

I Know We Can do that but dont know how to do it

Can Any1 Help Me??

Lynne 01-31-2009 01:09 AM

You want to hide a users avatar? You may remove it. Or, you may put the user in a usergroup that doesn't allow avatars.

Dismounted 01-31-2009 02:36 AM

If you think the avatar is breaking one of your forum's rules, tell the user, and ask them to remove it. If they don't remove it, remove it for them.

Adeawan 02-01-2009 02:26 AM

no i dont want to remove avatar of any user

just want to that if any user go in religoius section the avatar hide it self

i seen that on some forums

Lynne 02-01-2009 03:49 AM

Find the avatar in the postbit and put a condition around it:

HTML Code:

<if condition="$thread['forumid']  != x">
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</if>


Adeawan 02-01-2009 04:33 PM

what shall i change that X with??

Lynne 02-01-2009 04:40 PM

The forumid you don't want the avatar to show up in.

Adeawan 02-01-2009 04:52 PM

i tried to install it and now it shows two avatars on posbit lol
can u explain plz if u dont mind

Lynne 02-01-2009 05:18 PM

I said put the condition *around* where the avatar is linked - don't add that code, replace the code (well, of just take the <if> and </if> and put it around the avatar link).

Adeawan 02-01-2009 05:35 PM

i replaced the code and when i changed the X to forum id it gives me an error

Lynne 02-01-2009 06:22 PM

Let's see your exact code (use the html tags and post three or four lines above and below your change) and let's see the exact error.

Adeawan 02-01-2009 09:41 PM

Code:

<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post
[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>

Here The Avatar Code From Postbit And The Forum Id Is (id:8)

Now Tell Me What Shall I Change??

Lynne 02-01-2009 11:14 PM

You can try comblining the two like this:
HTML Code:

<if condition="$show['avatar'] AND $thread['forumid']  != x"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post
[userid]"
>
<img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>


Adeawan 02-02-2009 05:54 PM

u know when i change that X to id:8 it gives me this error

https://vborg.vbsupport.ru/external/2009/02/47.gif

Lynne 02-02-2009 07:52 PM

That makes no sense - there is no colon is that line. I tried this on a totally default postbit and it worked just fine. Maybe post your template code with a few lines above and below and we can see what is going on.

Adeawan 02-02-2009 10:37 PM

here we go

Code:

</if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->
                </div>
        </td>
</tr>
<tr>
        <td class="alt2" style="padding:0px">
                <!-- user info -->
                <table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
                <tr>
<if condition="$show['avatar'] AND $thread['x']  != x"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post
[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
                        <td nowrap="nowrap">

                                <div id="postmenu_$post[postid]">
                                        <if condition="$show['profile']">
                                        <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                        $post[onlinestatus]
                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        $post[musername]
                                        </if>
                                </div>


Lynne 02-02-2009 10:53 PM

It should be:
HTML Code:

AND $thread['forumid'] != x"
Change x to your forumid ie.
HTML Code:

AND $thread['forumid'] != 8"

Adeawan 02-03-2009 03:57 PM

ohh Thanks Alot I have Done it
1 more thing if i wana hide avatar in any other section than??

Lynne 02-03-2009 04:40 PM

Then you may add another forumid:
HTML Code:

<if condition="$show['avatar'] AND ($thread['forumid'] != 8 OR $thread['forumid'] != x)">

Adeawan 02-03-2009 04:51 PM

u mean like i put 9 after or??

Lynne 02-03-2009 05:17 PM

If it is forumid 9 you want to also have not show avatars (along with forumid 8), then:

HTML Code:

<if condition="$show['avatar'] AND ($thread['forumid'] != 8 OR $thread['forumid'] != 9)">

Adeawan 02-03-2009 09:14 PM

the 1st code worked but this 1 doesnt work

Lynne 02-03-2009 11:00 PM

Ack! There I go with my illogic when playing with not equals!

HTML Code:

<if condition="$show['avatar'] AND ($thread['forumid'] != 8 AND $thread['forumid'] != 9)">

Adeawan 02-03-2009 11:38 PM

wowww finally i have done it

Thanks alott Lynee

Thank you soooooooooo much


All times are GMT. The time now is 02:12 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.01200 seconds
  • Memory Usage 1,762KB
  • 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_code_printable
  • (7)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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