mikedev
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Product Save Times Out to 502 ErrorReply by @ilyasfoo is valid for me. Errors no longer exist when saving a product or activate/deactivate any plugin.
Excellent work. Now, with
define('ALLOW_UNFILTERED_UPLOADS', true);in wp-config.php, the Media Library Folders uploader allows upload of .rfa files.Thanks again for your support on a great plugin!
Can you please also add
$mimes['rfa'] = 'application/octet-stream';to your plugin?If
define('ALLOW_UNFILTERED_UPLOADS', true);is added to wp-config.php, it allows upload of all file types. Then uploading .rfa files works with the core media uploader, but when using the Media Library Folders uploader it says “*.rfa file’s type is invalid.”Yes, it’s an issue introduced in WP 5.0.1. See “MIME validation for uploaded files” at https://make.ww.wp.xz.cn/core/2018/12/13/backwards-compatibility-breaks-in-5-0-1/.
(I have deleted the Disable Real MIME Check plugin.)
I found that
$mimes['dwg'] = 'image/vnd.dwg';is the only media type that works for the dwg files I’m uploading.With the function in my theme’s functions.php I am now able to upload dwg files to both to the media library and Media Library Folders. I’m not sure this fix is appropriate to add to the Media Library Folders plugin, because dwg files created with different applications might validate with a different media type. (There are three media types for dwg listed here https://www.sitepoint.com/mime-types-complete-list/.)
Thanks for the great support for a great plugin!
Yes, that’s the same code I’m using. Except I used ‘application/acad’ as the mime type for dwg. My function also did not enable uploads of dwg files.
Forum: Fixing WordPress
In reply to: Understanding Posts, Categories, and PagesIn WordPress jargon, a page is a normal, static web page. It is used for pages like “About Us” or “Contact”.
A post is more like a newspaper article. It has a date stamp and an author. It also often enables reader comments. A post is a single article in a blog. It is for social interaction. Here is some info: http://www.wpbeginner.com/beginners-guide/what-is-the-difference-between-posts-vs-pages-in-wordpress/.
Posts are displayed in list form in categories, and are organized by categories and tags. “My Solutions” could be your top-level category. Each of the sub-solutions, like “Writing Solutions” could be a sub-category containing relevant posts. You can then add more granular sorting by using tags. Here is some info about categories and tags: https://en.support.wordpress.com/posts/categories-vs-tags/, http://www.wpbeginner.com/beginners-guide/categories-vs-tags-seo-best-practices-which-one-is-better/.
WordPress makes it easy for you to write new posts and have website visitors comment on them. What is more difficult is allowing others to publish their own posts. That is not a standard part of WordPress. It can take a lot of experimentation and customization to get it to work the way you want, and may require extensive moderation to maintain high-quality content. Searching “wordpress user generated content” finds some good info: https://premium.wpmudev.org/blog/wordpress-post-frontend-plugins/.
Forum: Everything else WordPress
In reply to: Secondary domain needed to point to siteFor the domain you want pointed to the new site, find out where the domain name is hosted. (Note there is a difference between domain name hosting and website hosting. For one website the domain name and website might be hosted with the same company, or with different companies.) From within the account control panel for the domain name hosting, there should be an option for domain forwarding or redirecting to another domain name.
Here are specific examples:
http://www.inmotionhosting.com/support/edu/cpanel/cpanel-manage-domains/setting-up-redirect-cpanel
https://www.godaddy.com/help/manually-forwarding-or-masking-your-domain-name-422
https://www.siteground.com/kb/how_do_i_redirect_one_domain_to_another_domain_name/Here is some general info: http://www.thesitewizard.com/domain/point-multiple-domains-one-website.shtml
If you have access to FTP or the database, there are options for changing passwords described here https://codex.ww.wp.xz.cn/Resetting_Your_Password.
At the bottom, under “Additional Reference” there is a link to http://kuttler.eu/code/wordpress-password-reset/ or http://kuttler.eu/code/wordpress-emergency-admin/ that creates a new admin user.
Forum: Fixing WordPress
In reply to: Editing gallery squaresWhether gallery thumbnails — in edit or live — are square or proportional is based on Settings > Media > Thumbnail size > Crop thumbnail to exact dimensions (normally thumbnails are proportional).
At the time of image upload, WordPress will create the thumbnail based on this setting. If you change the setting, you need to regenerate thumbnails so that new thumbnails are created based on the new setting.
Or maybe I’m misunderstanding the question. Are you instead talking about the “Insert Media” thumbnails you see when you click “Add Media” when editing a post? The thumbnail grid of images in your media library are square. That’s just the way WordPress is.
The thumbnails in Media > Library will display square or proportional based on your Settings > Media > Thumbnail size > Crop setting.
Forum: Fixing WordPress
In reply to: Editing gallery squaresYour gallery thumbnails are square probably because your settings tell them to be. Go to Settings > Media > Thumbnail size > and deselect “Crop thumbnail to exact dimensions (normally thumbnails are proportional)”. If this is checked, thumbnails will be square. If it is not checked, the pixel dimensions will be considered a maximum size and the thumbnails will retain original proportions.
You might need to use the Regenerate Thumbnails (https://ww.wp.xz.cn/plugins/regenerate-thumbnails/) plugin after changing your media settings.
For two columns, see http://codex.ww.wp.xz.cn/Gallery_Shortcode. Your shortcode would be something like this: [gallery columns="2" ids="729,732,731,720"].
Forum: Everything else WordPress
In reply to: Website Hacked with SQL InjectionThe best security for a WordPress website is to get high-quality managed hosting somewhere like wpengine.com, pagely.com, getflywheel.com, pressable.com.
If you are on low-cost shared hosting, these can be helpful:
http://ww.wp.xz.cn/plugins/wordfence/
http://ww.wp.xz.cn/plugins/better-wp-security/
http://sucuri.net/Forum: Plugins
In reply to: Contact us formInstall the Contact Form 7 plugin: http://ww.wp.xz.cn/plugins/contact-form-7/.
Create a new form, and in the “Message body:” field, put
[_url].Add the Contact Form 7 shortcode to a text widget. Now when someone submits the form, the page URL will be printed in the email message.
Here’s the reference: http://contactform7.com/special-mail-tags/. See “This tag will be replaced by the URL of the contact form.”
Forum: Fixing WordPress
In reply to: Add new custom field group from adminTo add groups of custom fields the manual way, here are two good references: http://codex.ww.wp.xz.cn/Function_Reference/add_meta_box, http://www.smashingmagazine.com/2011/10/04/create-custom-post-meta-boxes-wordpress/.
Probably an easier way is to use a plugin. A powerful and popular plugin for custom fields is http://ww.wp.xz.cn/plugins/advanced-custom-fields/.
Forum: Themes and Templates
In reply to: Theme Duena: Change Background Colour Content AreaSo that theme changes are not over-written when updating a theme, a child theme is recommended. See https://codex.ww.wp.xz.cn/Child_Themes.
Create a child theme, then in the in style.css add
.home .page_wrap { background-color: #eeeeee; }The
.homeis a class from thebodytag and assigns this change only to the home page.The
.page_wrapis the class the Duena theme uses around the content.(To find these CSS classes, view your website in a browser, right click the area you want to change, select “Inspect Element”.)
The
#eeeeeeis the new background color in hexadecimal. Change it to the color you want. (Search the internet for “hexadecimal color picker”.)Forum: Fixing WordPress
In reply to: adding themes in one.comI contacted support at http://www.one.com/en/ again and you are correct. Here’s what they said: “You cannot install your own theme using the Managed WordPress. You have to manually install wordpress if you want to install your own theme or plugin.”
You could find a website developer to install WordPress for you (installing WordPress is quick and easy) or switch web hosts.