• Resolved webmasteral

    (@webmasteral)


    Feature Request

    A checkbox to exclude Authors name from displaying if user has no posts
    Or
    A way to exclude Authors names from displaying by inputting users ID


    Nice to have request

    An option to check if we wish not display the [$list_cats] to the right of each post

    • This topic was modified 7 years, 6 months ago by webmasteral.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author fmarzocca

    (@fmarzocca)

    Thank you. I will work on it.

    Plugin Author fmarzocca

    (@fmarzocca)

    In the meanwhile, if you don’t want to display the Category at the right of each post (in the list by Author), you can add this to your child style.css:

    .ACT-wrapper .righttext {
        display: none;
    }

    Be carefull: this will hide the right column also for the other type of lists (by Category, by Title).

    Thread Starter webmasteral

    (@webmasteral)

    Iv been working within the ACT-displayer.php to avoid the right column being hidden but not display the [$list_cats].

    I hope you are able to include some of my feature requests into future builds.

    Thread Starter webmasteral

    (@webmasteral)

    I was trying to encapsulate each author within a div and assign it a unique ID but so far this is my code but its not working 100%, I can get the ID to start at 0 but the i++ doesn’t seem to want to roll the number up one with each loop.

    Im not a great php coder but I do what I can ??

    file – ACT-displayer.php

    line 251   endif;
                //$i = 0;
                echo "<div id=".$i.">";
                echo '<h4>'.$user->display_name.'</h4>';
                //$i++;
    
     line 283   echo '</ul>';
                echo "</div>";
    Plugin Author fmarzocca

    (@fmarzocca)

    I’m sorry, but your code is quite wrong.

    What are you trying to achieve? Just to giva a unique <div> ID to each author name in the “byauthor” view? Why?

    Thread Starter webmasteral

    (@webmasteral)

    What I am trying to do is more a band aid while you work on the ability to exclude an authors by ID or not display because said author has no posts. In order to hide this particular authors name from displaying on the list I was trying to target it so I could ‘[display:none;]’ it. To accomplish this I first encapsulate each line item if you will, authors name and all posts under it within a div tag then gave the div tag an ID (updated code is id=”item.$i.”) and although each itemID was not unique to others on the list the one author I was hoping to hide was given an ID not used elsewhere (lots of item1’s 2’s and 3’s but only one item5) so my band aid is currently working though I know not correctly.

    My band aid will become unneeded in the near future if you are able to implement the hide author feature so I guess in the short term there was no need for me to post about my code additions in this regard, sorry if I caused any confusion.

    Plugin Author fmarzocca

    (@fmarzocca)

    That’s not the way. First thing: it is a bad idea to hide an author name in the author’s list! The list is grouped by author and if you don’t disply the name, the group will not have any title!!

    Second: author’s with no posts are already NOT displayed.

    Thread Starter webmasteral

    (@webmasteral)

    Ok, I found out what the problem is.

    When a user has a posts assigned to it but said post is under a category that has been excluded from the list of posts to display the author name still displays but because said author doesn’t have any posts to display only the title (name) of the author is displaying.

    I used the same test page, please ignore the pages title.
    Screenshot – https://www.dropbox.com/s/po6g2ej2pdi8hzh/Version2-7-4.jpg?dl=0

    So the question becomes, how to hide an authors name when said author has no posts to display because all of the authors posts are part of an excluded category.

    Plugin Author fmarzocca

    (@fmarzocca)

    I’m on a huge project at the moment. ì’ll be back with a solution soon.

    Thread Starter webmasteral

    (@webmasteral)

    Not a problem, my poorly coded band-aid is currently working for the short term.

    Plugin Author fmarzocca

    (@fmarzocca)

    v.2.7.5 fixed this bug. Pls update.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Feature Request’ is closed to new replies.