Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do I remove (0, 0) in the forum name

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

  • Justin Mason
    Member

    @justin-mason

    Any one have an idea?


    websitedesigningindia
    Participant

    @websitedesigningindia

    Forum Name | Topics | Posts | Last Post

    and in the # of topics and # of posts column, it adds the word “threads” and “posts” after the number.

    Main Footer

    <script type=”text/javascript”>

    <!–

    /* remove Forum Name | Topics | Posts…

    and add thread & post info by california */

    var td=document.getElementsByTagName(“td”);

    if(location.href.match(//?((index.cgi)???(action=(ma.+ad|logout|home))?(#.+)?)?$/)){

    for(i=0;i<td.length;i++){

    if(td.width==”1%” && td.innerHTML.match(/d/)){

    if(td[i+1].width.match(/^(1|7)%$/)){

    td.innerHTML+=”
    threads”;

    td.width=”8%”;

    }else{

    td.innerHTML+=”
    posts”;

    td.width=”7%”;

    }

    }

    if(td.width==”8%” && !td.innerHTML.match(/thread/)){

    td.width=”4%”;

    }

    if(td.className==”titlebg” && td.innerHTML.match(/Forum Name/i)){

    td.parentNode.style.display=”none”;

    }

    }

    }

    //–>

    </script>

    It will say “1 threads” if you only have one topic or post. The solution: post another thread.

    If you are using a “Divide/Seperate Categories” code then this code should be placed below that code.

    If for some reason you don’t want the words “threads” and “posts”, leave out the blue part. I wouldn’t really recommend this as the numbers in those two columns become completely meaningless and the column widths get all screwed up, but people still keep asking for it for some reason.


    travis.hill
    Participant

    @travishill

    Pass some $args through bbp_list_forums.

    If your using custom templates, locate the loop-single-forum.php file. Somewhere around line 25 you should find the bbp_list_forums function. Pass it some $args like so:

    <?php bbp_list_forums(array('separator' => '','show_topic_count' => false, 'show_reply_count' => false)); ?>

    That should get you going in the right direction.


    Justin Mason
    Member

    @justin-mason

    @TravisHill — Your code worked without fail. Thank you my friend, you saved a lot of headache.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar