[random video/image] can't seem to get this to work.. do i have the wrong formatting??
So after reading numerous thread posts and playing around with different scenarios.. I came to the conclusion that using specific formatting within articles will help with randomizing images/videos..
so here is what I did..
The articles are randomly selected using the %spinfolder attribute within a directory..
and for each of the article I have the following attribute as the very first line in the article
{%spinfile-C:\Users\Administrator\Documents\GSA Campaigns\Trump Ocean Club Rentals\panama real estate youtube video - one line each.txt%|%spinfile-C:\Users\Administrator\Documents\GSA Campaigns\Trump Ocean Club Rentals\trump panama images file.txt%}
The above basically randomly chooses "ONE LINE" of a file from either a video URL or Image URL..
formated video text file:
or image text file:
in essence, randomly choosing a video or image to place on any submitted article...
This works great (except for that fact that it is always in the same place)..
The PROBLEM.. am I formating these URLs wrong???
Because what I get on ALL submitted content is JUST the URL.. and not the actual video or image??
Any Help would be appreciated..
Comments
Like when you post a video on your own homepage, you take the embed code from youtube for example.
So you might use something like:
{<img src="%spinfile-C:/XXX/images.txt%">|<iframe width="420" height="315" src="%spinfile-C:/XXX/videos.txt%" frameborder="0" allowfullscreen></iframe>}
BUT, not all sites are accepting videos and you might end up with some weird lines of code in your article because they escape your try to post content via HTML code. Maybe someday Sven finds some time to code a workaround like %image-from-folder:C:/XXX% which pulls the images URL and either interpret as BBCode, HTML or whatever the target sites wants us to use.