Blue Icebox
04-26-2009, 12:11 AM
Well, it started that I didn't like the format of MyAdopts.php
It looks... to plain... and it's very un-cool to look at... so I made my own design!
Just follow this:
1. Go to myadopts.php
2. Find something like
//Loop out code
$i=0;
while ($i < $num) {
$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlevel");
$type=@mysql_result($result,$i,"type");
$name=@mysql_result($result,$i,"name");
// 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);
using Ctrl-F
3. Change <table width='440' border='1'><tr>
to <table width=\"440\" border=\"0\" align=\"center\">
Find everything from $article_content to $i++;
and change that to
$article_content = $article_content."<tr><td><center>
~".$naem."~<br>
<a href=\"/levelup.php?id=".$id."\"><img src='".&image."'></a><br>
<b>Petted</b> ".$totalclicks." <b>, is level</b> ".$currentlevel." <b> and will be level</b> ".$nloutput."<b> needing</b> ".$ctg." <b>clicks!</b>
</center></td><td>
<a href='myadopts.php?act=stats&id=".$id."'>Stats</a><br>
<a href='myadopts.php?act=bbcode&id=".$id."'>Display Codes</a><br>
<a href='myadopts.php?act=rename&id=".$id."'>Rename</a><br>
<a href='myadopts.php?act=freeze&id=".$id."'>Un/Freeze</a><br>
<a href='myadopts.php?act=kill&id=".$id."'>Kill</a><br>
</td></tr>";
$article_content = $article_content."</table><br>";
$i++;
And tada! You see a more decent style! The other style is still available if you want to add the link...
<a href=\"myadopts.php?act=manage&id=".$id."\">Full Ind. Edit</a>
to the list, that's fine!
It looks... to plain... and it's very un-cool to look at... so I made my own design!
Just follow this:
1. Go to myadopts.php
2. Find something like
//Loop out code
$i=0;
while ($i < $num) {
$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlevel");
$type=@mysql_result($result,$i,"type");
$name=@mysql_result($result,$i,"name");
// 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);
using Ctrl-F
3. Change <table width='440' border='1'><tr>
to <table width=\"440\" border=\"0\" align=\"center\">
Find everything from $article_content to $i++;
and change that to
$article_content = $article_content."<tr><td><center>
~".$naem."~<br>
<a href=\"/levelup.php?id=".$id."\"><img src='".&image."'></a><br>
<b>Petted</b> ".$totalclicks." <b>, is level</b> ".$currentlevel." <b> and will be level</b> ".$nloutput."<b> needing</b> ".$ctg." <b>clicks!</b>
</center></td><td>
<a href='myadopts.php?act=stats&id=".$id."'>Stats</a><br>
<a href='myadopts.php?act=bbcode&id=".$id."'>Display Codes</a><br>
<a href='myadopts.php?act=rename&id=".$id."'>Rename</a><br>
<a href='myadopts.php?act=freeze&id=".$id."'>Un/Freeze</a><br>
<a href='myadopts.php?act=kill&id=".$id."'>Kill</a><br>
</td></tr>";
$article_content = $article_content."</table><br>";
$i++;
And tada! You see a more decent style! The other style is still available if you want to add the link...
<a href=\"myadopts.php?act=manage&id=".$id."\">Full Ind. Edit</a>
to the list, that's fine!