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

7.376 Comentários

  1. Been using Tenobet for roughly four months on and off, mainly the slots plus the odd accumulator action come Saturday. Honestly, I got there via a mate sent me a link, so I went in fairly sceptical.\n\nGame selection is decent — I reckon about 2,500 games last time I scrolled. The usual suspects are there: Pragmatic Play, NetEnt, Microgaming, Betsoft. I live on Gates of Olympus and Sweet Bonanza, although the BTG titles is where I lose the most. The live dealer rooms are Evolution, so no complaints there — real croupiers, blackjack tables at all hours, plus Crazy Time and Lightning Roulette.\n\nThe sign-up offer on Tenobet goes to ?125 matched with some free spins, and the wagering was 30x — that’s nothing scandalous but read it properly. No no deposit freebie unless I missed it, min deposit was ?10 to kick it off. For the up-to-date codes have a look at https://clock-desktop.com/en-gb before you deposit. My gripe: the spins expire in 7 days and I lost half of mine to being busy.\n\nPayouts have been fine. E-wallet took about a day for me, card took three working days, which is normal for UK banking. You also get Neteller, Mastercard and crypto, but I’ve never used crypto on a bookie. Verification was a bit of a faff — driving licence and a bank statement, cleared overnight.\n\nThere’s no standalone app that I found, but the mobile site and loads quick enough on my phone — I’ve placed bets on it on the train plenty. Support at Tenobet took about five minutes both times, human, not a bot loop. It’s UKGC licensed, which is why I stuck around.

  2. I’ve been playing at Tenobet since about four months now, mostly weekends, usually spins plus some football action at the weekend. Not gonna lie, I got there via a mate wouldn’t shut up about it, so my expectations weren’t massive.\n\nGame selection is genuinely big — they claim over 2,500 titles if you count everything. The usual suspects are there: Pragmatic, NetEnt, Play’n GO, Big Time Gaming. I mostly stick to Gates of Olympus and Sweet Bonanza, although Bonanza Megaways gets a look in. Live side is Evolution, so no complaints there — real croupiers, roulette round the clock, and Crazy Time if you fancy something daft.\n\nThe welcome thing at Tenobet goes to ?125 matched and a batch of bonus spins, the playthrough is 35x which is about standard. There’s no free-money thing unless I missed it, you need a tenner to trigger it. If you want the current terms see tenobet casino login rather than trusting my memory. My gripe: the spins expire in 7 days and I lost half of mine to being busy.\n\nWithdrawals have been fine. Skrill came back in about a day for me, card took 2-3 days, which is just how cards are. You also get Neteller, Visa and some crypto options, though I haven’t bothered with Bitcoin. KYC was the usual — passport and a utility bill, cleared overnight.\n\nThere’s no standalone app that I found, but a browser version which honestly works — I’ve placed bets on it on the train plenty. Live chat on Tenobet took under ten minutes when I asked about a stuck bonus, human, not a bot loop. It’s UKGC licensed, which is why I stuck around.

  3. I’ve been using Tenobet since maybe six months now, mostly weekends, mostly slots during the week and a bit of accumulator action come Saturday. Honestly, I only signed up because a lad from my local sent me a link, so my expectations weren’t massive.\n\nGame selection is genuinely big — somewhere around 2,500 slots if you count everything. All the big studios are in: Pragmatic Play, Play’n GO, Play’n GO, Yggdrasil. I mostly stick to Book of Dead and Gates of Olympus, although the BTG titles is where I lose the most. The live dealer rooms are Evolution, so no complaints there — real croupiers, roulette round the clock, plus Crazy Time and Lightning Roulette.\n\nThe sign-up offer on Tenobet is up to ?125 matched and some free spins, the playthrough is 30x , so about standard. No free-money thing unless I missed it, you need ?10 or ?20 minimum. For the up-to-date codes see tenobet casino since these change. My gripe: the spins expire in 7 days and I wasted a load.\n\nCashouts are the bit I actually care about. Skrill came back in under 24 hours for me, Visa took closer to three days, which is normal for UK banking. They do Bitcoin and the usual e-wallets, but I’ve never used crypto on a bookie. KYC was the usual — driving licence and a bank statement, cleared overnight.\n\nNo app on the Play Store, it’s a browser version which honestly works — I’ve placed bets on it on the train plenty. Live chat on Tenobet took a few minutes both times, human, not a bot loop. Licensed and regulated for UK players, which is the first thing I check these days.

  4. I’ve been betting with Tenobet since roughly six months now, mostly weekends, mainly spins during the week and a bit of football action on Saturdays. Honestly, I got there via a lad from my local wouldn’t shut up about it, and I half expected it to be rubbish.\n\nThe slots side is better than I expected — I reckon about 2,500 slots if you count everything. All the big studios are in: Pragmatic Play, NetEnt, Play’n GO, Betsoft. My go-tos are Sweet Bonanza and Book of Dead, though Bonanza Megaways is where I lose the most. Live side is Evolution, which is basically the gold standard — real croupiers, blackjack tables at all hours, plus Crazy Time and Lightning Roulette.\n\nThe sign-up offer with Tenobet is up to ?125 matched plus some free spins, the playthrough is 35x , so nothing scandalous but read it properly. There’s no no deposit freebie as far as I could see, min deposit was ?10 to trigger it. If you want the current terms see [url=https://clock-desktop.com/en-gb]tenobet casino login[/url] since these change. The one thing that annoyed me: the spins expire in 7 days and I lost half of mine to being busy.\n\nPayouts are the bit I actually care about. Skrill came back in about a day for me, card took 2-3 days, which is just how cards are. You also get Neteller, Visa and some crypto options, though I haven’t bothered with Bitcoin. The ID check was a bit of a faff — driving licence and a bank statement, sorted same evening.\n\nThere’s no standalone app that I found, but a browser version and it’s fine — I use it more than desktop now. Support at Tenobet took about five minutes when I asked about a stuck bonus, actual person, decent English. Licensed and regulated for UK players, which is the first thing I check these days.

  5. united states online live casino, australian online casino deposit bonus and
    online gambling laws new no deposit casino bonus codes 2022
    [Tilly] zealand, or bet365 craps strategies usa

  6. roulette online canada, dollar 5 deposit online casino united states and canada margaritaville casino biloxi accident
    (Barbra) download
    free game, or best real money pokies new zealand

  7. Лейбл Rick Owens является влиятельное явление в сфере fashion-индустрии, которое формирует собственные каноны стиля.
    Марка славится высоким уровнем пошива и фирменным подходом, что соединяет премиальность и свободу.
    Вещи марки снискают уважение критиков и выступают примером для других дизайнеров.
    Rick Owens

Deixe um comentário

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