Plugin Directory

Changeset 209250


Ignore:
Timestamp:
02/23/2010 08:00:28 AM (16 years ago)
Author:
DamienOh
Message:
 
Location:
wp-popup-scheduler/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-popup-scheduler/trunk/readme.txt

    r192524 r209250  
    22Contributors: Damien Oh
    33Donate link: http://maketecheasier.com/wordpress-plugins/wordpress-popup-scheduler
    4 Stable tag: tag/1.2.8.3
     4Stable tag: tag/1.3.0
    55Tags: popup, popup scheduler,
    66Requires at least: 2.3.0
    7 Tested up to: 2.9.1
     7Tested up to: 2.9.2
    88
    99Description: A multi purpose popup scheduler that blog owner can use to deliver their message effectively to their readers.
     
    4646
    4747== Logs ==
     481.3.0 - Added new feature: show popup automatically when the popup content changes
    48491.2.8.3 - Fixed PHP/javascript variable incompatibility. Minify javascript
    49501.2.8.2 - Fixed a forward slashes bug in the content area
  • wp-popup-scheduler/trunk/wp-popup-scheduler.php

    r192524 r209250  
    55Plugin URI: http://maketecheasier.com/
    66Description: Wp Popup Scheduler allows you to add a popup box to your blog. You can customize the popup to suit your blog theme and schedule it to popup as and when you like it.
    7 Version: 1.2.8.3
     7Version: 1.3.0
    88Author: Damien Oh
    99Author URI: http://maketecheasier.com/about
     
    5454'headline_align' => "center",
    5555'wps_path' => "",
    56 'rich_text'=>"1",);
     56'rich_text'=>"1",
     57'content_hash'=>"");
    5758
    5859add_option('WPS_setting', $WPS_config, 'Settings for WordPress Popup Scheduler');
     
    8788    $disp_msg = $_POST['display_message'];
    8889    $WPS['display_message'] = strTrimTotal($disp_msg);
     90    $WPS['content_hash'] = md5($WPS['display_message'].$WPS['popup_title']);
    8991    $WPS['close_text'] = strip_tags($_POST['close_text']);
    9092    $WPS['display_page'] = $_POST['display_page'];
     
    170172                    add_filter('the_content', 'WPS_hook');
    171173            }
     174        }
     175    }
     176    else if( $WPS['show_popup_on'] == "onupdate")
     177    {
     178        if ($_COOKIE['WPS_content_hash'] != $WPS['content_hash'])
     179        {   setcookie('WPS_content_hash', $WPS['content_hash']);
     180            if($displayed_mode != "before_post"  && $displayed_mode != "after_post")
     181                add_filter('wp_footer', 'load_WPS_message');
     182            else   
     183                add_filter('the_content', 'WPS_hook');
    172184        }
    173185    }
     
    306318        <td><p><input type="radio" name="schedule_option" value="consecutive" <?php if($WPS['schedule_option']=="consecutive") echo 'checked="checked"';?> /> <?php _e("for");?> <input type="text" name="show_popup_consec" value="<?php echo $WPS['show_popup_consec'];?>" maxlength="3" size="1" /> <?php _e("days");?></p>
    307319        <p><input type="radio" name="schedule_option" value="interval" <?php if($WPS['schedule_option']=="interval") echo 'checked="checked"';?>/> <?php _e("every");?> <input type="text" name="show_popup_interval" maxlength="2" size="2" value="<?php echo $WPS['show_popup_interval']; ?>" /> <?php _e("days");?></p></td></tr>
    308         <tr><td><input type="radio" name="show_popup_on" id="show_popup_everytime" value="everytime" <?php if($WPS['show_popup_on']=="everytime") echo 'checked="checked"';?> onclick="checkDisplay()"/></td><td><?php _e("at all time");?>.</td></tr></table>
     320        <tr><td><input type="radio" name="show_popup_on" id="show_popup_everytime" value="everytime" <?php if($WPS['show_popup_on']=="everytime") echo 'checked="checked"';?> onclick="checkDisplay()"/></td><td><?php _e("at all time");?>.</td></tr>
     321        <tr><td><input type="radio" name="show_popup_on" value="onupdate" <?php if($WPS['show_popup_on']=="onupdate") echo 'checked="checked"';?> /></td><td><?php _e("whenever you make changes to the popup content.");?></td></tr></table>
    309322        <p>&nbsp;</p>
    310323        <h3><?php _e("Set delay for popup");?></h3>
Note: See TracChangeset for help on using the changeset viewer.