Plugin Directory

Changeset 341303


Ignore:
Timestamp:
02/05/2011 10:23:17 PM (15 years ago)
Author:
robwhiteus
Message:

Added shortcode [wpta] to code

Location:
wp-talkshoe-archives/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-talkshoe-archives/trunk/readme.txt

    r336786 r341303  
    55Requires at least: 3.0.0
    66Tested up to: 3.0.4
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88
    99This is a plugin that will display archived MP3 files for specified Talkshoe calls and shows.
     
    38382. Activate the plugin through the 'Plugins' menu in WordPress
    39393. Find the widget called WP Talkshoe Archives and drag it to your sidebar and set various options within the widget.
    40 4. At this time, there is no short code for this plugin and it must be ran via the sidebar widgets.
     404. To use in posts or pages, use the shortcode of '[wpta]' without the quotes.
    4141
    4242== Frequently Asked Questions ==
     
    5252= I get an error when running the widget =
    5353
    54 For errors regarding SimplePie, go to line 95 in the wp-tsarchives.php code and remark out this line (with a // at the beginning of the line) or remove the remark, depending on which error you receive.  Some plugins are already using the SimplePie include and this cannot be loaded again, so reamrking out this line will correct the error and allow the widget to function.  If SimplePie is not already installed and being used, then this line must be unremarked.
     54For errors regarding SimplePie, go to line 96 in the wp-tsarchives.php code and remark out this line (with a // at the beginning of the line) or remove the remark, depending on which error you receive.  Some plugins are already using the SimplePie include and this cannot be loaded again, so reamrking out this line will correct the error and allow the widget to function.  If SimplePie is not already installed and being used, then this line must be unremarked.
    5555
    5656== Screenshots ==
     
    6161== Changelog ==
    6262
     63= 1.1 [2011-02-05] =
     64* Added shortcode '[wpta]' for posts and pages displays.
     65* Cleaned up the code for quicker loading.
     66* The shortcode may not work on some themes that already do not allow shortcode usage.
     67
    6368= 1.0 [2011-01-22] =
    6469* Our debut of this version with no Talkshoe API code being used at this time.
  • wp-talkshoe-archives/trunk/wp-tsarchives.php

    r336804 r341303  
    66Author: Dr. Robert White
    77Author URI: http://www.nmpnetwork.com
    8 Version: 1.0
     8Version: 1.1
    99*/
    1010/*  Copyright 2010-2011  Dr. Robert White  (email : [email protected])
     
    1212    This program is free software; you can redistribute it and/or modify
    1313    it under the terms of the GNU General Public License, version 2, as
    14     published by the Free Software Foundation. 
     14    published by the Free Software Foundation.
    1515
    1616    This program is distributed in the hope that it will be useful,
     
    8080
    8181    // This prints the widget
    82     function widget_wta($args) {
    83         extract($args);
     82    function widget_wpta() {
     83//      extract($args);
    8484        $options = (array) get_option('widget_wta');
    8585    $linktarget = ' target="_blank"';
     
    157157
    158158    }
    159 
     159//WordPress Hooks   
     160 add_shortcode('wpta', 'widget_wpta');
    160161 
    161162   
    162163    // Tell Dynamic Sidebar about our new widget and its control
    163     register_sidebar_widget('WP Talkshoe Archives', 'widget_wta');
     164    register_sidebar_widget('WP Talkshoe Archives', 'widget_wpta');
    164165    register_widget_control('WP Talkshoe Archives', 'widget_wta_control', 300, 220);
    165166}
Note: See TracChangeset for help on using the changeset viewer.