setuptips
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Smart YouTube PRO] default thumbnail img added to archive pagesI think i found a workaround – just set “Show embeds in post excerpts as Nothing” in the Smart YouTube PRO settings
I think i found a workaround – just set “Show embeds in post excerpts as Nothing” in the Smart YouTube PRO settings
There is a subtitle difference in that the dir must be an OS path when creating the file and a url when returning the file for download.
There should also be a leading / on settings.ini and settings.zipHere is my workaround. Try out at your own risk.
NOTE: I have not tested the resulting import yet.Additions market with > starting from line 80. Mods marked with |
> $upload_dir = wp_upload_dir();
> $wpseo_upload_path = $upload_dir[‘path’];
> $wpseo_upload_url = $upload_dir[‘url’];
| if ( !$handle = fopen( $wpseo_upload_path.’/settings.ini’, ‘w’ ) )
die();if ( !fwrite($handle, $content) )
die();fclose($handle);
require_once (ABSPATH . ‘wp-admin/includes/class-pclzip.php’);
| chdir($wpseo_upload_path);
$zip = new PclZip(‘./settings.zip’);
if ($zip->create(‘./settings.ini’) == 0)
return false;| return $wpseo_upload_url.’/settings.zip’;