DrLightman
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] ampforwp_aq_resize ?I was asking because since my site has a lots of images I wanted to know if installing the plugin will multiplicate the quantity of image files on file storage.
Could this “speed up thing” be problematic with sites with a lot of posts? Let’s say, overo 300’000?
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Wrong width and height of logoYes, but the bug is still in the official plugin, in the 1.0.41 too.
You may want check the code in
\accelerated-mobile-pages\templates\features.phpbetween line 5382 and 5414 for missing curly braces after a couple ofelses.case 'width': if (true == ampforwp_get_setting('ampforwp-custom-logo-dimensions') && 'prescribed' ==ampforwp_get_setting('ampforwp-custom-logo-dimensions-options')) { $value = trim(ampforwp_get_setting('opt-media-width')); if($value==""){ $value = 190; } } else // <----- from here $value = ''; if(isset($data['logo_size'][0])){ $value = $data['logo_size'][0]; } // <----- up to here if($value==""){ $value = 190; } // <----- or even here? break; case 'height': if (true == ampforwp_get_setting('ampforwp-custom-logo-dimensions') && 'prescribed' == ampforwp_get_setting('ampforwp-custom-logo-dimensions-options')) { $value = trim(ampforwp_get_setting('opt-media-height')); if($value==""){ $value = 36; } } else // <----- and here $value = ''; if(isset($data['logo_size'][1])){ $value = $data['logo_size'][1]; } // <----- up to here if($value==""){ $value = 36; } // <----- or even here? break;Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Wrong width and height of logoHello, unfortunately they were wrong because they were always overriden by the plugin with the ones of the main site’s logo dued to the bug in the code with the missing curly braces.
By the way, I’ve so long fixed the bug now the correct ones are assigned to the custom logo.

file: \accelerated-mobile-pages\templates\features.php
- This reply was modified 6 years ago by DrLightman.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Wrong width and height of logoIt looks like, whatever you set, even with Resize+FixedWidth, it always fetches default non-AMP logo width and height:

I think the problem is you missed the curl braces in the else so it only applies to
$value = '';Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Disable Google Plus sharing?But nevermind, I’ve overriden the footer completely because I wasn’t able to add custom text where I wanted othewise.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Disable Google Plus sharing?Also, what are those icons for? If I click on them, the page just reloads on itself with an # appended to the url.
Never mind I thing I found those actions.
Another thing, I’ve activated “Magazine Layout” and it looks good.
Now I have to inject some stuff between elements, for example above the featured image, or after the featured image, or after the text, or after the share etc, where can I find the proper actions? I tried making a search in the sources but there are SO MANY and repeated multiple times, I can’t figure out where to look for the ones fot the “Magazine Layout”.
Forum: Plugins
In reply to: [SEO Redirection Plugin - 301 Redirect Manager] Purge 404 Errors404 Manager > 404 Options > “Clear All Discovered” ?
As others mentioned in another topic, those constants are eventually used into SQL queries so are okay.
You can just do a search-in-files form your preferred editor/IDE to find out yourself.
…
WHERElast_updated_time< DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL " . Cron_Constants::CACHE_REFRESH_AGE . ")…so, the final resulting query above when says
INTERVAL 25 MINUTEis okay in mysql.so, unless you maybe change the cache time by rising those values, your fix shouldn’t have any effect, or worse, you added a bug because you end up by omitting the UNIT of time in the query and as far as I know, you can’t do that:
https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html
INTERVAL expr unitHow can be possibile that nobody is actually manteining this project?
Not using this paricular plugin, but this:
Strangely, various sources and help forums on the net claim that this can’t possibly work, as wp_logout() will already have dumped you on the standard WP login pageIt’s not true. “wp_logout” doesn’t any redirect, it just destroys the session data. For confirmation just explore the source code yourself of wp_logou’s function or the code of /wp-login.php
Forum: Plugins
In reply to: [Amazon Associates Link Builder] Compatibility with PA API 5.0 ?Hallo?
Forum: Plugins
In reply to: [W3 Total Cache] download.gz Downloads when viewing the site (sometimes)What was the fix mentioned some replies ago?