Welcome to Gaia! ::

my randosig is showing up as a red X. HELP exclaim
Peng
Mwa: Just to say, I would only make the cookie last a week. There's no need for it to stay around that look, and it could bug some people...

Also, think you could make it also go to, say, .jpeg or .jpg or .gif files? I must admit not understanding the script fully (what do the colons do?), so I can't do it myself...

Or make it automatically figure out the number of images? surprised

The cookie saves your place in the images. It means that you will allways see every image at least once. Therefore it lasts a long time. razz
If you want to change it to another filetype, simply change .png to the filetipe. I'll adjust it to gif after this.

As for the number of images, that'd require 'file exists' testing stuff. And I can't be bothered to do that. razz
It's rather easy to just adjust a number, seeing as all you need to do is count the number of images you have. wink
To tell the truth, it's actually bigger than the large one I cut it down from. ^^;
(if the large one has the comments removed.)

<?PHP
$number_of_pictures = 9;
$number = (( isset( $_COOKIE['mwarotate'] ) )?$_COOKIE['mwarotate']:0;
$image = $number++;
$number = ($number == $number_of_pictures)?0:$number;
setcookie("mwarotate", $number, time()+60*60*24*365, "/")
header("location: ./".$image.".gif")
?>

There, that might be a tad easyer. razz
zI  Morbeous  Iz's avatar
  • 100
  • 100
  • 100
what do u mean personal account info?
morbeousx
what do u mean personal account info?


The personal info account is the screen that you're redirected to on BFN after you sign up. From there, go to the lefthand side of the screen and look for members. Under that heading should be a button for Random Images. Click it and follow the rest of RAMZA's instructions on the first page of this thread. 3nodding
Hokay. I need help with BFN. I put in the code like was said in the first post

"http://www.bfndevelopment.com/cgi-bin/home/Members/RandomImage/RandomImage.cgi?User=########=####&Code=######"


And it's only showing one picture. I did take off the quotations on each end.

What am I doing wrong? sad
Please...anyone? gonk
well, for starters, how many links have you placed inside of your random image script?
Wow...I feel stupid right now because I still have no idea how to make a sig...
you know.... I just realized something....

I have all of those methods of finding a random sig... but no method on how to set up an image host....
*revives thread* surprised
Is there anyway to associate links with it?
Ahh, I love this.


So much. gonk heart
Thanks a whole lot
Kawaii Sempai
Is there anyway to associate links with it?

Aye.
It involves cookies.
Look at mine, mine's a good example.
Or doth ye' want a rotating sigmap?
If so, pm me, I'll help you sort it out. razz
Lord-of-the-flies's avatar
  • 100
  • 200
  • 200
Hmm... Tell you what. You can add my 5-line random sig system in with your tutorial if you want. Right now, it's a learning tool that no one is visiting xD

Quick Reply

Submit
Manage Your Items
Other Stuff
Get Items
Get Gaia Cash
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff