Andy
Forum Replies Created
-
Forum: Plugins
In reply to: [Fluid Responsive Slideshow] Background transparency?Found it… CSS override to remove the white background for the slideshow (and the loading screen):
/* remove the white loading background */ .frs-slideshow-container .frs-slideshow-content { background: none; }
Forum: Plugins
In reply to: [Fluid Responsive Slideshow] Background transparency?Hm, yes… I almost get there. But now I end up with a white background… And I *think* it may be due to the initial “Loading” slide… Could that be true? Is there anyway to change that?
Thanks!
Just to sum up the thread for anyone else… I have UpdraftPlus backing up a somewhat large site (lots of pics!). For some reason, it really didn’t like some of the default settings, and in addition, I didn’t like the lack of control I got with the usage of wp-cron.php. So!
I added the following settings to my wp-config.php just before the “Stop Editing” line:
/** * Turn off the running of wp-cron.php page based on visits because it sucks */ define('DISABLE_WP_CRON', true); /** *Tell UpdraftPlus to use a non-binary ZIP */ define('UPDRAFTPLUS_NO_BINZIP', true);
The first line turns off wp-cron. I call that page with a real cron job every 15 minutes. The second line tells UpdraftPlus to use a non-binary zip tool (maybe embedded in PHP?).
The next thing I did was create a PHP file in my site’s / (root) directory – which is where I run WordPress from. I called the file runbackup.php, with the following contents:
<?php define('UPDRAFTPLUS_CONSOLELOG', true); require_once('wp-load.php'); do_action('updraft_backup_all'); ?>
Finally, I created two cron jobs. One runs the wp-cron.php via wget, the other runs the backup every night at 2:40AM:
*/15 * * * * wget -q -O - https://website.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1 40 2 * * * /usr/local/bin/php /home/username/public_html/runbackup.php >/dev/null 2>&1
(obviously, you’ll need to replace the website.com and username).
This makes it so the site backs up quickly, and at a repeatable time every day.
Yeah… Swapping to the non-binary zip totally made a difference. No zombie processes, and much faster… See the log here: https://pastebin.com/HM3BBr45
It ran last night a bit better, I think. I’ve put the logfile here: https://pastebin.com/TR97efmJ
I haven’t yet swapped the zip off the binary – that will be my next step…
That run last night produced the following zombied processes:[~]# ps -ef | grep USERNAME USERNAME 21273 5400 0 02:40 ? 00:00:00 crond USERNAME 21276 21273 0 02:40 ? 00:00:00 /bin/sh -c /usr/local/bin/php /home/USERNAME/public_html/runbackup.php >/dev/null 2>&1 USERNAME 21277 21276 0 02:40 ? 00:00:00 /usr/local/bin/php /home/USERNAME/public_html/runbackup.php USERNAME 21301 21277 0 02:40 ? 00:00:00 /usr/bin/zip -v -@ /home/USERNAME/public_html/wp-content/updraft/backup_2014-03-12-2340_SITE_NAME_REPLACED_440d3520ef60-plugins.zip.tmp USERNAME 21558 20398 0 02:45 ? 00:00:00 /usr/bin/php /home/USERNAME/public_html/wp-cron.php USERNAME 21563 21558 0 02:45 ? 00:00:00 /usr/bin/zip -v -@ /home/USERNAME/public_html/wp-content/updraft/backup_2014-03-12-2340_SITE_NAME_REPLACED_440d3520ef60-plugins.zip.tmp kingster 22439 21534 0 08:42 pts/0 00:00:00 grep USERNAME USERNAME 22534 21622 0 03:00 ? 00:00:00 /usr/bin/php /home/USERNAME/public_html/wp-cron.php USERNAME 22540 22534 0 03:00 ? 00:00:00 /usr/bin/zip -v -@ /home/USERNAME/public_html/wp-content/updraft/backup_2014-03-12-2340_SITE_NAME_REPLACED_440d3520ef60-plugins.zip.tmp USERNAME 31639 31359 0 03:15 ? 00:00:00 /usr/bin/php /home/USERNAME/public_html/wp-cron.php USERNAME 31645 31639 0 03:15 ? 00:00:00 /usr/bin/zip -v -@ /home/USERNAME/public_html/wp-content/updraft/backup_2014-03-12-2340_SITE_NAME_REPLACED_440d3520ef60-plugins.zip.tmp
Actually prevented the cron job from “completing”. ??
The 9 steps that the plugin goes through, which has big pauses in between the steps… My first test run with the above php file took about 3 hours to complete, and that seems a tad ridiculous.
And it still left zombie processes. :-/
If you like, I’ll send you a copy of the logfile…
Thanks, David. A bit of a “duh” moment on my part with the “manual” setting. [sigh]
As noted on the UpdraftPlus site, I created a file with the following contents, called runbackup.php on the / of my webserver:
<?php define('UPDRAFTPLUS_CONSOLELOG', true); require_once('wp-load.php'); do_action('updraft_backup_all'); ?>
When I run it with:
/usr/local/bin/php ~/web/runbackup.php
it seems to still use the “stepped” method. Is there anything that will let it just blast through the whole process, and get it over with?Forum: Plugins
In reply to: [List category posts] title the image, hide the restThis is purely the fault of your H2, I think… There’s no clear on it, but seems like there should be.
If you put a clear: left; in place for the .entry h2, then it looks perfect.
.entry h2 { clear: left; }
Forum: Plugins
In reply to: [List category posts] title the image, hide the restSo, that file needs to be put in a directory called “list-category-post” which is in your theme’s directory. Remove the title class and the thumbnail class from your shortcode.
Type in your OWN heading for the section.
Put the shortcode in it’s own Paragraph < p > tags.
So you should have something like:
Heading
Shortcode
Heading
Shortcode
When looking at the editor.
Forum: Plugins
In reply to: [List category posts] title the image, hide the restSo, what you want to do just won’t happen without creating a new template and putting it into your theme. I created lcp-captionthumb.php, and, following the instructions in LCP’s default theme readme.txt, put it in a directory named “list-category-post” in the root of my theme.
Code is as-is/where-is… No warranty! ??
lcp-captionthumb.php:
<?php /* Plugin Name: List Category Posts - Template Plugin URI: https://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/ Description: Template file for List Category Post Plugin for WordPress which is used by plugin by argument template=value.php Version: 0.9 Author: Radek Uldrych & Fernando Briano Author URI: https://picandocodigo.net https://radoviny.net */ /* This is the string which will gather all the information.*/ $lcp_display_output = ''; //Add 'starting' tag. Using Unordered list $lcp_display_output .= '<ul class="lcp-catlist">'; /** * Posts loop. * The code here will be executed for every post in the category. * As you can see, the different options are being called from functions on the * $this variable which is a CatListDisplayer. * * The CatListDisplayer has a function for each field we want to show. * So you'll see get_excerpt, get_thumbnail, etc. * You can now pass an html tag as a parameter. This tag will sorround the info * you want to display. You can also assign a specific CSS class to each field. */ foreach ($this->catlist->get_categories_posts() as $single){ //Start a List Item for each post: $lcp_display_output .= "<li>"; //Start a div with class=lcp-thumb $lcp_display_output .= "<div class=lcp-captionedthumb>"; //Post Thumbnail $lcp_display_output .= $this->get_thumbnail($single); //put in a <br/> $lcp_display_output .= "<br>"; //Show the title and link to the post: $lcp_display_output .= $this->get_post_title($single); //close the div with class=lcp-caption $lcp_display_output .= "</div>"; //Close li tag $lcp_display_output .= '</li>'; } // Close the ul tag $lcp_display_output .= '</ul>'; //Return the data to the page $this->lcp_output = $lcp_display_output; ?>
The CSS you’ll want to use to pretty it up:
.lcp-catlist li { display: inline; float: left; margin: 5px; padding: 5px; } .lcp-captionedthumb { border: 1px solid rgb(153,175,93); padding: 5px; width: 125px; height: 170px; font-size: 70%; text-align: center; }
Called with the following shortcode:
[catlist id=2 thumbnail=yes template=lcp-captionthumb]I handle displaying the headers…
You can see the output of all of this here:
https://roundwoodfurniture.com/andytest/Forum: Plugins
In reply to: [List category posts] title the image, hide the restSo, there’s a lot going on there. And you added the LCP css stuff into the middle of the theme’s CSS, rather than in an enqueue or child theme. :-/ Be warned, you’ll lose that code if you ever update the theme.
All that said – the only way that I could get your thumbs to look halfway decent was to modify your H2 settings – I’m not sure what that would do to the rest of your site though, so… I don’t suggest that… Unless you want to spend the time making sure that it looks OK. You’d have to put the following at the bottom (where your LCP CSS should go) or in a separate CSS:
.entry h2 { clear: both; vertical-align: top;}
As for “captioning” your thumbs, that’s next on my list of things “to do”. It appears possible… I’ll be using the info here:
https://wordpress.stackexchange.com/questions/45592/plugin-list-category-posts-how-to-show-the-caption-under-thumbnailForum: Themes and Templates
In reply to: [Decode] Navigation Dropdown on MobileSo, I’ve got 2.9 in place. The dropdown works better, but… Now I can’t click on the parent page… Even on a PC. The child pages work as they should, but I actually have content on the parent as well.
Any suggestions?
Forum: Plugins
In reply to: [List category posts] title the image, hide the rest@ievutemm:
Ah. You’re seeking something different. You want your thumbnails in a grid, like I have, but with the title as a caption, I think. I don’t know the answer to that – and I would suggest you start a new thread, so that it’s properly searchable in the support forum.@memonon:
I’m using the Decode theme, which has the ability to customize CSS right in the theme customizer. Are you just trying to title the thumbnail on hover? If so, the CSS I posted above should work, as log as you also use the following in the page:[catlist name=<whatever category> thumbnail=yes title_class=lcp_title thumbnail_class=lcp_thumbnail]
Forum: Themes and Templates
In reply to: [Decode] Color of active Links in Header MenuIs there some code we could put into the CSS block to fix the link color issue? That’s the biggest problem that I can see…
The “shake” is intended to be there (though, it would be slick if there was a checkbox to turn it off, if so desired).
Forum: Themes and Templates
In reply to: [Decode] Links in footerScratch that. I’m an idiot. They look wrong when customizing, but are correct when published. It also helps when you use proper syntax.
[sigh]