RossMitchell
Forum Replies Created
-
Forum: Localhost Installs
In reply to: Cannot access from external to my local siteI have solved this problem of demonstrating a website by using Teamviewer, a free download from teamviewer.com
It is possible (but not recomended) to setup port forwarding etc on your LAN’s internet connecting modem/router.
Forum: Localhost Installs
In reply to: Localhost MAMP install problemsAn important intermediate step in the setup is to see if you can load the file “readme.html”, if yes then a substantial part of your configuration is correct, if not then you have something to get right before even starting on the WordPress setup.
The 500 error on creating wp-config.php interactively is most likely just a file permissions issue, mostly I don’t bother fixing these on localhost because just accessing the files locally is easier.Forum: Localhost Installs
In reply to: WP Core upgrades being done in parallel considerations?Are you running multisite ? If so then there is really only one installation and there will be no issues.
Forum: Developing with WordPress
In reply to: Is it possible to search another page’s DB?Another approach:
– Have all of the different company WordPress websites use the SAME database in the same shared hosting account, have each use a different “$table_prefix” setting in their distinct wp-config.php file. This way each site remains independent.
– Put the shared event data into separate and distinctly named tables.
– Create shortcodes which invoke functions that query and display the event tables contents, this code is probably identical across all the sites, code could be in a plugin or add to child theme’s functions.php file, each site has its own copy of the shortcode functions. The queries used by the shortcodes name the tables in full.
– One site may have extra shortcodes which manage/edit the event tables, but could possibly give access to all sites.The only drawback is that this design is not great security, the different sites share permissions on all the tables, they could interfere with each other. The also share the same cPanel account.
- This reply was modified 7 years, 1 month ago by RossMitchell. Reason: clarification, extra details
– I have helped people fix this problem many + many times. In the dashboard they get to “Settings > General” and the first two items they see are “Site Address” and “WordPress address”, so they change them!!!!! Then they can’t get back to change them back.
Maybe your plugin could give a warning and give them a special encoded + signed + validated rescue URL with parameters that reversed the bad change.Forum: Fixing WordPress
In reply to: Create Small Web App with WordPressThere are lots of membership plugins available here. Your club members will each have a WordPress account, the plugins have lots of options, I would be sure you will find one that is suitable.
There are also plugins that will let you migrate your members.Yes, it may be that you are “using a difficult theme”.
Suggest that you ask in the theme’s support forum, (nothing there yet).
This theme is looking very thin, though 800+ installs there are no reviews at all.
Suggest that you experiment with another theme (even one of the default 2018 etc ones), and see how the template mechanism works in general.Forum: Localhost Installs
In reply to: Lamp server with WordPressIt can be done, several variations as to how.
Dione is correct in that you only have one setting for the site address and WordPress address in your WP settings, but it can mean different things to different computers depending upon where they are and how they are configured.Configure your RaPi to have a fixed IP address on your LAN.
A) You have a permanently assigned and fixed IP address for your internet gateway.
Get a domain name or subdomain, set the nameservers to point to the router’s permanent IP address, set port forwarding to your RAPi, configure the WordPress to use the domain name in the site address and WordPress address. Configure the Apache server to use the “virtualhost” method, details here:
http://httpd.apache.org/docs/current/vhosts/name-based.html
B) You don’t have a permanently assigned IP address from your ISP, so use one of the dynamic IP solutions, otherwise similar to A) with a name that uses the dynamic IP service.On your LAN, use the “hosts” file on each computer to map to the RaPi, including the RaPi’s “/etc/hosts” file itself, details on hosts files here: https://en.wikipedia.org/wiki/Hosts_(file)
Now computers on the LAN, and on the internet, all can see your RaPi server.
On the other hand, if your ISP has given you a permanently assigned IP, then ignore the virtualhost method, set the WP site address and WordPress address to this, maybe the router will still redirect LAN traffic using the port forwarding, even when the traffic comes from the LAN side.
Forum: Developing with WordPress
In reply to: Building Dynamic Menus with PHP CodeThank you bcworkz, I should have mentioned using filters and hooks to adjust and replace the generation of the menus, note that this route is also somewhat theme dependent.
Forum: Developing with WordPress
In reply to: Building Dynamic Menus with PHP CodeIf you want to put the menu into a widget area then you can put a shortcode into the widget which will activate your php function, you may also need to follow this article:
Enable shortcodes in widgets, from: https://digwp.com/2010/03/shortcodes-in-widgets/ add_filter('widget_text', 'do_shortcode');Of course if you wanted the menu to be in a page or post then you could put the shortcode in the page or post.
If the menu is not in a widget (or page/post) area then you will need to get into
the page templates, depending upon your theme probably in a file like “header.php”.
Be sure to be using a child theme, details here: http://codex.wordpress.org/Child_ThemesSometimes I have taken a middle road, each of my category pages wanted a different sub menu in the sidebar, so in the child theme category template file I tested the category and chose a different menu to match, so in this case the menu was chosen dynamically but had static content.
Forum: Networking WordPress
In reply to: Unmap a siteHello normanboyster,
By all means search and browse these forums to learn and solve problems, however the accepted method of seeking support is to start your own thread.
Accordingly could you start a new thread, describe your problem in detail, also describe what type of WordPress system and hosting you have.Forum: Fixing WordPress
In reply to: Client Log/TrackerYes, this can be done easily.
I suggest that you look at how the “Beyond The Whiteboard” or the “exercise tracker” plugins work and customise them to your needs.
Create custom database tables to support your data, use either shortcodes or create page templates to activate your code, be sure to validate that your user is logged in and use nonce type session validation.Forum: Localhost Installs
In reply to: migrate to live: keep comments on live site?There is also a lightweight way of using localhost that suits some of my sites.
I develop and tune the content in localhost, then to deploy the new content on the public site I recreate the page/post on the live site, mostly a matter of copy and paste. It can be very efficient and timely.Forum: Fixing WordPress
In reply to: Help Identifying Plugin or Solution on this PageIf I was doing this it would be with javascript, possibly with AJAX putting the responses into my database.
I guess it depends upon how much your time is worth to yourself and your client, $67 is not much in the scheme of things.
Yes, multisite has challenges over and above simple WordPress, some are specific to localhost.
I see that you refer to problems with “httaccess” more than once. Please check the obvious, it is actually “.htaccess” with a dot and one “t”, suggest reinstalling it from the settings given in the super admin panel.
Suggest that you also work through these docs:
https://codex.wordpress.org/Create_A_Network
https://codex.wordpress.org/Multisite_Network_Administration
https://codex.wordpress.org/WordPress_Multisite_Domain_MappingThe last doc gave me the tip on cookies being blocked which was my final hurdle.