Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Adoptable description is.... where? (http://www.mysidiaadoptables.com/forum/showthread.php?t=693)

mugwumpr 04-19-2009 01:35 AM

Adoptable description is.... where?
 
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

RE: Adoptable description is.... where?
 
In adopt.php, find this:
Code:

$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:
Code:

$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

RE: Adoptable description is.... where?
 
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

RE: Adoptable description is.... where?
 
You probably have to change Ashje's code to:

PHP Code:

$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

RE: Adoptable description is.... where?
 
Brandon, I've said it before, and I'll probably say it again in the future.... You rule!!

:D


All times are GMT -5. The time now is 08:30 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.