Forum Replies Created

Viewing 15 replies - 361 through 375 (of 3,259 total)
  • I am sorry that having initially simplified your problem that you lack the ability to generalise the solution I provided.
    Among the problems in your code is that you are using variables without previously setting the value, such as “text1” in your “myFunction1”.

    Another statistics aggregator is statcounter.com, as well as WordPress they can profile websites on diverse platforms.

    Cooee
    Looks like you have several interrelated issues.
    Not sure why your configuration needs multisite, would be easier to get you going without it.
    To do anything you must have a backup of the old database on “allianceofdroids.com”
    With this backup I would install a localhosted site on allianceofdroids.com using the virtualhost method, then do the moving wordpress procedure (details here:
    http://codex.wordpress.org/Moving_WordPress) probably including using one of the smart search/replace plugins.

    Forum: Fixing WordPress
    In reply to: Shopkeeper Theme

    I developed this site:
    http://janeanddarcy.com/
    Using a child theme of storefront:
    https://wordpress.org/themes/storefront/
    The woocommerce integration was without effort, nearly all the rest of the changes were done in the customizer using the background and additional css tabs. It really was easy and quick to substantially rework the appearance of the theme.

    You need to add a “target=” option in the “a” link of the html.
    Details here: https://www.w3schools.com/Tags/att_a_target.asp

    Just how you incorporate this depends on the exact usage. It looks like it is in your top menu, not sure how this is done, there may be a hook or filter that can do this, otherwise it may need you to add it in the theme.

    EDIT: looks like kartiks16 beat me to it, probably with a better answer.

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

    Let me clarify the request:
    – You want password protection but not a WordPress login.
    – You want to take on the management of forgotten passwords, compromised passwords etc

    You could use the password protected directory feature in the .htaccess file, not sure how you would go about managing it.

    Sorry, typo detected, an extra {

    
    <!DOCTYPE html>
    <html>
    <body>
    
    <p>Display some text when the checkbox is checked:</p>
    
    Checkbox1: <input type="checkbox" id="myCheck1"  onclick="myFunction()">
    Checkbox2: <input type="checkbox" id="myCheck2"  onclick="myFunction()">
    
    <p id="text1" style="display:none">Strokes!</p>
    <p id="text2" style="display:none">Cuddles!</p>
    <p id="text3" style="display:none">Laughs!</p>
    
    <script>
    function myFunction() {
        var checkBox1 = document.getElementById("myCheck1");
        var checkBox2 = document.getElementById("myCheck2");
        var text1 = document.getElementById("text1");
        var text2 = document.getElementById("text2");
        var text3 = document.getElementById("text3");
        var dis1, dis2, dis3;
        dis1 = dis2 = dis3 = "none";
        if (checkBox1.checked == true && checkBox2.checked == true){
            dis3  = "block";
        } else
        if (checkBox1.checked == true){
            dis1 = "block";
        } else 
        if (checkBox2.checked == true){
            dis2 = "block";
        }
        text1.style.display = dis1;
        text2.style.display = dis2;
        text3.style.display = dis3;
    }
    </script>
    
    </body>
    </html>
    Forum: Fixing WordPress
    In reply to: Line break

    When you are editing a page or post, in the editor there are two tabs in the top right edge of the text panel. To put HTML into the text you need to be in the TEXT view, then the correct code for a line break is <br />

    This is what I would do:

    
    <!DOCTYPE html>
    <html>
    <body>
    
    <p>Display some text when the checkbox is checked:</p>
    
    Checkbox1: <input type="checkbox" id="myCheck1"  onclick="myFunction()">
    Checkbox2: <input type="checkbox" id="myCheck2"  onclick="myFunction()">
    
    <p id="text1" style="display:none">Strokes!</p>
    <p id="text2" style="display:none">Cuddles!</p>
    <p id="text3" style="display:none">Laughs!</p>
    
    <script>
    function myFunction() {
        var checkBox1 = document.getElementById("myCheck1");
        var checkBox2 = document.getElementById("myCheck2");
        var text1 = document.getElementById("text1");
        var text2 = document.getElementById("text2");
        var text3 = document.getElementById("text3");
        var dis1, dis2, dis3;
        dis1 = dis2 = dis3 = "none";
        if (checkBox1.checked == true && checkBox2.checked == true){
            dis3  = "block";
        } else {
        if (checkBox1.checked == true){
            dis1 = "block";
        } else 
        if (checkBox2.checked == true){
            dis2 = "block";
        }
        text1.style.display = dis1;
        text2.style.display = dis2;
        text3.style.display = dis3;
    }
    </script>
    
    </body>
    </html>

    What are the site address and wordpress address ?

    Using your browser inspector, view the page HTML, what are the addresses in the <head> block of the .CSS and .JS files, also images ? The browser uses these to fetch the contents, the fact that it has just fetched the page has less than no bearing, the address must stand on its own.
    – So what address does the page load from ?
    – What addresses do you see in the head for css etc files ?
    See how these addresses navigate the network path back to the web server.

    Please do the above from both your LAN and internet connected computers.

    Ditto what joy and bcworkz said.
    Specifically regarding security, a big vulnerability you could expose in your site is called “SQL injection”, a big tool to prevent it is using “prepare” to incorporate user supplied fields into your SQL queries. For instance what would happen in your code if into the “invoice number” filed they put:
    0'; drop table;
    And it can be even worse.

    Also this is a plugin that I found very handy when learning plugin development and stuff:
    https://wordpress.org/plugins/wp-csv-to-database/ Author: Ruhul Amin

    I think you mean:
    <div class="shes-widget-full" style="background-color:#cccccc; position:absolute; left:0; right:0;">
    And maybe the doublequotes need to be escaped with the backslash character in which case it would become:
    <div class=\"shes-widget-full\" style=\"background-color:#cccccc; position:absolute; left:0; right:0;\">

    Also when I am experimenting like you are I make the colours absurd and unmissable, then once the colours are in the correct place I make them realistic.

    Looks like we are fixing two websites now:
    – On the internet, I get the expected result at:
    https://www.kidsempowerment.infosysdevconcept.net/readme.html
    But the site is not working otherwise

    – On the localhosted website, can you see the remdme.html file ? This tests some of the apache2 configuration without needing PHP and databases.
    When you get the copy of a site done correctly by taking a copy of the files and database, then the install.php is not required.
    Just checking on your apache2 configuration:
    First you may need a declaration like this if your website files are not in the standard locatioon:

    <Directory /home/ross/web>
     Options Indexes FollowSymLinks
     AllowOverride All
     Require all granted
    </Directory>

    Then for each website you need a block like this:

    <VirtualHost *:80>
    DocumentRoot /home/ross/web/ke
    ServerName kidsempowerment.org
    ServerAlias www.kidsempowerment.org
    </VirtualHost>

    Link:
    https://wordpress.org/support/plugin/woocommerce

    All the themes and plugins available here have their own attached support forums, similarly commercial themes and products have support forums on the vendor websites.

    Suggest that you ask in the woocommerce support forum.

Viewing 15 replies - 361 through 375 (of 3,259 total)