RossMitchell
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: custom user experienceI have created WordPress websites a little like this. It hosted competitions which had contest convenors + judges + participants, all still were just subscriber logins as far as WP was concerned. There are additional database tables that key on WPid to provide the extended user attributes, also a table which captures the tenant<>subordinate relationship.
I would not expect you to find an existing solution that fulfills your needs, rather you will find lots of useful examples to learn and borrow from.
The functionality can be provided using either shortcodes or custom page templates, I also customized the page header so that the menu presented depends upon the role, hence a child theme is required.
The first test in each page is that the user has the correct role. It would then progress to presenting the appropriate table of results data or a form to gather data. Code that processes submitted data also needs to check matching user roles and nonces etc. This code will form the beating heart of your application. You will also need javascript and AJAX in the pages.When I was getting started I found this plugin very helpful:
https://wordpress.org/plugins/wp-csv-to-database/ Author: Ruhul AminForum: Developing with WordPress
In reply to: Cannot get php to trim();Suggest that you put:
print_r( $total);
Into your code to see what it really is + what else it offers.Forum: Fixing WordPress
In reply to: Custom ListsI have created websites that do this.
First there is a plugin to do the CSV import to a custom table:
https://wordpress.org/plugins/wp-csv-to-database/ Author: Ruhul AminSecond in a child theme I created custom page templates to display a search/query form and display the results, also an add entry form, you will probably also need delete and edit. I found that the CSV import plugin was an excellent tutorial on handling SQL plus handling the SUBMIT actions. Rather than page templates you could do it using shortcodes instead.
Forum: Fixing WordPress
In reply to: Removing BoardersI used my browser inspector and found that the border was padding, to change it use the customizer > Additional css to add:
.boxed-layout .element-inner { padding: 0; }Sorry I have not been able to find the element which has the background color. Suggest you try yourself with your browser inspector.
Forum: Developing with WordPress
In reply to: New to javascript in wordpressBy replacing the theme “header.php” file with your own, you are disrupting the WordPress page assembly flow, lots of things you expect to happen just will not get started. So reinstate your theme’s header.php file please.
Then to get your paragraph with id=”demo” and your button, put them into the text of a page. View the page and check with your browser inspector what has been loaded.Forum: Localhost Installs
In reply to: function.php what the effect?I strongly recommend that for the moment that you stop developing your own theme and instead focus upon php and the WordPress way of doing things.
Learn how to create child themes, (details here):
http://codex.wordpress.org/Child_Themes
Choose one of the standard themes, or one which suits your needs. Then using the child theme mechanism customize it. Along the way you will learn the WordPress page architecture, including:
– the file: functions.php
– page templates
– hook functions
– filter functions
– shortcodes
– plugins
Once you have even a limited understanding of all of these, even at a reading level, you will be in a better position to create your own themes, truly I have never needed to do this myself because I have always found an existing theme which I could customize to my needs with much less effort.
I would also be surprised if dreamweaver remained a significant part of your workflow, for me it just does not align with how WordPress assembles page components.Forum: Fixing WordPress
In reply to: Is there a way to duplicate/ clone my wordpress website?There are plugins such as “Duplicator” which assist with this, it lets you:
– create a copy of all the files, this is actually trivial even if the result is large with many files.
– create a copy of the database with the required URL changes to the new URL. This is the trickier part.However I caution you from duplicating the site, it means that all future updates to the website pages+posts+catalogue have to be done twice. Better would be a modification which catered for displaying prices in different currencies, let people choose their currency and made an initial guess using IP addresses etc as to the country of origin of the request.
Forum: Developing with WordPress
In reply to: How to hook into post content edit with a javascript pluginSorry, but I am finding your terminology unclear.
Javascript is always browser side, it runs in your web browser.
On the other hand plugins run in the server, their language is PHP, hooks are always PHP.
There are various forms of communication between them, sometimes AJAX, othertimes by POST etc.
Maybe clarifying the terminology and division of labor will help.Forum: Localhost Installs
In reply to: 404 error for my multisite subdirectory sites.You are asking in support for localhost, I for one do not have experience with multisite.
Suggest that you seek support wherever multisite is supported (spoken).Forum: Fixing WordPress
In reply to: 404 error pages What’s this?The 404 page is the “page not found” response. The 404 is part of the html spec regarding standard behavior.
WordPress gives you the ability to customise the page not found report that you present to your users, it is part of the theme configuration.Forum: Fixing WordPress
In reply to: Media & Text block indention if image on the rightMy guess is that this is an interaction between your theme and the new layout used by Gutenberg. All of your website layout is controlled by the CSS of your theme (and possibly plugins).
Suggest that you use your web browser’s “browser inspector” to see your pages html and how your css is effecting the layout, most likely some css changes will fix your problem, use either your child theme or more easily the “Customizer > Additional css” tab.
It would help us help you if you provided a link to a page with your problem, but maybe you don’t and won’t publish one that has this layout problem which is understandable.- This reply was modified 7 years, 4 months ago by RossMitchell.
Forum: Fixing WordPress
In reply to: Banned from my own websiteSuggest that you login to your website hosting management, get into the database management, download a copy of your database in a .sql file. Find your IP address in the database. The context will tell you a lot about who and what is blocking you.
Forum: Fixing WordPress
In reply to: Issue with the menuWhat happens when you view from a different browser ? Different computer ?
Forum: Fixing WordPress
In reply to: Can’t access admin on my siteThe short answer is to get your friend to sort out your problem.
As an aside it is always a bad idea to reuse credentials on different sites, it means that a security leak on one impacts the others. It also has the effect of confusing people about which service does what.
Maybe your friend created your hostgator account but did not install WordPress.
Why didn’t you install WordPress at GoDaddy ?
I think everyone is confused now.
Forum: Fixing WordPress
In reply to: Corruption of databaseIn your website hosting management login, there will be settings and access to server logs.
If you need more specific directions then ask your website hosting technical support.