How to embed thumbnails from flickr that link to bigger colorbox images with drupal and ckeditor - drupal-7

After 1 day searching and testing I'm wondering if it's possible to embed or insert a photo from flickr (or from google+ it's the same problem) in a node using drupal 7, ckeditor 4.5.6 and colorbox (for example).
More precisions:
What I want to achieve is to embed thumbnails from flickr that I can resize and move (like shown here) and are compatible with colorbox (or anything similar).
I've been testing all day with the ckeditor plugins image2, autoembed and embed, it's quite impressive the potential of it, but every flickr link pasted in the editor turns into a gallery (??) that is not resizable, and I don't need the whole gallery.
An good example of what I'd want here but this is done with a flickr filter of the drupal flickr module, it does the job but without the awesomeness of the ckeditor widget system, meaning : I have to copy every link, my user id, change the css, for each photo...
Has anybody done that ?

Related

Twitter summary card image is not always displayed

So i have a website which is builded with NextJS and i'm using Next SEO plugin for filling the meta tags necessary for twitter and facebook info...
I have card type option set to summart_large_image
<meta name="twitter:card" content="summary_large_image">
i can see that it's added to the website and it does work for some of the posts ... but something weird is happening , for example two of the tweets will have card with large image and then three of them would be just plain text with the link ...
I have a CMS in Silex where it's implemented automatic posting on twitter with twitter's API... and basicly i'm just posting a string with the link and some additional comment about it ... when i try do debugg with the twitter card validator it does work properly but not on my account ...
here's a screenshot for better explanation, the red ones are cards with large image and the blue ones have only text with link
All the posts have the same structure and equal size provided for the og:image tag.... all of them are equal basicly
Edit:
This is the twitter account in question for more clarity : https://twitter.com/someecards
Edit:
Now i even got a summary card with small image on a post which contains meta tag "summary_large_image" , and when i run the same link throught the link validator i'm getting the desired result
Link validator:
It looks like sometimes Twitter is not able to build the Card Preview (maybe a timeout when fetching the data or image) and, after that, the link is never accessed again, hence the preview is not rebuilt.
You can validate the preview with the Twitter Card Validation tool but it will probably work and show the correct link.
I have explained how the Card Preview works and limitation in a blog post, and created a tool to work around it.
In your case I would make sure the page is built before you post it onto Twitter, to make sure it is ready and served with minimum delay when the Twitter bot access it to generate the preview.

How to create a ReactJS zoomable image lightbox

I'm creating a gallery of images in ReactJs. There are a lot of examples online, but i didn't find anything that is perfectly responsive on desktop browsers and also completely mobile friendly.
In particular, when an image is opened on the mobile browser, i need to be able to zoom the photo with a double tap, and close the photo when i drag it to the bottom
I already tried all the principal solution that i found online.
For example, i tried all of these https://reactjsexample.com/tag/lightbox/
and much much more.
I also tried different approaches like CSS rules, Viewport rules, create a simple zoomable html div, etc... But nothing worked.
Basically, what i what to achieve is exactly something like this: https://www.lucapetruzzi.com/gallery/1
Created thanks to this library: https://photoswipe.com/ that unfortunately i can't use in React.
(I also tried the react-photoswipe and react-photoswipe-2 libraries but it seems not maintained and not working with new versions of React)
Thank you for any help
So for previous comments, I wrote a snippet for you, check here
Here are the mainly steps:
use npm install photoswipe so DON'T need to include builded js but NEED to include css in index.html (or you can import in App.css)
write the markup in js component
init it by click button or in useEffect

SoundCloud widget custom edit

I'm using the following code to create a custom SoundCloud player:
https://github.com/soundcloud/soundcloud-custom-player
What I have done is:
http://epopengate.org/wp-content/themes/epopengate/test/examples/sc-player-standard.html
What I would like to do is have the track listing appear when the user clicks on the info button...I would like to save space and I don't really need to display what's being shown in that window anyway. What would I need to change in order to do that? I assume something in the JS file, but I'm not sure what to move around to make it work.
I know there is a widget that works similar here: https://soundcloud.com/pages/widgets - but it's flash based so Apple devices would not be able to use it and by creating a track listing that appears when the Info button is clicked, increases mobile compatibility by allowing the user to click because you can't hover with mobile devices.
Thanks,
Josh
You can use HTML5 widget, which is the default option for embeds from SoundCloud now – https://blog.soundcloud.com/2011/11/03/html5/
These will work fine on iOS and Android.

Handling Images in drupal 7

How to add single image in drupal in a block region and how to manage slideshow in drupal 7.
I am newbie in drupal Please give me step by step explaination.
You can add a simple image by just including it in code <img src="<url>"> and selecting the FULL HTML Filter
There are tonnes of options for slide shows, see the list here:
http://drupal.org/node/418616
You can add an image in the block region by creating a custom block and use a PHP code
sites/default/files/image-name.jpg">
For creating a slideshow in drupal 7, you can use view slideshow cs module.
For making a slideshow in drupal you have to follow few steps :
Create a content type for slideshow
create view and use a slideshow in the setting
add the images using content type
enjoy the slideshow

Drupal 7 - Placing Content Body in a Lightbox

I am working on a drupal 7 site that utilizes the calendar module. I've created a content type "event" which includes an event title, description, and time.
I'd like to display this information into a lightbox of some sort. I've researched the lightbox2 and colorbox modules but it seems that those are mainly used for media.
Has anyone done this and/or are there any suggestions as to how I can accomplish this?
The calendar module has a popup option built in. If you'd like another alternative you can look at the Fullcalendar module which has color box integration and is a better calendar in my opinion anyway.

Resources