Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Edit Featured Adoptable display (http://www.mysidiaadoptables.com/forum/showthread.php?t=426)

Tequila 02-20-2009 10:08 AM

Edit Featured Adoptable display
 
Is there a way to edit the featured adoptable component so that it only displays a clickable image?

Like:
http://i634.photobucket.com/albums/u...er/bird0_1.png

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

    $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

RE: Edit Featured Adoptable display
 
Yeah. Open up inc > functions.php in a text editor and find:

PHP Code:

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

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

:)

BMR777

Tequila 02-20-2009 10:19 AM

RE: Edit Featured Adoptable display
 
Quote:

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

PHP Code:

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

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


All times are GMT -5. The time now is 07:44 PM.

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