PDA

View Full Version : Change the MyAdopts.php page!


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!

trollis76
05-01-2009, 05:10 AM
Could you like, show me/us an example of how it looks like? Like a screenshot or something?[hr][hr]
EDIT: I get this error at the adoptable site:
Parse error: syntax error, unexpected '&' in /home/a8498929/public_html/myadopts.php on line 115

Bloodrun
05-01-2009, 06:48 AM
Could you like, show me/us an example of how it looks like? Like a screenshot or something?[hr][hr]
EDIT: I get this error at the adoptable site:
Parse error: syntax error, unexpected '&' in /home/a8498929/public_html/myadopts.php on line 115


All he did was add more words to the page, and change the layout.
Nothing fancy. But something the members will see.

gjac1
05-03-2009, 02:36 PM
Could you like, show me/us an example of how it looks like? Like a screenshot or something?[hr][hr]
EDIT: I get this error at the adoptable site:
Parse error: syntax error, unexpected '&' in /home/a8498929/public_html/myadopts.php on line 115


I get the same error as you....

mugwumpr
05-03-2009, 03:04 PM
I'm guessing that ~".$naem."~<br> should be ~".$name."~<br>


And that the error is coming from here:
<img src='".&image."'></a>

Shouldn't that be <img src='".$image."'></a>

Perhaps?