SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru Webinsane's Avatar
    Join Date
    Oct 2005
    Location
    Montenegro
    Posts
    898
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Problems with avatars site

    I have the site for animated avatars - www.animatedavatars.org and I want to add bellow each avatar something like myspace code generator, but it will actually be just regular banner link generator with the avatar that visitor have chosen.

    To make things sound simpler I need link generated under each avatar that will produce link to my site with that avatar. Is there a solution to my problem? Maybe there are gallery scripts with this kind of features.


    Thanks and as always I mucho appreciato
    CUBE SCRIPTS MEDIA
    REAL ESTATE SCRIPT 2.0 | Software for Real Estate Agencies

  2. #2
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You mean like a text area with a link:
    Code:
    <a href="http://www.animatedavatars.org/"><img src="http://www.animatedavatars.org/avatars/images/10806g3ay63teq5.gif" /></a>
    Can you post some code that displays your avatars?
    Saul

  3. #3
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    essentially
    PHP Code:
    // i suppose you grab $filename from the db
    $filename '1161575222-angelina.gif';

    $link '
    <a href="http://www.animatedavatars.org/">
        <img src="http://www.animatedavatars.org/avatars/images/' 
    $filename '">
    </a>
    '
    ;
    // htmlspecialchars will make the html render on the screen as plain text, ready to be copy/pasted
    echo htmlspecialchars($link); 
    you could put the link in a <textarea> if you want, or a styled div, or any other type of html container.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •