Skip to content

Add Random Picture?

BrandonBrandon Reputation Management Pro
edited January 2013 in Need Help
Is there any way for GSA to add a random picture from a folder?  I've been able to get pictures added by using a normal <img tag but the picture has to be hosted somewhere. I'd like to upload pictures that I have in a folder.  What about selecting random pictures?

Comments

  • SvenSven www.GSA-Online.de
    You can make a file with all the filenames in it and use %spinfile-imagenames.txt%.
  • BrandonBrandon Reputation Management Pro
    How would the image get from my folder to their server?  I'm going to do some testing and see how it goes.  Is there documentation for this?
  • it won't upload the files, just pick a random line from the file you specify.

    So your file should look like

    link.com\pic.jpg
    link.com\pic2.jpg
    link.com\pic3.jpg
    ...


  • copy all your images links in 1 single txt
  • BrandonBrandon Reputation Management Pro
    Thanks guys.  Doing this as a test right now.  How do I specify where the text file is located??

    I have the text file created but don't know how to tell GSA where to find it.
  • SvenSven www.GSA-Online.de
    Either put it in the engine subfolder or use the full path.
  • BrandonBrandon Reputation Management Pro
    Thanks Sven, absolute path is working perfectly!

Sign In or Register to comment.