Plugin Directory

Changeset 1086785


Ignore:
Timestamp:
02/10/2015 11:21:02 PM (11 years ago)
Author:
j_p_s
Message:

updated plugin for bbpress

Location:
force-post-category-selection
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • force-post-category-selection/branches/force-post-category-selection.php

    r1073821 r1086785  
    88Tags: post, category, publish, without, require, force, must, draft
    99Requires at least: 3.x
    10 Tested up to: 4.1
    11 Stable tag: 1.0
    12 Version: 1.0
     10Tested up to: 4.x
     11Stable tag: 1.1
     12Version: 1.1
    1313*/
    1414function force_post_cat_init()
     
    2525      .find('.selectit')
    2626      .find('input');
    27     category_selected=false;
    28     for (counter=0; counter<cats.length; counter++)
     27    if(cats.length)
    2928    {
    30         if (cats.get(counter).checked==true)
     29        category_selected=false;
     30        for (counter=0; counter<cats.length; counter++)
    3131        {
    32             category_selected=true;
    33             break;
    34         }
    35     }
    36     if(category_selected==false)
    37     {
    38       alert('You have not selected any category for the post. Kindly select post category.');
    39       setTimeout(\"jQuery('#ajax-loading').css('visibility', 'hidden');\", 100);
    40       jQuery('[id^=\"taxonomy\"]').find('.tabs-panel').css('background', '#F96');
    41       setTimeout(\"jQuery('#publish').removeClass('button-primary-disabled');\", 100);
    42       return false;
    43     }
     32            if (cats.get(counter).checked==true)
     33            {
     34                category_selected=true;
     35                break;
     36            }
     37        }
     38        if(category_selected==false)
     39        {
     40            alert('You have not selected any category for the post. Kindly select post category.');
     41            setTimeout(\"jQuery('#ajax-loading').css('visibility', 'hidden');\", 100);
     42            jQuery('[id^=\"taxonomy\"]').find('.tabs-panel').css('background', '#F96');
     43            setTimeout(\"jQuery('#publish').removeClass('button-primary-disabled');\", 100);
     44            return false;
     45        }
     46    }
    4447  });
    4548  ";
  • force-post-category-selection/branches/readme.txt

    r1073821 r1086785  
    55Tags: post, category, publish, without, require, force, must, draft
    66Requires at least: 3.x
    7 Tested up to: 4.1
    8 Stable tag: 1.0
    9 Version: 1.0
     7Tested up to: 4.x
     8Stable tag: 1.1
     9Version: 1.1
    1010
    1111This is simple plugin which forces the users to select atleast one category from the list while publishing a new post.
     
    3838= 1.0 =
    3939* Just developed
     40
     41= 1.1 =
     42* Fixed bug with bbpress
  • force-post-category-selection/trunk/force-post-category-selection.php

    r1073818 r1086785  
    88Tags: post, category, publish, without, require, force, must, draft
    99Requires at least: 3.x
    10 Tested up to: 4.1
    11 Stable tag: 1.0
    12 Version: 1.0
     10Tested up to: 4.x
     11Stable tag: 1.1
     12Version: 1.1
    1313*/
    1414function force_post_cat_init()
     
    2525      .find('.selectit')
    2626      .find('input');
    27     category_selected=false;
    28     for (counter=0; counter<cats.length; counter++)
     27    if(cats.length)
    2928    {
    30         if (cats.get(counter).checked==true)
     29        category_selected=false;
     30        for (counter=0; counter<cats.length; counter++)
    3131        {
    32             category_selected=true;
    33             break;
    34         }
    35     }
    36     if(category_selected==false)
    37     {
    38       alert('You have not selected any category for the post. Kindly select post category.');
    39       setTimeout(\"jQuery('#ajax-loading').css('visibility', 'hidden');\", 100);
    40       jQuery('[id^=\"taxonomy\"]').find('.tabs-panel').css('background', '#F96');
    41       setTimeout(\"jQuery('#publish').removeClass('button-primary-disabled');\", 100);
    42       return false;
    43     }
     32            if (cats.get(counter).checked==true)
     33            {
     34                category_selected=true;
     35                break;
     36            }
     37        }
     38        if(category_selected==false)
     39        {
     40            alert('You have not selected any category for the post. Kindly select post category.');
     41            setTimeout(\"jQuery('#ajax-loading').css('visibility', 'hidden');\", 100);
     42            jQuery('[id^=\"taxonomy\"]').find('.tabs-panel').css('background', '#F96');
     43            setTimeout(\"jQuery('#publish').removeClass('button-primary-disabled');\", 100);
     44            return false;
     45        }
     46    }
    4447  });
    4548  ";
  • force-post-category-selection/trunk/readme.txt

    r1073818 r1086785  
    55Tags: post, category, publish, without, require, force, must, draft
    66Requires at least: 3.x
    7 Tested up to: 4.1
    8 Stable tag: 1.0
    9 Version: 1.0
     7Tested up to: 4.x
     8Stable tag: 1.1
     9Version: 1.1
    1010
    1111This is simple plugin which forces the users to select atleast one category from the list while publishing a new post.
     
    3838= 1.0 =
    3939* Just developed
     40
     41= 1.1 =
     42* Fixed bug with bbpress
Note: See TracChangeset for help on using the changeset viewer.