Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 12-13-2004, 09:44 PM
Seuss Offline
forum loafer
 
Join Date: Dec 2004
Posts: 11
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.
Reply With Quote
  #2  
Old 12-14-2004, 07:40 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
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']));
(line 135)

Change to
Code:
$image_notes        = pullout($row['body']);
and you're all set.

// punk
__________________
icq: 66760929
Reply With Quote
  #3  
Old 12-15-2004, 08:16 AM
Seuss Offline
forum loafer
 
Join Date: Dec 2004
Posts: 11
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.
Reply With Quote
  #4  
Old 12-15-2004, 10:43 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
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
Reply With Quote
  #5  
Old 12-15-2004, 10:49 PM
Seuss Offline
forum loafer
 
Join Date: Dec 2004
Posts: 11
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.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 09:48 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs