Announcement

Collapse
No announcement yet.

Help me apply different style to signatures

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help me apply different style to signatures

    I want to do something like this... Here is the original code...

    Code:
    <if condition="$post['signature']">
      <!-- sig -->
       <div class="signature">
    	__________________<br />
    	$post[signature]
       </div>
      <!-- / sig -->
      </if>
    and I want to do something like this

    Code:
    <if condition="$post['signature']">
     <!-- sig -->
    
    <if condition="$usersusergroup = admin OR $usersusergroup = supportingvendor">
    <div class="fullsignature">
    	__________________<br />
    	$post[signature]
       </div>
    <else>   
    <div class="minisignature">
    	__________________<br />
    	$post[signature]
       </div>
    </if>
      <!-- / sig -->
    </if>
    Basically, I've set it up so I chop users signatures at 200 pixels tall. However, I would like it so that admins and supporting vendors would not be chopped at 200pixels. I already have the style sheets setup... just have to figure out how to do the IF statements.
    Kevlar
    Bimmerforums - The Ultimate BMW Forum

  • #2
    Find this
    <if condition="$usersusergroup = admin OR $usersusergroup = supportingvendor">
    change to
    <if condition="($post[usergroupid] == X) OR ($post[usergroupid] == Y)">

    By Default the Admin usergroup is 6 so change X to 6, and then find the id number that supportingvendor is. and replace it for Y

    Comment


    • #3
      You sir are a gentleman and a scholar... many thanks!
      Kevlar
      Bimmerforums - The Ultimate BMW Forum

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X