Edit Featured Adoptable display

Forum
Last Post
Threads / Messages

Tequila

The Grim One
Staff member
Dev Staff
Joined
Jan 21, 2009
Messages
1,312
Points
0
Location
Souther Tier, New York State
Mysidian Dollar
68,306
Is there a way to edit the featured adoptable component so that it only displays a clickable image?

Like:


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:
PHP:
	$content = "<p><a href='levelup.php?id=".$id."'><img src='".$imageurl."' id='me' alt='Featured Adoptable' border='0'></a></p>";
 
Yeah. Open up inc > functions.php in a text editor and find:

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

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

:)

BMR777
 
BMR777 said:
Yeah. Open up inc > functions.php in a text editor and find:

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

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

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top