vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   HTML Help Please (https://vborg.vbsupport.ru/showthread.php?t=221446)

Ghostly24 08-22-2009 01:44 AM

HTML Help Please
 
Ok, I am trying to show two things using the "if condition" code.

For example:
<if condition="$show['ad1']"> and then add <if condition="$show['ad2']">

But I want to combine both of those codes together into one line.

Any help would be appreciated :)

Lynne 08-22-2009 03:23 AM

HTML Code:

<if condition="$show['ad1'] AND $show['ad2']">
what happens if both are true
</if>


MAD-DOG 08-22-2009 03:36 AM

Code:

<if condition="$show['thumbnailattachment'] AND $show['imageattachment']AND $show['imageattachmentlink']">
<p class="bigusername" style="border-bottom: 2px solid rgb(204, 204, 204);">Screenshots</p>
</if>

 <if condition="$show['thumbnailattachment']">
                    <div style="padding:$stylevar[formspacer]px">
                    $post[thumbnailattachments]
                    </div>               
            </if>

                            <if condition="$show['imageattachment']">
                    <div style="padding:$stylevar[formspacer]px">
                    $post[imageattachments]
                    </div>
                            </if>
           
                            <if condition="$show['imageattachmentlink']">
                    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                    $post[imageattachmentlinks]
                    </table>
                            </if>

thats what u guys are using on vb.org thank for the help i asked the same question like 10 weeks ago...

Ghostly24 08-22-2009 04:12 PM

It didn't work Lynne...anything else?

Lynne 08-22-2009 06:57 PM

Quote:

Originally Posted by Ghostly24 (Post 1872202)
It didn't work Lynne...anything else?

Saying it doesn't work doesn't tell me a thing. Post your code (use code tags). Tell me what you expect to happen and what is actually happening.


All times are GMT. The time now is 09:07 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.01025 seconds
  • Memory Usage 1,720KB
  • 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)bbcode_html_printable
  • (1)bbcode_quote_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