Skip to content

Using " spinfolder_data_url" to load random images

Hi..
Just want confirmation from anyone that is capable.
I want to have a little more control over what images are placed in articles etc.
So my understanding is all I need to do is create a folder on my local machine, then store a txt file with a list of the local image address eg C:GSA_images/image-1.jpeg  -- each on a separate line

then in the end insert this where I would like the image to appear in the final article

<img src="%spinfolder_data_url-<C:GSA_images/images.txt>%">.

Am I on the right track?
Thanks

Comments

  • SvenSven www.GSA-Online.de

    No, that would not work.

    1. Solution

    a) make a file with URLs in it each line pointing to the images on some server

    b) use macro...<img src="%spinfile-file_with_urls.txt%" />

    2. Solution

    a) put all your images in a folder

    b) use macro <img src="%spinfolder_data_url-c:\folder_with_images\%" />
  • AlexRAlexR Cape Town
    @Sven - I've just seen this thread. 

    For my avatars can I have:
    %spinfolder-C:\Users\Administrator\Dropbox\Avatars\%

    and then in that folder have all the avatars?
  • SvenSven www.GSA-Online.de
    @AlexR Yes, thats different as the program has to submit the content of the file. It knows how to handle it in that situation, @ozcam however wants to use that in articles, not in submission form fields.
  • AlexRAlexR Cape Town
    Thanks. Just checking, since in TEST mode it shows strangely still. I know you mentioned a while ago this was on todo list to resolve (preview images showing strangely in test mode). 
  • Images are not showing in article posts.. just the missing image icon
    see this page at the beginning of the article
    Mike
  • SvenSven www.GSA-Online.de
    Can you send me the project backup please?
  • After latest update there is still a problem with posting images..
    see this post
  • SvenSven www.GSA-Online.de
    @ozcam thats not a problem of the macro but of the site. It just doesn't allow such URLs. In fact Wiki engines do not allow images at all usually. Most of them remove the image, make it a normal URL or display it wrong. Though thats all related to the settings of the wiki engine.
Sign In or Register to comment.