Squazz
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Doesn't work properly on mobileW3TC & Autoptimize is now disabled (I only use W3TC to control the cache).
For me, there’s no change. As I told you, I have previously tried to disable all of my plugins except your plugin ??
Forum: Plugins
In reply to: [Meteor Slides] Loading JS when not neededThank you so much for your reply. This must be one of the best replies I have gotten on a plugin support so far! ??
I am so glad that you are aware of the problem, and is focussing on fixing it. Speed is (at least for me) almost everything, as long the job still gets done. You are probably aware of how to do this properly, but I just stubled upon this post the other day: https://scribu.net/wordpress/optimal-script-loading.html, and I plan on doing something like this myself.
I will try to look at just loading the scripts on my homepage. Or as you suggest, disable them and then with my own code control when they are loaded.
About using 5 images instead of 10, and compressing images, these two things is something I would like to dwell a little more with.
From my perspective, we should not load all of the images in the same batch. We should lazy load them. It should not matter if we have 5, 10 or 20 images. We should only load the first image to start with, then the next one when needed. Maybe, load the first two and then wait. One of the reasons is that I want as fast a initial pageload as possible. Secondly, I see that many of my users are only seeing the first, maybe the second image. When this is the case, it seems like a waste to load 5 images if only two of them is being shown to the user.
About compression, then there is no doubt that you are right about that the images is the heavy load. But you can’t do anything about our images (at least, I don’t want you to ?? ). What you can do instead is ensure that your plugin is as light as a feather ??
I myself, is working on some way to use pictureFill 2 on all of my sites. As well as leveraging Photon from JetPack. These two tings combines seems for me to be the way to go if we want to have high quality images that loads fast.Once again, thanks for the reply.
Keep up the good work, I’m looking forward to the update ??Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Doesn't work properly on mobile@dfactory, if you are so sure that swipebox works without problems, I invite you to my site and see if you can see why it doesn’t work there. The URL is Squazz.dk
I’m pretty sure that pimo, cloudsben, wp-newbie & roffel would all LOVE to use your plugin, if we find a way to get swipebox working.
I personally have tried to deactivate EVERYTHING but your plugin, and swipebox still gives problems.
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Doesn't work properly on mobile@dfactory, just a thought:
As SwipeBox is broken without the upgrade, I’d say that you should mention this somewhere.
Furthermore, you could set up a condition that enables jQuery 2 if a client is using a browser newer than IE8. jQuery 1x & 2x is basically the same, with the exception that jQuery 2 is faster, and doesn’t support IE6,7 & 8. Many developers are using this approach:<!--[if lt IE 9]><!--> <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> <!--<![endif]--> <!--[if gte IE 9]><!--> <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <!--<![endif]-->
From my point of view, you either denounce swipebox, or find a way to present swipebox for users not using IE8 while still supporting IE8 and less. The approach you are taking now is just putting you in a bad light. I for one was sure that it was your fault, how could I know anything else?
@roffel, Thanks! ?? I will try to look at it. In my case I’m only using swipebox for mobile platforms, and as far as I know, IE8 doesn’t exist on mobile platforms, so that’s a win ??
If I come to a better solution I will post it here for everyone to use ??
Forum: Plugins
In reply to: [PDF Thumbnails] Thumbnail is created, but not added to PDF fileOk, more information:
With some PDF’s it works, with some it doesn’t.
This file: https://beta.musalaha.org/wp-content/uploads/Theology-of-Reconciliaion-Full-Book-TextwithAppendix_10.06.131.pdf gived me a image back when I ask for it with echo get_the_post_thumbnail( $PDF[1][‘ID’], ‘thumbnail’ )
But this file: https://beta.musalaha.org/wp-content/uploads/Winter_2014_Newsletter_V1.pdf gives me nothing back with that same request.
(Future readers: these links won’t work for you, sorry)
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Doesn't work properly on mobileIt’s a shame that this is necessary.
I might try out doing the same thing as you.
Can I ask if you have been using some kind of smart feature, custom code etc. to make swipebox work in WordPress?
I am interested, and I’m sure that other persons reaching this page in the future would love that kind of information too.
Forum: Plugins
In reply to: [The Events Calendar] Navigation problems with prev/next and "find events"By queening jQuery accordion this way
wp_enqueue_script('jquery-ui-accordion');
I could delete the following code:
<!--noptimize--> <script src="//code.jquery.com/jquery-1.10.2.min.js"></script> <script src="//code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script> <!--/noptimize-->
This solves my problem with TEC’s dependency on jQuery and my bad theme setup ??
Still, I see it as a problem that page navigation is dependent on JS.
Forum: Plugins
In reply to: [The Events Calendar] Navigation problems with prev/next and "find events"I found the problem.
To get jQuery Accordion to work at my site, I had to insert the following code in my footer:<!–noptimize–>
<script src=”//code.jquery.com/jquery-1.10.2.min.js”></script>
<script src=”//code.jquery.com/ui/1.11.1/jquery-ui.min.js”></script>
<!–/noptimize–>When deleting the “jquery-1.10.2.min.js” line, everything works again. The problem is then, that my accordion stops working :/
Forum: Plugins
In reply to: [The Events Calendar] Navigation problems with prev/next and "find events"I found the problem. It’s the theme.
I got in touch with the developer (me) and he doesn’t know what the problem could be.I have tried to look through the links you posted, and I didn’t seem to find what my problem could be. Do you guys have an idea for where I should start?
Forum: Plugins
In reply to: [The Events Calendar] Only show next event in same categoryOk, thanks for clarifying that I need to develop it myself.
I just hoped TEC had something built in ??I will post my code here if I find a solution
@photocrati – No probs, I hope it’s something that’s usefull ??
Thank you very much Benjamin. It helped me a lot! ??
This is the code I ended up with (kindly modified to help others in the future).
The code includes my personal preference for styling the galleries.global $nggdb; $galleries = array(); $children = get_children("post_parent=$post->ID"); foreach($children as $kid) { print_r($kid); $page_id = $kid->ID; $album_mapper = C_Album_Mapper::get_instance(); $albums = $album_mapper->find_all(array('pageid = %s', $page_id), TRUE); foreach ($albums as $albumMap) { $albumID = $albumMap->ID(); $album = $nggdb->find_album($albumID); if($album) { foreach( $album->gallery_ids as $galleryid ){ $gallery = $nggdb->find_gallery($galleryid); $image = $nggdb->find_image( $gallery->previewpic ); $galleries[$galleryid]['title'] = $gallery->title; $galleries[$galleryid]['url'] = home_url() . $post->post_name . '/' . $kid->post_name . '/?album=all&gallery=' . $galleryid; $galleries[$galleryid]['image'] = ($image->thumbURL) ? '<img src="' . $image->thumbURL . '" />' : ''; } $i = 1; foreach($galleries as $category){ echo '<div class="galleryContainer">' . '<a href="' . $category['url'] . '" class="galleryImage">' . $category['image'] . '<div class="galleryTitle">' . $category['title'] . '</div>' . '</a>' . '</div>'; if ($i++ == 3) break; } } else { echo 'No galleries at this time, sorry :/'; } } }
Oh, so that’s what my problem is. I feel so stupid now.
I will check up on it when my websites backend open again tomorrow ??Here’s the code: https://gist.github.com/Squazz/1cf23330cc1a8ed2bd83
Oh, so I have to manually set this for every album in the future, and can not do it in advance?