Plugin Directory

Changeset 392124


Ignore:
Timestamp:
06/02/2011 11:25:26 AM (15 years ago)
Author:
OsExpert.net
Message:

Global notification respectively errormessage in Worpdress Admin Backend Settings area if the wp-seo-tags-template.php file is missing. It is important that this file can be located in your current theme folder.

Improved moderation overview table in layout and a better human readable date time information for the last visits.

Location:
wp-seo-tags
Files:
18 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-seo-tags/trunk/readme.txt

    r387642 r392124  
    44Tags: Log incoming queries, searchengines, widget, seo
    55Requires at least: 3.0
    6 Tested up to: 3.1.2
    7 Stable tag: 2.2.5.5
     6Tested up to: 3.1.3
     7Stable tag: 2.2.6
    88
    9 <em>Another form of keyword tagging...</em>
     9Another form of keyword tagging...
    1010
    1111== Description ==
     
    1717
    1818== Changelog ==
     19<ul>
     20    <span>2.2.6</span>
     21    <li>Global notification respectively errormessage in Worpdress Admin Backend Settings area if the wp-seo-tags-template.php file is missing. It is important that this file can be located in your current theme folder.</li>
     22    <li>Improved moderation overview table in layout and a better human readable date time information for the last visits.</li>
     23</ul>
    1924<ul>
    2025    <span>2.2.5.5</span>
  • wp-seo-tags/trunk/wp-seo-tags.php

    r387642 r392124  
    44Plugin URI: http://www.saquery.com/wordpress/wp-seo-tags
    55Description: WP SEO Tags
    6 Version: 2.2.5.5
     6Version: 2.2.6
    77Author: Stephan Ahlf
    88Author URI: http://saquery.com
     
    196196    }
    197197   
    198     function saq_wpseotags_adminoptions1(){
    199         global $wpdb;
     198   
     199    function saq_wpseotags_admin_notices() {
     200        settings_errors( 'global' );
    200201        $templatePath = saq_wpseotags_get_template_folder()."/";
    201202        $templateFile = "wp-seo-tags-template.php";
     
    203204       
    204205        if (!is_file($fn)){
    205             ?>
    206                 <div class="error"><strong>WP SEO TAGS - ERROR! <br /><br />The file "<?php echo $fn; ?>" could not be found.</strong> <br />
    207                 Please upload a copy of this file to your server.</div>
    208             <?php
    209         }
     206        $msg = "WP SEO TAGS - ERROR! <br /><br />The file ".$fn." could not be found. Please upload a copy of this file from the zip archive located at <a href=\"http://wordpress.org/extend/plugins/wp-seo-tags/\">http://wordpress.org/extend/plugins/wp-seo-tags/</a> to your server.";
     207            add_settings_error('wp_seo_tags_tamplate_error',esc_attr('wpseotagstemplatetest'),$msg);
     208        }
     209    }
     210   
     211   
     212   
     213    function saq_wpseotags_adminoptions1(){
     214        global $wpdb;
    210215
    211216
     
    233238            for (var i=0;i<_a.length;i++) _a[i].checked=obj.checked;
    234239        }
     240(function($){
     241    function prettyDate(time){
     242        var date = new Date((time || "").replace(/-/g,"/").replace(/[TZ]/g," ")),
     243            diff = (((new Date()).getTime() - date.getTime()) / 1000),
     244            day_diff = Math.floor(diff / 86400);
     245               
     246        if ( isNaN(day_diff) || day_diff < 0 || day_diff >= 31 )
     247            return;
     248               
     249        return day_diff == 0 && (
     250                diff < 60 && "just now" ||
     251                diff < 120 && "1 minute ago" ||
     252                diff < 3600 && Math.floor( diff / 60 ) + " minutes ago" ||
     253                diff < 7200 && "1 hour ago" ||
     254                diff < 86400 && Math.floor( diff / 3600 ) + " hours ago") ||
     255            day_diff == 1 && "Yesterday" ||
     256            day_diff < 7 && day_diff + " days ago" ||
     257            day_diff < 31 && Math.ceil( day_diff / 7 ) + " weeks ago";
     258    }
     259
     260    if ( typeof jQuery != "undefined" )
     261    jQuery.fn.prettyDate = function(){
     262        return this.each(function(){
     263            var date = prettyDate($(this).text());
     264            if ( date )
     265                jQuery(this).html( date + " - <i>"+$(this).text()+"</i>" );
     266        });
     267    };
     268    $(function(){
     269        $(".wp-seo-tags-date-time").prettyDate();
     270        $("#wp-seo-tags-donation-box").fadeIn(10000);
     271    });
     272})(jQuery);     
    235273        </script>';
    236274        $where = "where deleted = 0 and moderated = 0";
     
    248286        $query = "SELECT target, moderated, deleted, max(dt) as dt from ".$wpdb->wpseotags_dbTable ." $where group by target, moderated, deleted order by moderated asc, dt desc";
    249287        $res = $wpdb->get_results($query);
    250         echo '<h1>WP SEO TAGS</h1><div name=\"top\" id="icon-tools" class="icon32"><br></div>
     288        echo '<div name=\"top\" id="icon-tools" class="icon32"><br></div>
    251289        <h2>'.saq_('Moderate incoming searchengine keywords').'</h2>
    252290        <div class="form-wrap">
     
    255293        ';
    256294
     295        echo '<div id="wp-seo-tags-donation-box" style="display:none;" class="update-nag"><br />
     296        <p><strong>Thank you for using wp-seo-tags! </strong><span style="color:#990000;">If you think this software is useful please support the development with a donation or <a target="_blank" href="http://wordpress.org/extend/plugins/wp-seo-tags/">rate this software</a>.</span><br />Feel free to contact me for support at <a href="http://saquery.com/wordpress/wp-seo-tags/" target="_blank" >http://saquery.com/wordpress/wp-seo-tags/</a><br />
     297        <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
     298       
     299        <input type="hidden" name="cmd" value="_s-xclick">
     300        <input type="hidden" name="hosted_button_id" value="SQRUU7JKE7KFS">
     301        <input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110429-1/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
     302        <img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110429-1/de_DE/i/scr/pixel.gif" width="1" height="1">
     303        </form>
     304        </div>
     305<style>     
     306.wp-seo-tags
     307{
     308   
     309    margin-top:11px;
     310    width: 100%;
     311    border-collapse: collapse;
     312    text-align: left;
     313}
     314.wp-seo-tags th
     315{
     316    font-size: 14px;
     317    font-weight: bold;
     318    padding: 10px 8px;
     319    border-bottom: 2px solid #6678b1;
     320}
     321.wp-seo-tags td
     322{
     323    border-bottom: 1px solid #ccc;
     324    padding: 6px 8px;
     325    vertical-align:top;
     326    background-color:#fff;
     327}
     328.wp-seo-tags tbody tr:hover td
     329{
     330    color: #009;
     331}
     332
     333</style>
     334        ';
    257335        echo "<form id=\"frm_wpseo\" action=\"\" method=\"post\">";
    258         echo "<input type=\"checkbox\" onclick=\"CkAllNone(this,'frm_wpseo');\" />".saq_('Select all items in list').".";
    259         echo "<hr><table  class=\"form-table\" cellspacing=\"10\" cellpadding=\"10\">";
     336        echo "<table class=\"wp-seo-tags\">";
    260337        echo "<tr><th>".saq_('Selection')."</th>";
    261338        echo "<th>URL</th>";
     
    270347            $lnk = urldecode($lnk);
    271348            echo "<td>$lnk</td>";
    272             echo "<td>".$row->dt."</td>";
     349            echo "<td class=\"wp-seo-tags-date-time\">".$row->dt."</td>";
    273350            if ($row->moderated==1){
    274351                $chk = "<input type=\"checkbox\" disabled=\"disabled\" checked=\"checked\" />";
     
    288365        $_txt = "<input type=\"text\" style=\"width:130px;\"";
    289366        $delim="&#32;&#187;&#32;";
    290         echo "</table><hr>";
     367        echo "</table>";
     368        echo "<input type=\"checkbox\" onclick=\"CkAllNone(this,'frm_wpseo');\" />".saq_('Select all items in list').".<hr />";
    291369        echo "$_btn name=\"submit\" value=\"".saq_('Moderate')."\" onclick=\"return confirm('".saq_('Mark selected URLs as moderated now')."?');\" />$delim";
    292370        echo "$_btn name=\"delete\" value=\"".saq_('Delete')."\" onclick=\"return confirm('".saq_('Mark selected URLs as deleted now')."?');\" />$delim";
     
    303381        echo "</form>";
    304382
    305         echo '<div class="update-nag"><br />
    306         <p><strong>Thank you for using wp-seo-tags! </strong><span style="color:#990000;">If you think this software is useful please support the development with a donation.</span><br />Feel free to contact me for support at <a href="http://saquery.com/wordpress/wp-seo-tags/" target="_blank" >http://saquery.com/wordpress/wp-seo-tags/</a><br />
    307         <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    308        
    309         <input type="hidden" name="cmd" value="_s-xclick">
    310         <input type="hidden" name="hosted_button_id" value="SQRUU7JKE7KFS">
    311         <input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110429-1/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    312         <img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110429-1/de_DE/i/scr/pixel.gif" width="1" height="1">
    313         </form>
    314         </div>
    315         ';
    316383
    317384        echo '</div></div>';
     
    320387    function saq_wpseotags_admin_menu(){
    321388        add_submenu_page('options-general.php', 'WP SEO Tags options', 'WP SEO Tags', 'administrator', __FILE__, 'saq_wpseotags_adminoptions1');
     389        saq_wpseotags_admin_notices();
    322390    }
    323391
Note: See TracChangeset for help on using the changeset viewer.