Jump to content


Photo

preview a little buggy?


  • Please log in to reply
6 replies to this topic

#1 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 03 August 2006 - 01:53 PM

I just tried to preview a large post and it displayed the escape cartures. It is like it is displaying the results from preg_replace or something.

Edit
When I tried to post what I copied from the preview, it showed just fine in this post.

??
Thanks,
Tom

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#2 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 03 August 2006 - 02:04 PM

Also, everytime I submit a post with several if's it gets knocked ascew. I always spend about ten minutes fixing them. Here is an example http://www.phpfreaks....html#msg408858

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#3 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 03 August 2006 - 02:38 PM

As far as the first one, I get some of the same issues when I try to do a quick edit.  If I do a full edit, it works fine, and saving it like that seems to work ok as well.

As far as the second issue, it may help if you use the actual bb code blocks instead of just using the <?php ?> wrappers.

Info: PHP Manual


#4 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 03 August 2006 - 03:07 PM

The color codeing in the code tags only works if I use <?php and ?> other wise they are plain text. So I guess I will use the code tags for full script posts and the php tags for partials.

Thanks for the help,
Tom

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#5 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 03 August 2006 - 03:15 PM

You can use the <?php ?> inside the code blocks... so I guess I'm not sure what the problem is.

<?php
echo "test";
?>

Info: PHP Manual


#6 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 03 August 2006 - 04:07 PM

what I meant is when I post a fix for someones code say

echo "whatever";

it is plain text so what I will do is use the code blocks for code with <?php ?> and use the php blocks for code with out the <?php ?>
echo "whatever";

Sorry for the mixup,
Tom

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#7 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 03 August 2006 - 04:16 PM

Ok, just wanted to make sure we were clear.

Info: PHP Manual





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users