daveybrown
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Lightbox] Fresh WP install, Twenty Thirteen theme and curl enabled.Hi navobel,
Awesome to hear that my post might have helped you out!
Davey
Forum: Plugins
In reply to: [Simple Lightbox] Issues after domain renameThe problem that I mentioned above was not an issue with the plugin.
I think, because the plugin uses curl, it did not work well with my modified hosts file and the default curl settings.
It would be good if somebody could confirm if this was likely the case.
Forum: Plugins
In reply to: [Simple Lightbox] Fresh WP install, Twenty Thirteen theme and curl enabled.The problem that I mentioned above was not an issue with the plugin.
I think, because the plugin uses curl, I should have waited longer for the DNS to propagate after updating my nameservers.
Would be good if somebody could confirm if that is the case.
Forum: Plugins
In reply to: [Simple Lightbox] Issues after domain renameHi Archetyped,
Do you have a list of things that I could check to do the trouble shooting myself? The .js files seem to be loaded correctly but I’m not sure what else to look for.
Davey
Forum: Plugins
In reply to: [Simple Lightbox] Issues after domain renameThank you! I didn’t expect this level of support. If you don’t mind taking a look the site is in development at the moment. Unfortunately to view it you have to edit your hosts file to include the following lines.
217.147.82.6 jo_larsenburnett.co.uk 217.147.82.6 www.jo_larsenburnett.co.uk
(remove _s)
The original development site, where SLB is working fine is https://www.jo_lb.sandybox.net/illustration/ (remove _s)
Many thanks
Davey
Forum: Plugins
In reply to: [Simple Lightbox] Issues after domain renameI’ve compared the source for each page (browser > view source) and both are identical except for the domain.
I’m really not sure what could be causing this.
Edit: data-slb-asset=”..” have different numbers, but that is th only difference.
Davey
Hi, yes, I’m willing to write / edit some code. If you have something in mind or a hint of what to edit it would be a great help. Is it something that can be done with filters?
Many thanks
DaveyForum: Plugins
In reply to: [Simple Lightbox] Using with resized imagesThanks for the heads up Archetyped, many thanks for the plugin. I highly recommend it.
Is this a feature that you would implement into future versions as I believe that many users would like to have the option not to use the original (potentially very large) image for the lightbox.
For completeness, in addition to my previous post, I also changed this:
// Load image img.src = item.get_uri();
to:
if(item._attr_default.sizes.large) { // Load image (edited for resized image) img.src = item.get_uri().replace(item._attr_default.sizes.original.file, item._attr_default.sizes.large.file); } else { // Load image img.src = item.get_uri(); }
Forum: Plugins
In reply to: [Simple Lightbox] Using with resized imagesSolved. For anyone interested in using resized images in simple lightbox this is how I got things to work.
It is a bit of a hack (edits a plugin file) so please forgive me Archetyped.
Don’t use the php function that I posted in my first post. Simply edit this file (make a backup first):
plugins/simple-lightbox/content-handlers/image/js/dev/handler.image.js
Change:
// Set attributes item.set_attribute('dimensions', {'width': img.width, 'height': img.height}); // Build output var out = $('<img />', {'src': item.get_uri()});
To:
// Set attributes (edited for resized image) if(item._attr_default.sizes.large) { // Set attributes (edited for resized image) item.set_attribute('dimensions', {'width': item._attr_default.sizes.large.width, 'height': item._attr_default.sizes.large.height}); // Build output (edited for resized image) var out = $('<img />', {'src': item.get_uri().replace(item._attr_default.sizes.original.file, item._attr_default.sizes.large.file)}); } else { // Set attributes item.set_attribute('dimensions', {'width': img.width, 'height': img.height}); // Build output var out = $('<img />', {'src': item.get_uri()}); }
Minify and copy the contents to (make a backup first):
plugins/simple-lightbox/content-handlers/image/js/prod/handler.image.jsDon’t forget, if you update the SLB plugin your changes will be removed.
Cool ?? Thank-you.
Forum: Plugins
In reply to: [Simple Lightbox] Using with resized imagesHi Archetyped, thanks for your response. I’m wondering if anyone else can point me in the right direction to do this, as this is not really a support question but more of a modification.
Hope this is the correct place to ask.
Many thanks – Davey
Thanks for getting back to me. Yes, I have a website that has image galleries for each post. This feature would be a great time saver for me if it could be implemented.
Forum: Plugins
In reply to: [Simple Lightbox] Using with resized imagesThanks Archetyped,
Apologies if this sounds hacky, is there anyway that I could move my code so that it runs like the following pseudo code.
slb runs as normal on full size image. slb retries image date for full size image. function is run immediately before img element is generated by slb.
Any help or pointers would be great.
Davey
Forum: Plugins
In reply to: [Fetch Tweets] Retweets sometimes show as quotes / sometimes iframesHi, thanks for taking the time to investigate. I think it was probably a time out issue as it was happening to all the tweets on the feed, and now neither you or I can replicate.
Forum: Plugins
In reply to: [Import Tweets as Posts] Tweets not being importedA confirmation or error reporting in the dashboard would be awesome. As this plugin was working great for me yesterday but isn’t fetching tweets today. I’ve tried deactivate / activate and Delete / Install.