Plugin Directory

Changeset 203516

Timestamp:
02/09/2010 03:44:11 PM (14 years ago)
Author:
ShaneF
Message:

some fixes with the flash loading. Flash is returning a error called 'Movie not loading'. Looking into this.

Location:
woopra/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woopra/trunk/inc/render.php

    r203254 r203516  
    6868   
    6969    /**
     70
     71
     72
     73
     74
     75
     76
    7077     * PHP 4 Style constructor which calls the below PHP5 Style Constructor
    7178     * @since 1.4.1
     
    135142                wp_die($xml_process->get_error_message());
    136143           
     144
     145
    137146            // Clear up memory!
    138147            unset($xml_data, $xml_data_append);
     
    226235        arsort($entries);   // force arsort.
    227236    ?>
     237
     238
     239
     240
     241
    228242        <table class="woopra-table" width="100%" cellpadding="0" cellspacing="0">
    229243            <tr>
     
    269283                    <td class="text-item"><?php echo $visitorsstring; ?></td>
    270284                    <td class="text-item"><?php echo number_format($visitors); ?></td>
    271                     <td class="text-item highlight"><a href="#" onclick="return expandLineChart('<?php echo $this->api_page; ?>', '<?php echo $hashid; ?>', <?php echo $counter; ?>)"><?php echo number_format($pageviews); ?></a></td>
     285                    <td class="text-item highlight">
     286                        <a class="woopra-chart-line-a" href="#" onclick="return expandLineChart('<?php echo $counter; ?>');"><?php echo number_format($pageviews); ?></a>
     287                    </td>
    272288                    <td class="bar"><?php echo $this->woopra_bar($percent); ?></td>
    273289                </tr>
  • woopra/trunk/js/jquery.analytics.js

    r203254 r203516  
    159159        }
    160160       
     161
    161162        selectedSubTabs[superid] = id;
    162163       
     
    238239   
    239240    /**
    240      * Expand Line Chart for Rendering the Flash Chart
    241      * @param {Object} key
    242      * @param {Object} hashid
    243      * @param {Object} id
    244      */
    245     function expandLineChart(key, hashid, id) {
    246        
    247         if ( jQuery('#woopra-chart-line-tr-' + hashid + '-' + id).attr('class') == 'loaded' )
    248         {
    249             // Hide the 'tr'
    250             jQuery('#woopra-chart-line-tr-' + hashid + '-' + id).attr("style", "display: none;").removeAttr("class");
    251             // Clear the flash element. So it can be reloaded at a future time.
    252             jQuery('#woopra-chart-line-td-' + hashid + '-' + id).html();
    253             // Return False
    254             return false;
    255         }
    256        
    257         //  Show Chart Line 'tr'
    258         jQuery('#woopra-chart-line-tr-' + hashid + '-' + id).attr("style", "display: table-row;").addClass("loaded");
    259        
    260         var phpfile = woopraL10n.siteurl + '/wp-admin/admin-ajax.php?action=woopra&datatype=flash&apikey=' + woopradefaultL10n.apikey + '&id=' + index + '&wkey=' + key + '&date_format=' + date_format + '&from=' + date_from + '&to=' + date_to;
    261        
    262         //  Flash jQuery Code
    263         jQuery('#woopra-chart-line-td-' + hashid + '-' + id).flash({
    264             src: woopraL10n.siteurl + '/flash/open-flash-chart.swf',
    265             data-file: escape(phpfile),
    266             width: 968,
    267             height: 110,
    268             quality: 'best',
    269             bgcolor: '#FFFFFF',
    270             allowFullScreen: 'false',
    271             menu: 'false',
    272             allowScriptAccess: 'sameDomain',
    273             wmode: 'transparent',
    274             expressInstall: true
    275         }, {
    276             version: 10
    277         },
    278         function(htmlOptions){
    279             jQuery(this).html(jQuery.fn.flash.transform(htmlOptions));
    280         });
    281                
    282         return false;
    283     }
    284    
    285     /**
    286241     * Debug
    287242     * @param {Object} message
     
    333288        setSubView(currentSuperView, selectedSubTabs[currentSuperView]);
    334289    }
     290
     291
     292
     293
     294
    335295   
    336296    //  Set the 'from' and 'to' date.
     
    338298    jQuery("#woopra-to").attr('value', jQuery(this).dateprev(0) ).datepicker({ dateFormat: 'yy-mm-dd' });
    339299   
    340     //  Set the link for the date-range selector <a>
    341     function refreshDateLinkText() {
    342         jQuery("#woopra-daterange").html('<strong>' + woopraL10n.from + '</strong>: ' + jQuery("#woopra-from").val() + ' - <strong>' + woopraL10n.to + '</strong>: ' + jQuery("#woopra-to").val());
    343     }
    344     refreshDateLinkText();  //  Run!
    345    
     300    //  Run!   
     301    refreshDateLinkText();
     302       
    346303    //  Create Super Tabs
    347304    addSuperTab( woopraL10n.visitors,       'visitors');
     
    391348    setCurrentSuperTab('visitors');
    392349   
    393    
    394350});
     351
     352
     353
     354
     355
     356
     357
     358
     359
     360
     361
     362
     363
     364
     365
     366
     367
     368
     369
     370
     371
     372
     373
     374
     375
     376
     377
     378
     379
     380
     381
     382
     383
     384
     385
     386
     387
     388
     389
     390
     391
     392
     393
     394
     395
     396
     397
     398
     399
     400
     401
     402
     403
     404
Note: See TracChangeset for help on using the changeset viewer.