PDA

View Full Version : How to change the oder of users adoptables? [Answered]


Tezna
05-17-2009, 06:31 PM
I want my adoptables to be like:
[adoptable] [adoptable] [adoptable] [adoptable]
Not:
[adoptable]
[adoptable]
How do I fix it?

Seapyramid
05-17-2009, 07:15 PM
This has already been answered in a few different threads.

Bloodrun
05-17-2009, 10:28 PM
It's quite simple really. Go to your myadopts.php file, find where it says:


if($act == ""){



// No action specified, we just show all the adoptables with a manage link



$article_title = $loggedinname."'s Adoptables";

$article_content = $lang_adoptmanagement."<br>";


And just take out the <br>
The reason it is set up this way, is because the adoptables information can make the tables rather large, so the best option would be to have go Vertically instead of horizontally.

A quick update:

After you edit that part of the code, scroll down a little bit, until you find this:


// Our code to determine if we show the table or not...





$article_content = $article_content."<table width='440' border='1'><tr>";







// Output the table information...

// Get the current adoptable's image



$image = getcurrentimage($aid);



$article_content = $article_content."<td><div align='center'><p>".$name."</p><p><a href='myadopts.php?act=manage&id=".$aid."'><img src='".$image."' border=0></a></p><p>

<b><a href='myadopts.php?act=manage&id=".$aid."'>Manage</a></b></p></div></td>";





$article_content = $article_content."</tr></table><br>";





$i++;



}


The last '$acrticle_content' needs to be changed to this:


$article_content = $article_content."</tr></table>";



You could also, change the size of the table to a smaller size, so that they could fit. This all of course, depends on the size of your adoptables image.

SieghartZeke
12-04-2009, 11:09 AM
This not work for me,......