ID; //echo $post_id;exit; $roles = get_editable_roles(); $post_types = get_post_types('','names'); //print_r($roles); $query = "SELECT * FROM {$table_prefix}advnote_notifications WHERE post_id='{$post_id}'"; $result = mysql_query($query); if (!$result) { echo $query; echo mysql_error(); exit;} $arr = mysql_fetch_array($result); $advnote_status = $arr['status']; $rules = $arr['rules']; $rules = json_decode($rules,1); //print_r($rules); $advnote_expire_by = $rules['expire_by']; $advnote_expire_by_date = $rules['expire_by_date']; $advnote_expire_by_visitors = $rules['expire_by_visitors']; $advnote_expire_by_visitors_count = $rules['expire_by_visitors_count']; $advnote_userroles_permit = explode(',',$rules['userroles_permit']); $advnote_userroles_prevent = explode(',',$rules['userroles_prevent']); $advnote_post_types = explode(',',$rules['post_types']); $advnote_persistance = $rules['persistance']; $advnote_persistance_reset = $rules['persistance_reset']; $advnote_persistance_reset_rule = $rules['persistance_reset_rule']; $advnote_useragent_prevent = $rules['useragent_prevent']; if (!$global_permission) { $label = "(pro version only)"; $mod = true; } ?>
> > > >
Is Active? >   Yes    >   No   

Expires:

Notice Expiration Date:

Expiration Goal: ( Eg: Enter 200 to disable notification after the 200th visitor. )

Apply to these user Roles: $role) { ?> >  
>  unregistered  

Exempt from these user Roles: $role) { ?> >  
>  unregistered  

Apply to these Page Types: $post_type) { if ($post_type!='revision'&&$post_type!='attachment'&&$post_type!='nav_menu_item'&&$post_type!='notifications') { ?> >  
>  home page
>  archive (tag or cat)  

>   Persistant    >   Not Persistant   



Reset Rule ( Eg: Enter 10 to represent 10 page views or 10 days )

Exempt from these useragents ( Separate with commas )

ID; $theme_path =ADVANCEDNOTIFICATIONS_PATH."/themes/" ; $results = scandir($theme_path); foreach ($results as $result) { if ($result === '.' or $result === '..') continue; if (is_dir($theme_path . '/' . $result)) { $themes[] = $result; } } //print_r($themes);exit; $query = "SELECT styling FROM {$table_prefix}advnote_notifications WHERE post_id='{$post_id}'"; $result = mysql_query($query); if (!$result) { echo $query; echo mysql_error(); exit;} $arr = mysql_fetch_array($result); $styling = $arr['styling']; $rules = json_decode($styling,1); //print_r($rules); $advnote_theme = $rules['theme']; $advnote_width = $rules['width']; $advnote_height = $rules['height']; $advnote_delay_nature = $rules['delay_nature']; $advnote_delay_delay = $rules['delay_delay']; $advnote_delay_scrollpoint_coordinate = $rules['delay_scrollpoint_coordinate']; $advnote_delay_scrollpoint_element = $rules['delay_scrollpoint_element']; $advnote_delay_scrollpoint_features = $rules['delay_scrollpoint_features']; $advnote_draggable = $rules['draggable']; $advnote_placement = $rules['placement']; $advnote_modal = $rules['modal']; $advnote_closable = $rules['closable']; $advnote_resizable = $rules['resizable']; $advnote_show_title = $rules['show_title']; $advnote_animate_show_hide = $rules['animate_show_hide']; $advnote_animate_show_effect = $rules['animate_show_effect']; $advnote_animate_hide_effect = $rules['animate_hide_effect']; $advnote_animate_show_effect_duration = $rules['animate_show_effect_duration']; $advnote_animate_hide_effect_duration = $rules['animate_hide_effect_duration']; $advnote_animate_show_effect_direction = $rules['animate_show_effect_direction']; $advnote_animate_hide_effect_direction = $rules['animate_hide_effect_direction']; $advnote_animate_show_effect_fold_method = $rules['animate_hide_effect_fold_method']; $advnote_animate_hide_effect_fold_method = $rules['animate_hide_effect_fold_method']; $advnote_animate_show_effect_size = $rules['animate_show_effect_size']; $advnote_animate_hide_effect_size = $rules['animate_hide_effect_size']; $advnote_animate_show_effect_origin = $rules['animate_show_effect_origin']; $advnote_animate_show_effect_scale_method = $rules['animate_show_effect_scale_method']; $advnote_animate_show_effect_direction = $rules['animate_show_effect_direction']; $advnote_animate_hide_effect_origin = $rules['animate_hide_effect_origin']; $advnote_animate_hide_effect_scale_method = $rules['animate_hide_effect_scale_method']; $advnote_animate_hide_effect_direction = $rules['animate_hide_effect_direction']; $advnote_animate_after_effect = $rules['animate_after_effect']; $advnote_animate_after_effect_effect = $rules['animate_after_effect_effect']; $advnote_animate_after_effect_delay = $rules['animate_after_effect_delay']; $advnote_animate_after_effect_duration = $rules['animate_after_effect_duration']; $advnote_animate_after_effect_direction = $rules['animate_after_effect_direction']; $advnote_animate_after_effect_distance = $rules['animate_after_effect_distance']; if (!$global_permission) { $label = "(pro version only)"; $mod = true; } ?>
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Style Theme
Placement
Placement Nature:
Delay: value=''> in milliseconds
Scrollpoint Y coordinate: value=''> in pixels from top of screen
Scrollpoint element classname: value=''>
Scrollpoint Features
Width: ( Eg: 100% or 100px )
Height: ( Eg: 100% or 100px )
Display as Modal: >
Modal Screen Color:
Resizable: value='true' >
Movable: value='true' >
Closable: value='true' >
Show Title: >
Enable Show & Hide Animation: >
Enable After Effect Animation: >


Notification 'Show' Settings
Show Animation:
Blind Direction:
Drop Direction:
Clip Direction:
Slide Direction:
Scale Direction:
Fold Method:
Fold Size: value=''>
Origin:
Scale Method:
Animation Duration :
>

Notification 'Hide' Settings
Hide Animation:
Blind Direction:
Drop Direction:
Scale Direction:
Slide Direction:
Clip Direction:
Origin:
Scale Method:
Fold Method:
Fold Size: value=''>
Animation Duration :
>

Notification After Effects Settings
After Effect Animation:
Effect Delay : value=''> in milliseconds
Bounce Direction:
Shake Distance:
Bounce Distance:
Highlight Color: value=''>
Animation Duration :
Execution Times :
      Create your own close button for custom styling:
      close text here"; $string = htmlentities($string); echo $string; ?>


      Code for custom PHP placement of notifcation:
      advnote_php_placement();"; ?>
0) { $query = "UPDATE {$table_prefix}advnote_notifications SET status='$advnote_status', rules = '".mysql_real_escape_string($rules)."', styling='$styling' WHERE post_id='{$post_id}'"; $result = mysql_query($query); if (!$result){ echo $query; echo mysql_error(); exit;} } else { $query = "INSERT INTO {$table_prefix}advnote_notifications (`post_id`,`rules`,`styling`,`status`) VALUES ('$post_id','".mysql_real_escape_string($rules)."','$styling','$advnote_status')"; $result = mysql_query($query); if (!$result){ echo $query; echo mysql_error(); exit;} } } } function advnote_admin_footer() { ?>