Plugin Directory

Changeset 324343


Ignore:
Timestamp:
12/19/2010 06:09:41 PM (15 years ago)
Author:
rjune
Message:

Tagging 0.7

Location:
ad-engine
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • ad-engine/trunk/ad-engine.php

    r324319 r324343  
    302302                         , ($dimps) ? ($dclicks / $dimps * 100) : 0
    303303                         , $tclicks
    304                          , ($ad['ad_shown']) ? ($ad['ad_clicks'] / $ad['ad_shown'] * 100) : 0
     304                 , ($timps) ? ($tclicks / $timps * 100) : 0
    305305                         , site_url("?ae_get_csv=" . $ad['ad_id'])
    306306                         , json_encode($ad)
    307                          /*, admin_url("admin.php?page=ad-engine-menu&action=ad_delete&id=" . $ad['ad_id'])*/
    308307                        );
    309308    }
     
    479478function ad_engine_init() {
    480479    global $wpdb;
     480    if (!is_admin()) {
     481        wp_enqueue_script('jquery');
     482    }
     483
    481484    $jads = ad_engine_get_counts();
    482485
     
    516519    else if(isset($_GET['ae_ad_clicked'])) {
    517520        ad_update_count($_GET['ae_ad_clicked'], 2);
     521        die();
    518522    }
    519523    else if(isset($_GET['ae_get_data'])) {
     
    722726        $output .= sprintf("%s<ul class='ad'>
    723727                <li class='image'>
    724                   <a id='ad_engine_ad_%d' target='_blank' href='%s' onclick='jQuery.get(\"%s?ae_ad_clicked=%s\")'>%s%s</a>
     728                  <a id='ad_engine_ad_%d' target='_blank' href='%s' onclick='jQuery.get(\"%s/?ae_ad_clicked=%s\")'>%s%s</a>
    725729                </li>
    726730              </ul>"
  • ad-engine/trunk/readme.txt

    r324320 r324343  
    3535== Changelog ==
    3636
     37= 0.7 =
     38* Added jQuery as a requirement
     39* Fixed bug in Total Click percentage
     40
    3741= 0.6 =
    3842* Delete ad now asks for confirmation
Note: See TracChangeset for help on using the changeset viewer.