RossMitchell
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Replace image on several pages with PHP or CSS?It would help us help you if you posted a link to your website. And indicate which pages get which background.
Forum: Fixing WordPress
In reply to: Header image never fitsI suspect that WordPress has never seen the new image and is using the original one.
Give the photoshop resized one a new and distinct name, place it in your header.
View the website and use a browser inspector to check that the image is the correct name, and the css is showing it correctly.It would help us help you if you included a link to your website.
Forum: Fixing WordPress
In reply to: Form problemWhat was the last thing that you changed ?
There is only so much that I can see in the screenshot. If you posted a link to the actual page I could use a browser inspector to see why the css was doing that.
Has the page been html and css verified ? Try:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/You could try disabling plugins.
Forum: Developing with WordPress
In reply to: theme childrenThere is a weird bit at the end of the functions.php file, after the final “add_action” is a block of code that looks like it should be a comment, but is not. This could be derailing your task.
Have you enabled debugging ?
Have you verified the php files ?
An online verifier: https://www.piliapp.com/php-syntax-check/Forum: Fixing WordPress
In reply to: Internal Error 500 after installing wp fastest cacheHave you asked in the support forum for this plugin ?
Forum: Fixing WordPress
In reply to: Redirect to same page but with variablesAs you said, you created a loop.
Instead you could:
– if you are not already using a child theme, then change to using a child theme.
– create a customised page template for you special page, in it examine the passed in parameter “catid”, and when it is not set then give it your default value, the rest of the page template is a straight copy of the original template.Forum: Fixing WordPress
In reply to: save to db with wpdbAs necafasu said.
Also enable debugging in your wp-config.php, finddefine('WP_DEBUG', false);
and replace it with:
define('WP_DEBUG', true);
possibly also add:
error_reporting(E_ALL); ini_set('display_errors', 1);
Be sure to remove these when you are done, they are possible security and performance problems.Forum: Fixing WordPress
In reply to: May I know what plugins are needed to achieve this?I don’t know of a plugin that does this off the shelf. However I have coded plugins that work along these lines, this plugin was my starting place, it showed me how a plugin can do database operations, and how to use website controls to manage this interaction. The plugin:
https://wordpress.org/plugins/wp-csv-to-database/Rather than doing the displays in the dashboard, you would instead register shortcodes which activate functions from the plugin. Details here:
https://codex.wordpress.org/Shortcode_APIYou will need to be aware that vigilance is required in making your application safe by using “prepare” techniques to prevent malicious users from hacking you, details here: http://codex.wordpress.org/Class_Reference/wpdb
I would use WordPress roles to differentiate types of website users, your clients would be say subscribers, you would be an editor or administrator. There would be several shortcodes, one would be in the page your clients would view to see their table, others would be used by you to manage these tables.
The php function behind the subscribers page would:
– check that they were logged in and subscribers, if not shows that “you are not authorised to view this page” and exit, non clients would see this.
– do a select query on a custom database table using their WordPress ID as key
– the resulting jobs would be displayed in a table.The functions available from your pages would:
– check that you were an editor, display “not authorized” and exit otherwise.
– do a query on the whole custom table, sorted as required.
– show all jobs, on each row have a button that invokes an edit page on that row, also have an “add job” button.– the edit page would be able to update fields and also be able to delete the job.
Forum: Developing with WordPress
In reply to: Basic PHP help neededNot at all, it works perfectly. Just in my opinion a little verbose.
Forum: Fixing WordPress
In reply to: Moodle to WordPressAll things considered, just pay for the Edwiser Bridge with extension.
You have run yourself out of time, you know that this will work, and any alternative will take time you don’t have, and even then may not work.Forum: Fixing WordPress
In reply to: Invalid Email AddressYour problem is not so much that there is a problem with your email address, but that the address is no longer working as a means to login to your site, it seems that all other uses are working, which is good.
What you need to do is to fix this login problem, this doc lists many different ways to break back into your website and fix the login, all the methods work, it just depends which suits your skills and circumstances best, GoDaddy support may also play a role:
https://codex.wordpress.org/Resetting_Your_PasswordI tried going into the hosting site, Go Daddy, to change the password but that also doesn’t work.
With the instructions above, you will be able to change the password.
Forum: Fixing WordPress
In reply to: The requested URL was not found on this serverFirst find your “readme.html” file at the root of your WordPress files, get it to display in your web browser. This tells you the URL where your website presently lives. Then use these docs to sort out what you want:
http://codex.wordpress.org/Moving_WordPress
especially: http://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server
https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
http://codex.wordpress.org/Changing_The_Site_URLForum: Fixing WordPress
In reply to: How to get back urlForum: Fixing WordPress
In reply to: Попытки взломаTranslation:
Good afternoon! I ask you to help protect your account. Attackers on an ongoing basis (5-10 times a day) are trying to pick up a password to the control panel. What should I do?1) Make sure that you do not have an administrator named “admin”, if the attackers are unable to guess the name then your problem is half fixed.
2) Make sure that all the administrator account passwords are long enough and complex enough and are not also used on other accounts.
3) Install one of the security plugins like wordfence.Forum: Developing with WordPress
In reply to: Basic PHP help neededYour code is already quite good, there would be no problems if you left it as it is, I would expect that anyone in the future who had to read and modify this code would be able to follow it.
This is what I would change it to if it had to exist in my perfect world:endif; // Check for have_comments(). // If comments are closed and there are comments, let's leave a little note, shall we? if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) { echo '<p class="no-comments">' . _e( 'Comments are closed.', 'twentyseventeen' ) . '</p>'; } ?> <div class="hidecform"> <input type="checkbox" id="toggle"> <label for="toggle" class="toggle" onclick=""></label> <?php comment_form(); ?> </div> </div><!-- #comments -->