Also removed import of daily clicks and views from legacy sites due to that data not being available.
font-weight: bold;
}
+.notice-link
+{
+ cursor: pointer;
+}
\ No newline at end of file
/*
* Check all input
*/
-trigger_error('STARTING', E_USER_NOTICE);
// Check hostname
$dbServer = preg_replace("/[^a-zA-Z0-9\._-]+/", "", trim($_REQUEST['dbServer']));
/*
* Load data from source database
*/
-trigger_error('Memory before: '.memory_get_usage(), E_USER_NOTICE);
+
// Attempt to get member base data
if (!$failure) {
$sql = "
// Create or update click entries as needed using a Transaction
$this->wpdb->query('BEGIN');
+/*
+ Looking at the data it appears that the old database had some kind of processing that bunched things up by month.
+ Because of that, we're not going to use the day and week counts at this point.
// Day count - stat_type = 1
$this->wpdb->query("
ON DUPLICATE KEY
UPDATE clicks = clicks + ".$row['click'].";
");
-
+*/
// Month count - stat_type = 3
$this->wpdb->query("
INSERT INTO ".GLM_MEMBERS_PLUGIN_DB_PREFIX."clickthrough_stats
// Create or update click entries as needed using a Transaction
$this->wpdb->query('BEGIN');
-
+/*
// Day count - stat_type = 1
$this->wpdb->query("
INSERT INTO ".GLM_MEMBERS_PLUGIN_DB_PREFIX."member_detail_stats
ON DUPLICATE KEY
UPDATE clicks = clicks + ".$row['detail'].";
");
-
+*/
// Week count - stat_type = 3
$this->wpdb->query("
INSERT INTO ".GLM_MEMBERS_PLUGIN_DB_PREFIX."member_detail_stats
{/foreach}
</select>
<div id="clickUpdate" class="button button-secondaryt">Update Graphs</div>
+ <span class="message button notice-link" data-notice='Legacy Websites may not have included retained daily data.-br--br-If this was the case, you will only see daily URL Click-Through counts collected subsequent to the introduction of this site.-br--br-Any monthly count summaries imported from a legacy site should however display on the lower graph.'>?</span>
<div class="button button-secondary graph-print" data-areaToPrint="urlClicksPrintArea">Print</div>
<a id="clickExport" class="button button-secondary" href="{$ajaxUrl}?action=glm_members_admin_ajax&glm_action=memberGraphs&graphType=exportClicks&memberId={$member.fieldData.id}&memberSlug={$member.fieldData.member_slug}">Export All Monthly Totals</a>
</center>
{/foreach}
</select>
<div id="viewUpdate" class="button button-secondaryt">Update Graphs</div>
+ <span class="message button notice-link" data-notice='Legacy Websites may not have included retained daily data.-br--br-If this was the case, you will only see daily Detail Page View counts collected subsequent to the introduction of this site.-br--br-Any monthly count summaries imported from a legacy site should however display on the lower graph.'>?</span>
<div class="button button-secondary graph-print" data-areaToPrint="viewsPrintArea">Print</div>
<a id="viewExport" class="button button-secondary" href="{$ajaxUrl}?action=glm_members_admin_ajax&glm_action=memberGraphs&graphType=exportViews&memberId={$member.fieldData.id}&memberSlug={$member.fieldData.member_slug}">Export All Monthly Totals</a>
</center>
window.location.replace("{$thisUrl}?page={$thisPage}&glm_action=index&member={$memberID}&showArchived=" + checked);
});
+ $('.message').on('click', function() {
+ var notice = $(this).attr('data-notice');
+ alert(notice.replace(/-br-/g, "\n"));
+ });
+
// Flash certain elements for a short time after display
$(".glm-flash-updated").fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500);