vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hiding some things in modifyavatar template. (https://vborg.vbsupport.ru/showthread.php?t=81613)

FightRice.com 05-17-2005 01:27 AM

Hiding some things in modifyavatar template.
 
1 Attachment(s)
I want to hide the option for users to delete their current avatar, but only if they belong to a certain group.

I tried using a if conditional but it didn't seem to work at all.

I tried putting this whole part inside the if statement, didn't work
Code:

<if condition="is_member_of($bbuserinfo,12)">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">$vbphrase[edit_avatar]</td>
</tr>
<tr>
        <td class="panelsurround" align="center">
        <div class="panel">
                <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
               
                        <fieldset class="fieldset">
                                <legend>$vbphrase[your_current_avatar]</legend>
                               
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr valign="top">
                                        $currentavatar
                                        <td class="smallfont">
                                                <div style="margin-bottom:$stylevar[formspacer]px">$vbphrase[avatars_small_graphics_short]</div>
                                               
<div style="margin-bottom:$stylevar[formspacer]px"><label for="rb_avatarid_no"><input type="radio" name="avatarid" value="-1" id="rb_avatarid_no" $nouseavatarchecked />$vbphrase[do_not_use_an_avatar]</label></div>
                                                                        </if>
<div>$vbphrase[note_have_custom_avatar_delete]</div>
                                        </td>
                                </tr>
                                </table>       
</if>       

Is there another way of doing this or am i just editing the wrong thing. I've attached what i want to hide from a certain member group. Thanks

So no way to do this?

FightRice.com 05-18-2005 03:11 AM

:( not looking to good eh

Marco van Herwaarden 05-18-2005 06:21 AM

On a quick view i don't see anything wrong with that conditional.


All times are GMT. The time now is 11:36 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.01606 seconds
  • Memory Usage 1,715KB
  • 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
  • (1)bbcode_code_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