Plugin Directory

Changeset 581845


Ignore:
Timestamp:
08/04/2012 08:37:53 PM (14 years ago)
Author:
wppluginsdev
Message:

This update only includes a correction to the support URL and developer contact info

Location:
tag-search/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tag-search/trunk/README.TXT

    r298897 r581845  
    1313
    1414
    15 For more information and support please visit http://themestown.com
     15For more information and support please visit CX2Q3U78PY http://wppluginsdev.com
    1616
    1717
     
    49494.  That's all there is to it. As long as everything is working and there are no conflicts with other plugins or your theme Tag Search should be functioning.
    5050
    51 If you are having problems please visit http://www.themestown.com for help.
     51If you are having problems please visit http://www.wppluginsdev.com for help.
    5252
    5353
  • tag-search/trunk/tt-tag-search.php

    r298897 r581845  
    44/*
    55Plugin Name: Tag Search
    6 Plugin URI: http://www.themestown.com
    7 Description: This plugin finds tags in post and autolinks them to display search results for all posts found to contain the tagged word or phrase.
    8 Version: 1.5
     6Plugin URI: http://www.wppluginsdev.com
     7Description: This plugin CX2Q3U78PY finds tags in post and autolinks them to display search results for all posts found to contain the tagged word or phrase.
     8Version: 1.6
    99Author: A Lewis
    10 Author URI: http://www.themestown.com
     10Author URI: http://www.wppluginsdev.com
    1111*/
    1212////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    13 /*  Copyright 2010  A. Lewis  (email : themestown@gmail.com)
     13/*  Copyright 2010  A. Lewis  (email : wppluginsdev@live.com)
    1414
    1515    This program is free software; you can redistribute it and/or modify
    16     it under the terms of the GNU General Public License, version 2, as 
     16    it under the terms of the GNU General Public License, version 2, as
    1717    published by the Free Software Foundation.
    1818
     
    4242$tttagsearch_plugin_url = WP_CONTENT_URL.'/plugins/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__));
    4343
    44 $tttagsearchdb_version = "1.5";
     44$tttagsearchdb_version = "1.6";
    4545
    4646define('TTTAGSEARCH', 'Tag Search');
     
    5252
    5353    add_action('init', 'tttagsearchinstall');
    54     add_action('admin_menu', 'tttag_search_launch');   
     54    add_action('admin_menu', 'tttag_search_launch');
    5555    add_filter("the_content", "tt_linkthetag");
    5656    add_filter("wp_footer", "ttcredit");
     
    9999
    100100    global $wpdb,$tttagsearchdb_version;
    101    
     101
    102102    $installed_ver = get_option( "tttagsearchdb_version" );
    103103
     
    125125        $link_how_many=$tttagsearch_options[$tttagsearchconfigoptionsprefix.'_link_tag_how_many_times'];
    126126    }
    127    
     127
    128128    if(isset($tttagsearch_options[$tttagsearchconfigoptionsprefix.'_autolinkstaticpages']) && !empty($tttagsearch_options[$tttagsearchconfigoptionsprefix.'_autolinkstaticpages']))
    129129    {
     
    135135        $ttagsearchonoffstate=$tttagsearch_options[$tttagsearchconfigoptionsprefix.'_onoffstate'];
    136136    }
    137    
     137
    138138    if(!isset($link_how_many) || empty($link_how_many)){$link_how_many=1;}
    139139    if(!isset($ttagsearchonoffstate) || empty($ttagsearchonoffstate)){$ttagsearchonoffstate="on";}
    140    
     140
    141141    $siteurl=get_option('siteurl');
    142142
    143    
     143
    144144    $tttags=get_tags('hide_empty=false');
    145145    //print_r($tttags);
    146    
     146
    147147    if(isset($ttagsearchonoffstate) && !empty($ttagsearchonoffstate) && ($ttagsearchonoffstate == 'on'))
    148148    {
    149    
     149
    150150        if($tttags)
    151151        {
     
    161161            {
    162162                if( isset($autolinkstaticpages) && !empty($autolinkstaticpages) && ($autolinkstaticpages == "yes"))
    163                 {       
     163                {
    164164                    if(strstr($content," $thetag"))
    165165                    {
     
    167167                        $linkedtag="<a href=\"$siteurl?s=$thetagfs\">$thetag</a>";
    168168                        $content = preg_replace('/\b'.$thetag.'\b(?![^<]+>)/i', $linkedtag, $content,$link_how_many);
    169                        
    170 
    171 
    172                     }       
     169
     170
     171
     172                    }
    173173                }
    174174                else
     
    184184            }
    185185        }
    186    
    187        
     186
     187
    188188    }
    189189
     
    202202    }
    203203
    204     $ttcredit="<a style=\"font-size:9px;text-decoration:none;\" href=\"http://themestown.com/groups/tag-seach-plugin/\">Tag Search</a> <font style=\"font-size:9px;text-decoration:none;\">via</font> <a style=\"font-size:9px;text-decoration:none;\" href=\"http://www.themestown.com\"> Themes Town</a>";
     204    $ttcredit="<a style=\"font-size:9px;text-decoration:none;\" href=\"http://wppluginsdev.com/\">Tag Search</a> <font style=\"font-size:9px;text-decoration:none;\">via</font> <a style=\"font-size:9px;text-decoration:none;\" href=\"http://www.wppluginsdev.com\"> wppluginsdeev.com</a>";
    205205    $myttcredit="<div style=\"text-align:center;display:block;padding:3px;\">$ttcredit</div>";
    206    
     206
    207207    if(isset($givepluginauthorcredit) && !empty($givepluginauthorcredit) && ($givepluginauthorcredit == "no")){}else{echo $myttcredit;}
    208208}
     
    226226
    227227    $pstandtttag_search_config_options=get_option($tttagsearchconfigoptionsprefix.'_settings_config');
    228    
     228
    229229    if(isset($pstandtttag_search_config_options) && !empty($pstandtttag_search_config_options))
    230230    {
     
    238238        }
    239239    }
    240    
     240
    241241    return $mytttag_search_config_options;
    242242}
     
    247247    $tttagsearchconfigoptions=$tttagsearchconfigoptionsprefix.'_settings_config';
    248248    $mysavedthemetttag_search_config_options=get_option($tttagsearchconfigoptions);
    249        
     249
    250250        $tttag_search_config_options = $mysavedthemetttag_search_config_options;
    251        
    252         if (!isset($tttag_search_config_options) || empty($tttag_search_config_options) || !is_array($tttag_search_config_options)) 
    253         {           
     251
     252        if (!isset($tttag_search_config_options) || empty($tttag_search_config_options) || !is_array($tttag_search_config_options))
     253        {
    254254            $tttag_search_config_options = $def_tttag_search_config_options;
    255255
    256256            foreach ($tttag_search_config_options as $optionvalue)
    257             {           
     257            {
    258258                if(!isset($optionvalue['id']) || empty($optionvalue['id']))
    259259                {
     
    268268                    $optionvalue['std']='';
    269269                }
    270                
     270
    271271                    $setmytttag_search_config_options[]=array("name" => $optionvalue['name'],
    272272                    "id" => $optionvalue['id'],
    273273                    "std" => $optionvalue['std'],
    274274                    "type" => $optionvalue['type'],
    275                     "options" => $optionvalue['options']);                     
    276 
    277             }
    278            
     275                    "options" => $optionvalue['options']);
     276
     277            }
     278
    279279            update_option($tttagsearchconfigoptions,$setmytttag_search_config_options);
    280         }   
     280        }
    281281}
    282282
     
    288288
    289289            $setmytttag_search_config_options=array();
    290            
     290
    291291
    292292                foreach ($def_tttag_search_config_options as $optionvalue)
    293293                {
    294                
     294
    295295                    if(!isset($optionvalue['id']) || empty($optionvalue['id']))
    296296                    {
     
    309309                        $optionvalue['std']='';
    310310                    }
    311                                
    312                    
     311
     312
    313313                    if(isset($tttag_search_config_options[$optionvalue['id']]) && !empty($tttag_search_config_options[$optionvalue['id']]))
    314314                    {
     
    327327                    "std" => $savedoptionvalue,
    328328                    "type" => $optionvalue['type'],
    329                     "options" => $optionvalue['options']);                 
    330                 }
    331            
    332                 update_option($tttagsearchconfigoptions,$setmytttag_search_config_options);         
    333        
     329                    "options" => $optionvalue['options']);
     330                }
     331
     332                update_option($tttagsearchconfigoptions,$setmytttag_search_config_options);
     333
    334334}
    335335
     
    342342    $tttagsearchconfigoptions=$tttagsearchconfigoptionsprefix.'_settings_config';
    343343    $mysavedthemetttag_search_config_options=get_option($tttagsearchconfigoptions);
    344        
     344
    345345        $tttag_search_config_options = $mysavedthemetttag_search_config_options;
    346        
    347         if (!isset($tttag_search_config_options) || empty($tttag_search_config_options) || !is_array($tttag_search_config_options)) 
    348         {           
     346
     347        if (!isset($tttag_search_config_options) || empty($tttag_search_config_options) || !is_array($tttag_search_config_options))
     348        {
    349349            $tttag_search_config_options = $def_tttag_search_config_options;
    350350
     
    352352            {
    353353                foreach ($tttag_search_config_options as $optionvalue)
    354                 {           
     354                {
    355355                    if(isset($optionvalue['id']) && !empty($optionvalue['id']))
    356356                    {
    357                         $savedoptionvalue=get_option($optionvalue['id']);   
     357                        $savedoptionvalue=get_option($optionvalue['id']);
    358358                        if(!isset($savedoptionvalue) || empty ($savedoptionvalue))
    359359                        {
     
    365365                        "std" => $savedoptionvalue,
    366366                        "type" => $optionvalue['type'],
    367                         "options" => $optionvalue['options']);                     
     367                        "options" => $optionvalue['options']);
    368368
    369369                        delete_option($optionvalue['id']);
     
    371371                }
    372372            }
    373            
     373
    374374            update_option($tttagsearchconfigoptions,$setmytttag_search_config_options);
    375         }   
     375        }
    376376
    377377        if( isset($_REQUEST['action']) && ( 'updatetttag_search_config_options' == $_REQUEST['action'] ))
     
    380380
    381381            foreach ($tttag_search_config_options as $optionvalue)
    382             {   
    383            
     382            {
     383
    384384                if(isset($optionvalue['id']) && !empty($optionvalue['id']))
    385385                {
    386386                    if( isset( $_REQUEST[ $optionvalue['id'] ] ) )
    387                     {               
     387                    {
    388388                        $myoptionvalue = $_REQUEST[ $optionvalue['id'] ];
    389389                    }
    390390                }
    391                
     391
    392392                if(!isset($optionvalue['options']) || empty($optionvalue['options']))
    393393                {
    394394                    $optionvalue['options']='';
    395395                }
    396                
     396
    397397                if(!isset($optionvalue['id']) || empty($optionvalue['id']))
    398398                {
    399399                    $optionvalue['id']='';
    400                 }               
    401                
     400                }
     401
    402402                if(!isset($optionvalue['std']) || empty($optionvalue['std'] ))
    403403                {
    404404                    $optionvalue['std']='';
    405405                }
    406                
    407                
     406
     407
    408408                $mytttag_search_config_options[]=array("name" => $optionvalue['name'],
    409409                "id" => $optionvalue['id'],
    410410                "std" => $myoptionvalue,
    411411                "type" => $optionvalue['type'],
    412                 "options" => $optionvalue['options']);             
     412                "options" => $optionvalue['options']);
    413413
    414414            }
    415415                update_option($tttagsearchconfigoptions,$mytttag_search_config_options);
    416                 $tttag_search_config_optionsupdated=true;   
     416                $tttag_search_config_optionsupdated=true;
    417417
    418418        }
     
    428428$tttag_search_config_options=get_tttagsearch_options();
    429429$tttag_search_config_saved_options = get_option($tttagsearchconfigoptionsprefix.'_settings_config');
    430        
    431         if (!isset($tttag_search_config_saved_options) || empty($tttag_search_config_saved_options) || !is_array($tttag_search_config_saved_options)) 
     430
     431        if (!isset($tttag_search_config_saved_options) || empty($tttag_search_config_saved_options) || !is_array($tttag_search_config_saved_options))
    432432        {
    433433            $tttag_search_config_options = $def_tttag_search_config_options;
     
    441441  <h4><?php _e('Tag Search Settings','ttagse');?></h4>
    442442  <form method="post">
    443     <?php foreach ($tttag_search_config_options as $value) { 
    444    
     443    <?php foreach ($tttag_search_config_options as $value) {
     444
    445445if ($value['type'] == "text") { ?>
    446446    <div style="float: left; width: 880px; background-color:#E4F2FD; border-left: 1px solid #C2D6E6; border-right: 1px solid #C2D6E6;  border-bottom: 1px solid #C2D6E6; padding: 10px;">
     
    471471    <?php } elseif ($value['type'] == "titles") { ?>
    472472    <div style="float: left; width: 870px; padding: 15px; background-color:#2583AD; border: 1px solid #2583AD; color: #fff; font-size: 16px; font-weight: bold; margin-top: 25px;"> <?php echo $value['name']; ?> </div>
    473     <?php 
    474 } 
     473    <?php
     474}
    475475}
    476476?>
Note: See TracChangeset for help on using the changeset viewer.