RossMitchell
Forum Replies Created
-
Forum: Localhost Installs
In reply to: There’s a kickstarter for web developers that includes WordPressSuggest that you check: http://www.ampps.com/
They have a WinXP-32, this site will give you a suite that can install all the packages.On the other hand you put together a webserver in a RaspberryPi computer to connect to your LAN (or just your PC using a crossover cable) or WLAN. You would need a RaPi and a camera memory card, all the software is free.
Any of the RaPi variants would do, even the basic “Pi Zero” like this one on EBay:[ Removed ]
Lots of info here:
https://www.raspberrypi.org/products/raspberry-pi-zero/
This could work out cheaper than the kickstarter project, and you could be using it by the end of the week.- This reply was modified 8 years ago by RossMitchell.
- This reply was modified 8 years ago by Jan Dembowski. Reason: Removed ebay link
Forum: Fixing WordPress
In reply to: web server WAN/LAN connection problemWould you please describe what you did ? This way this support thread becomes more useful to the wider community.
Also if you think it is appropriate would you mark this thread as closed.Forum: Fixing WordPress
In reply to: Embedding Angular 5 website in a custom wordpress pageThe easiest way to put your special code into a web page is to put it in a custom page template. In your there directory, copy the “page.php” file to a newly named template, say “paracord.php”, and put you code just after the code that performs “the loop”. Then create a new page, probably put a basic set of instructions and explanation there, it will appear above where your code does its display, give this new page your customized page template.
Forum: Fixing WordPress
In reply to: web server WAN/LAN connection problemYou might be able to get a piece of your LAN software to map/forward the global IP to the RaPi’s LAN server. Can the router/modem be configured to forward the global IP when it is use on the LAN side ?
Now for a solution that will work:
– Configure the DHCP server in your router/modem to permanently assign a local IP to the RaPi, say “192.168.1.31”
– buy a domain name, say “myuniquename.com”
– set the domain name to resolve to your global IP
– configure the RaPi to use VirtualHost technique, details here:
http://httpd.apache.org/docs/current/vhosts/name-based.html
This will entail add VirtualHost directives in /etc/apache2/sites-enabled/001-local
Something like:<VirtualHost *:80> DocumentRoot /var/www ServerName myuniquename.com ServerAlias www.myuniquename.com </VirtualHost>– do the “Moving WordPress” procedure and reconfigure the RaPi to use the domain name in site address and WordPress address.
The website is now accessible from the world using the domain name, now for all the PCs on the LAN.
– on each PC on the LAN that will access the RaPi site, add these line to the “hosts” file:192.168.1.31 myuniquename.com 192.168.1.31 www.myuniquename.comOn the RaPi this would be:
127.0.0.1 myuniquename.com 127.0.0.1 www.myuniquename.comDetails on the hosts file for various flavors of Windows/Linux/Mac at:
https://en.wikipedia.org/wiki/Hosts_(file)Forum: Fixing WordPress
In reply to: Account creation with email address *@domain.comThere are plugins that let you create LOTS of email accounts using a list, the one I am familiar with seems to be no longer current, there are others.
Forum: Networking WordPress
In reply to: Should I use addon Domains for customerswhether to go with a WHM Reseller account, or Hosting Reseller account.
What are the relative costs and what quotas of domains / disk space / bandwidth etc does it provide ?
The charm of being a “WHM Reseller” (which I think is my level), is that The hosting software and management of the server is all done for me. I don’t have to manage the server, or administer it beyond allocating quotas to each cPanel account.Forum: Fixing WordPress
In reply to: Adjusting distance from navigation bar and 1st rowUsing my browser’s web inspector, I can see that you have this CSS active:
#content { padding: 71px 0 77px; } .page-content, .entry-content, .entry-summary { margin: 1.5em 0 0; } .fl-row-content-wrap { padding: 20px; } .fl-module-content { margin: 20px; }So you would add this to the customizer > Additional CSS:
#content { padding: 0; } .entry-content { margin: 0; } .fl-row-content-wrap { padding-top: 0; } .fl-module-content { margin-top: 0; }Forum: Fixing WordPress
In reply to: Problems with Claiming Website on Pinterest and YouTubeThe way I always claim sites for my google webmaster ID is to place the file with the very long name that includes the ID and has contenst with the same ID, I put this file into the website root directory. Minimum impact and minimum disclosure. Not sure if this also works for youtube.
Forum: Fixing WordPress
In reply to: Theme/plugin suggestion pleaseSuggest that you go to the themes section of this website, and use the feature filter to find some candidates, try a few to see what they provide in their native form, in the early stages changing theme is relatively lightweight, later on it may be more effort than you want to invest.
Many of the extra features you want to hoist are provided by plugins, be prepared to experiment with a few on your journey.Forum: Networking WordPress
In reply to: Should I use addon Domains for customersEnrolling multiple client websites inside a shared cPanel account is not a great idea. There is not sufficient separation between sites, they all share the same bucket of file space, bandwidth quota, email accounts, etc.
A much better approach is to subscribe yourself as a WHM reseller, you would create a cPanel account for each of your clients, controlling their quotas, even give them dedicated IP addresses, etc. This way the sites and domains are strongly independent. Only a few of my clients have ever used their cPanel logins themselves, that is something I still do. Using the WHM login and management panel I can flip between a cPanel screen for all of the accounts, it also give me a firm foundation for charging them for their hosting services.
Forum: Fixing WordPress
In reply to: Searching a specific table in WordPress …A few more points I skated over in my earlier sketch.
Create a new page and attach your page template to it, give it a menu entry. The text you put on this page will appear above the search form, so make it general instructions and so on.
You will want to enable debugging in your website, details here: https://codex.wordpress.org/Debugging_in_WordPress
You will really need to write clean PHP code, as when you make a syntax error all you get is a blank screen, not that helpful, this online checker is a great help:
https://www.piliapp.com/php-syntax-check/Forum: Fixing WordPress
In reply to: Searching a specific table in WordPress …There are various ways the code could be organised. It could be in a plugin or your functions.php where it would register shortcodes. OR it could be in a custom page template, provided it is in a distinctly named file there may not even be a need to create a child theme.
I will describe a page which does both search form and result display table, you can fiddle the search terms and submit it and get a refreshed display, the rest of the page is normal WordPress, normal header, menu, sidebars, footer etc.
So in your theme folder, make a copy of page.php and call it “booksearch.php”, most of it will be unchanged, but you will be adding a good deal of code to it, find the place just after “the loop” but still inside the div with class “the-content”, add code that does this:
– first add a form that contains the search fields, say “Author, title, edition, first year and last year”, this form will have a SEARCH button which does a submit using post data to an URL which is the same page as this page. In laying out the html for this form, test if the POST variables are set, if they are echo them into the form values, if not set then choose default values to search on.
– next you do an SQL search using the fields from the form (or defaults), maybe you limit the results to say a hundred rows.
– THEN EITHER:
a) there are no results and you display “<p>No books match your search.</p>”
OTHERWISE
b) Output a table header and column titles, then for each result output a table row with the results. Then you close the table.Many elaborations are possible such as:
– javascript to clear the search form.
– pagination of search results.
– a link in each row to edit that row, participate in a blog on that book ?When I was getting started with this type of application I found this plugin to be very helpful, it showed me examples of forms, SQL queries, and so on:
https://wordpress.org/plugins/wp-csv-to-database/ Author: Ruhul AminForum: Fixing WordPress
In reply to: Create a child themeThose instructions have always worked for me.
Could you post your “style.css” file here.Forum: Fixing WordPress
In reply to: Rename public_html folderOn a dedicated server where I had total control it would be possible to rename and adjust the configuration of a website root directory such as your public_html, but on a cPanel managed shared posting site it would be out of the question, among other issues you would be changing the domain name that anchors the hosted account.
So rather than instruct you on how to do this change which I suspect is nearly impossible, may I ask WHY ?
Can you explain in more detail just what problem you want to fix, how you want the new organization to operate and be managed ?
Everything I know of cPanel managed hosted servers tells me that changing the public_html directory is going to bring a world of pain.Forum: Fixing WordPress
In reply to: Do I need a separate account to start another site?Using this website: https://www.whoishostingthis.com
it tells me that your website: 9jackk.com
is hosted by “Cogeco Peer 1”, this link tells you something about them:
https://en.wikipedia.org/wiki/Cogeco_Peer_1
your name is registered through wordpress.com though this does not itself show that the hosting is with them.
However I see that your site incorporates “mu-plugins” which is certainly not something anyone with your knowledge would install. So I conclude that your site is being run by a merchant running “multisite” hosted websites, but WHO is it ?
Maybe it would help if you related how you registered the website name and how the website was started, if you have any contact details from back then, they will tell you who you need to talk to.