PhPCentre
Forum Replies Created
-
Forum: Plugins
In reply to: [Jssor Slider by jssor.com] suggestionsThank you so much, I really appreciate your suggestions and comments. About the donate link,don’t bother yourself about it.
it is more blessed to give than to receive ( Acts 20:35 )
Thanks once again..
Forum: Plugins
In reply to: [Jssor Slider by jssor.com] Slider not workingThe issue should be your custom theme, first of all, on your frontpage check whether the css and js files of the slider are loaded using “view page source”,check your console for any js errors, and also try using the shortcode on post content and report your results.
Forum: Plugins
In reply to: [Jssor Slider by jssor.com] suggestionsI have fixed Suggestion 1,4, 5 in the latest version of the plugin, However, for suggestion 2, use the
.jssor_slider_desc_text_div
class, you can tweak the font-size and line-height to your desired settings. Also for suggestion 3, the div is positioned absolute, the div can only expands downwards and out of frame, not my fault. Just try to keep the description text as short as possible,until I figure something out.Concerning your latest suggestion, if it will add some speed, of course will include it in the next update. I hope you are satisfied now, so can I get a five star?..
Forum: Plugins
In reply to: [Jssor Slider by jssor.com] Slider not working@designer.pradeep
The shortcode template code is working on my end, even on default wordpress themes. Please which theme are you using?.
Can we see a sample of your policy ?, show us what your policy looks like.
The list command should be for listing your buckets on the plugin settings page…
The URL rewrite is just substituting the local url of the files with their respective s3 url by hooking into
wp_get_attachment_url
filter. The images are uploaded to s3 as they are uploaded from the wp dashboard.As for the auto-upload-images plugin, from the description of the plugin, this is what I believe will happen,the images will be uploaded to s3 provided the plugin allows wordpress to process the images properly by using the appropriate hooks, but the image url in the post content will still point to your local server.
The pro version the s3 plugin will be able to search and replace the local urls in post content to their s3 url’s, you can check the preview here.
Ok ..,
This is what I suggest, if the formidable plugin adds an extra metadata info in the wp_postmeta table for the files it uploads, then all you have to do is check for that metadata info with an if condition inside that hook that cancel’s upload, you should be good.One quick question, when you upload media files using the formidable form, does wordpress process the file as a media attachment, can you see the file in the media library?.
This is how to check whether files are removed from local server after upload.
Set these options.Copy Files to S3 (ON)
Rewrite File URLS (OFF)
Remove Files from Server (ON)After any upload,in your media library ,if it’s an image file, the image should be broken,because wordpress is trying to serve the file from your local server. Now change the option “Rewrite File URLS” to ON, check the media library again, the image is loaded from s3.
Alternatively you can access your wordpress upload folder on your server to check whether the files are deleted or not..
When you delete a file from the media library,if the file is also in your s3,it is also deleted form your s3 bucket,that is how the plugin works.
The plugin option “Remove Files From Server” is how to remove files uploaded to s3 from your local server..
First of all,the above function means only the file extensions contained in the array goes to s3, your WP Media Library will work as normal,other file extensions will still go to your media library.
Secondly,concerning the Formidable Form, I have not used the plugin,and I did notice that the upload form field is part of the pro version of the plugin,so there is no way for me to go through the plugin codes and give you directions. Luckily for us,there is another useful hook provided by this s3 plugin.
as3cf_pre_update_attachment_metadata
this hook can be used to cancel upload to s3 for any reason, and this is where you can use your conditional statement..
By default the plugin will upload all file extensions returned by this function
get_allowed_mime_types()
you can check the full list of the file extension returned here.So let’s say you want the plugin to only upload image files with extensions (jpeg|png|gif) to your s3 bucket, in your theme functions.php file place this function.
add_filter( 'as3cf_allowed_mime_types', 'allowed_s3_mime_types' ); function allowed_s3_mime_types() { $s3_mime = array( 'image/jpeg','image/gif','image/png' ); return $s3_mime; }
Forum: Plugins
In reply to: [Jssor Slider by jssor.com] Two of "need",thanks a lot ;)I am sorry, as of now , there is no option to set full width and auto height. For the slider random effect, I will consider adding an option for it in upcoming version.
Thank You..
Use this filter to return an array of file extension you would want to upload to your s3 bucket.
as3cf_allowed_mime_types