Pixelpost

Authentic Photoblog Flavour


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

Post Reply
 
Thread Tools
  #11  
Old 05-04-2005, 07:09 PM
martinh Offline
pp regular
 
Join Date: Apr 2005
Posts: 34
No it don't work. But it works with this one (found it here. searched for nl2br):

function pullout($string) {
$string = stripslashes($string);
$string = utf8_decode($string);
$string = nl2br($string);
return $string;
}

Now it works. Thank you all!

Martin
Reply With Quote
  #12  
Old 05-05-2005, 06:33 AM
Connie
Guest
 
Posts: n/a
please, if that is working for you, ok

but as this function is the general function to read the data from the database-table, let's be careful with just implementing some steps into so basic functions

I worked on that function when I was going to assure that everything will be fully utf-compliant

I would prefer to keept this function clean and add nl2br somewhere else only for the comments for instance...

I will put that topic on my list for further testing, as this makes sense but should be tested in depth

but: if that is working for you, ok
Reply With Quote
  #13  
Old 05-05-2005, 08:52 AM
martinh Offline
pp regular
 
Join Date: Apr 2005
Posts: 34
> let's be careful with just implementing some steps into so basic functions

yes, i read something like that in the other topic. I have 5 books about PHP, but I will never understand programming. I'm a designer.

I'm happy, that this code is working. But I will have a look for later versions of pixelpost.

> I will put that topic on my list for further testing

That would be nice.

Martin
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:35 PM.

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