Ir ao conteúdo

Quick Flickr Widget, WordPress.

Boa tarde,

Hoje pela tarde estava a estudar e nos interva-los dos estudos estava dando uma olhada nos plugins para o wordpress. Achei um interessante. O Quick-flickr-widget. Um widget para exibir fotos do flickr no seu site. Você pode configura-lo de diversas maneiras, para pegar as ultimas fotos, para utilizar tags, para pegar fotos random. Está ultima, eu não me simpatizei muito, já que ela utiliza de um feed disponivel pelo flickr com suas ultimas atualizações. Fiquei um tempo pensando sobre como melhorar este recurso e tive uma idéia ao me lembrar de outro widget. Eu poderia pegar todas as tags, embaralhar as mesmas e escolher uma aleatoriamente e utilizar esta tag como parametro para uma consulta randomica. Fazendo um random de TAG e em seguida das fotos que possuiam a tag.

Após algumas pesquisas na API do flickr e em outros widgets descobri como poderia pegar as tags. Criei uma função que retornava uma tag aleatoria para o usuario X.

Implementei na mão isso dentro do código do quick flickr widget porém ainda não estava satisfeito, queria compartilhar isso com outros usuarios que também não gostavam da randomização do widget. Então estudei um pouco o codigo do quick flickr widget e fiz algumas modificações, adicionei uma nova checkbox para selecionar se deseja ou não a randomização por tag, adicionei um if e algumas outras linhas necessarias para salvar/pegar está nova opção e pronto.

Testei meio que por cima, as combinações de opções, ativar e desativar e está funcionando. Entrei em contato com o autor para ver se ele tem interesse de disponibilizar essas funções no widget dele. Bom, mesmo que ele não queira, você pode baixar o widget com as modificações aqui.

Então é isso. Quick-Flickr-Widget com randomização por tags.

Até mais,
Matheus Bratfisch

PS: Deixei a versão do mesmo como 1.2.7.2 provisoriamente, já que eu realizei as atualizações em duas etapas adicionei o .2 na versão atual do widget. Provavelmente se o autor for utilizar essa mudança a versão será outra.

Publicado emphpwordpress

3.514 Comentários

  1. Been there, done that, got the overpriced tow truck receipt to prove it. Then you actually show up to the local office to pick up the car. Plus they freeze a surprise $4500 on your card and say “don’t worry, it’ll drop off in a week or two” right before giving you the keys. Twelve years in South Florida and these jokers still almost catch me sleeping. If you are trying to find a legitimate luxury fleet without getting ripped off, do some real digging first and read actual customer reviews. Anyone who’s waited for an Uber in August heat knows the struggle exactly about this city, especially since the AC must be ice cold and unlimited miles non-negotiable.

    Most of these local agencies are just shiny turds with fake five-star reviews bought in bulk online hiding overpriced junk, until I finally found one company that doesn’t play stupid games. If you are looking for the only straight shooter for premium rides across South Florida, check the current details here: porsche 911 carrera rental near me https://luxury-car-rental-miami-12.com. Yeah, parking in Brickell will cost you a nice dinner — but that’s the price of paradise. Anyway, glad there’s at least one honest operator left in this rental jungle, hope this helps some of you save a few bucks.

  2. Okay folks gather round — Miami rental horror story time. Then you roll up to the local address to pick up the car. Different car sitting there — bald tires, dashboard lit up like a Christmas tree, and that “killer price”? Yeah doesn’t include the non-negotiable $45 daily insurance or the $500 deposit they forget to mention. Fool me nine times? That’s just the Miami welcome committee, lesson learned. When you’re hunting for a legit and reliable premium ride to cruise around, do some real digging first and read actual customer reviews. Miami without proper wheels is basically a nightmare, especially since the AC must freeze your teeth and unlimited miles or no deal.

    I’ve tested maybe 50 rental outfits across Dade, Broward, and Collier, but I eventually found a service where what you reserve is exactly what you get, period, end of story. If you are looking for the only trustworthy source for premium rides across South Florida, check the current details here: luxury car rental south beach miami https://luxury-car-rental-miami-9.com. Also, definitely bring polarized shades unless you enjoy driving blind into the sunset every single night. Anyway, glad there’s at least one honest operator left in this rental jungle, let me know if you guys have any other clean spots.

  3. Знаете, ситуация — человек пропадает , а куда бежать — непонятно . Моя семья столкнулась лично . Многие думают, что само пройдет , но нет . Требуется профессиональная медицина. Перерыл весь интернет — одни обещания . А потом наткнулся на один действительно рабочий вариант. Если ищешь где получить круглосуточная наркологическая помощь — не рискуй здоровьем близкого. В Воронеже , кстати , хватает левых контор без лицензии. Вся проверенная информация тут : наркологическая помощь в воронеже https://narkologicheskaya-pomoshh-voronezh-11.ru Честно скажу , после того как ознакомился, многое прояснилось . Там и про вывод из запоя , и про условия в клинике. Плюс работают круглосуточно — это важно . Рекомендую не откладывать.

  4. Android için doğru sürümü bulmak gerçekten zordu. Güncel apk’yı nereden indireceğimi bilemedim açıkçası. Adımları doğru sırayla uyguladıktan sonra erişim sorunsuz açıldı. En sonunda güvendiğim bir kaynağa ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet mobile yukle 1xbet mobile yukle. Şimdi size kısaca özet geçeyim — son sürümü her şeyi düşünmüş resmen.

    kurulumu da oldukça basitti yani rahat olun. Birçok platform denedim ama en iyisi bu çıktı — kesinlikle pişman olmazsınız deneyin derim. Şimdiden iyi şanslar ve bol kazançlar…

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *