Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Addons/Mods Graveyard (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=41)
-   -   Change the MyAdopts.php page! (http://www.mysidiaadoptables.com/forum/showthread.php?t=737)

Blue Icebox 04-26-2009 12:11 AM

Change the MyAdopts.php page!
 
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 Code:

//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 Code:

$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!

trollis76 05-01-2009 05:10 AM

RE: Change the MyAdopts.php page!
 
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

RE: Change the MyAdopts.php page!
 
Quote:

Originally Posted by trollis76
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

RE: Change the MyAdopts.php page!
 
Quote:

Originally Posted by trollis76
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

RE: Change the MyAdopts.php page!
 
I'm guessing that
Quote:

~".$naem."~<br>
should be
Quote:

~".$name."~<br>

And that the error is coming from here:
Quote:

<img src='".&image."'></a>
Shouldn't that be
Quote:

<img src='".$image."'></a>
Perhaps?


All times are GMT -5. The time now is 12:53 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.