View Full Version : How I Remove thread, post and view counts From All Forums?
avitor
03-03-2013, 11:46 AM
How I Remove thread, post and view counts From All My Forums?
i made big search for this issue on google and here on vb.org bat not find any resolve
how can move this
http://www.ahoradot.net/aa/n_a.jpg
cheers
Lynne
03-03-2013, 04:56 PM
Did you try removing the code from the template? I'm guessing you may need to change some CSS also, but removing the code itself is a start.
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)
avitor
03-03-2013, 06:23 PM
thanks for fast respond Lynne
vboptions > General Settings > Add Template Name in HTML Comments
this part is clear for me
can you please detailed ?
how to do the steps?
i find on net that many vbulletin users asking this question bat no any resolve.
thank you
Lynne
03-03-2013, 09:39 PM
Once you have turned on that setting, go back to your page and refresh it and then view the page source around the part of the code you want to change and you should see the template name there. Then go edit the template.
avitor
03-03-2013, 11:41 PM
can i remove only from forum display ?
if you can tell me the name of the template need edit and what part of cod i need to remove.
that can help me A lot
cheers
Lynne
03-04-2013, 02:08 AM
Sure, you can remove it from only the forum display.
I told you how to figure out the name of the template to edit.
nirvana43
03-08-2013, 10:45 AM
Hello Dear,
Following edit is for CMS only -
Open template : vbcms_searchresult_article_general
Remove/Comment following code in that template :
<ul class="threadstats threadreplies td alt">
<li class="stats">
{vb:rawphrase comments}: {vb:raw replycount}
</li>
</ul>
It will remove that column. Now you want to shift alternate colors. For this, simply add css class "alt" to the next code block and remove css class "alt" from last code block.
You can simply do the following -
Search for :
threadlastpost td
Replace with :
threadlastpost td alt
Search for :
threadpostedin td alt
Replace with :
threadpostedin td
To remove same column from the forum posts search results -
Open template : search_threadbit
Remove/Comment following code in that template :
<ul class="threadstats td alt" title="<vb:if condition="$thread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}</vb:if>">
<li>{vb:rawphrase replies}: <a class="understate" href="misc.php?do=whoposted&t={vb:raw thread.threadid}" onclick="who({vb:raw thread.threadid}); return false;">{vb:raw thread.replycount}</a></li>
<br />
</ul>
Now again to shift alternate column colors -
Search for :
threadlastpost td
replace with :
threadlastpost td alt
Search for :
threadpostedin td alt
Replace with :
threadpostedin td
Now to remove same column from forumdisplay -
Open template : FORUMDISPLAY
Remove/Comment following code in that template :
<span class="threadstats td">{vb:rawphrase replies} {vb:raw sortarrow.replycount}</span>
Remove/Comment following code in that template :
<span class="threadstats td"><a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_replycount}}" rel="nofollow">{vb:rawphrase replies}{vb:raw sortarrow.replycount}</a></span>
Open template : threadbit
Remove/Comment following code in that template :
<ul class="threadstats td alt" title="<vb:if condition="$thread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}</vb:if>">
<vb:if condition="$show['threadmoved']">
<li> </li>
<li> </li>
<vb:else />
<li>{vb:rawphrase replies}: <a href="misc.php?do=whoposted&t={vb:raw thread.threadid}" onclick="who({vb:raw thread.threadid}); return false;" class="understate">{vb:raw thread.replycount}</a></li>
<li style="visibility:hidden;">{vb:rawphrase views}: {vb:raw thread.views}</li>
</vb:if>
<li class="hidden">{vb:rawphrase rating}{vb:raw thread.rating} / 5</li>
</ul>
Search for :
threadlastpost td
Replace with :
threadlastpost td alt
Search for :
threadimod td alt
replace with :
threadimod td
I hope this helps..
Cheers!!
Aditya Hajare
avitor
03-08-2013, 12:42 PM
that is what i m loking for.resolved
http://www.ahoradot.net/aa/howremovepostcount.jpg
thanks a loots
Eq4bits
06-06-2015, 04:53 PM
everytime I try to edit a template I get a 'white page ./error.html' error on the main part of the page (where the template code is) the left side menu and header are still intact. My host whitelisted mod_security for domain where forum resides because anytime members tried to post or edit a post or copy/paste into a post a ModSecurity rule was triggered on the site due to too many arguments being forwarded. Now it's not only for members on the forum it's happening to me in the admincp! when I try to edit the forumdisplay and the search_threadbit templates... no telling what else is getting effed.
ETA: Is there ANY way I can edit a template from file directory? Or can it only be done in admincp?????
Lynne
06-06-2015, 08:28 PM
Editing templates should only be done via the admincp. I would suggest you talk to your host about modifying the mod_security options again or just disabling it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.