PDA

View Full Version : Adoptable description is.... where?


mugwumpr
04-19-2009, 01:35 AM
Okay, it's late and I'm feeling dumber than your average bear, but....

I entered a brilliantly literate description for my adoptables tonight, but I can't for the life of me figure out where that shows up. It's not on the first adopt page, it's not on the 2nd ("rename me") adopt page. Should it be showing up somewhere? Did I miss something in my template?

I've checked in IE, FF and Chrome, and it's not on any of them. The link to my site, if you need it, is http://www.pogwoddlemarsh.com

:P

Ashje
04-19-2009, 01:47 AM
In adopt.php, find this:

$article_content = $article_content."<p><b><a href='adopt.php?id=".$aid."'><img src='templates/icons/add.gif' border=0> Adopt ".$type."</a></b></p>";


Change it to this:

$article_content = $article_content."<p><b><a href='adopt.php?id=".$aid."'><img src='templates/icons/add.gif' border=0> Adopt ".$type."<br>".$description."</a></b></p>";

That should work.

mugwumpr
04-19-2009, 02:11 AM
Fabulous, thanks! Now, one more question, how do I get the random \s out of things? "isn\t", he\'s". I understand the purpose of the \, but it doesn\'t make for the easiest reading.

;)

[Edit: if I take it out of the MySQL table directly, will that break anything?]

BMR777
04-19-2009, 04:34 PM
You probably have to change Ashje's code to:

$description = stripslashes($description);
$article_content = $article_content."<p><b><a href='adopt.php?id=".$aid."'><img src='templates/icons/add.gif' border=0> Adopt ".$type."<br>".$description."</a></b></p>";

That should remove the \'s from the text. I put in the description field but did not implement it due to space constraints. I thought I may implement something using it in a future release. :)

mugwumpr
04-19-2009, 05:06 PM
Brandon, I've said it before, and I'll probably say it again in the future.... You rule!!

:D