chrisdavisberry
Forum Replies Created
-
Sorry … I have an extra step to my suggestions (see top post)
It should come between 2 and 3 on my list…
Go to settings, general and check “New User Default Role” has not been changed from your normal settings… usually Subscriber, or Customer on stores.
So the complete list to recover the infected website:
1. Edit the site_url via the wp-options database (this should let you back into the site)
2. Access site backend (dashboard) and remove false admin account
3. Go to settings, general and check “New User Default Role” has not been changed from your normal settings… usually Subscriber, or Customer on stores.
4. Update to the latest version of the Easy WP SMTP plugin
5. Change your database password (in wp-config) and any other insecure content an admin could see.
6. Run a full (High Sensitivity) scan on the site (via Wordfence plugin) and follow all the suggestions of that scan. You need to select the High Sensitivity option in the “Scan options and Scheduling” of Wordfence.Alternative, If you have a site backup
If your site has malicious files or code and you have a backup dating back before the infection….
When you check your site files you can see when these files were altered. You can also usually see the time the admin user was added to your account.
Instead of cleaning files one by one if you have a backup available from before this time or date then i strongly recommend installing that backup to replace the current site – ideally from a few days before if your site has not changed much in that time.
Its a much quicker process… but remember to update the plugin to 1.3.9.1 on this backed up version and follow the other steps outlined.
Again, hope that helps.
In all likelihood if you see one malicious file or piece of code you will start to find more. The scan step is crucial.
I should have been clearer with my steps….
Number 5 should be:
5. Run a full (High Sensitivity) scan on the site (via Wordfence plugin) and follow all the suggestions of that scan.
You need to select the High Sensitivity option in the “Scan options and Scheduling”
If your site has malicious files or code…
When you check your site files you can see when these files were altered. You can also usually see the time the admin user was added to your account.
Instead of cleaning files one by one if you have a backup available from before this time or date then i strongly recommend installing that backup to replace the current site – ideally from a few days before if your site has not changed much in that time.
Its a much quicker process… but remember to update the plugin to 1.3.9.1 on this backed up version and follow the other steps outlined.
Again, hope that helps.
- This reply was modified 5 years, 11 months ago by chrisdavisberry.
To recover the infected website:
Fix it by:
1. Editing the site_url via the wp-options database (this should let you back into the site)
2. Access site backend and remove false admin account
3. Update to the latest version of the Easy WP SMTP plugin
4. Change your database password and any other insecure content an admin could see.
5. Run a scan on the siteHope this helps anyone needing it.
According to monsterinsights you can can manually add the code still but its lost all the user friendly appeal it had:
https://www.monsterinsights.com/docs/how-to-manually-add-the-ua-tracking-code-to-monsterinsights/
/** * Manually set a custom UA code in MonsterInsights. * * @param string $ua The current UA code. * * @return mixed */ function monsterinsights_custom_manual_ua( $ua ) { $ua = 'UA-123456-1';// Replace this with you UA code. return $ua; } add_filter( 'monsterinsights_get_ua', 'monsterinsights_custom_manual_ua', 15 );
Be sure to replace that UA code with your own Google Analytics UA code. If you aren’t sure what your UA code is, please see the first step in our guide: How to Fix Wrong Google Analytics Profile Selected in Settings.
Hope that helps
Forum: Plugins
In reply to: [GEO my WP] Method to set a default option on a Search Form DropdownHi Eyal,
I am going back to my very first query and I wonder if you can recommend something.
I am wondering if there is a method to set a default value on a Search Form dropdown.
For example:
On https://handheld.simplecsr.com/countryside-walks/ I have a dropdown Category for “Route Type”.
I would like this to default to “Countryside Walks” (one of the terms) instead of “All Route Types” if possible.
Thanks
ChrisForum: Plugins
In reply to: [GEO my WP] Method to set a default option on a Search Form DropdownHi Eyal,
But any changes here would not survive an update and I need to do this for at least 4 different forms on the site.
Is there a premium extension which will restict search results (or the posts that are searched by a form) to only those in a given taxonomy term?
If their isn’t then going back to my original example -https://handheld.simplecsr.com/countryside-walks/ is there a method to set the default of the form “Route type” dropdown to a specific term “Countryside Walks” in this example.
Thanks
ChrisForum: Plugins
In reply to: [GEO my WP] Method to set a default option on a Search Form Dropdownhi,
A method may be to edit the custom results template for that form and edit the custom loop to exclude results not using the matching taxonomy term.
<?php while ( $gmw_query->have_posts() ) : $gmw_query->the_post(); ?>
I could then hide the route type filter from that form.
Can this be done in the custom results.php template that I am using.
Thanks
ChrisForum: Plugins
In reply to: [GEO my WP] Method to set a default option on a Search Form DropdownHi Eyal,
Sorry i forgot to add… If necessary it would be sufficient to make the drop down Route Type default to a specific term (in this example Historic Home Walks.
I have been looking at adapting one of the scripts you provided to do this:
function gmw_modify_taxonomy( $args, $gmw, $taxonomy ) { //check that we are within form ID 1, otherwise do nothing if ( $gmw['ID'] != 1 ) return $args; //check that this is 'category' taxonomy, otherwise do nothing if ( $taxonomy->name != 'category' ) return $args; //modify the show_option_all of the taxonomy which is responsible //of the default value of the drop-down select box $args['show_option_all'] = ' All Categories'; //return the modifyed args return $args; } add_filter( 'gmw_pt_dropdown_taxonomy_args', 'gmw_modify_taxonomy', 10, 3 );
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Thanks
ChrisForum: Plugins
In reply to: [GEO my WP] Method to set a default option on a Search Form DropdownHi Eyal,
I got this solution working really nicely to generate a list of results on initial page view using a version of the code you supplied.
The issue I still have is once the page has loaded I was trying to allow the user to search posts but only searching terms that match the initial query.
For example: when a user visits https://handheld.simplecsr.com/test-historic/ they only see results matching the Route Type > Historic Walks
But when they search using the on page form can these results be limited to only include results matching Historic Walks (without the user having to manually set the filter.)
Many thanks
ChrisForum: Plugins
In reply to: [GEO my WP] Method needed to hide the Additional Information fieldsHi,
1. I haven’t managed to find a way to edit or hide these admin fields. NO CSS is working for me. Maybe i need to add it in a different css file. (I did find an admin one which may give some clues)
2. Is there a template file I can access to edit the details that show in the map wppl-info-window? (I would like to include a link button to the post, and list some basic post details or taxonomy terms and make the thumbnail into a link.)
Many thanks
ChrisForum: Plugins
In reply to: [GEO my WP] Displaying different search forms on one pageHi Eyal,
Thanks for this. That confirms my plan. The key part for anyone else being the need to change the class references in the template files.
I have seen your forum on your site but for some reason I cant work out how to register on the forum to be able to post.
Thanks
ChrisForum: Plugins
In reply to: [GEO my WP] Method to set a default option on a Search Form DropdownThat looks like it will do it.
I will plan out what defaults i need then once added i will let you know how it worked.
Many thanks
ChrisForum: Plugins
In reply to: [GEO my WP] Method needed to show location map on the postNo Problem. Thanks for your help.
One similar wording error that might cause issues is in the “Excerpt” section of the Form Search Results edit page….
It currently refers to setting a “Words count:” count but what is actually doing is a “Character count:”
Thanks again for you help
Chris
Forum: Plugins
In reply to: [GEO my WP] Method needed to hide the Additional Information fieldsHi Eyal,
I am using a child theme with custom css panel. Adding that code to either the custom css theme panel or my own child does not hide this.
.gmw-location-section.additional-information-wrapper {
display:none;
}I have made other changes to the CSS but only by copying the files into my theme.
Where/ which file do I need to update this in to hide this on the create forms?
Many thanks
ChrisForum: Plugins
In reply to: [GEO my WP] Method needed to show location map on the postHi Eyal,
I knew I was missing something! Thanks.
On the shortcodes example on Single Post Location the sample short code is:
[gmw_single_location map=”1″ width=”100%” height=”450px” additional_info=”0″ directions=”0″]
This is missing the map_ prefix to the height and width attributes. It should be:
[gmw_single_location map=”1″ map_width=”100%” map_height=”450px” additional_info=”0″ directions=”0″]
It may be worth updating in the next update.
Many thanks
Again