NickA55
Forum Replies Created
-
Forum: Plugins
In reply to: [List Petfinder Pets] Paragraphs In DescriptionIt’s a great plugin. I’m not sure how much I’m allowed to edit the plugin to suit my needs, but I’m working on a two column layout. Also working on a compact pet listing page, and clicking on a pet brings you to a detail page. Also trying to get the images into a lightbox slide show.
Marking this topic as resolved… Thanks again for writing this plugin.
Forum: Plugins
In reply to: [List Petfinder Pets] Paragraphs In DescriptionHere’s the solution. The problem is the plugin doesn’t handle white space. Well, the way the plugin formats the HTML doesn’t I should say.
I wrapped dog->description with a pre tag like this:
<pre style=’white-space: pre-wrap; font-family:arial;’>
I will set all of that to a class instead of using an inline style, but it works great.
Hope this helps out other users. White space in the description is very important. It makes it more readable, and logically separates the details of the description.
Forum: Plugins
In reply to: [List Petfinder Pets] Paragraphs In DescriptionOk, thanks. I will keep messing with it and see what I can come up with. The first paragraph in our description is for sponsors, so we like to keep that separate from the rest of the text.
Great plugin by the way. I actually bought a theme that had PetFinder integration, but we don’t use the integration at all. We liked your plugin better for the PetFinder stuff 🙂
Forum: Plugins
In reply to: [List Petfinder Pets] Paragraphs In DescriptionAdding a TextArea did format the text properly. It had our paragraphs separated and looked just like it does on the petfinder site. When I say formatting I don’t mean bold, fonts, colors, etc. I mean paragraphs.
For some reason the div class=”description” does not recognize CrLf (carriage return, line feed).
So basically, adding a textarea or pre tag surrounding $dog->Description works. Something is making the text ignore new lines. It just wraps all the text.
Here’s an example of what I mean…
This is line one
This is line two.
It shows like this:
This is line one
This is line two.If I wrap it in a TextArea or Pre tag it works, but of course that’s not an ideal solution.
Forum: Plugins
In reply to: [List Petfinder Pets] Paragraphs In DescriptionJust wanted to update with some more info…
If I change this line:
$output_buffer .= “<div class=\”description\”>” . $dog->description . “</div>To this:
$output_buffer .= “<div class=\”description\”><textarea>” . $dog->description . “</textarea></div>It works, but positions the text area below the pictures. And a TextArea is not ideal for this situation. I used a
pre tag and that worked but loses the formatting.Also, a div tag is added before the description. Is that a WordPress thing?
At any rate, any help would be appreciated.