|
#1
|
|||
|
|||
|
Pixelpost formatting behavior
Hi All,
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. |
|
#2
|
||||
|
||||
|
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: Code:
$image_notes = markdown(pullout($row['body'])); Change to Code:
$image_notes = pullout($row['body']); // punk
__________________
icq: 66760929 |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
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 ![]() // punk
__________________
icq: 66760929 |
|
#5
|
|||
|
|||
|
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 ![]() 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 No worries though, CSS can fix up my problem nicely. Thanks again.
|
| Post Reply |
| Thread Tools | |
|
|