Forum Replies Created

Viewing 15 replies - 46 through 60 (of 75 total)
  • Thread Starter LukeDouglas

    (@lukedouglas)

    This makes no sense. If the editor within your plugin has a ‘Read More’ break, it should work.

    Also, there is no URL to the team member bio within the plugin. I see no shortcut or URL associated with the team member bio. Screenshot attached.

    https://snipboard.io/eZEzTg.jpg

    So basically, you’re saying I need to create a post or page for each team member bio and put the hyperlink to that post or page from within the bio. Is that correct?

    Yea, I know that will work as I had already figured that one out but your plugin totally misses the mark. At the very least there should be a ‘maximum # of characters’ option with an automated ‘Read More’ link. This way, we could specify we want 40 characters shown on the team member display with a ‘Read More’ to go to the full bio.

    Your plugin is not the only team member so I guess I’ll try others.

    Thread Starter LukeDouglas

    (@lukedouglas)

    Your entirely right. I misread the instructions. I no longer get the warning in Anti-Spam by Cleantalk.

    Thanks!

    Thread Starter LukeDouglas

    (@lukedouglas)

    @threadi,

    I installed the code-snippets plugin and created a snippet for the PayPal script. Worked great! In fact, this is a better solution as I was going to need this script on two pages. Now all I have to do is insert the short code! GREAT!

    Thanks for the tip!

    Thread Starter LukeDouglas

    (@lukedouglas)

    I ran it on JS Bin, https://jsbin.com/?html,output, and it worked. Not sure where the syntax error is.

    <div id="smart-button-container">
        <div style="text-align: center"><label for="description"> </label><input type="text" name="descriptionInput" id="description" maxlength="127" value=""></div>
          <p id="descriptionError" style="visibility: hidden; color:red; text-align: center;">Please enter a description</p>
        <div style="text-align: center"><label for="amount"> </label><input name="amountInput" type="number" id="amount" value="" ><span> USD</span></div>
          <p id="priceLabelError" style="visibility: hidden; color:red; text-align: center;">Please enter a price</p>
        <div id="invoiceidDiv" style="text-align: center; display: none;"><label for="invoiceid"> </label><input name="invoiceid" maxlength="127" type="text" id="invoiceid" value="" ></div>
          <p id="invoiceidError" style="visibility: hidden; color:red; text-align: center;">Please enter an Invoice ID</p>
        <div style="text-align: center; margin-top: 0.625rem;" id="paypal-button-container"></div>
      </div>
      <script src="https://www.paypal.com/sdk/js?client-id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&enable-funding=venmo&currency=USD" data-sdk-integration-source="button-factory"></script>
      <script>
      function initPayPalButton() {
        var description = document.querySelector('#smart-button-container #description');
        var amount = document.querySelector('#smart-button-container #amount');
        var descriptionError = document.querySelector('#smart-button-container #descriptionError');
        var priceError = document.querySelector('#smart-button-container #priceLabelError');
        var invoiceid = document.querySelector('#smart-button-container #invoiceid');
        var invoiceidError = document.querySelector('#smart-button-container #invoiceidError');
        var invoiceidDiv = document.querySelector('#smart-button-container #invoiceidDiv');
    
        var elArr = [description, amount];
    
        if (invoiceidDiv.firstChild.innerHTML.length > 1) {
          invoiceidDiv.style.display = "block";
        }
    
        var purchase_units = [];
        purchase_units[0] = {};
        purchase_units[0].amount = {};
    
        function validate(event) {
          return event.value.length > 0;
        }
    
        paypal.Buttons({
          style: {
            color: 'gold',
            shape: 'rect',
            label: 'paypal',
            layout: 'vertical',
            
          },
    
          onInit: function (data, actions) {
            actions.disable();
    
            if(invoiceidDiv.style.display === "block") {
              elArr.push(invoiceid);
            }
    
            elArr.forEach(function (item) {
              item.addEventListener('keyup', function (event) {
                var result = elArr.every(validate);
                if (result) {
                  actions.enable();
                } else {
                  actions.disable();
                }
              });
            });
          },
    
          onClick: function () {
            if (description.value.length < 1) {
              descriptionError.style.visibility = "visible";
            } else {
              descriptionError.style.visibility = "hidden";
            }
    
            if (amount.value.length < 1) {
              priceError.style.visibility = "visible";
            } else {
              priceError.style.visibility = "hidden";
            }
    
            if (invoiceid.value.length < 1 && invoiceidDiv.style.display === "block") {
              invoiceidError.style.visibility = "visible";
            } else {
              invoiceidError.style.visibility = "hidden";
            }
    
            purchase_units[0].description = description.value;
            purchase_units[0].amount.value = amount.value;
    
            if(invoiceid.value !== '') {
              purchase_units[0].invoice_id = invoiceid.value;
            }
          },
    
          createOrder: function (data, actions) {
            return actions.order.create({
              purchase_units: purchase_units,
            });
          },
    
          onApprove: function (data, actions) {
            return actions.order.capture().then(function (orderData) {
    
              // Full available details
              console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
    
              // Show a success message within this page, e.g.
              const element = document.getElementById('paypal-button-container');
              element.innerHTML = '';
              element.innerHTML = '<h3>Thank you for your payment!</h3>';
    
              // Or go to another URL:  actions.redirect('thank_you.html');
              
            });
          },
    
          onError: function (err) {
            console.log(err);
          }
        }).render('#paypal-button-container');
      }
      initPayPalButton();
      </script>
    Thread Starter LukeDouglas

    (@lukedouglas)

    Thread Starter LukeDouglas

    (@lukedouglas)

    Thanks! That worked!

    • This reply was modified 2 years, 1 month ago by LukeDouglas. Reason: marked as resolved
    Thread Starter LukeDouglas

    (@lukedouglas)

    Nope! You’re wrong.

    Look at this screenshot with question mark:

    https://drive.google.com/file/d/1ixSEq53afZPdJUfrHTfeGK52tIXqyGLI/view?usp=share_link

    Look at this screenshot without question mark:

    https://drive.google.com/file/d/1G1LOdM0CCbZrdnqONOoNmoVoIll5NcTE/view?usp=share_link

    Thread Starter LukeDouglas

    (@lukedouglas)

    Manually edited the file. Works now under PHP 8.1.

    Thread Starter LukeDouglas

    (@lukedouglas)

    PLEASE DELETE THIS FORUM POST. I found the issue. Once I authenticted, I had to refresh the UpdraftPlus plugin page in order for it to see the authentication.

    Forum: Fixing WordPress
    In reply to: /wp/v2/ code
    Thread Starter LukeDouglas

    (@lukedouglas)

    So there really is no ‘clean’ way to move WordPress from a ‘public_html/wp’ directory to the ‘public_html’ directory. Pity!

    Just yesterday I went live with two new WordPress sites for existing websites.

    One was moving from the subdirectory to the root directory. It was a mess! So much clean up to get the website to appear as I had developed in the ‘wp/’ subfolder. Part of the problem was Grace Themes theme options did NOT copy over and the default settings were used. This is an issue with the theme development at Grace Themes.

    However, the other website was on a different domain which went extremely smooth with a simply HTACCESS wildcard redirect.

    In the situation with a website that is NOT changing domain names, I believe the best way to ensure a smooth transition is to register a development domain with the same name but different extension, install and develop the new site there. When it’s ready to go live, then either backup / restore the site to the existing website or, if you have access to the hosting admin panel, like I do, simply change the domain and folder names. No changes will be required at the registrar as all control is managed by the hosting panel.

    I’ve actually done this on a website which changed it’s domain name but the website didn’t move. In that case, the only thing I had to do was to use phpMyAdmin to search/replace the old domain to the new domain in all tables. Took about 5 minutes! Worked fine!

    I’m going to do this on my next migration from Joomla to WordPress and will document each step to see if this goes smoothly. I’ll post back here with the results.

    • This reply was modified 2 years, 5 months ago by LukeDouglas. Reason: left out a word

    Found the issue. It was with Cloudflare. I finally resolved the issue by disconnecting the site from Cloudflare completely by changing the DNS settings at the registrar, like it was before I set up Cloudflare, and checked to ensure I could login. Then I went through the process to set up Cloudflare again and, viola, it worked. Very weird as I use Cloudflare on a lot of clients websites.

    However, I did install the WP Hide Login on another website and it is working fine. At this point, I’m totally confused!

    Just an FYI, but I am experiencing the same issue on a website. I renamed the wp-hide-login folder to bypass-wp-hide-login and used the default wp login link /wp-admin but still cannot get the login prompt.

    Thread Starter LukeDouglas

    (@lukedouglas)

    I updated NGG, changed the PHP to 8.0 and it works fine. Thanks for the update!

    Thread Starter LukeDouglas

    (@lukedouglas)

    Josh,

    It was already checked.

    https://snipboard.io/sIUfiz.jpg

    I’m not sure why it isn’t working but I have used CSS to hide the prices.

Viewing 15 replies - 46 through 60 (of 75 total)