Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi all,
    i found a way to correct the “bug”. I think it was a developper’s choice to only permit to advanced users (those who can manage categories) to use tags ;).
    So, to correct the comportment you have to edit wp-admin/admin-ajax.php.
    Line 43 and line 426 you’ll find : if ( !current_user_can( 'manage_categories' ) )
    comment this line like this :
    //if ( !current_user_can( 'manage_categories' ) )
    and replace it by :
    if ( !current_user_can( 'read' ) )
    By the way a user who can read posts will be able to use tags in the create/edit area ;).

    PS. for information this “bug”, and this solution apply for the 2.7 release too.

    Amicably,

    Pierre

    Thread Starter flegme

    (@flegme)

    Thanks niziol but the code is in my footer and i was “hopping” that there were another way that a call from plugin

    Thread Starter flegme

    (@flegme)

    Thanks lynk, nice try 😉 but the syntax you gave me doesn’t work on my host provider…

    Little patch for rss feed… i correct my script because there was a problem when you navigate on differents pages for a category so here is the “correctif” :

    <?php
    $URL=get_settings('siteurl') . "/wp-content/themes/" . get_settings('stylesheet');
    $LinkToFeed=str_replace("//","/",$REQUEST_URI . "/feed/");
    $TheCat=single_cat_title('',false);
    $pospage=strpos($LinkToFeed, "page");
    if ($pospage ==true) {
    $LinkToFeed=substr($LinkToFeed, 0, $pospage)."feed/";
    }
    ?>

    By the way, the user can “scroll” between pages and select the rss feed anywhere in it’s navigation, not only in the front page of the selected category.

    Hope this help,

    Flegme.

    flegme

    (@flegme)

    to be more clear, i put this code in my index page

    <?php
    $URL=get_settings('siteurl') . "/wp-content/themes/" . get_settings('stylesheet');
    $LinkToFeed=str_replace("//","/",$REQUEST_URI . "/feed/");
    $TheCat=single_cat_title('',false);
    ?>
    <div id="content">
    <?php if (is_category()) { /*If this is a category archive*/?>
    <h3><?php echo $TheCat; ?>
    <a href="<?php echo $LinkToFeed; ?>" title="RSS Feed"><img src="<?php echo $URL; ?>/img/xml.gif" alt="RSS Feed" title="RSS Feed for the category <?php echo $TheCat;?>"></a></h3>

    by this way i wrote the selected category (into the h3 tag) under my header, i personnalize my xml “icon” and i let the user choose if he want to suscribe to my rss feed for the selected category (not for all the site…) by clicking on the icon.

    I hope i’ve been clear, cause it’s late now and my english is really not perfect 🙂

    Sure there’s a way 🙂 i use it on my own blog. Look here :
    http://dommiers.free.fr/wordpress/index.php/category/1914-18/feed/

    all you have to do is to insert this code in the title tag of your wp-rss2.php (in the wordpress root) file. It’s just under the channel node

    <title><?php bloginfo_rss('name'); ?><?php if (is_category()) echo " : " ?><?php echo single_cat_title(); ?></title>

Viewing 6 replies - 1 through 6 (of 6 total)