Guido Scialfa
Forum Replies Created
-
Forum: Plugins
In reply to: [Search & Replace] change languague url formatHi @oscargarcia2308,
You can use the Search and Replace to replace any string within the database, so you can search for the exact corrispondence of
https://www.mysite.com/anything-here/?lang=es
and replace it withhttps://www.mysite.com/es/anything-here/
.The plugin has a
dry run
option that allow you to perform the search and replace (and getting the results) without actually performing any db query, this allow you to examine the result before making the changes.Any way a backup before doing anything is always the way to go.
Forum: Plugins
In reply to: [Search & Replace] … requires at least PHP version 5.4.0 errorHi @andyctyp,
Regarding the php version it’s really strange, I tested it and seems works correctly. May be the php version string you get isn’t interpreted correctly.
Can you copy / paste it?A file with an insecure url of “https://maps.googleapis.com/maps/api/js?sensor=true&ver=4.9.2” was loaded on line: 111 of https://www.highland-personal-development-photography-tours.com/.
This seems more a portion of code than a value stored into the database.
Where this string is found?Forum: Plugins
In reply to: [Search & Replace] Search yields blank screenHi @jeromeramone,
I tried the same latest version without problems, may be a plugin or a theme may cause slowness?
Can you try to deactivate temporarly all plugins except for search and replace and use a default theme?
Forum: Plugins
In reply to: [Log Deprecated Notices] Github Mirror no longer in syncForum: Plugins
In reply to: [Search & Replace] Plugin auto-generates link in tools panelMay be a cache issue?
Try to clean the cache and check if the issue persists.
If you have plugins that work with WordPress admin menu or in admin context in general, deactivate them temporary and check if the issue persists.
Please, before deactivating the plugins make a backup of the site and database, just to prevent problems.
- This reply was modified 6 years, 11 months ago by Guido Scialfa.
Forum: Plugins
In reply to: [WooCommerce] Users are not promoted to ‘customer’ after purchaseI think this should not be the behavior, why an user that can purchase products have not customer role? Doesn’t make sense.
- This reply was modified 7 years, 4 months ago by Guido Scialfa.
I installed the plugin within a multisite installation, network activated but doesn’t work.
Any advice?
Forum: Plugins
In reply to: [WP Force SSL & HTTPS SSL Redirect] MultiSite InstallationTested on a multisite without problems.
I changed the sites url directly from WordPress Settings and the main site directly from the db as of it’s cannot be updated within the dashboard.
Forum: Plugins
In reply to: [Contact Form 7] Deregister Style and EnqueueHi @takayukister,
Thank you for your reply, I understand your solution to the problem.
Thanks to your article I know that I can add filters to prevent the scripts and styles to load, but, why since WordPress way is to register and than enqueue script this plugin doesn’t follow that practice?
Instead of adding a filter would not more efficient to register than test if it is registered and in case enqueue the script/style?
In this way I can simply deregister the scripts also, I can check if the script/style is registered instead of check if the functions ‘wpcf7_enqueue_scripts’, and ‘wpcf7_enqueue_styles’ exists.
That’s my opinion nothing else.
Thank you
Forum: Fixing WordPress
In reply to: Different get_search_form for different functionsHi @iraislua,
You can hook to get_search_form filter that accept the form as string parameter and with some string search build and return your own.
Or, you can create a new wrapper function for get_search_form that take a parameter $which, so you can call the function to retrieve the custom form.
For example
my_search_form(‘custom-form’);
my_search_form(‘posts-form’);etc…
function my_search_form($which = '', $echo = true ) { // If the parameter is an empty string, call the default function. // Otherwise build your own. You can add multiple case statements to create a lot's of custom forms. switch ( $which ) { case 'custom-search' : $form = '<form>YOUR FORM CONTENT</form>'; break; default : $form = get_search_form(false); break; } if ( ! $echo ) { return $form; } echo $form; }
Hi @shaijuelayidath,
The WordPress searcher cannot search within your php files, this is by default and also is a security issue if you permit you users to search into the php code file.
Forum: Fixing WordPress
In reply to: Order queries by meta_value even if meta_key is not filledHello @varro,
Try to add the compare key as per WP_Query and Custom Field Parameters instructions.
The EXISTS value can solve your issue.
$query->set('compare', 'EXISTS');
Forum: Fixing WordPress
In reply to: iframe is not renderingIf you look at the console ( right click > inspect element > Console ) you’ll notice this:
Mixed Content: The page at ‘https://growalbertlea.com/property/’ was loaded over HTTPS, but requested an insecure resource ‘https://www2.locationone.com/requesthandler.ashx?username=aleda&appsection=buildings’. This request has been blocked; the content must be served over HTTPS.
So change the url for the iframe src by using the https protocol.
Forum: Fixing WordPress
In reply to: How to get a Post title to go over onto two lines when I want it toHave you tried with
<br />
tag?Tested with the default wordpress 2016 theme and work.
If with your theme doesn’t, probably the theme strip tags from the title.Forum: Fixing WordPress
In reply to: save image in upload folderHello omidparkour,
I had a closer look on this and I created a little snippet to store the user “avatar” into the upload dir, save it as user meta ( you should change the key of the meta ) and also show it on user profile.
First of all, you had not able to store the file into the upload dir because the profile form is not multipart, so I added an additional hook
function my_profile_multipart() { echo 'enctype="multipart/form-data"'; } add_action('user_edit_form_tag', 'my_profile_multipart' );
With that we can use the global var $_FILES to move the file into the upload dir.
For the path for the file I used uploads/users-avatar/{user_login} and for the file name the name of the original file. I think you should consider to use always the same name to prevent user to upload multiple files.
Here the code https://codepad.co/snippet/xjVvxCJ4 tested in a unix local server and WordPress version 4.5.2
Let me know if you encounter some issue.
Alternatively there are a bounce of plugins that add this feature.