Squazz
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Navigation problems with prev/next and "find events"Becuase you are an admin, you link is broken. For future users, the correct link is without the admin part: https://tribe.uservoice.com/forums/195723-feature-ideas
I have now posted a suggestion here: https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/6833539-js-independent-page-navigation and encourage everyone interested in seeing this feature “JS/jQuey independent page navigation” implementet to come by and vote ??
Forum: Plugins
In reply to: [Contact Form 7] Loading JS when not neededThat’s a fine solution, but not really all that flexible. I would have to update that code for each page (that does not use this template) containing a Contact Form.
Why not do something like this solution from scribu?
Thanks! ?? I will be looking forward to that ??
Even though it’s not a lot of data, it’s still 5 HTTP requests ??
All of my images are still being loaded from the local host, and not Photon. Thumbnails as well as the images themselves.
Forum: Plugins
In reply to: [PDF Thumbnails] Thumbnail is created, but not added to PDF fileThanks stianlik, I’ll put that information forward if they’re not taking actions ??
Forum: Plugins
In reply to: [Meteor Slides] Loading JS when not neededI may have found a solution for how you can load the JS & CSS files only when needed. But I’m sure you will like it.
Originally i just searched for a shortcode, and then added the scripts and CSS if the shorttag was found. But this gave some problems with my specific setup as I’m using the PHP version directly in a template. Futhermore I’m quite sure it won’t work with widgets?
In short, what I did was to just move the loading of JS & CSS to meteor-slideshow.php, and then edit the path to something like this:
plugins_url( '/meteor-slides/js/jquery.cycle.all.js')
It works, but I’m not sure it wil ALWAYS work. Futhermore it kinda moved code to somewhere where it doesn’t belong. Even though I feel it kinda belongs there anyway ??
If this is something you wanna chat about, discuss different approaches, I’m willing to do that. I’m rather interested in it myself. But, if you want to do that is there then somewhere we can chat about it instead of using the WordPress Support page?
Forum: Plugins
In reply to: [PDF Thumbnails] Thumbnail is created, but not added to PDF fileFurther studies show that all of my files are added to the database twice :/ I gotta find out what the problem is. It’s not yours. So sorry for the inconvenience :/
Edit: The problem lies in the plugin “WPML Media”, a official WPML exstension that adds “multilingual support for Media files”. I don’t know if it is you who has to make support for WPML, or if it’s WPML that doing something wrong. Now you know it, and I will send WPML a message about it too.
Forum: Plugins
In reply to: [PDF Thumbnails] Thumbnail is created, but not added to PDF fileApparently I am creating a extra copy of the PDF when it’s uploaded. Might be something with my own setup.
I’m uploading the file Winter_2014_Newsletter_(V), the thumbnail is attached to Winter_2014_Newsletter_V1 (ID 2582) and the ID that I get is Winter_2014_Newsletter_V1 (ID 2585), but there are two ID’s (one which does not have a thumbnail).Thanks for the tip about WP_Query, I might have to do that, the computer science student in me have always been screaming at my decision to not limit the amount of files I’m fetching ??
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Doesn't work properly on mobile@frank Goossens I have set up my “Website URL” but my username is still not a link :/ Oh well, might just have to live with that ??
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Doesn't work properly on mobile@frank Goossens, you are right, it was from another Plugin. It seems that “Speed Booster Pack” puts it there. So now that plugin is disabled too ??
BTW, now that you are here, how do you make your name into a link? I’d love to learn that ??Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Doesn't work properly on mobile1. I am using prettyPhoto on desktop, and swipebox on mobile.
2. I had no problems with prettyPhoto before
3. I have no idead where the try catch JS comes from. But have the feeling that it may be something that’s left over from Autoptimize as it has a try catch option. I don’t get why it’s there now though.
4. Those errors comes because the sharing box from JetPack is trying to execute jQuery before jQuery beeing implemented. This might be fixed if .ready() was added to the jQuery(document), but I’m no jQuery wizard, so I don’t know. I might contact the JetPack team about this.
Edit: I notified them about my situation here: https://www.ads-software.com/support/topic/problem-with-on-ready-post-load-in-the-sharing-part?replies=1#post-63147775. I have now tried to disable Lazy Load for you too. SwipeBox is still not letting me swipe. And sometimes my safari browser tells me id had to reload the page due to “a problem”
Forum: Plugins
In reply to: [PDF Thumbnails] Thumbnail is created, but not added to PDF fileI use the solution that I have also written about on my blog https://squazz.dk/teknologi/wordpress/find-alle-pdf-filer-indeholdende-et-keyword/ ?? There might be a problem here, in that case, I’d love to know it ??
function squazz_get_PDF($targetword, $limit = '-1', $remove = array()) { // Setup what we are searching for $args = array( 'post_type' => 'attachment', 'post_mime_type' => 'application/pdf', 'numberposts' => -1, 'post_status' => null, 'post_parent' => null, 'orderby' => 'post_date', 'order' => 'DESC' ); // Get the initial results $attachments = get_posts($args); // If there are results, sort them if ($attachments) { $i = 1; foreach ($attachments as $post) { // Get the post title $title = $post->post_title; // Only show results matching our keyword if (stripos($title,$targetword) !== false) { if(!strposa($title,$remove)) { $files[$i]['ID'] = $post->ID; $files[$i]['title'] = $title; ... if($i == $limit) { break; } ++$i; } } } } else { _e('Nothing to see here', 'SquazzFunctions') } return $files; } $PDF = squazz_get_PDF('newsletter', 1, array('german', 'french'));
Then I try out this:
echo get_the_post_thumbnail( $PDF[1]['ID'], 'thumbnail' )
Forum: Plugins
In reply to: [Yoast SEO] Problems with meta tags for categoriesNoone else having this problem?
Noone having a solution? ??Forum: Plugins
In reply to: [Lightbox CSS3] Simply doesn't workSorry for the late answer.
I am sorry to report that I don’t have a link. I installed the plugin, saw that it didn’t work and then uninstalled it again.Forum: Plugins
In reply to: [PDF Thumbnails] Thumbnail is created, but not added to PDF fileYup, both “images” (I think you refer to the PDF files, right) are uploaded after activation of the plugin. Actually I first uploaded the PDF that worked, then the one that didn’t and then again the one that did, just to see if it was the file, or a general problem.
The thumbnail image HAVE been generated, and I can acces it by directly linking to it by “original-upload-PDF-name-thumbnail-size.jpg”
That is weird. That you cat get a thumbnail, while I don’t. Especially when I can get the image from one PDF file, but not the other.
Maybe I am retrieving the image in a wrong way? How do you fetch your image? I try with get_the_post_thumbnail($PDF-ID).