Исходный текст | Переводы |
---|---|
Clear the cache on form submit. You might find the !autofloat_module useful. | |
A default Flickr size to use if no size is specified, for example [flickr-photo:id=3711935987].<br />Clear the cache on form submit.<br />!: TAKE CARE, the c size (800px) is missing on Flickr images uploaded before March 1, 2012! | |
accepted date formats | |
relative formats | |
PHP: Relative Formats - Manual | |
Insert a <strong>Flickr photo</strong>. A working example: ![]() <ul> ![]() <li>[flickr-<strong>photo</strong>:id=7357144724, size=m, mintitle=999, minmetadata=999] (accepts only the parameters <em>id, class, style, size, mintitle</em> and <em>minmetadata</em>)</li> ![]() </ul> ![]() To float single photos use [flickr-photo:id=9247386562, <strong>class="floatright"</strong>], [flickr-photo:id=9247388074, <strong>style="float:left;"</strong>] or use the !autofloat (recommended).<br /><br /> ![]() Insert a <strong>Flickr album</strong>. Working examples: ![]() <ul> ![]() <li>[flickr-<strong>photoset</strong>:id=72157634563269642, size=s, num=8, tags=kids/men, media=all, sort=random, count=false, mintitle=999, minmetadata=999, heading=none]</li> ![]() <li>[flickr-<strong>gallery</strong>:id=72157648989290536, size=q, num=4, sort=views]</li> ![]() <li>[flickr-<strong>group</strong>:id=91484156@N00, size=q, num=8, tags=flowers, media=all, sort=random, count=false, mintitle=999, minmetadata=999, heading=none]</li> ![]() <li>[flickr-<strong>user</strong>:id=lolandese1, size=q, num=6, tags=kids/men, media=all, sort=random, count=false, mintitle=999, minmetadata=999, heading=none]</li> ![]() <li>[flickr-<strong>user</strong>:id=public, size=q, num=10,tags=Augusto Canario, filter=interesting, sort=views, extend=true]</li> ![]() <li>[flickr-<strong>user</strong>:id=public, size=q, num=8,location=48.867556/2.364088, date=2015-01-11, filter=interesting, sort=views]</li> ![]() <li>[flickr-<strong>favorites</strong>:id=lolandese, size=q, num=4, tags=tomosborn/people, media=all, sort=random, count=false, mintitle=999, minmetadata=999, heading=none]</li> ![]() </ul><br /> ![]() Common sizes:<br /> ![]() <table style='width:100%'> ![]() <tr> ![]() <td> ![]() s : small square 75<br /> ![]() t : thumbnail, 100 on longest side<br /> ![]() q : big square 150 ![]() </td> ![]() <td> ![]() m : small, 240 on longest side<br /> ![]() n : small, 320 on longest side<br /> ![]() - : medium, 500 on longest side ![]() </td> ![]() <td> ![]() x: Responsive slideshow (for group, set and user IDs only)<br /> ![]() y: Basic responsive slideshow (for set and user IDs only) ![]() </td> ![]() </tr> ![]() </table> ![]() The 'c' size (800px) is missing on Flickr images uploaded before March 1, 2012. Photos with non existing sizes will be skipped in albums.<br /><br /> ![]() <strong>TIP</strong>: Not only the node body but also blocks make use of a text format. Build your own custom Flickr album block using the Flickr Filter syntax.<br /><br /> ![]() <strong>PARAMETER EXAMPLES</strong>. Omitting a parameter will result in the default value to be used.<br /> ![]() <strong>id=lolandese1</strong> : A photo, set, user or group ID. <strong>id=public</strong> grabs CC licensed public photos (only for <em>[flickr-user:...]</em>). <strong>Default: id=@default_userid</strong> (!config).<br /> !find_id Valid ID values: numeric ID (the one that contains a '@'), path alias, Flickr username or the user's email.<br /> ![]() <strong>class="floatleft foo bar"</strong> : Syntax as in HTML. Wrap the value in quotes (or not) and put spaces between multiple classes.<br /> Applies to the outer HTML element of a photo or album.<br /> ![]() <strong>style="float:left; border:solid 2px;"</strong> : Syntax as in HTML. Wrap the value in quotes (or not) and put semicolons between different style declarations.<br /> Applies to the outer HTML element of a photo or album.<br /> ![]() <strong>size=q</strong> : Big square (150px). The sizes x and y display a slideshow and ignore number, media, tags, location and sort settings.<br /> <strong>Default single photo: size=@default_size, album photo: size=@default_size_album</strong> (both !config).<br /> ![]() <strong>num=4</strong> : Display 4 photos. <strong>Default: num=@default_number</strong> (!config). For albums only.<br /> If set to 1, the single image will behave as such. Heading and counter will be omitted, and float might apply.<br /> Used to display a single changing random or recent image.<br /> ![]() <strong>media=all</strong> : Display both photos and videos. <strong>Default: media=photos</strong>. For albums only.<br /> ![]() <strong>tags=kids/men</strong> : <strong>Separate multiple tags with a slash (/).</strong> Display all set, group or user photos that contain the indicated tags.<br /> Case insensitive, matches any tag, for photosets and galleries even partial. You can exclude results that match a term by prepending it with a - character.<br /> Public albums will only display photos that match all tags. Like on Flickr spaces are removed from tags (e.g. 'Victoria park' becomes 'victoriapark').<br /> For albums only.<br /> ![]() <strong>extend=true</strong> : Extend the tag filter to search for matching terms also in the Flickr photo title and description besides Flickr tags.<br /> <strong>Default: extend=@default_extend</strong> (!config). For albums only.<br /> ![]() <strong>tag_mode=all</strong> : Matches 'all' defined tags (AND). The other possible value is 'any' (OR).<br /> If this parameter is omitted, 'all' is used if no Flickr user ID is known (public search), otherwise 'any' is used. For albums only.<br /> ![]() <strong>location=48.85837/2.294481/0.2</strong> : Display photos within 200 mt from the Eiffel Tower. Lat/lon/radius (in km). Separate values with a slash (/).<br /> To get the coordinates for a location, right-click on a Google map and choose 'What's here?' or copy/paste it from the URL.<br /> Substitute the comma (,) with a slash (/). Optionally add a radius to force a major number of results to filter on (max. 32 km).<br /> If the radius is omitted it defaults to 14 meter and gradually expands to 32 km until a sufficient number of results are returned.<br /> Besides decimal coordinates also degrees are accepted, e.g. 2° 21' 50.72". For user and group albums only, also public.<br /> ![]() <strong>date=2015-01-11</strong> : Display photos taken on 11 January 2015.<br /> Many !dateformats (e.g. '11 Jan 2015'), also !relativeformats (e.g. 'first day of last month | last day of last month').<br /> Separate two date values with a vertical bar (|) to cover a timespan of multiple days. For user and group albums only, also public.<br /> <strong>Tip</strong>: Use a date in combination with a location to grab public photos of an event.<br /> ![]() <strong>heading=h3</strong> : Wraps the album title in HTML tags. Use 'p' to apply no style or 'none' to suppress the title. <strong>Default heading=@default_heading</strong> (!config). For albums only.<br /> ![]() <strong>sort=views</strong> : Display the most viewed Flickr photos first (popularity, slower response after cache clear).<br /> Other values: <em>unsorted</em> = recent as delivered by the Flickr API (fastest response),<br /> <em>random</em> (slower response after cache clear), <em>taken</em> (newest first), <em>posted</em> (newest first) , <em>added</em> (for groups only, newest first) and <em>id</em> (on photo ID, newest first).<br /> <strong>Default: sort=unsorted</strong>. For albums only.<br /> ![]() <strong>filter=interesting</strong> : Display the most interesting photos. Other possible value: <em>relevant</em>. For user and group albums only, also public.<br /> ![]() <strong>count=false</strong> : Suppress display of the counter under the album (e.g. <em>5 out of 124 on Flickr</em>). <strong>Default: count=@default_count</strong> (!config). For albums only.<br /> ![]() <strong>mintitle=999</strong> : Suppress display of the title in the photo captions for images below a width of 999 px. <strong>Default: mintitle=@default_mintitle</strong> (!config).<br /> ![]() <strong>minmetadata=999</strong> : Suppress display of the metadata in the photo captions for images below a width of 999 px. <strong>Default: minmetadata=@default_minmetadata</strong> (!config). | |
!: TAKE CARE, the 'c' size (800px) is missing on Flickr images uploaded before March 1, 2012! | |
How many photosets display on user profile pages at <em>flickr/%uid/sets</em>. Clear the cache on form submit. | |
How many photos display in a set on user profile pages at <em>flickr/%uid/sets/%nsid</em> or in a Flickr photo field with '<em>Item Type: Photoset</em>'. Clear the cache on form submit. | |
<p>[flickr-photo:id=9247386562,size=m]DEMO PAGE of both the <a href="http://drupal.org/project/autofloat" title="Project page on Drupal.">AutoFloat</a> and <a href="http://drupal.org/project/flickr" title="Project page on Drupal.">Flickr</a> module from the distro at https://drupal.org/project/demo_flickr.<br>They work seamless together out-of-the-box. A huge time-saver.</p><p>Note that in this demo the Flickr and AutoFloat filters are active only on the <a href="/admin/config/content/formats/full_html"><em>Full HTML</em> text format.</a><br />You find admin quick links to the relevant settings in the <em>Navigation</em> menu in the sidebar.</p><p>After installation you might get this error:<br /> <em>"Could not connect to Flickr, Error: Connection timed out"</em><br />Just <a href="/node/1/edit">re-save</a> the node.</p>Used:<ul><li><a href="http://drupal.org/" title="Drupal.org">Drupal</a> 7</li><li><a href="http://drupal.org/project/colorbox" title="Project page on Drupal">Colorbox</a></li><li><a href="http://drupal.org/project/autofloat" title="Project page on Drupal">AutoFloat</a></li><li><a href="http://drupal.org/project/flickr" title="Project page on Drupal">Flickr</a> 7.x-1.x-dev</li></ul>Activated Flickr sub-modules:<ul><li>Flickr Block</li><li>Flickr Filter</li><li>Flickr Sets</li><li>Flickr Style</li><li>Flickr Cachewarmer</li></ul>NOTHING MORE, NOTHING LESS.<br />No other customizations, modifications, alterations, additions, whatsoever.<p><span style="background-color:#ffff00;">ALSO THE CAPTION FLOATS AND DIVIDES OVER MORE ROWS IF NECESSARY.</span>. [flickr-photo:id=9247388074,size=q]Tincidunt nec velit adipiscing adipiscing ultrices, integer urna augue porta enim porttitor tortor velit! Urna, nunc sociis porttitor? Rhoncus adipiscing dictumst cum est et ridiculus odio risus nec sed et lorem elit, pulvinar facilisis nec aenean egestas cursus nisi, duis! Enim. Sed, amet dolor dictumst, in augue sociis mauris! Facilisis? Placerat pellentesque amet in in? Cras duis facilisis nec arcu porttitor parturient eu lectus aliquam rhoncus porta tristique, lectus elementum.</p><p>Tincidunt lectus parturient? Magna aliquet ultrices elit! Rhoncus, turpis. Sagittis facilisis mauris cras habitasse, aliquam, risus nunc tincidunt sit nunc pulvinar, nec lectus aenean magnis placerat ac. Tincidunt! Eu, in nunc duis, ac phasellus, amet ultricies amet, ultricies phasellus. [flickr-photo:id=9244604259,size=m]<br /><span style="background-color:#ffff00;">AN IMAGE CAN BE PUT ALSO HALFWAY A PARAGRAPH. THAT IS WHY SPANS ARE USED INSTEAD OF DIVS (<a href="http://stackoverflow.com/a/1611172" title="StackOverfow.com">more info</a>).</span> Et, auctor. Turpis augue in proin pulvinar turpis ac proin aliquam sit pulvinar risus, tristique? Ultricies vut massa nisi dolor, dignissim, enim proin et, rhoncus, a porttitor porttitor!</p><p><span style="background-color:#ffff00;">IMAGES IN A SET OF THUMBNAILS ARE EXCLUDED FROM AUTOFLOAT. TRY TO CLICK A LOCATION NAME OR THE VIDEO (last thumbnail, plays inside Colorbox).</span></p><p style="font-size: 250%;">⬇</p>[flickr-photoset:id=72157634563269642,size=q,media=all,num=20]<p>[flickr-photo:id=9247387656,size=s]<span style="background-color:#ffff00;">ON THE SMALLEST SIZE (square 75px) THE TITLE IS SUBSTITUTED WITH THE TERM "FLICKR" TO SAVE SPACE.</span> Auctor ac, urna odio lorem, duis integer nisi nisi, proin dictumst, elementum nisi! Sed. Magna facilisis elementum, sed auctor, montes, et et habitasse porta, amet! Aenean, scelerisque amet est, elit, nascetur porttitor elementum? Risus arcu, tristique platea rhoncus rhoncus lacus ultricies integer eros massa dignissim! Egestas dapibus auctor magna porttitor. Sociis? Velit nec, duis scelerisque dictumst turpis dolor sit.</p><p>[flickr-photo:id=9244503455,size=n]<span style="background-color:#ffff00;">IMAGE SIZE 320 PX ONLY AVAILABLE FOR FLICKR PHOTOS UPLOADED AFTER MARCH 1, 2012.</span> Sit adipiscing ac etiam cum, odio ridiculus pulvinar, a porta tristique, sit cras! Porttitor ridiculus nisi porta? Turpis nunc elit, in ultrices, nisi risus purus vel, amet. In et tincidunt rhoncus. Turpis tempor adipiscing a. Aenean cum lacus auctor nec! Egestas. Lacus sed magna elementum lacus augue. Montes magna ac et nisi rhoncus mauris, vel! Lorem dictumst ultricies lacus.</p><p><span style="background-color:#ffff00;">TRY TO RESIZE THE BROWSER WINDOW TO VERIFY HOW THE SLIDESHOW AND THE IMAGES IN THE SET AND BLOCK ADAPT TO THE AVAILABLE WIDTH.</span></p><p><span style="background-color:#ffff00;">A SLIDESHOW (SEE BELOW) OF A SET OR USER/GROUP PHOTOSTREAM CAN BE USED IN A BLOCK, THE NODE BODY OR FIELD. ALSO A NON-FLASH VERSION IS AVAILABLE. THEY BOTH SUPPORT FULL-SCREEN MODE AND ARE RESPONSIVE.</span></p><p><span style="background-color:#ffff00;">AT THE BOTTOM AN EXAMPLE OF A VIDEO.<br />THE WIDTH CAN BE CONTROLLED (in this case 80%). TRY BOTH FULL-SCREEN.</span></p> <br />[flickr-photoset:id=72157634563269642,size=x]<div style="width:80%;">[flickr-photoset:id=72157644096644712,size=y]</div><!--break--> |