Forum Replies Created

Viewing 7 replies - 16 through 22 (of 22 total)
  • Forum: Fixing WordPress
    In reply to: Beneath WordPress
    Thread Starter vycwebmaster

    (@vycwebmaster)

    var P source code (interpreted by the WP Dashboard editor) may be the issue for this example … may be the <p /> is being misinterpreted by the WP Editor … The PAGE source code shows

    
    var p = '</p> 
    <p /> 
    <div> Test: <input type="text" name="Test" id="childTest" /> <a href="#" id="remove"> - </a></div>
    <p>';
    

    which isn’t what was coded.

    Forum: Fixing WordPress
    In reply to: Beneath WordPress
    Thread Starter vycwebmaster

    (@vycwebmaster)

    Ok ‘UNCLE’! still struggling with WP page functionality:

    A simple jquery example that dynamically adds rows to a form works as designed outside WP but fails to work from inside WP (when coded in MAMP index.php this allows dynamically adding 5 rows … HOWEVER … from a MAMP WP page, this content does nothing) … the expectation is the #add jquery code should be a client side action which appears to be supported by the content of the viewed client source.

    There are numerous discussions about adding jquery functions to a theme’s functions.php file by both registering and enqueing them … I expect all theme processing would be related to server side so not following the need to enque a client side action. I ran a simple test that shows the $(‘#<field>’).val() jquery command works in WP so perhaps the append() command needs to be modified slightly to work with the associated WP page?

     
    <html>
     <script 
      src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
     </script>
     <script>
      $(document).ready(function(e){
       // vars
       var p = '<p /><div> Test: <input type="text" name="Test" id="childTest" /> <a href="#" id='remove'> - </a></div>';
       var m = 5;
       var c = 1;
       
       // add
       $("#add").click(function(e){
        if(c <= m){
         $("#container").append(p);
         c++;
        }
       }
       ); // add
    
       // remove
       $("#container").on('click','#remove',function(e){
        $(this).parent('div').remove();
        c--;
       }
       ); // remove
      }
      ); // document
     </script>
     <p />
     <div id="container">
      Test: <input type="text" name="Test" id="Test" /> <a href="#" id="add"> + </a>
     </div>
    </html>
    
    Forum: Fixing WordPress
    In reply to: Beneath WordPress
    Thread Starter vycwebmaster

    (@vycwebmaster)

    Thx for the responses everyone … truly not trying to reinvent a wheel, yet, seems like 40+ years of so called software progress, from my chair, things truly haven’t changed with regards to getting stuff right … I am resorting to look under the hood because after spending countless hours trying numerous plugins, nothing I tried would do even the simplest action of just looking up an entered value and returning a result … after a few days of bashing away at this, I believe I have found the answers to most of my questions:

    1) all wordpress pages are treated as posts with all content contained in SQL tables

    2) embedded short codes trigger WP to let plugins inject their view of the world

    3) when a page is requested, WP builds a dynamic folder as wp/<dynamic page folder> then builds an html page based on the content of the page record using that dynamic folder for the pages url … a high level:

    – the page record does appear to allow; HTML, PHP, JQUERY, JS, AJAX etc. commands (although this appears to come with some hidden restrictions)

    – WP appears to take control over things like url content so for example a raw jquery load() will not accept an absolute url (proved this by reviewing the unix logs) … to actually use the load(), one has to use relative url references … so if you were needing to run or access a file stored in wp/somefolder/somefile.txt you would need to reference it as ../somefolder/somefile.txt

    4) from past experience, all client side interaction with server side processes and data is best handled via AJAX call back functions … so … without using a plugin, that will require investing a bit more time playing with something like jquery’s AJAX interface.

    Perhaps WP would benefit from a library of things

    Forum: Fixing WordPress
    In reply to: Beneath WordPress
    Thread Starter vycwebmaster

    (@vycwebmaster)

    Thanks

    The PAGES Text/Visual appears to be a WP native Dashboard feature (PAGE vs POST) … uses wp-content/themes/<some_theme>/page.php as its template … If I drop a line of HTML source or a shortcode on the PAGE, the entry is turned in to a fully formatted HTML page when the Client browser connects. That part of the process is clearly a Server Side process … what isn’t clear is if Form, shortcodes or HTML are NAILED up (connected) to the Server Side via some background AJAX process or if there needs to be some Special code to set up a Call back function to pass back and forth data.

    Installed MAMP under windows along with the latest version of WordPress with NO plugins installed and PAGES is part of the generic WP Dashboard.

    WP appears to have an API which might be something to explore further.

    Thread Starter vycwebmaster

    (@vycwebmaster)

    The DATE fields are also no longer working? No Calendar popup

    Thread Starter vycwebmaster

    (@vycwebmaster)

    WordPress Plugin Health Check indicated we were using outdated versions of PHP and MySQL on our site … I have since updated these to the recommended versions … these updates have had no affect on this Access Denied issue.

    We have now had several people send us screen shots with this Access Denied Error, but the interesting aspect of this is that 2 people have had errors pointing to the SAME URL “www.canadamats.ca” … one prior to the version updates and one today after the updates

    Did an ssh to the Virtual Web Server as root and looked for a match to this URL
    cd /
    find . | grep -in canadamats
    found nothing (contacted canadamats to ask if they have seen any anomalies on their site just in case there is some kind of trend)

    One of these users was using an IPAD to submit this form

    VFB has been very quiet (absolutely no response from a sales request) plus based on some other negative comments relating to this plugin, I am very hesitant to purchase a PRO license in the hopes this issue is resolved.

    Followed a link to one of the VFB Pro developers but did a full stop when his site asked to install software on my computer … REALLY! NOT going to happen!

    There has to be an easier, more convenient way to generate simple forms in WordPress without having to continually pay for some 3rd party service … forms aren’t rocket science.

    Thread Starter vycwebmaster

    (@vycwebmaster)

    One of our users sent us a screen shot of the Access Denied Error they received after clicking on the VFB form submit button … the error appears to be coming from a random/unrelated (VALID) URL … this suggests to me that there must be a BUG within the Visual Form Builder client side logic … I highly suspect the client side logic is incorrectly using/accessing a temporary Browser value which is in turn causing the submit details to be redirected to a site that the user may have been recently viewing. As that random site would have no notion of the form data being presented, it would understandably be expected to return an Access Denied Error.

    Reviewed all the Web Server logs looking for any indication of Denial of Access during the period that the user was attempting to use the form and found nothing … which, to me, further points to this being a possible bug within the VFB Plug-in and NOT something to do with server Security which was being suggested by our WSP

Viewing 7 replies - 16 through 22 (of 22 total)