vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   vB4 profile questions (https://vborg.vbsupport.ru/showthread.php?t=279496)

Bulent Tekcan 03-03-2012 07:29 PM

vB4 profile questions
 
Hello,

Before I used this code in postbit_legacy for signature disable or enable per user.

Code:

<if condition="$bbuserinfo['usergroupid'] != 1">
  <if condition="$post['signature'] AND $post[field6]!= 'No'">
  <!-- sig -->
  <div>
    <hr noShade SIZE="2"><br />
    $post[signature]
  </div>
  <!-- / sig -->
  </if>
  </if>


But how can use same thing for vb4 postbit_legacy ? Because code like that

Code:

</vb:if>
    <vb:if condition="$post['signature']">
    <blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote>
    </vb:if>


Regards,

Lynne 03-03-2012 09:21 PM

Change <if to <vb:if and </if to </vb:if in the two conditions. (I assume you will leave the template code for the signature alone.)

Bulent Tekcan 03-03-2012 09:50 PM

I'm not good for code writing :( before I used 1st code with my 3.8.4 board for signature disabled per user based and very useful for us.If you write to me for vb4 I'll be happy.

Regards,

Lynne 03-04-2012 04:41 PM

How about just:
HTML Code:

<vb:if condition="$bbuserinfo['usergroupid'] != 1">
  <vb:if condition="$post['signature'] AND $post[field6]!= 'No'">
  <!-- sig -->
default signature stuff here
  <!-- / sig -->
  </vb:if>
  </vb:if>


Bulent Tekcan 03-04-2012 05:14 PM

Big thanks Lynne

Regards,


All times are GMT. The time now is 09:50 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.01027 seconds
  • Memory Usage 1,723KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete