Log in

View Full Version : Adoptables in a line


Celcia
07-15-2009, 04:57 PM
I really love this script and it works great on my site, but there is a question coming from my users and I'm just a beginner in using php. So here's the problem:

All available adoptables on the adopt-site (file is called adopt.php) are shown among one another. It takes a lot of time scrolling through all of them, if there are many adoptables. My user asked me, if it's possible to show the adoptables side by side.
I tried and tested by deleting some of the <p>-tags in the code, but never got a satisfying result.

Does someone know, how to programm the following code segment to show the adoptables "in a line"?

//If we can adopt the adoptable, show the image and adoption link...

$article_content = $article_content."<p><b><u><a href='adopt.php?id=".$aid."'>".$type.":</a></u></b>
<a href='adopt.php?id=".$aid."'><img src='".$eggimage."' border='0'></a>";

if($isloggedin == "yes"){
$article_content = $article_content."<b><a href='adopt.php?id=".$aid."'><img src='templates/icons/add.gif' border=0> Adopt ".$type."</a></b></p>";
}
else{
$article_content = $article_content."<img src='templates/icons/no.gif' border=0> <b>".$guesterror."</b></p>";
}

Seapyramid
07-15-2009, 08:57 PM
Please use the search function. The code to make them line in a row has already been given many times.

Sea

Celcia
07-16-2009, 03:40 AM
I've used the search-function but didn't try the right words for. Now I'v found something helpful and it worked. Thanks!

SieghartZeke
12-04-2009, 06:59 AM
What code need?