PDA

View Full Version : Edit Featured Adoptable display


Tequila
02-20-2009, 10:08 AM
Is there a way to edit the featured adoptable component so that it only displays a clickable image?

Like:
http://i634.photobucket.com/albums/uu61/familiarelementspets/tanager/bird0_1.png (http://site.url)

The layout I am working on for the new release of my site has a little featured adoptable block in the header above the rest of the content.

You can see what I mean at the main site: http://familiarelements.info

Edit
Figured it out. Had to change variables in the functions.php file. If anyone is interested this is what I changed it to:
$content = "<p><a href='levelup.php?id=".$id."'><img src='".$imageurl."' id='me' alt='Featured Adoptable' border='0'></a></p>";

BMR777
02-20-2009, 10:18 AM
Yeah. Open up inc > functions.php in a text editor and find:

$content = "<p><img src='".$imageurl."' id='me' alt='Featured Adoptable'>
<strong><a href='show.php?id=".$id."'>".$name."</a></strong><br />
Level: ".$currentlevel."<br />
Owner: ".$owner."<br />
<a href='levelup.php?id=".$id."'>Add more HP</a></p>";

That's the HTML for the featured adoptable. So you could do something like:

$content = "<a href='levelup.php?id=".$id."'><img src='".$imageurl."' id='me' alt='Featured Adoptable'></a>";

:)

BMR777

Tequila
02-20-2009, 10:19 AM
Yeah. Open up inc > functions.php in a text editor and find:

$content = "<p><img src='".$imageurl."' id='me' alt='Featured Adoptable'>
<strong><a href='show.php?id=".$id."'>".$name."</a></strong><br />
Level: ".$currentlevel."<br />
Owner: ".$owner."<br />
<a href='levelup.php?id=".$id."'>Add more HP</a></p>";

That's the HTML for the featured adoptable. So you could do something like:

$content = "<a href='levelup.php?id=".$id."'><img src='".$imageurl."' id='me' alt='Featured Adoptable'></a>";

:)

BMR777


I must have just edited it when you replied. I guess I'm tired today.