WordPress.org

Plugin Directory

Changeset 334628


Ignore:
Timestamp:
01/19/11 15:35:52 (7 years ago)
Author:
Awaken
Message:

simple link 0.0.8 tagging

Location:
simple-link/tags/0.0.8
Files:
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • simple-link/tags/0.0.8/js/simple-link.js

    r332188 r334628  
    5454    tag=document.getElementById('sl_tag').value; 
    5555    ajaxLink=site_clicklink + '/wp-admin/admin.php?sl_ajax_action=click_links'; 
    56     if(cat){ 
     56    if(tag){ 
    5757        ajaxLink+='&sl_tag='+tag; 
    5858    } 
     
    6060        ajaxLink+='&sl_keyword='+keyword; 
    6161    } 
    62     if(tag){ 
     62    if(cat){ 
    6363        ajaxLink+='&sl_cat='+cat; 
    6464    } 
  • simple-link/tags/0.0.8/readme.txt

    r333518 r334628  
    66Requires at least: 2.5.1 
    77Tested up to: 3.0.4 
    8 Stable tag: 0.0.7 
     8Stable tag: 0.0.8 
    99 
    1010This is a simple plugin that enables you to add hyperlinks to a post on selected text with just a click! 
     
    1515Also you can easily find certain post that you want to add hyperlink to using the searching feature supplied by the plugin. 
    1616It works well with the default editor of WordPress as well as FCKeditor. 
     17 
     18The next release will contain an option page. You can configurate basic settings such as how many post buttons to display, etc. 
    1719 
    1820== Installation == 
     
    4951== Changelog == 
    5052 
     53= 0.0.8 = 
     54* Fixed searching posts via category. 
     55 
    5156= 0.0.7 = 
    5257* Fixed conflicts of Javascript with other componenets of WordPress. 
  • simple-link/tags/0.0.8/simple-link.php

    r332188 r334628  
    55Description: Enable you to add hyperlinks to other posts on your blog with just a simple click. 
    66Author: Awaken 
    7 Version: 0.0.7 
     7Version: 0.0.8 
    88Author URI: http://www.renzuocheng.com 
    99*/ 
    1010 
    11 /*  Copyright 2008  Awaken (email : i@renzuocheng.com) 
     11/*  Copyright 2011  Awaken (email : i@renzuocheng.com) 
    1212 
    1313This program is free software; you can redistribute it and/or modify 
     
    148148    function sl_head(){  
    149149        echo '<link rel="stylesheet" type="text/css" href='.$this->info['install_url'].'/css/simple-link.css?ver=20080922" />'; 
    150         echo '<script type="text/javascript" src="'.$this->info['install_url'].'/js/simple-link.js?ver=20100114"></script>'; 
     150        echo '<script type="text/javascript" src="'.$this->info['install_url'].'/js/simple-link.js?ver=20100117"></script>'; 
    151151        echo '<script type="text/javascript" src="'.$this->info['install_url'].'/js/click-simple-link.js?ver=20080922"></script>'; 
    152152        // CSS Optimization For IE6 
     
    183183     */ 
    184184    function ajaxClickLinks($cat,$keyword,$tag){     
    185         $orderby="Date Posted"; 
     185        $orderby="date"; 
    186186        $order="desc"; 
    187187        $per_page=15; 
     188    $post_status="publish"; 
     189    $post_type="post"; 
    188190        //Query posts from the $wpdb. 
    189         $q="post_type=post&orderby=$orderby&order=$order&post_status=publish&posts_per_page=$per_page"; 
     191        $q="post_type=$post&orderby=$orderby&order=$order&post_status=$publish&posts_per_page=$per_page"; 
    190192        if($cat){ 
    191             $cat=get_cat_name(intval($cat)); 
    192             $q .= "&category_name=$cat"; 
     193            $cat=intval($cat); 
     194            $q .= "&cat=$cat"; 
    193195        } 
    194196        if($keyword){ 
Note: See TracChangeset for help on using the changeset viewer.