PHP image and myspace..

Discussion in 'PHP' started by terryuk, Jun 15, 2006.

  1. #1
    I'm having troubles with some code i am trying to put in my profile, the code is

    
    <a href="http://www.spacemisc.com/" target="_blank"><img src="http://www.profiletrain.net/aol/libs/gd.php?uid=5804940" border="0"></a><br />
    Code (markup):
    but when i save my profile, and check if its worked, myspace just replaces the img tags with ...

    is there any way around this? :|

    cheers
     
    terryuk, Jun 15, 2006 IP
  2. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #2
    that's weird because I have it working fine using <img> tags in my profile...where are you putting this code?
     
    fsmedia, Jun 15, 2006 IP
  3. terryuk

    terryuk Notable Member

    Messages:
    3,962
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    255
    #3
    Normal <img> tags work, this one doesn't seem to :| I've tried it in all available spots like the About me section etc
     
    terryuk, Jun 15, 2006 IP
  4. discoverclips

    discoverclips Peon

    Messages:
    491
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    myspace doesn't like dynamic content, so it will filter out
    image urls with .php in it

    do a mod_rewrite and disguise the php in a jpg or gif :)
     
    discoverclips, Jun 15, 2006 IP
  5. terryuk

    terryuk Notable Member

    Messages:
    3,962
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    255
    #5
    Ah thanks for letting me know! how would i do that.. ??
     
    terryuk, Jun 15, 2006 IP
  6. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #6
    actually, discoverclips has a good idea there...yeah, just RewriteRule it to a different filename and you should be able to create something dyanmic that way...maybe even do something like

    RewriteRule ^image-(.*)\.jpg$ images.php?id=$1

    or something along those lines..to give a dynamic image a static look to it...
     
    fsmedia, Jun 15, 2006 IP
  7. terryuk

    terryuk Notable Member

    Messages:
    3,962
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    255
    #7
    Yeh i just got it off Google, thank you :D!
     
    terryuk, Jun 15, 2006 IP
  8. balamm

    balamm Peon

    Messages:
    64
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    IPB forums attempt to block dynamic images too. Even if set to allow dynamic images!
    All you need to do usually is add
    &ext=.gif
    Code (markup):
    to the end of the query string.

    The forum will think it's a gif image ;)
     
    balamm, Jun 23, 2006 IP
  9. balamm

    balamm Peon

    Messages:
    64
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    balamm, Jun 26, 2006 IP