This is an old revision of the document!


Random Content

In the file content_search.dat (found in installation folder) you can define where to get what content. By default you have things setup for images, videos, links and articles. Please keep in mind that you might violate other peoples copyright when using there content for your article.

You can later make use of this by using %random_<type>% in your article or wherever you want it. Type can e.g. be image (%random_image%) or video (%random_video%).

A special usage:

[local_images_to_data_url]
type=image
result=<img src="%spinfolder_data_url-c:\some\folder\with\images\%" style="max-width:500px;">

A normal usage:

[fotki.com]
url=http://search.fotki.com/?q=%search%
type=image
seperator=<div class="fleft">
content_front=src="
content_back="
title_front=title="
title_back="
result=<img src="%content%" alt="%search%" title="%title% (C) fotki.com" style="max-width:500px;">
replace=-th.;-vi.
VariableDescription
urlURL to get the content from. Use the place holder %search% here if wanted. It is replaced with keyword or anchor text of the project making use of it.
typeDefines the type (can be anything you like and can later be used with %random_type%
seperatorThe separator (notice spell error) that is used in html source to separate the results.
content*, title*, author*The different variables that can be filled. Use *_front and *_back to get the right content.
resultThe actual result that is delivered. You should use the variables here of course.
replaceWill replace things from the content with something else.