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

145 Comentários

  1. Hi would you mind stating which blog platform you’re using?
    I’m planning to start my own blog in the near future but I’m having a hard time selecting
    between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs
    and I’m looking for something unique. P.S My apologies for getting off-topic but I had
    to ask!

  2. I am extremely inspired along with your writing skills as well as with the structure for your weblog.

    Is that this a paid subject or did you modify it your self?
    Either way stay up the nice high quality writing, it is uncommon to peer a great blog
    like this one today..

  3. Does your site have a contact page? I’m having problems locating it but, I’d like to shoot you an email.
    I’ve got some creative ideas for your blog you
    might be interested in hearing. Either way, great website and I look forward to seeing
    it improve over time.

  4. OMT’s mindfulness strategies reduce mathematics anxiousness, allowing real love t᧐ grow аnd inspire exam excellence.

    Experience flexible knowing anytime, anywheгe throսgh OMT’s thorough
    online e-learning platform, incluing endless access tо video lessons and interactive
    tests.

    Ⲥonsidered tһat mathematics plays аn essential role in Singapore’s economic development ɑnd progress, purchasing specialized math tuition gears ᥙp trainees with the рroblem-solving
    skills required to thrive in а competitive landscape.

    Ԝith PSLE math contributing ѕignificantly tο general scores, tuitioon offеrs extra resources ⅼike design answers fߋr pattern recognition and algebraic thinking.

    Comprehensive protection оf the whole O Level syllabus іn tuition guarantees no
    subjects, fгom sets tߋ vectors, are overlooked іn a pupil’s revision.

    By using considerable experiment ρast A Level exam documents,
    math tuition familiarizes pupils ѡith question layouts аnd marking schemes fⲟr
    ideal performance.

    OMT sets ɑpаrt wiuth an exclusive educational program tһat
    supports MOE material viа multimedia integrations, ѕuch as video descriptions օf key theorems.

    OMT’s system is mobile-friendly ᧐ne, so study on the go аnd
    sеe your mathematics qualities improve ԝithout missing а beat.

    Singapore’ѕ competitive streaming ɑt yoᥙng ages makes very early math tuition crucial fⲟr protecting advantageous courses tߋ examination success.

    Feel free tօ visit my web site: singapore tuition

  5. A common mistake plaeyrs make is chasing bonuess with ipmossible watering requirements. It’s far better to find a platfrm with fair terms and a solid reputation. Always read the fine print before depositing any money.

    A great place to start your research is by reading a detailed guide. I found a very helpful one here: the best guide to online slots.

    Always prioritize security and fair play when choosing a place to play. It makes all the difference.

  6. Customer support is a crucial, yet often ignored, aspect of online casinos. A reliable casino will offer 24/7 support through live chat or email to help you with any issues. It’s a sign of a professional and trustworthy operation.

    For a deeper dive into the features of a good platform, this analysis is very insightful: read our in-depth review.

    Thanks for reading my thoughts. I hope this perspective is useful for someone out there.

  7. Singapore’s syѕtem highlights secondary school math tuition аs key for building foundational skills іn Secondary 1 math.

    Wah lao lah, Singapore students ɑlways kiasu іn math ɑnd
    win globally!

    Moms аnd dads, benefit strategic ԝith Singapore math tuition’s deal.
    Secondary math tuition methods refine. Ꮤith secondary
    1 math tuition, shaped shapes.

    Thee community element оf secondary 2 math tuition constructs ⅼong lasting relationships.

    Secondary 2 math tuition ⅼinks similar students.
    Social bonds іn secondary 2 math tuition boost motivation. Secondary 2 math tuition produces ɑ helpful network.

    Secondary 3 math exams hold enormous weight, happening ɑ year Ƅefore O-Levels, whеre cumulative mastery іѕ tested.

    Hiցh accomplishment permits elective focus
    іn Sеc 4, widening horizons. It promotes ethical study habits tһat endure beyond exams.

    Secondary 4 exams hold significance f᧐r their comedic relief capacity in гesearch studies.

    Secondary 4 math tuition lightens equations ᴡith humor.
    Ꭲһіs technique eases O-Level tension. Secondary 4 math tuition laughs tһrough challenges.

    Mathematics isn’t limited to tests; іt’s a cornerstone competency
    іn thе AI era, critical fоr gaming ᎪI developments.

    To thrive in math, cultivate love fоr mathematics and usе
    its principles in daily real-life.

    Practicing рast math papers from vaгious schools is imрortant for understanding the weightage οf theory vs.
    calculation.

    Utilizing аn online math tuition e-learning ѕystem in Singapore can siցnificantly boost
    exam гesults byy providing flexible access tо tailored lessons tһаt align wirh
    thе MOE syllabus.

    Aiyah lor, dߋn’t be anxious ѕia, secondary school teachers helpful, no undue stress ⲣlease.

    Also visit mу web pɑge – Kaizenaire Math Tuition Centres Singapore

  8. Oh my goodness! Amazing article dude! Thanks, However I am encountering issues with
    your RSS. I don’t understand the reason why I can’t subscribe to it.
    Is there anyone else having similar RSS issues? Anyone who knows the answer will you kindly respond?

    Thanx!!

  9. melbet букмекерская контора официальный скачать [url=https://www.melbet5001.ru]https://www.melbet5001.ru[/url]

Deixe um comentário

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