RossMitchell
Forum Replies Created
-
Forum: Localhost Installs
In reply to: Virtualhosts address after wordpress installationCould you list the apache2 configuration files that include the “VirtualHost” blocks ?
This is where the domain name gets translated to a file directory.
Forum: Fixing WordPress
In reply to: Download for registered users onlyIn the plugins archive her I did a search upon “file download members” and got many candidates.
Yes it is true that once a file is on a website that anyone with the URL can download it, but there are some significant practical limitations you can impose:
– they must know the full name
– they must get past any access rules in your “.htaccess” fileForum: Developing with WordPress
In reply to: How to displa plugin in header?Most likely you are trying to put the shortcode into a widget area that is in the page header. It seems that shortcodes in text widgets are activated without further configuration, however if you instead use a custom_HTML widget, then this code is required:
add_filter('widget_text', 'do_shortcode');Forum: Fixing WordPress
In reply to: Send just some of the order-items.Have you asked in the woocommerce support forum ?
It would be simplest for you to have two websites.
First you move your present website to the “blog” directory, details here:http://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server https://codex.wordpress.org/Giving_WordPress_Its_Own_DirectoryThen install your new website.
- This reply was modified 8 years, 2 months ago by RossMitchell.
Forum: Localhost Installs
In reply to: Virtualhosts address after wordpress installationI think you intended:
dig mysite.dev
instead ofdigitDo you have SSL installed ? https or http ?
Which method did you use to install WordPress ?
Do the netbeans websites still work ?
Please check, what is in your “hosts” file ?
Please try each of these:
http://mysite.dev/readme.html http://localhost/mysite.dev/readme.htmlDoes the HTML file display ?
Forum: Fixing WordPress
In reply to: page navigation not shown on poduct list pageHave you asked in the woocommerce support forums ? The theme support forum ?
You may find more immediate assistance there.Forum: Fixing WordPress
In reply to: User input to databaseYears ago when I had a requirement like this I didn’t find any close matches in the plugin archive. What I did find was:
https://wordpress.org/plugins/wp-csv-to-database/
Which gave me a lead on several crucial aspects including:
– html forms and submitting data for php processing
– database access, inserts etc
– demonstration of plugin orgainsationOther useful things are:
https://codex.wordpress.org/Shortcode_API
http://codex.wordpress.org/Class_Reference/wpdb
https://www.piliapp.com/php-syntax-check/Forum: Fixing WordPress
In reply to: creating Event Builder PluginSo you presently have an “AllEvents” page, you need to add an “EventDetails” page.
In the allevents page you have a list or table of events, in name of the event you code it as a link with the URL referring to the eventdetails page with a variable indicating which event. On the eventdetails page you have a shortcode, it activates a function which uses the event identifier to fetch the event details and display them.It could also be done using javascript and AJAX. This could be a better user experience as it could eliminate the page loading of the above scheme, you would want to use the initial scheme as a stepping stone.
Your link just gives me a login page, it may work better if you post a screenshot.
Have you previously been able to update plugins ?
What happens when you manually update the plugin using FTP ?Forum: Fixing WordPress
In reply to: Site did work, now CSS missing and links brokenI think you should be getting everything to work with the dev settings such as:
“test.devservername.com”
and putting the server’s IP address in the site and wordpress address, this will give you a solid point of departure.
Evaluating the server address once at page / post / image etc creation time then saving it as part of the item’s valid identity and expecting that address to work subsequently from other network origins is going to stuff the database with relic addresses.
Once you have the website working again, then go through the moving WordPress procedures, then move the site, then install the “broken link check” plugin, disconnect your server from the internet and check that you have no broken links.I think it unlikely that the WordPress version is relevant in this problem, it is the mySQL that operates upon the database and is generating these errors. There are historical WordPress versions available from here:
https://codex.wordpress.org/Current_events
by all means download and install your prior version and try it.Have you upgraded you XAMPP package ?
What does your phpmyadmin database browser have to say ?
What happens when you restore a backup of your database ?Forum: Fixing WordPress
In reply to: Theme Development on Existing SiteOf course you take a backup snapshot of your present database and files, this goes without saying.
Many options and settings in the options table are saved as as key > value pairs where the key includes the theme name as a prefix, so menus etc have to be recreated when you change theme, similarly if you change back to a prior theme then the old settings come back.
What you could do is use a moving WordPress plugin such as “Duplicator” etc and make a copy of the present site to use a subdomain. Work upon your new theme customization and settings at the subdomain, get the client and key site users to trial it etc. THEN use “Duplicator” etc to copy the subdomain site to the main site. Again you keep backups of each phase.
A different approach that I have used, which seems to be unconventional and I don’t know why, is to take the snapshot of the present site, and set it up on a localhosted using the “VirtualHost” configuration method under the SAME domain name, the website barely knows it has moved. You work on the website but now when you need the client to see it, you use “teamviewer” (from teamviewer.com) to have the client view your screen from their computer, this is actually a bonus since you get to mediate the session (have them on the phone at the same time, or skype). Then when you want to deploy the new theme, you upload the theme files (and other new files), and export the database from the localhost and import it on the main site.
The critical docs for this technique are:
– configuring VirtualHost http://httpd.apache.org/docs/current/vhosts/name-based.html
– using the hosts file https://en.wikipedia.org/wiki/Hosts_(file)Forum: Fixing WordPress
In reply to: Connecting To Loan Company APINot sure that there is that much to know.
I am sure there is a doc somewhere, not sure I have read it. Found it now, on this page: https://codex.wordpress.org/Main_Page
Is a section “Write a Plugin” with three parts:
https://codex.wordpress.org/Writing_a_Plugin
https://codex.wordpress.org/Plugin_API
https://codex.wordpress.org/Plugin_ResourcesWhen I started I had much more experience reading PHP than writing it. Please read the sample that launched me:
https://wordpress.org/plugins/wp-csv-to-database/
Yes it has nearly 700 lines, but spend 5 minutes scrolling through it, plant memories like “so that is how xxx happens”, so that you can get back to it later.
You will see that there is a php file with the same name as the directory, so give your plugin a distinct name.
It is possible that you don’t need any options or configuration for the plugin, so all that can get removed.//your shorcode stuff need not have anything to do with much else, may I suggest // something like this: class ABC_class { private $varA; //all the classes private variables private $varB; public function __construct() { $this->varA = ""; $this->reset(); } private function reset() { $this->varB = ""; } private function support_fn() { } public function do_foobar() { //the shortcode gets done here } } //[foobar] function foobar_func( $atts ){ //supply custom loan API $mru = new ABC_class(); $mru->do_foobar(); } add_shortcode( 'foobar', 'foobar_func' );Forum: Fixing WordPress
In reply to: Footer HelpYes, links to sitemaps, contact details, contact form, privacy policy etc, all are good ideas.