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.410 Comentários

  1. While exploring shopping websites online, I found Dream Finds Shopping Collection Hub which features structured content and a clean layout that enhances user experience – interesting products are available and browsing felt smooth and surprisingly enjoyable today in a very natural flow

  2. While exploring online collaboration hubs I found a helpful platform at connect growth community – the environment feels structured yet lively allowing users to connect discover valuable information and grow together through consistent interaction and shared participation across different topics

  3. While exploring online marketplaces I discovered a platform that provides a bright shopping experience with visually appealing product displays and easy navigation Bright Everyday Cart – the website feels simple and engaging allowing users to browse products easily while enjoying a smooth and attractive online shopping environment today for everyday use

  4. People who value stylish product presentation often search for ecommerce platforms that feel clean and structured, especially when they discover refined style outlet portal – the platform feels smooth and well designed, helping users explore collections easily while enjoying a calm and visually appealing shopping environment overall.

  5. People who appreciate organized online stores often search for platforms that keep everything visually clean and easy to navigate, especially when they visit elegant product discovery space – the site feels structured and appealing, making it easy for users to browse items while enjoying a smooth and refined shopping experience overall.

  6. I had been searching for reliable financial content before discovering modern wealth hub – The platform felt structured and easy to use, and the helpful content made navigation simple without clutter or unnecessary distractions affecting the browsing experience online.

  7. Online shoppers searching for trendy and stylish apparel usually prefer boutiques that maintain a simple and organized layout, and boutique style finder – helps users discover clothing collections more easily through structured sections and visually clear product displays overall.

  8. During my browsing of online selection hubs, I discovered The Corner Best Collection Hub which offers a clean layout and smooth usability – nice collection available and I liked the simple layout combined with easy navigation that improves overall experience

  9. While browsing online lifestyle collections, I discovered Unique Living Experience Hub which offers a modern interface and structured navigation that enhances usability – overall it feels like a nice website and browsing categories is smooth, visually appealing, and comfortable across all sections

Deixe um comentário

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