vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How I Remove thread, post and view counts From All Forums? (https://vborg.vbsupport.ru/showthread.php?t=295699)

avitor 03-03-2013 11:46 AM

How I Remove thread, post and view counts From All Forums?
 
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 :
PHP Code:

<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 :
PHP Code:

threadlastpost td 

Replace with :
PHP Code:

threadlastpost td alt 


Search for :
PHP Code:

threadpostedin td alt 

Replace with :
PHP Code:

threadpostedin td 





To remove same column from the forum posts search results -
Open template : search_threadbit
Remove/Comment following code in that template :
PHP Code:

<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}: <class="understate" href="misc.php?do=whoposted&amp;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 :
PHP Code:

threadlastpost td 

replace with :
PHP Code:

threadlastpost td alt 


Search for :
PHP Code:

threadpostedin td alt 

Replace with :
PHP Code:

threadpostedin td 



Now to remove same column from forumdisplay -
Open template : FORUMDISPLAY
Remove/Comment following code in that template :
PHP Code:

<span class="threadstats td">{vb:rawphrase replies} {vb:raw sortarrow.replycount}</span

Remove/Comment following code in that template :
PHP Code:

<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 :
Code:

<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>&nbsp;</li>
                                <li>&nbsp;</li>
                        <vb:else />
                                <li>{vb:rawphrase replies}: <a href="misc.php?do=whoposted&amp;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 :
PHP Code:

threadlastpost td 

Replace with :
PHP Code:

threadlastpost td alt 

Search for :
PHP Code:

threadimod td alt 

replace with :
PHP Code:

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.


All times are GMT. The time now is 06:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01180 seconds
  • Memory Usage 1,770KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (16)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete