Welcome
Login:   Pass:     Register - Forgot Password - Resend Activation

Add Turkey Picture Snippet to Your Website

You have a website and you want to add snippets with pictures of Turkey that blend with your pages? You can add one or more snippets (square, up to size 145x145 pixels) to your site with a random picture from our collection of thousands of user-contributed images. You can customize the random picture snippet to fit your needs: define what to include or exclude at the category level or at the picture level.



Let's start with a simple example. The snippet below has the default background color white, it is fetched randomly from all the user-contributed pictures on our site, and the picture displayed changes every 5 minutes. Default size is 125x125 pixels.

To add this snippet to your site, copy and paste the following HTML code to the location on your page where you want the image to appear:







The default picture size is 125X125 pixels. Below are two examples, one with size 100x100 and the other one with size 145x145. To assign size we use the size parameter. Do not forget to set the height and width of the iframe to the same value as the size parameter you use.

The HTML code to add for these snippets is:







If you want to add multiple snippets on the same page where each one displays a different picture, use different sequence parameters. In the example below, the first snippet has sequence 1, second one has sequence 2 and the other one has sequence 3. You can see the sequence parameter in the HTML code given below the pictures. They are all at the default size, 125x125.

The HTML code to add to your page for this is as follows:







If you don't specify a time interval, the picture in the snippet is renewed every 5 minutes. You can use the refreshIntervalMinutes parameter to adjust this (minimum is 5 minutes). Below is an example where the picture changes every 10 minutes, and the HTML code to add for it:






Advanced configuration

There are a number of parameters that can be used to include or exclude categories and/or pictures from the pool where your random pictures are fetched from. Here is a list of all the URL parameters including these:


Parameter Name Default Value Description
size 125 This parameter specifies the size of the thumbnail you would like to include on your page. The iframe you use should have the same height and width as the value of this parameter.
sequence 1 If you have multiple snippets on the same page, set different sequence values to make sure the same picture is not always displayed on both.
refreshIntervalMinutes 5 This parameter defines the time interval in minutes between the content updates in your snippet. Minimum is 5 minutes and if you specify a value smaller than that it will be set to 5 minutes.
includeCategoriesTree - This parameter is a pipe-separated list of picture category IDs (maximum 10 category IDs can be used). Take the URL of the picture category Edirne for instance (http://www.turkishclass.com/turkey_pictures_gallery_18). The ID of this category is the last part of the URL, 18. To browse the Turkey picture galleries and check the IDs of the categories you want, visit http://www.turkishclass.com/turkey_pictures_gallery_0.

If you want to display pictures from category Edirne and Antalya (http://www.turkishclass.com/turkey_pictures_gallery_11) and all their subcategories in your snippet, you add the parameter includeCategoriesTree=18|11 in the URL of your snippet code.

If you want to include pictures of Edirne and Antalya but you don't want to include their subcategories, use parameter includeCategoriesSingle instead.
includeCategoriesSingle - This parameter is very similar to the includesCategoriesTree parameter explained above, but this one is used for including a category without its subcategories.
includePictures - This parameter is a pipe-separated list of picture IDs (maximum 10 picture IDs can be used). Take the URL of the picture of the Trojan Horse in Troy for instance (http://www.turkishclass.com/picture_754). The ID of this picture is the last part of the URL, 754. To browse the pictures of Turkey and check the IDs of the pictures you want, you can visit the categories pages or the pictures pages.

If you want to display this picture of Troy in your snippet and a picture of Turkish folk dances (http://www.turkishclass.com/picture_286), use parameter includePictures=754|286 in the URL of your snippet code.
excludeCategoriesTree - The use of this parameter is the same as includeCategoriesTree, but in this case the category IDs specified and all their subcategories are excluded in your random picture snippet.
excludeCategoriesSingle - The use of this parameter is the same as includeCategoriesSingle, but in this case the category IDs specified are excluded in your random picture snippet.
excludePictures - The use of this parameter is the same as includePictures, but in this case the picture IDs specified are excluded in your random picture snippet.


Below are some examples demonstrating the use of these URLs, followed the HTML snippet to generate them.



Random picture from category Leanders Tower - Kiz Kulesi, new picture every 10 minutes.





Random picture from category Turkish People. New picture every 10 minutes.





Random picture from categories Topkapi Palace - Topkapi Sarayi, Eyup and Halic - Golden Horn. New picture every 5 minutes.





Random picture from category Topkapi Palace - Topkapi Sarayi; exclude pictures 53, 98, 12935, 13065, 15048; include additional pictures 12713, 1187 and 14538. New picture every 5 minutes.





Random picture from category Edirne and all its subcategories. New picture every 10 minutes.





Random picture from category Edirne and all its subcategories, excluding subcategory Selimiye Mosque - Selimiye Camii. New picture every 10 minutes.





Random picture from all pictures of Turkey, excluding category Various Topics and all its subcategories. New picture every 10 minutes.







Did you add picture snippets to your site using this page? If you contact us and send the URL of your site we may add a link here as a showcase.


Comments (9)




Turkish Dictionary
Turkish Chat
Open mini chat
New in Forums
Birthday wish...
soul2soul: Hi all, my name is Sara, and I´m new to this forum! I´m...
wish (verb)
og2009: WISH I wish to travel: Seyahat etmek istiyorum. I w...
Two verb with Geniş Zaman
Hishamabs: So So Helpful and ... ... I liked this ... ... Thanks alot.
Turkey May Hit Netherlands With Sanctions ...
denizli: Well at least we hit 3 pages. I ... remember the last time that happen...
E to T my attempt!
Polyglot: Gokuyum thank you
taxi translation
john250: cok sagol Gokuyum
Teach yourself Turkish audio?
Inderjit : ... help me out and mail me this audio book ... anyone
Oda hizmetçisi
Kasimpasa: Harpoon, ... ... ... ...
e to t pls urgent!!
muratalp: I have not any idea What is ...
T-E
og2009: HAYAT DENÄ°LEN OLGU Hayat denilen kutsal olgu ... okuyup anlama...
T-E
aurum: Çok ... ederim!
E to T my attempt!
Polyglot: Denizli and aurum thanks
Random Pictures of Turkey
Add thumbnails like this to your site
Most liked
Major Vowel Harmony

Turkish lesson by admin
Level: beginner
Alphabet

Turkish lesson by admin
Level: beginner
Noun states

Turkish lesson by admin
Level: beginner
small bazar small bazar

Picture by molena
Istanbul Levent Istanbul Levent

Picture by catwoman
Sultanahmet in Istanbul Sultanahmet in Istanbul

Picture by catwoman
Marmara Deniz Marmara Deniz

Picture by AMaior
Canım Seninle Olmak İstiyor
(I Want to Be with You)

Poem by Zuhal Olcay
Korkuyorum
(I am Afraid)

Poem by Unknown
Ayşe

Story by erdinc