Author Topic: Random Pic on Myspace  (Read 6936 times)

0 Members and 1 Guest are viewing this topic.

Offline lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
Random Pic on Myspace
« on: August 30, 2006, 03:46:29 PM »
Does anyone know how to put a random thumbnail from the gallery on myspace?  I could make a page and IFrame it I think, but I was wondering if there was a snippet of code that would allow to show a random thumbnail that links to the main site?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Random Pic on Myspace
« Reply #1 on: August 31, 2006, 02:02:14 AM »
We have a mod named "Random image"
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
Re: Random Pic on Myspace
« Reply #2 on: August 31, 2006, 05:31:06 PM »
Thanks V@no - I have that installed and it works fine:

www.drunkisland.com/random.php

My question is if anyone knows how to get it to work in MySpace?  I tried this:

Code: [Select]
<?php
 
include("http://www.drunkisland.com/random.php");
?>

but nothing comes up, and I tried Iframe but myspace doesn't like that.  Any ideas?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Random Pic on Myspace
« Reply #3 on: September 01, 2006, 12:23:22 AM »
try
Code: [Select]
<?php
 readfile
("http://www.drunkisland.com/random.php");
?>
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
Re: Random Pic on Myspace
« Reply #4 on: September 01, 2006, 07:43:05 PM »
Tried that just now V@no and no such luck.  it does say:

"You may enter HTML/DHTML or CSS in any text field. Javascript is not allowed. "

but there is no iframes allowed.  i will continue searchign for a way...someone must have done this!!!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Random Pic on Myspace
« Reply #5 on: September 02, 2006, 01:15:31 AM »
Then you have no choice, but use not the original verision of that mod, but the one that produces only the image without any HTML or text. Then you can use random.php as <img>
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
Re: Random Pic on Myspace
« Reply #6 on: September 04, 2006, 11:22:57 PM »
thanks again V@no.  One last thing - I tried to find the original version and couldn't find it.  Only the php file mod.  Could you point me in the right direction?

Thanks

Offline lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
Re: Random Pic on Myspace
« Reply #7 on: September 14, 2006, 04:51:14 PM »
bump