Forum Replies Created

Viewing 15 replies - 1 through 15 (of 27 total)
  • Thread Starter hanhaoran

    (@hanhaoran)

    @andxbes: thanks so much for your help! I added your snippet to my functions as instructed on the cf7 site, finally looking like this:

    
    /* CF Show & Hide Behavior */
    
    add_action( 'wp_footer', 'cfshowhide' );
    function cfshowhide() {
    ?>
    <script type="text/javascript">
        document.addEventListener('wpcf7mailsent', function (event) {
            $("#AfterSendShow").show();
            $("#AfterSendShow1").show();
            $("#AfterSendShow2").show();
            $("#AfterSendShow3").show();
            $("#AfterSendHide").hide();
            $("#AfterSendHide1").hide();
            $("#AfterSendHide2").hide();
            $('#AfterSendHide3').hide();
        }, false);
    </script>
    <?php
    }
    
    

    but it doesn’t seem to work, form submission doesn’t trigger the show and hide behavior. can you spot any errors here, or is this an issue with me theme (etc)?

    thanks for taking a look, appreciate your help! I’d hate having to work with a different contact form over this…

    thanks

    Thread Starter hanhaoran

    (@hanhaoran)

    hello, thank you so much for your quick reply! that’s awesome! How would this look without differentiating between individual forms? I think i can use the same set of show/hide actions on all forms, to keep it simpler. thanks so much again! really appreciate your input!

    Thread Starter hanhaoran

    (@hanhaoran)

    hello and thank you for your quick reply. adding html=”true” didn’t make a difference. the feed display images, it is a feed of another wordpress based site. do you have any experience how to include the right type of image into the feed, for this plugin to be able to recognize the images?

    thank you so much!

    Thread Starter hanhaoran

    (@hanhaoran)

    [RSSImport display="6" feedurl="https://chinareadynews.com/feed/" use_simplepie="true" start_items="<div class='container-masonry'><div class='gutter-sizer'></div><div class='full_width_gallery desktop_3 tablet_2 mobile_1 clearfix'>" end_items="</div></div><!--end masonry--><div class='container clearfix'></div></section></div>" start_item="<figure class='gallery_item post type-post status-publish format-standard has-post-thumbnail hentry category-blog'><a href='%href%' target='_blank' class='whole-tile'></a> <img src='%picture_url%' width='750' height='500' class='attachment-blog size-blog wp-post-image darkened' alt='blog' /> <figcaption class='gallery_item_text show no-hover isimg nontransparency'><div class='v_centralizer'> <strong>" end_item="</strong></div><div class='read-more'><span>Read Article</span></div></figcaption></figure>" target="blank"]

    Thread Starter hanhaoran

    (@hanhaoran)

    i have done that multiple times, along with deletion and re-creation of the sites in piwik – which is also why with only two sites to track, i am at site ids 8 and 9. i still get the same result tho: the first site i add will be the one tracking everything (also the second site added). the second site i add will have no tracking data recorded and will show the first site as the determined one…

    am i really the first case?

    Thread Starter hanhaoran

    (@hanhaoran)

    yes, i have done that (tried before also tried again now, it still recognized the wrong site (the other one) as the ‘determined site’

    any other ideas?

    Thread Starter hanhaoran

    (@hanhaoran)

    both sites are configured / show correctly in piwik, the test scripts return this:

    ***for the site that is shows combined tracking data for both installs: ***

    WP-Piwik 1.0.3
    Mode: http
    
    Test 1/3: global.getPiwikVersion
    
    string(6) "2.14.2"
    
    array(2) {
      [0]=>
      string(223) "HTTP/1.1 200 OK
    Server: nginx/1.7.9
    Date: Thu, 06 Aug 2015 07:22:52 GMT
    Content-Type: application/json; charset=utf-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Host-Header: 192fc2e7e50945beb8231a492d6a8024
    
    "
      [1]=>
      string(149) "https://stefan-reindl.com/analytics/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DAPI.getPiwikVersion%26idSite%3D8&token_auth=..."
    }
    
    Test 2/3: SitesManager.getSitesWithAtLeastViewAccess
    
    array(2) {
      [0]=>
      array(16) {
        ["idsite"]=>
        int(8)
        ["name"]=>
        string(14) "Awesome Slides"
        ["main_url"]=>
        string(25) "https://www.awesomeslid.es"
        ["ts_created"]=>
        string(19) "2015-08-06 02:33:19"
        ["ecommerce"]=>
        int(0)
        ["sitesearch"]=>
        int(1)
        ["sitesearch_keyword_parameters"]=>
        string(0) ""
        ["sitesearch_category_parameters"]=>
        string(0) ""
        ["timezone"]=>
        string(13) "Asia/Shanghai"
        ["currency"]=>
        string(3) "USD"
        ["excluded_ips"]=>
        string(0) ""
        ["excluded_parameters"]=>
        string(0) ""
        ["excluded_user_agents"]=>
        string(0) ""
        ["group"]=>
        string(0) ""
        ["type"]=>
        string(7) "website"
        ["keep_url_fragment"]=>
        int(0)
      }
      [1]=>
      array(16) {
        ["idsite"]=>
        int(9)
        ["name"]=>
        string(13) "Stefan Reindl"
        ["main_url"]=>
        string(28) "https://www.stefan-reindl.com"
        ["ts_created"]=>
        string(19) "2015-08-06 02:37:34"
        ["ecommerce"]=>
        int(0)
        ["sitesearch"]=>
        int(1)
        ["sitesearch_keyword_parameters"]=>
        string(0) ""
        ["sitesearch_category_parameters"]=>
        string(0) ""
        ["timezone"]=>
        string(13) "Asia/Shanghai"
        ["currency"]=>
        string(3) "USD"
        ["excluded_ips"]=>
        string(0) ""
        ["excluded_parameters"]=>
        string(0) ""
        ["excluded_user_agents"]=>
        string(0) ""
        ["group"]=>
        string(0) ""
        ["type"]=>
        string(7) "website"
        ["keep_url_fragment"]=>
        int(0)
      }
    }
    
    array(2) {
      [0]=>
      string(223) "HTTP/1.1 200 OK
    Server: nginx/1.7.9
    Date: Thu, 06 Aug 2015 07:22:52 GMT
    Content-Type: application/json; charset=utf-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Host-Header: 192fc2e7e50945beb8231a492d6a8024
    
    "
      [1]=>
      string(172) "https://stefan-reindl.com/analytics/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DSitesManager.getSitesWithAtLeastViewAccess%26idSite%3D8&token_auth=..."
    }
    
    Test 3/3: SitesManager.getSitesIdFromSiteUrl
    
    array(1) {
      [0]=>
      array(1) {
        ["idsite"]=>
        int(8)
      }
    }
    
    array(2) {
      [0]=>
      string(223) "HTTP/1.1 200 OK
    Server: nginx/1.7.9
    Date: Thu, 06 Aug 2015 07:22:52 GMT
    Content-Type: application/json; charset=utf-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Host-Header: 192fc2e7e50945beb8231a492d6a8024
    
    "
      [1]=>
      string(204) "https://stefan-reindl.com/analytics/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DSitesManager.getSitesIdFromSiteUrl%26idSite%3D8%26url%3Dhttp%3A%2F%2Fwww.awesomeslid.es&token_auth=..."
    }
    
    array(2) {
      ["global_settings"]=>
      array(56) {
        ["revision"]=>
        string(10) "2015072101"
        ["last_settings_update"]=>
        string(10) "1438828577"
        ["piwik_mode"]=>
        string(4) "http"
        ["piwik_url"]=>
        string(35) "https://stefan-reindl.com/analytics/"
        ["piwik_path"]=>
        string(0) ""
        ["piwik_user"]=>
        string(0) ""
        ["piwik_token"]=>
        string(3) "set"
        ["auto_site_config"]=>
        string(1) "1"
        ["default_date"]=>
        string(9) "yesterday"
        ["stats_seo"]=>
        string(1) "0"
        ["dashboard_widget"]=>
        string(8) "disabled"
        ["dashboard_chart"]=>
        string(1) "0"
        ["dashboard_seo"]=>
        string(1) "0"
        ["toolbar"]=>
        string(1) "0"
        ["capability_read_stats"]=>
        array(5) {
          ["administrator"]=>
          string(1) "1"
          ["editor"]=>
          string(1) "0"
          ["author"]=>
          string(1) "0"
          ["contributor"]=>
          string(1) "0"
          ["subscriber"]=>
          string(1) "0"
        }
        ["perpost_stats"]=>
        string(1) "0"
        ["plugin_display_name"]=>
        string(8) "WP-Piwik"
        ["piwik_shortcut"]=>
        string(1) "0"
        ["shortcodes"]=>
        string(1) "0"
        ["track_mode"]=>
        string(7) "default"
        ["track_codeposition"]=>
        string(6) "footer"
        ["track_noscript"]=>
        string(1) "0"
        ["track_nojavascript"]=>
        string(1) "0"
        ["proxy_url"]=>
        string(30) "//stefan-reindl.com/analytics/"
        ["track_content"]=>
        string(7) "visible"
        ["track_search"]=>
        string(1) "0"
        ["track_404"]=>
        string(1) "0"
        ["add_post_annotations"]=>
        string(1) "0"
        ["add_customvars_box"]=>
        string(1) "0"
        ["add_download_extensions"]=>
        string(0) ""
        ["disable_cookies"]=>
        string(1) "0"
        ["limit_cookies"]=>
        string(1) "0"
        ["limit_cookies_visitor"]=>
        string(8) "34186669"
        ["limit_cookies_session"]=>
        string(4) "1800"
        ["limit_cookies_referral"]=>
        string(8) "15778463"
        ["track_admin"]=>
        string(1) "0"
        ["capability_stealth"]=>
        array(0) {
        }
        ["track_across"]=>
        string(1) "0"
        ["track_across_alias"]=>
        string(1) "0"
        ["track_feed"]=>
        string(1) "0"
        ["track_feed_addcampaign"]=>
        string(1) "0"
        ["track_feed_campaign"]=>
        string(4) "feed"
        ["track_heartbeat"]=>
        string(1) "0"
        ["cache"]=>
        string(1) "1"
        ["http_connection"]=>
        string(4) "curl"
        ["http_method"]=>
        string(4) "post"
        ["disable_timelimit"]=>
        string(1) "0"
        ["connection_timeout"]=>
        string(1) "5"
        ["disable_ssl_verify"]=>
        string(1) "0"
        ["piwik_useragent"]=>
        string(3) "php"
        ["piwik_useragent_string"]=>
        string(8) "WP-Piwik"
        ["track_datacfasync"]=>
        string(1) "0"
        ["track_cdnurl"]=>
        string(0) ""
        ["track_cdnurlssl"]=>
        string(0) ""
        ["force_protocol"]=>
        string(8) "disabled"
        ["update_notice"]=>
        string(7) "enabled"
      }
      ["settings"]=>
      array(6) {
        ["name"]=>
        string(0) ""
        ["site_id"]=>
        string(1) "8"
        ["noscript_code"]=>
        string(115) "<noscript><p><img src="//stefan-reindl.com/analytics/piwik.php?idsite=8" style="border:0;" alt="" /></p></noscript>"
        ["tracking_code"]=>
        string(570) "<!-- Piwik -->
    <script type="text/javascript">
      var _paq = _paq || [];
      _paq.push(['trackPageView']);
    _paq.push(['trackVisibleContentImpressions']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="//stefan-reindl.com/analytics/";
        _paq.push(['setTrackerUrl', u+'piwik.php']);
        _paq.push(['setSiteId', 8]);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
      })();
    </script>
    <!-- End Piwik Code -->
    "
        ["last_tracking_code_update"]=>
        string(10) "1438828577"
        ["dashboard_revision"]=>
        string(1) "0"
      }
    }

    and
    ***for the site that shows the right url under sitebrowser but the wront one under ‘determined site’,and for which nothing is being tracked: ***

    WP-Piwik 1.0.3
    Mode: http
    
    Test 1/3: global.getPiwikVersion
    
    string(6) "2.14.2"
    
    array(2) {
      [0]=>
      string(223) "HTTP/1.1 200 OK
    Server: nginx/1.7.9
    Date: Thu, 06 Aug 2015 07:24:13 GMT
    Content-Type: application/json; charset=utf-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Host-Header: 192fc2e7e50945beb8231a492d6a8024
    
    "
      [1]=>
      string(149) "https://stefan-reindl.com/analytics/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DAPI.getPiwikVersion%26idSite%3D8&token_auth=..."
    }
    
    Test 2/3: SitesManager.getSitesWithAtLeastViewAccess
    
    array(2) {
      [0]=>
      array(16) {
        ["idsite"]=>
        int(8)
        ["name"]=>
        string(14) "Awesome Slides"
        ["main_url"]=>
        string(25) "https://www.awesomeslid.es"
        ["ts_created"]=>
        string(19) "2015-08-06 02:33:19"
        ["ecommerce"]=>
        int(0)
        ["sitesearch"]=>
        int(1)
        ["sitesearch_keyword_parameters"]=>
        string(0) ""
        ["sitesearch_category_parameters"]=>
        string(0) ""
        ["timezone"]=>
        string(13) "Asia/Shanghai"
        ["currency"]=>
        string(3) "USD"
        ["excluded_ips"]=>
        string(0) ""
        ["excluded_parameters"]=>
        string(0) ""
        ["excluded_user_agents"]=>
        string(0) ""
        ["group"]=>
        string(0) ""
        ["type"]=>
        string(7) "website"
        ["keep_url_fragment"]=>
        int(0)
      }
      [1]=>
      array(16) {
        ["idsite"]=>
        int(9)
        ["name"]=>
        string(13) "Stefan Reindl"
        ["main_url"]=>
        string(28) "https://www.stefan-reindl.com"
        ["ts_created"]=>
        string(19) "2015-08-06 02:37:34"
        ["ecommerce"]=>
        int(0)
        ["sitesearch"]=>
        int(1)
        ["sitesearch_keyword_parameters"]=>
        string(0) ""
        ["sitesearch_category_parameters"]=>
        string(0) ""
        ["timezone"]=>
        string(13) "Asia/Shanghai"
        ["currency"]=>
        string(3) "USD"
        ["excluded_ips"]=>
        string(0) ""
        ["excluded_parameters"]=>
        string(0) ""
        ["excluded_user_agents"]=>
        string(0) ""
        ["group"]=>
        string(0) ""
        ["type"]=>
        string(7) "website"
        ["keep_url_fragment"]=>
        int(0)
      }
    }
    
    array(2) {
      [0]=>
      string(223) "HTTP/1.1 200 OK
    Server: nginx/1.7.9
    Date: Thu, 06 Aug 2015 07:24:14 GMT
    Content-Type: application/json; charset=utf-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Host-Header: 192fc2e7e50945beb8231a492d6a8024
    
    "
      [1]=>
      string(172) "https://stefan-reindl.com/analytics/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DSitesManager.getSitesWithAtLeastViewAccess%26idSite%3D8&token_auth=..."
    }
    
    Test 3/3: SitesManager.getSitesIdFromSiteUrl
    
    array(1) {
      [0]=>
      array(1) {
        ["idsite"]=>
        int(9)
      }
    }
    
    array(2) {
      [0]=>
      string(223) "HTTP/1.1 200 OK
    Server: nginx/1.7.9
    Date: Thu, 06 Aug 2015 07:24:14 GMT
    Content-Type: application/json; charset=utf-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Host-Header: 192fc2e7e50945beb8231a492d6a8024
    
    "
      [1]=>
      string(207) "https://stefan-reindl.com/analytics/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DSitesManager.getSitesIdFromSiteUrl%26idSite%3D8%26url%3Dhttp%3A%2F%2Fwww.stefan-reindl.com&token_auth=..."
    }
    
    array(2) {
      ["global_settings"]=>
      array(56) {
        ["revision"]=>
        string(10) "2015072101"
        ["last_settings_update"]=>
        string(10) "1438828690"
        ["piwik_mode"]=>
        string(4) "http"
        ["piwik_url"]=>
        string(35) "https://stefan-reindl.com/analytics/"
        ["piwik_path"]=>
        string(0) ""
        ["piwik_user"]=>
        string(0) ""
        ["piwik_token"]=>
        string(3) "set"
        ["auto_site_config"]=>
        string(1) "1"
        ["default_date"]=>
        string(9) "yesterday"
        ["stats_seo"]=>
        string(1) "0"
        ["dashboard_widget"]=>
        string(8) "disabled"
        ["dashboard_chart"]=>
        string(1) "0"
        ["dashboard_seo"]=>
        string(1) "0"
        ["toolbar"]=>
        string(1) "0"
        ["capability_read_stats"]=>
        array(5) {
          ["administrator"]=>
          string(1) "1"
          ["editor"]=>
          string(1) "0"
          ["author"]=>
          string(1) "0"
          ["contributor"]=>
          string(1) "0"
          ["subscriber"]=>
          string(1) "0"
        }
        ["perpost_stats"]=>
        string(1) "0"
        ["plugin_display_name"]=>
        string(8) "WP-Piwik"
        ["piwik_shortcut"]=>
        string(1) "0"
        ["shortcodes"]=>
        string(1) "0"
        ["track_mode"]=>
        string(7) "default"
        ["track_codeposition"]=>
        string(6) "footer"
        ["track_noscript"]=>
        string(1) "0"
        ["track_nojavascript"]=>
        string(1) "0"
        ["proxy_url"]=>
        string(30) "//stefan-reindl.com/analytics/"
        ["track_content"]=>
        string(7) "visible"
        ["track_search"]=>
        string(1) "0"
        ["track_404"]=>
        string(1) "0"
        ["add_post_annotations"]=>
        string(1) "0"
        ["add_customvars_box"]=>
        string(1) "0"
        ["add_download_extensions"]=>
        string(0) ""
        ["disable_cookies"]=>
        string(1) "0"
        ["limit_cookies"]=>
        string(1) "0"
        ["limit_cookies_visitor"]=>
        string(8) "34186669"
        ["limit_cookies_session"]=>
        string(4) "1800"
        ["limit_cookies_referral"]=>
        string(8) "15778463"
        ["track_admin"]=>
        string(1) "0"
        ["capability_stealth"]=>
        array(0) {
        }
        ["track_across"]=>
        string(1) "0"
        ["track_across_alias"]=>
        string(1) "0"
        ["track_feed"]=>
        string(1) "0"
        ["track_feed_addcampaign"]=>
        string(1) "0"
        ["track_feed_campaign"]=>
        string(4) "feed"
        ["track_heartbeat"]=>
        string(1) "0"
        ["cache"]=>
        string(1) "1"
        ["http_connection"]=>
        string(4) "curl"
        ["http_method"]=>
        string(4) "post"
        ["disable_timelimit"]=>
        string(1) "0"
        ["connection_timeout"]=>
        string(1) "5"
        ["disable_ssl_verify"]=>
        string(1) "0"
        ["piwik_useragent"]=>
        string(3) "php"
        ["piwik_useragent_string"]=>
        string(8) "WP-Piwik"
        ["track_datacfasync"]=>
        string(1) "0"
        ["track_cdnurl"]=>
        string(0) ""
        ["track_cdnurlssl"]=>
        string(0) ""
        ["force_protocol"]=>
        string(8) "disabled"
        ["update_notice"]=>
        string(7) "enabled"
      }
      ["settings"]=>
      array(6) {
        ["name"]=>
        string(0) ""
        ["site_id"]=>
        string(1) "8"
        ["noscript_code"]=>
        string(115) "<noscript><p><img src="//stefan-reindl.com/analytics/piwik.php?idsite=8" style="border:0;" alt="" /></p></noscript>"
        ["tracking_code"]=>
        string(570) "<!-- Piwik -->
    <script type="text/javascript">
      var _paq = _paq || [];
      _paq.push(['trackPageView']);
    _paq.push(['trackVisibleContentImpressions']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="//stefan-reindl.com/analytics/";
        _paq.push(['setTrackerUrl', u+'piwik.php']);
        _paq.push(['setSiteId', 8]);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
      })();
    </script>
    <!-- End Piwik Code -->
    "
        ["last_tracking_code_update"]=>
        string(10) "1438828690"
        ["dashboard_revision"]=>
        string(1) "0"
      }
    }

    does that leave any clues?

    thanks

    Thread Starter hanhaoran

    (@hanhaoran)

    oh, that’s too bad. but thanks for letting me know and for responding so quickly!

    Thread Starter hanhaoran

    (@hanhaoran)

    sorry about being unclear here. i realize this plugin allows the entire form’s collected data to be submitted to a pdf file, and that’s the file i would then like to have to the submitter’s user meta.

    sounds like it’s possible judging from your previous reply, but would you guys be able to provide a step by step for this?

    thanks

    Thread Starter hanhaoran

    (@hanhaoran)

    is it? but i’d need the pdf generated and saved into the user meta – this would be the basic form plugin’s feature?

    same here, is this something you guys are working on bringing back? custom user roles are kinda key to many wp sites so this plugin becomes somewhat useless without that capability… why was it removed in the first place??

    please let us know so we know if we should wait for this or if we should rather look for an alternative… thanks!

    thanks, with this version it works fine!

    same issue! what’s going on?? is the old version available somewhere?

    same issue here. any progress?

    any progress here?

Viewing 15 replies - 1 through 15 (of 27 total)