View Full Version : Pixelpost formatting behavior
12-13-2004, 09:44 PM
I was just coding/testing a new template for my site... unfortunately I was testing it in Pixelpost 1.2 and when I moved the template to 1.3 I came to the realization that Pixelpost now uses <p> tags at the beginning of a post and seperates paragraphs with <p> tags instead of <br />. This isn't a huge deal but it is a minor annoyance in the way the text lines up. So I'm wondering if there's anyways I can change this back to the way Pixelpost 1.2 behaved when formatting posts.
Sorry I'm a PHP noob.
12-14-2004, 07:40 AM
You mean the image description field?
It's markdown syntax, I think it kicks ass - very very easy and fluid to write.
Above the entry field you got links to the markdown homepage if you want assistance, for example to get a linebreak (<br />) you hit the spacebar twice.
Anyway, to get rid of it all-together, in index.php find this:
$image_notes = markdown(pullout($row['body']));
$image_notes = pullout($row['body']);
and you're all set.
12-15-2004, 08:16 AM
Thanks for the heads up Pixelpunk, never really noticed the links to the Markdown syntax etc.
However this doesn't fix my problem, as far as I can tell from the Markdown homepage it starts and ends any line of text with <p> </p> by default. This is fine and dandy except when is breaks my layout entirely :P Because I'm using tables and CSS I want my text to sit at the top of a table cell and then place the entire Table with CSS so that the text in my top cell lines up with my image in a second table right next to it ( you can see it at my site http://daily.2708.net )
At the moment I have my Date and Time inside some paragraph tags, but I'm using headers to change the font, etc. on my titles in my table and this of course isn't valid xhtml... blah... (cannot put <p> in headers, spans etc. and vice versa)
I tried your line of code to remove the markdown behavior and your right it's no good... doesn't matter, I'll leave the markdown behavior intact and then add a few divs here and there to line all the text up properly :) Thanks for the help.
12-15-2004, 10:43 AM
You lost me somewhere in there but I came out alive.
Didn't the removal of markdown help?
Anyway, good luck man your site looks slick so it will rock I am sure :)
12-15-2004, 10:49 PM
Hehe, sorry Pixelpunk.. I was writing all that at about 3AM.. was bound to lose someone somewhere in that mess :P
Removing the markdown did help, but it caused a different problem entirely. All my previous posts would have to be edited so they wouldn't look like ass... I'm simply too lazy to have to do that :D
I'd try again to explain exactly what is happening when markdown is enabled but it really needs some sort of diagram to explain it all properly and again I'm lazy :D No worries though, CSS can fix up my problem nicely. Thanks again.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.