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

712 Comentários

  1. While analyzing ecommerce platforms optimized for variety and user accessibility, I noticed that all-in-one store systems improve engagement by offering everything together, which stood out when reviewing all products in one portal – The store feels comprehensive, with many different items available in one place for easy exploration.

  2. During a comparative review of digital shopping platforms optimized for speed, I discovered that responsiveness improves satisfaction and flow, which became evident when exploring rapid load marketplace center – The platform loads quickly, and browsing feels smooth with no delays or interruptions.

  3. During my search for mobile accessories, I stopped at check this page and found a decent selection of items, where the designs look modern and attractive enough to catch attention quickly.

  4. While browsing through various online shopping platforms, I came across this simple deals page and it feels very straightforward, making the whole shopping experience less complicated and easier to navigate for users who just want quick access to basic products.

  5. Shoppers who value convenience in online retail often prefer platforms that provide smooth browsing with a wide variety of goods all located in one centralized and easy to navigate place Valley Silk Product Goods Hub – offering a clean e commerce platform where multiple product types are combined in one place with smooth browsing flow designed to make shopping easier and more efficient for everyday users

  6. Shoppers who value simplicity in online marketplaces often choose platforms that provide smooth shopping flow with a variety of goods available in one centralized location making browsing faster and more efficient Valley Silk Select Goods Market – offering a well organized shopping experience where diverse products are displayed in one place with smooth navigation designed to enhance usability and help users explore items easily across categories

  7. Fashion enthusiasts looking for stylish clothing often prefer brands that offer curated aesthetic collections reflecting modern trends and versatile design approaches Contemporary Wardrobe Fashion Hub – offering a curated fashion platform featuring modern clothing collections and aesthetic inspired designs that emphasize elegance versatility and comfort for individuals seeking refined and expressive personal style choices

  8. Users exploring online marketplaces often look for structured navigation and clean design layouts minimal design storefront These features make it easier to browse products and compare options efficiently – Platform emphasizes simplicity helping users move through sections without confusion smoothly overall

  9. Shoppers who value convenience often turn to digital marketplaces that connect them directly with global sellers and reduce delays in product discovery across various categories worldwide instant buy portal helping users access international goods quickly while maintaining a simple and user friendly browsing structure – It emphasizes how modern e-commerce solutions focus on removing barriers between customers and global product availability.

  10. Many shoppers value online platforms that simplify international transactions and allow them to browse global products without unnecessary complexity or delays global easy buy network supporting fast access to a wide variety of items while improving the overall shopping experience – This shows how digital innovation is shaping faster and more efficient retail environments.

Deixe um comentário

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