Change the MyAdopts.php page!

Forum
Last Post
Threads / Messages

Blue Icebox

Member
Member
Joined
Jan 13, 2009
Messages
45
Points
0
Mysidian Dollar
3,336
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
PHP:
//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

PHP:
$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...

Code:
<a href=\"myadopts.php?act=manage&id=".$id."\">Full Ind. Edit</a>

to the list, that's fine!
 
Could you like, show me/us an example of how it looks like? Like a screenshot or something?


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


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.
 
trollis76 said:
Could you like, show me/us an example of how it looks like? Like a screenshot or something?


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....
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,122
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top