vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   <if> <else /> </if> show up as new rows in source. (https://vborg.vbsupport.ru/showthread.php?t=128232)

GriZzm0 10-04-2006 01:26 AM

<if> <else /> </if> show up as new rows in source.
 
Well, its nothing seriouse. Just something that bugs me ALOT. :p
If you have a code like this.
Code:

<div class="blah">
<if condition="$show['inlinemod']">
        Blah
<else />
        Blah blah
</if>
</div>

It will show up like this in the source.
Code:

<div class="blah">

        Blah


</div>

How do I edit so they wont show up as new rows? I guess there is like \n\r or something at the end of the line(s) which parse that info. (adminfunctions_template.php maybe? :p)

Paul M 10-04-2006 01:29 AM

Just do this ?

Code:

<div class="blah"><if condition="$show['inlinemod']">Blah<else />Blah blah</if></div>
The lines aren't really a problem.

GriZzm0 10-04-2006 01:32 AM

Quote:

Originally Posted by Paul M
Just do this ?

Code:

<div class="blah"><if condition="$show['inlinemod']">Blah<else />Blah blah</if></div>

Yeah, that would do. But if you end a template with <if condition="$show['inlinemod']">blah</if> it will still creat a new row. As I said. Nothing seriouse. :p Just something that bugs me. Would be great if someone could tell me how to fix it.


All times are GMT. The time now is 04:59 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.01509 seconds
  • Memory Usage 1,714KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_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