Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-03-2013, 11:46 AM
avitor avitor is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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


cheers
Reply With Quote
  #2  
Old 03-03-2013, 04:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #3  
Old 03-03-2013, 06:23 PM
avitor avitor is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 03-03-2013, 09:39 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-03-2013, 11:41 PM
avitor avitor is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 03-04-2013, 02:08 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure, you can remove it from only the forum display.

I told you how to figure out the name of the template to edit.
Reply With Quote
  #7  
Old 03-08-2013, 10:45 AM
nirvana43's Avatar
nirvana43 nirvana43 is offline
 
Join Date: Oct 2007
Location: Pune, India
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Благодарность от:
Lynne
  #8  
Old 03-08-2013, 12:42 PM
avitor avitor is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that is what i m loking for.resolved


thanks a loots
Reply With Quote
  #9  
Old 06-06-2015, 04:53 PM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?????
Reply With Quote
  #10  
Old 06-06-2015, 08:28 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
ForceHSS
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04849 seconds
  • Memory Usage 2,285KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (16)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete