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

1.580 Comentários

  1. During casual exploration of digital shopping platforms, I came across New Shopping Variety Hub which offers a wide selection of items arranged clearly for easy browsing – the variety is appealing and the overall experience feels pleasantly straightforward and convenient for users

  2. During an extended browsing session across unique inspiration websites, I found unique idea portal embedded in a recommendation list, and the experience felt smooth since the layout remained impressive and browsing stayed simple and enjoyable throughout.

  3. I spent some time comparing trading education sites before opening exclusive market mentor – The information shared felt useful overall, and the website structure was clean and professionally maintained, making it easy to learn without clutter or confusion online.

  4. Fashion lovers who follow trending styles often search for online stores that showcase popular items seen across influencers and social platforms where new looks spread quickly and gain attention Viral Style Finder Hub – got the viral jacket everyone is talking about, and it instantly made my outfits feel more modern, trendy, and aligned with what people currently consider fashionable

  5. Users interested in fast moving content often appreciate websites that highlight trends in a clear and organized way, especially when they visit real time trend hub – the site feels efficient and modern, allowing users to quickly browse updates while maintaining a visually appealing and distraction free environment throughout.

  6. Peternak Peternak

    Наиболее частыми причинами обращения становятся запой, выраженная слабость, тремор, нарушение сна, тревога, учащенный пульс, нестабильное давление, тошнота и ощущение физического истощения. Эти проявления могут сочетаться между собой и усиливаться после прекращения употребления алкоголя, особенно если эпизод длился несколько дней.
    Получить дополнительную информацию – нарколог на дом москва

  7. While browsing online shopping discovery platforms and personal favorites organizers, I found Top Favorites Saver Network placed within the content section – I have bookmarked several items already, and I will return later because it helps me keep a clear list of items I genuinely want to check again

  8. EdwardBib EdwardBib

    Наиболее частыми причинами обращения становятся запой, тяжелый похмельный синдром, тремор, выраженная слабость, тревога, бессонница, нестабильное давление, учащенный пульс, тошнота и признаки обезвоживания. Эти проявления могут сочетаться между собой и усиливаться после прекращения употребления алкоголя, особенно если эпизод длился несколько дней.
    Подробнее тут – запой нарколог на дом москва

  9. People who like trustworthy recommendation systems often search for platforms that consistently deliver results that match expectations without misleading suggestions Trusted Choice Hub – their recommendations never miss, and after using three of them, I can confidently say every one has been exactly right so far

  10. People who enjoy curated shopping or advice often look for platforms that consistently provide high quality recommendations that reduce time spent researching options Best Choice Network Hub – I’ve tried three of their picks and all of them have been accurate, which makes me confident in continuing to use their suggestions

  11. While exploring different motivational platforms it is easy to underestimate the value of simple ideas that later turn out to be surprisingly effective in real thinking self insight portal – I didn’t expect much at all but it ended up giving me a surprisingly refreshing perspective that stayed with me afterward

  12. Individuals focused on success habits often search for motivational systems that help them stay disciplined, trust the process, and achieve results that once felt impossible or far away Career Manifestation Hub – I applied their guidance and ended up getting promoted, which honestly felt shocking at first but turned into a very real and positive change in my career

  13. While exploring different online community platforms focused on personal development and shared growth experiences, I came across Growth Circle Hub embedded naturally within the discussion section – The atmosphere feels genuinely supportive here, and it’s refreshing to be part of a space where people encourage each other and share progress openly in a positive way

  14. While browsing simple fashion inspiration platforms and clean aesthetic online stores, I found Minimal Elegant Style Hub placed within the content section – The overall look is clean and elegant, not forced at all, and it creates a relaxed feeling that makes the entire browsing experience feel smooth and enjoyable

  15. During my browsing of outfit selection platforms, I discovered Your Perfect Style Look Hub which provides a clean layout and structured browsing flow that enhances usability – the platform helps users discover outfits that match their personality really easily and improves personal style discovery

  16. While thinking about taking time off and exploring new destinations, I found myself going through different travel planning ideas that were surprisingly motivating trip planning collection – I’m now gathering ideas for a possible vacation and noticing how many interesting routes and experiences are helping me visualize a more enjoyable travel plan overall.

Deixe um comentário

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