Forum Replies Created

Viewing 15 replies - 271 through 285 (of 3,259 total)
  • Most themes provide a body class “logged-in”, I have used this to show/hide menu items. This could help you keep logged in sessions away from the registration screen.

    From Google translate:
    “Hello everyone, in my work I have been asked to create a simple page in order to function as an Intranet where information about processes and others of the company is shared; To do this I dedicated a team with Win 7 Pro and I have installed wordpress and xampp in its latest versions, I already have the page working with a theme but when trying to view it from another computer on the LAN, just bring the xampp dashboard, and tried of everything I have seen in some videos and ends by not accessing anything, please your collaboration that I thank in advance”

    Find the IP address of your xampp PC. Make sure it is a fixed IP.
    On the “Settings” > “General” page set the “WordPress address” and “Site address” to this IP address.

    For example, suppose that the IP address is 192.168.0.37
    Then set:
    WordPress address: http://192.168.0.37
    Site address: http://192.168.0.37

    Using my browser inspector I suggest something like custom CSS:

    .woocommerce ul.products li.product .onsale {
     color: red;
     background-color: green;
    }

    Or whatever colours you choose.

    My preferred way to do this is to configure the localhost server to use the “VirtualHost” technique. Give it the same domain name, use your “hosts” file to tell your b rowser to redirect to the localhost server. The website barely knows that it has moved. Files and databases can be exchanged easily, especially when I match the database names and user etc from wp-config.php.
    Configuring SSL is a little harder, similarly configuring email SMTP is not worth the trouble.
    More details:
    http://httpd.apache.org/docs/current/vhosts/name-based.html
    https://en.wikipedia.org/wiki/Hosts_(file)

    Thank you for embracing the use of these threads as a community resource and feeding back your conclusions.

    However may I add some additional points:
    – Using the “hosts” file technique cuts you off from accessing the free SSL certificates from letsencrypt, you either need to buy a certificate OR at some later date transition your website from http to https when you take the site live.
    – Some hosting providers will not let you add an ADDON domain unless the nameserver settings is already pointing to the host. In the past I have had to talk to my hosting support to circumvent this. This is apparently a security measure.

    On the other hand the hosts file technique lets you leave a legacy website operating while you develop its replacement.

    I was going to mention using the hosts file but didn’t as password protection is simpler.

    What I dont understand is where does that I.P address come from which they mention?

    This is the IP address of the hosting computer, determine it by:
    – Your hosting support could tell you.
    – If you “ping” the website management domain name it will give you this.

    Details on hosts file for various systems:
    https://en.wikipedia.org/wiki/Hosts_(file)

    A lightweight way to do this is to use the WordPress tick box:
    "Discourage search engines from indexing this site"
    Find it on the Dashboard > Settings > Reading page.
    Not a very good solution as it leaves it up to the search engine to honour your request.

    A surefire way is to “Password protect” the website base directory, this is what I do in the cPanel website management tools.
    – Set the domain nameservers to point to your hosting.
    – The primary domain will use “public_html” folder, make all the others domains point at their own directory, cPanel will suggest that they be subdirectories of public_html but you can change this.
    – Use the cPanel “autoinstall SSL” tool to fetch your free letsencrypt SSL certificates, this must be done before adding password protection. Usually this only takes minutes, if you take too long (60 or 90 days) to develop your websites you may need to revisit this step.
    – Make all of your website base directories password protected. Give each a name, user and password AND write them down. Your browser will remember them if you let it.
    – NOW install WordPress and develop your websites, only you and people you give the access codes to will be able to view them.
    – When you are done developing be sure to untick the "Discourage search engines from indexing this site" control, remove the password protection and use the links provided by Valentine to get your sites known to the search bots.

    • This reply was modified 6 years, 6 months ago by RossMitchell.

    Another approach is to teach your browser how to access your server without using the DNS lookup system, what you need is:

    1) your server's IP address which is 85.128.252.18
            (found using "ping supportpl.nazwa.pl")
    2) how to edit the "hosts" file on your PC, your browser consults it BEFORE doing a DNS name lookup, details here:
     http://en.wikipedia.org/wiki/Hosts_%28file%29

    Then add these lines to your hosts file:
    85.128.252.18 kursprzewodnikpttk2018.pl
    and
    85.128.252.18 www.kursprzewodnikpttk2018.pl

    When loggedin you probably have a body class “logged-in”, (your theme may vary?), so customise your menu entries to add a class to each of them, say “show-loggedin” and “show-loggedout”, then add css like this:

    .show-loggedin { display: none;}
    .logged-in .show-loggedin { display: block;}
    .show-loggedout { display: block;}
    .logged-in .show-loggedout { display: none;}

    Hello @bekservice
    Please read and follow the support forum rules. These require you to start a new thread of your own. This is really in your own interests, this thread is marked as resolved, no one is likely to see or answer your question.

    Firstly are you sure that
    http://localhost/wordpress
    Is your correct address ?

    If it is then try and load:
    http://localhost/wordpress/readme.html
    It should give you a page telling you about wordpress. It being an “.html” file makes it an easy test of your install as it will work even without a database or PHP server. If it does not work then your address is likely wrong. Keep working until the readme file loads.

    Also suggest that you seek support from XAMPP about getting the readme file to load.

    What I do in this situation is to configure the localhost webserver to use the “VirtualHost” method, details here:
    http://httpd.apache.org/docs/current/vhosts/name-based.html

    Then I can switch between accessing the localhost and webhosted sites by adding and commenting out an entry in your “hosts” file, details here:
    https://en.wikipedia.org/wiki/Hosts_(file)

    This way the website barely knows that it has changed hosting.

    RossMitchell

    (@rossmitchell)

    There is another way.
    Keep the old site hosted where it is.
    The domain name will be updated to point to the new squarespace hosted site.

    The trick is to NOT USE the DNS system to lookup your domain name WHEN you want to view the OLD site.
    Say that your domain name is mysite.co
    Get the IP address of your old site host, say it is a.b.c.d
    Do this by putting lines like this into the “hosts” file of your computer, details on hosts file here: http://en.wikipedia.org/wiki/Hosts_%28file%29

    a.b.c.d mysite.co
    a.b.c.d www.mysite.co

    Now on this computer only when you browse to mysite.co, your browser will send the request to your old host at a.b.c.d, and it will serve your site.
    When you want to view your new site you comment out the two lines you added to the hosts file.

    RossMitchell

    (@rossmitchell)

    Rather than changing your php.ini file, it is MUCH easier to UNZIP your theme files and install them in your local filesystem (at <webfiles>/wp-content/themes).
    This also goes for installing plugins and media.

    RossMitchell

    (@rossmitchell)

    Hi cmncmn,
    No I don’t need to teamviewer with you.
    What I do in your situation, where I want my client to see my localhost development, is that we BOTH start teamviewer, then with the client on the phone or skype chat, I get them to login and remote control my computer, they see my screen. I get to talk them through the demonstration, I see how they react to the menus and controls etc. I very much get to control the demo, at the end I disconnect the teamviewer session.

Viewing 15 replies - 271 through 285 (of 3,259 total)