Info
- 5 posts
- 3 voices
- Started 7 months ago by Justin Mason
- Latest reply from Justin Mason
- This topic is resolved
How do I remove (0, 0) in the forum name
-
- Posted 7 months ago #
How do I remove (0, 0) in the forum name
https://img.skitch.com/20111001-xg13d1cg6xajfu79u41ahwdmkj.jpg
Thanks in advance!
-
- Posted 7 months ago #
Any one have an idea?
-
- Posted 7 months ago #
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[i].width=="1%" && td[i].innerHTML.match(/\d/)){
if(td[i+1].width.match(/^(1|7)%$/)){
td[i].innerHTML+="
threads";
td[i].width="8%";
}else{
td[i].innerHTML+="
posts";
td[i].width="7%";
}
}
if(td[i].width=="8%" && !td[i].innerHTML.match(/thread/)){
td[i].width="4%";
}
if(td[i].className=="titlebg" && td[i].innerHTML.match(/Forum Name/i)){
td[i].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.
-
- Posted 7 months ago #
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.
-
- Posted 7 months ago #
@TravisHill -- Your code worked without fail. Thank you my friend, you saved a lot of headache.
-
You must log in to post.