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

3.371 Comentários

  1. Been there, done that, got the overpriced tow truck receipt. Swear some of these “luxury” fleets down here should be in a museum instead of on the road. You land at MIA, tired, grab an Uber to the rental office, and bam — surprise $1500 hold on your card. Fool me four times? Not happening, lesson learned. When you genuinely need a proper and reliable premium ride to cruise around, skip the airport counters entirely. Miami without a decent whip is basically a punishment, especially since the AC must be ice cold and you want zero mileage games.

    Most of these local agencies are just polished websites hiding the same overpriced junk, until I finally stumbled on one provider that doesn’t play games. If you are looking for the only straight-up source for premium wheels in South Florida, check the current details here: mercedes benz rental miami https://luxury-car-rental-miami-4.com. Yeah, parking in Brickell will cost you a small mortgage — but that’s city life. Just drive safe out there and maybe pass on that overpriced roadside assistance add-on. hope this helps some of you save a few bucks.

  2. Ребята, выручайте! Купил кресло б/у, каркас норм, но ткань в ужасном состоянии. Теперь мучаюсь — какую взять ткань для мебели, чтобы и выглядело достойно, и кошачьи когти выдержало. мебельная ткань цены https://tkan-dlya-mebeli-1.ru Кто разбирается в тканях для мебели, подскажите, что сейчас берут. Буду благодарен за любые советы, особенно от тех, кто сам перетягивал.

  3. Знаете, бывает такое — человек в ступоре , а тащить куда-то страшно . Моя семья это пережила года два назад . Сидишь, не знаешь за что хвататься . Начинаешь обзванивать знакомых , а вокруг одни обещания . Пока кто-то не подсказал один реально работающий вариант. Требуется срочная помощь — а ехать куда-то нет физической возможности , то нужно вызывать врача. Речь конкретно про нарколога на дом . У нас в столице, если честно, хватает шарлатанов . Вся проверенная информация ниже по ссылке: наркологическая помощь на дому наркологическая помощь на дому Честно говоря , после того как вник в детали, многое прояснилось . Там и про капельницы подробно , и про последующее кодирование. Плюс анонимность — это важно . Рекомендую не откладывать.

  4. Ребята, выручайте! Кот старый диван в клочья разодрал, надо перетягивать. Посоветуйте нормальную мебельную ткань для частого использования. ткань для диванов https://tkan-dlya-mebeli-1.ru А то везде пишут разное, а на деле хочется купить ткань мебельную и забыть на пару лет. Буду благодарен за любые советы, особенно от тех, кто сам перетягивал.

  5. Alright listen up because this Miami rental mess is getting out of hand. You find a killer deal online — photos look pristine, price seems fair, terms almost reasonable. Different vehicle parked outside, curb rash on every rim, and that “all-inclusive rate”? Ha, doesn’t include the mandatory $300 cleaning fee or the $25 per day toll pass you can’t decline. Living here six years and still almost fall for this stuff sometimes. If you are trying to find a legitimate vehicle without getting ripped off, stay far away from the airport rental center. Miami without proper wheels is basically a nightmare, especially since the AC must be arctic and unlimited miles non-negotiable.

    Most of these local agencies are just polished garbage with decent Google reviews bought somewhere, but I eventually found a service where what you reserve is exactly what rolls up, no surprises. If you are looking for the only trustworthy source for premium vehicles across South Florida, check the current details here: luxury auto rental luxury auto rental. Yeah, parking in South Beach will cost you a nice dinner — but that’s the price of admission. Just drive safe out there and definitely skip that “damage waiver” upsell — total scam 99% of the time. let me know if you guys have any other clean spots.

  6. Случается, когда уже не до раздумий — близкий ломается, а что делать — совсем не знаешь . Моя семья такое пережила пару лет назад . Сначала кажется, что обойдется , но нет . Требуется реальная медицина. Перерыл весь интернет — одни обещания . А потом наткнулся на один действительно рабочий вариант. Если ищешь где получить анонимное лечение алкоголиков — не ведись на дешевые акции . У нас в Воронеже, кстати , хватает шарлатанов . Реальные контакты ниже по ссылке: платная наркологическая клиника платная наркологическая клиника Откровенно говоря, после того как ознакомился, многое прояснилось . И про кодирование, и про условия в клинике. Плюс работают круглосуточно — это важно . Рекомендую не откладывать.

  7. Ребята, кто уже делал ремонт? Нужно немного сдвинуть мокрую зону санузла. Мосжилинспекция сразу завернёт любые несогласованные работы. Я уже знатно намучился со всей этой бюрократией, Короче говоря, единственное, что реально работает в наших реалиях — это доверить подготовку документов профессиональным инженерам, чтобы потом не было проблем со штрафами.

    Сами полностью проект подготовят, Жмите на источник, чтобы случайно не потерять контакты, заказать проект перепланировки заказать проект перепланировки. Без готового проекта даже не начинайте ломать стены, Обязательно перешлите этот пост тому, кто тоже сейчас затеял ремонт!

  8. Been burned enough times to write a book on this nonsense. Then you actually go to the local office to pick it up. Completely different car waiting for you, check engine light on, and that “low rate”? Doesn’t include the mandatory insurance they somehow forgot to mention. Seven years in South Florida and I still almost fall for these tricks. If you are trying to find a legitimate luxury fleet without getting ripped off, do some real digging first and read actual customer reviews. Miami without real wheels is basically a punishment, whether you are doing Brickell happy hour, Bal Harbour shopping, or a spontaneous drive down to the Keys.

    I’ve tried maybe 40 rental companies across Dade, Broward, and Palm Beach, until I finally found one outfit that actually delivers what’s promised. If you are looking for the only straight shooter for premium rides across South Florida, check the current details here: renting luxury cars near me renting luxury cars near me. Also, definitely bring polarized shades unless you enjoy driving into the apocalypse every single evening. Anyway, glad there’s at least one honest rental joint left in this town, hope this helps some of you save a few bucks.

Deixe um comentário

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