vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin.org Site Feedback (https://vborg.vbsupport.ru/forumdisplay.php?f=7)
-   -   [FIXED] One extra line break for [php] codes in certain browsers (https://vborg.vbsupport.ru/showthread.php?t=53379)

Gary King 05-25-2003 05:29 PM

[FIXED] One extra line break for [php] codes in certain browsers
 
Browser: Mozilla Firebird 0.6

Problem: For some reason, when I view code in [php] tags, the code has one extra line break - code in [ code ] or [sql] tags do not have this problem, though.

Example:

Code:

if ($bbuserinfo['userid']!=0)
{
  print "Your <b>userid</b> is $bbuserinfo['userid']."
}
else
{
  print "You are not logged in, please log in!."
}

would show up as:

Code:

if ($bbuserinfo['userid']!=0)

{

  print "Your <b>userid</b> is $bbuserinfo['userid']."

}

else

{

  print "You are not logged in, please log in!."

}

when they are enclosed in [php] tags instead.

Would be nice to have this fixed, so I don't always to remove the extra lines (although it isn't very difficult using PHP).

Xenon 05-25-2003 05:37 PM

the php tag is a standart tag of vbulletin, so when there is a bug you should report it at vb.com

Gary King 05-25-2003 06:45 PM

True. Done.

Xenon 05-28-2003 09:37 PM

should be fixed now, can you please confirm?

Gary King 05-28-2003 09:55 PM

PHP Code:

<?php

print "Hello world!";

?>


Gary King 05-28-2003 09:59 PM

Thank you, it looks proper now.

filburt1 05-28-2003 10:01 PM

It's probably related to that POS highlight_file function in PHP...not only does it add tons of empty tags and useless garbage, but it screws up on highlighting like a $ in regexs...grr!

Boofo 05-28-2003 10:17 PM

Quote:

Today at 05:37 PM Xenon said this in Post #4
should be fixed now, can you please confirm?
How did you fix it?

Gary King 05-28-2003 10:20 PM

PHP Code:

<code style="white-space: nowrap"



All times are GMT. The time now is 08:30 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.01100 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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