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

6.133 Comentários

  1. united kingdom casino no deposit bonus 2021, best slots online canada and slot machines sale united states, or gambling games you
    can win real money (Cassandra) facts australia

  2. Right — been on this thing for something like a few months now and it’s basically bookmarked at this point, so figured I’d say something since someone asked me last week. Am based in the UK, generally bet football and racing, a fiver here and there, so take it how you like.

    How I found it was genuinely pretty stupid — I never could figure out what an e/w payout actually came to once you get five places instead of three. I used to just wing it and then be surprised. Now stick my stake in before every slip, even a simple single bet.

    The single bet calculator tool is the bit I use most — you put in the price and your stake and it spits out profit and total return with no faffing, fractional or decimal, doesn’t matter. It also handles the multiples — acca and treble maths, lucky 15s, yankees, and that’s where I always got it wrong. If you want a look, it’s over at match betting calc — free, no signup.

    What really made a difference was the nerdier extras. The probability thing and it makes obvious what margin’s baked in, and there’s the kelly criterion calculator — I run quarter kelly since full stakes are far too aggressive. The dutch tool is handy too when I’m splitting a race.

    It’s not perfect mind. The interface looks very functional, let’s say — not much flash, looks like it was built by someone who cares more about maths than colours. On my phone it works but the lucky 63 breakdown are a squeeze. There’s no proper app, it’s a website and that’s it — doesn’t bother me but worth saying.

    Right, that’s me. Doesn’t cost anything, barely any ads, does what it says. Anyone who still adds it up in their head, have a look — it’s saved me plenty of dumb bets I’d have regretted.

  3. Right — have been messing about with this thing for something like five months now and it’s basically bookmarked at this point, so figured I’d chuck my thoughts in since a mate asked me a few days back. Am UK based, generally stick to footie and the horses, small stakes, so take it how you like.

    How I found it was actually a bit daft — I couldn’t ever work out what an each way payout actually came to when the place terms changed. I used to just guess and moan when the payout landed. These days I type the odds in before every slip, even the boring singles.

    The single bet calculator tool is the one I’m on daily — you put in your stake, the odds and it shows the return with no faffing, fractions or decimals. There’s also the fiddly ones — trebles maths, a lucky 15, patents and yankees, honestly that’s where I’d always got it wrong. If you fancy a poke about, it’s here coral bet calculator lucky 15 and it’s free with no account nonsense.

    One thing that really changed how I bet was the nerdier extras. They’ve got an odds-to-probability calculator that shows how much the bookie’s taking, and there’s the kelly tool — I stick to fractional kelly since full stakes are terrifying. Dutching calculator is decent when I’m covering two or three runners.

    It’s not perfect mind. The interface looks very functional, let’s say — zero polish, it’s clearly function over form. Phone-wise it’s usable but the lucky 63 breakdown need a bit of scrolling. There’s no proper app, it’s browser only — slight shame but worth saying.

    So yeah. Free, no ads shoved in your face, does the job. Anyone who still adds it up in their head, try it — saved me a fair few “wait, that’s it?” moments.

  4. Right — been on this thing for something like a few months now and it’s basically bookmarked at this point, so figured I’d say something since a mate asked me last week. Am in the UK, mainly stick to footie and the horses, nothing mad, for context.

    How I found it was honestly a bit daft — I could never figure out what an e/w payout actually was when the place terms changed. I’d just guess and moan when the payout landed. Now I punch the numbers in before every slip, even a straight one-selection punt.

    Their single bet calculator tool is the one I open most — type in your stake, the odds and it shows returns instantly, fractional or decimal, doesn’t matter. Same tool covers the bigger stuff — acca and treble maths, lucky 15 and lucky 63, patents and yankees, which is where most people I know lose track. If you fancy a poke about, it’s here what is a trixie bet? — free, no signup.

    What really shifted things for me were the nerdier tools. They’ve got an odds-to-probability converter that shows how much the bookie’s taking, plus a kelly staking calculator — I stick to fractional kelly as the full version is far too aggressive. The dutching one is handy too for when I’m covering two or three runners.

    Couple of gripes. The layout looks very functional, let’s say — no frills, which honestly I don’t mind but some will. On my phone it’s usable although the bigger tables make you pinch and zoom. And no app, just the site — fine by me but worth saying.

    So yeah. Costs nowt, no ads shoved in your face, does what it says. If you even now works out returns on a calculator app, try it — saved me a load of “wait, that’s it?” moments.

  5. Vengo jugando como cinco meses con 888starz y sinceramente tenia dudas al principio, ya que por aqui te cansas de sitios que se caen cada dos por tres. Darse de alta me llevo un rato minimo, correo, contrasena y listo, y el minimo para depositar ronda los unos pocos euros, que para probar viene de lujo.

    En cuanto a maquinas tienen un catalogo enorme — andan por mas de 7.000 titulos de proveedores como Pragmatic Play, NetEnt, Play’n GO, Betsoft y Yggdrasil. Mis habituales son Gates of Olympus y Sweet Bonanza, si bien he tocado tambien alguna de Microgaming. Lo que si el filtro por proveedor a veces se atasca cuando hay tantisimo.

    La parte de crupier real corre a cargo de Evolution y ahi no hay queja: ruletas con crupieres de verdad, los game shows tipo Crazy Time para el que le guste el show. El bono de bienvenida ronda el 100% mas 150 tiradas, hay que apostarlo x40, que no es regalado pero tampoco un robo. Va rotando alguna promo sin deposito, conviene revisar los terminos actualizados desde 888starz codigo promocional antes de registrarte.

    Los cobros es lo que mas me ha sorprendido. Saque la semana pasada con Skrill y entro casi al momento. Por Visa o Mastercard tarda mas, eso ya es cosa del banco. Aceptan tambien Neteller, Bitcoin que es lo mas rapido con diferencia.

    Desde el movil funciona bien, tienen app para Android aunque la web movil me va igual de bien. El soporte te contesta en castellano, me atendieron rapido con una duda de documentacion. Licencia de Curazao, asi que no es un.es regulado y eso cada uno que lo valore. Yo sigo ahi, con sus cosas, y sin volverse loco con los bonos.

  6. Ya llevo como cinco meses con 888starz y sinceramente no esperaba gran cosa, ya que por aqui te cansas de casinos que prometen mucho. El registro me llevo tres minutos, los datos basicos y fuera, y el minimo para depositar ronda los unos pocos euros, que para probar viene de lujo.

    De slots hay una barbaridad — andan por 8.000 juegos repartidos entre Pragmatic Play, NetEnt, Play’n GO, Betsoft y Yggdrasil. Mis habituales son Gates of Olympus y Sweet Bonanza, eso si de vez en cuando pruebo los Megaways. Lo que si el buscador va un poco lento cuando el catalogo es tan bestia.

    La zona en vivo es de Evolution, basicamente y se nota la diferencia: mesas con crupier en espanol, Crazy Time y Monopoly Live si te va el rollo espectaculo. El paquete de bienvenida es de un 100% hasta 300€ con 100 tiradas gratis, hay que apostarlo x35, que es lo normal del mercado. Suele haber bonos sin deposito de vez en cuando, yo miraria los terminos actualizados en 888starz app for android antes de meter dinero.

    El tema de sacar pasta es lo que mas me ha sorprendido. Retire hace poco via e-wallet y lo tuve en 40 minutos. Con Visa hay que esperar unos dias, nada nuevo. Aceptan tambien Neteller, cripto si no te asusta el tema.

    El movil cumple, hay APK para Android pero yo uso el navegador y me sobra. El chat de ayuda responde en espanol, tardaron unos 10 minutos cuando pregunte por el KYC. Licencia de Curazao, que no es la DGOJ y eso cada uno que lo valore. Yo sigo ahi, con sus cosas, y sin volverse loco con los bonos.

Deixe um comentário

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