Changeset 17636

Show
Ignore:
Timestamp:
08/30/07 20:14:36 (10 months ago)
Author:
pixline
Message:

0.3 tagged stable release. works with 2.3b1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • accessible-news-ticker/trunk/ant.php

    r17353 r17636  
    55Description: Display latest posts or RSS news in an accessible/unobtrusive scroll box. Based on Chris Heilmann's <a href="http://onlinetools.org/tools/domnews/">DOMnews 1.0</a>. 
    66Author: Pixline 
    7 Version: 0.3rc2 
     7Version: 0.3 
    88Author URI: http://pixline.net/ 
    99 
     
    9797 
    9898function widget_ant($args) {  
    99  
     99global $cat; 
    100100        extract($args);  
    101101        $options = get_option('widget_ant_options');  
     
    111111switch($kind): 
    112112      case 'posts': 
    113       $news = get_posts("numberposts=".$howmany."&category=".$antcat); 
     113#     if(isset($cat) && $cat != 0) $menocat = "&exclude=".$cat; else $menocat = ""; // if global post list, but inside cat, exclude double posts 
     114      $news = get_posts("numberposts=".$howmany."&category=".$antcat.$menocat); 
    114115      echo "<div id='accessible-news-ticker'>"; 
    115116            echo "<ul>"; 
     
    165166                  $newoptions['category'] = strip_tags(stripslashes($_POST['ant-category'])); 
    166167                  $newoptions['feedurl'] = strip_tags(stripslashes($_POST['ant-feedurl'])); 
    167         }  
     168 
    168169            if ( $options != $newoptions ) {  
    169170                  $options = $newoptions; 
    170171            update_option('widget_ant_options', $newoptions);  
    171         } 
     172            } 
     173      }  
     174        $options = get_option('widget_ant_options');  
    172175?>  
    173176        <div>  
  • accessible-news-ticker/trunk/readme.txt

    r17297 r17636  
    44Tags: admin, post, javascript, scroller, news, ticker, widget, widgets, posts 
    55Requires at least: 2.1 
    6 Tested up to: 2.2.2 
    7 Stable tag: trunk 
     6Tested up to: 2.3b1 
     7Stable tag: 0.3 
    88 
    99A news ticker/scroller widget that displays posts and RSS with accessible javascript). 
     
    1515Based on the wonderful [DOMNews 1.0](http://onlinetools.org/tools/domnews/) (by Chris Heilmann) and [SimplePie RSS-parsing php class](http://simplepie.org) 
    1616 
     17[Accessible News Ticker support forum](http://talks.pixline.net/forum/accessible-news-ticker-widget) 
     18 
    1719== Installation == 
    1820 
     
    2123REALLY IMPORTANT: Make sure that the plugin creates a folder `cache` in your wp-content folder to cache RSS feeds, and that this folder is writeable (chmod 755 or chmod 777). 
    2224 
     25REALLY REALLY IMPORTANT: check your theme's header.php and footer.php for presence of wp_head(); (in the <head> section) and wp_footer(); (near </body>), otherwise this plugin can't work. if you can't find them, INSERT THEM! 
     26 
    23271. Place and activate like *all* the others WP plugins in the world. 
    24281. (Optional) Tweak .css file to suit your need. 
    25291. Enjoy! :-) 
     30 
     31[Accessible News Ticker support forum](http://talks.pixline.net/forum/accessible-news-ticker-widget)