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

962 Comentários

  1. Online shoppers often value websites that reduce complexity and present products in a logical structure for faster navigation and better decision making Clean Speed Goods Zone – This version offers a clutter free environment where items are easy to find and browse efficiently

  2. Users who enjoy minimalistic designs often prefer websites that focus on speed and simplicity without unnecessary visual clutter during browsing sessions Minimal Fast Goods Zone – The interface keeps things simple while improving browsing speed and efficiency

  3. Users browsing digital marketplaces frequently enjoy platforms that break traditional design patterns by combining unexpected natural themes into a cohesive shopping experience frostdune goods showcase – This reflects a creative brand concept where curated lifestyle products are presented with a balanced mix of frost and desert dune inspiration for a unique visual appeal.

  4. Users who enjoy modern shopping experiences often choose well organized platforms like Smart Trend Store Ultimate Hub – featuring clean layout design, intuitive navigation systems, and regularly updated trend collections that enhance usability and make online shopping faster and more convenient overall

  5. Online shoppers who enjoy colorful and energetic browsing experiences often look for platforms that highlight neon inspired products and exciting deals in a fun and engaging way Neon Corner Explorer Hub making discovery more enjoyable – The platform is often appreciated for its vibrant design style and simple navigation that helps users easily explore neon themed offers without confusion

  6. Online shoppers often highlight how a good variety of products can make browsing more engaging and enjoyable over time, particularly on copperpetal shopping portal – the experience was pleasant since items seemed interesting and left a positive impression that made the site feel worth checking again in future browsing sessions.

  7. As I navigated across several online pages, I encountered see crown site and experienced smooth navigation along with clear content, resulting in a pleasant and well structured browsing experience throughout.

  8. While going through a few online stores, I encountered explore craft selection and it looked well organized and inviting – The items feel authentic and thoughtfully arranged, making it enjoyable to browse without any distractions.

  9. I was exploring different marketplaces when I found have a look here – Everything seems neatly arranged, which makes shopping online easier and more enjoyable with a clear and structured browsing experience.

  10. I was browsing randomly when I found a site that felt clean and artistic with a gentle structure and easy to follow design silver petal online hub – Beautiful collection here worth exploring for daily home inspiration today, offering calming ideas for home decoration.

  11. While scrolling through different pages I came across a store that felt elegant and soft with a visually relaxing and organized layout silver petal selection – Beautiful collection here worth exploring for daily home inspiration today, offering inspiration for warm and inviting home spaces.

Deixe um comentário

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