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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-28-2009, 05:34 PM
Beermonster Beermonster is offline
 
Join Date: Dec 2003
Location: England
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to remove views

I've taken out the code that I thought it was but it didn't seem to work, I'm wanting to remove the views from forumdisplay and new posts etc, anyone know what I need to search for and remove?
Reply With Quote
  #2  
Old 01-01-2010, 08:22 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, so it took me a while to figure out but I finally got it.

Open up the template Threadbit

Find
Code:
<li>{vb:rawphrase views}: {vb:raw thread.views}</li>
Delete it

Now this part is user preference, in the same area as what you just deleted look for the following

Code:
<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>
If you would like the "Replies: xxx" to sit at the top of the column then put a <br /> right after the quoted text, but if you would like them to sit on the bottom, then put a <br /> before the quoted text. But a <br /> is required so the look/design is not messed up.

And the reason this was not working is, because if your Style is a child of a parent style, you will need to do this to the styles parents as well

Enjoy!

--------------- Added [DATE]1262384875[/DATE] at [TIME]1262384875[/TIME] ---------------

Here is what the threadbit will look like after the proper changes, and this example is with the <br /> before the quoted text

http://i49.tinypic.com/2s6wkki.png
Reply With Quote
  #3  
Old 01-02-2010, 07:27 AM
Beermonster Beermonster is offline
 
Join Date: Dec 2003
Location: England
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks I couldn't find it at all, that worked great
Reply With Quote
  #4  
Old 01-02-2010, 08:46 AM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also open up FORUMDISPLAY

Find :
Code:
<span class="threadstats td">{vb:rawphrase replies} {vb:raw sortarrow.replycount} / {vb:rawphrase views}</span>
Replace with:
Code:
<span class="threadstats td">{vb:rawphrase replies} {vb:raw sortarrow.replycount}</span>
Also find:
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> / <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_views}}" rel="nofollow">{vb:rawphrase views}{vb:raw sortarrow.views}</a></span>
Replace with:
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>
Reply With Quote
  #5  
Old 01-02-2010, 06:16 PM
NoraBones NoraBones is offline
 
Join Date: May 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The threadbit changes work great for when in Forum Display, but I can still see the # views when I click New Posts or What's New.

I did the FORUMDISPLAY changes also, but they did not seem to make any difference. Did I do something wrong?
Reply With Quote
  #6  
Old 01-02-2010, 06:41 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

open template search_threadbit

Find:
PHP Code:
<li class="stats">{vb:rawphrase views}: {vb:raw thread.views}</li
Replace With:
PHP Code:
<br /> 
Open template search_results_postbit

Find:
PHP Code:
<li class="stats">{vb:rawphrase views}: {vb:raw post.views}</li
Replace With:
PHP Code:
<br /> 
Make sure that if there is a parent style, that the changes are made to it as well, or else if you just make the changes to the child style and the parent style still has the original code for some reason the edit will not take place

Enjoy!
Reply With Quote
  #7  
Old 01-02-2010, 06:45 PM
NoraBones NoraBones is offline
 
Join Date: May 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think that got it! Thank you so much!
Reply With Quote
  #8  
Old 02-06-2012, 04:35 PM
Hummie Hummie is offline
 
Join Date: Nov 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This was helpful for me. I have vb 4. Most other instructions in the forums are for earlier versions and do not work in 4.

The views are gone from the column, but I would also like to remove the entire column, including the replies. I have a sidebar and when I search, there is not enough room and text gets jumbled. I could do without this entire column.
Reply With Quote
  #9  
Old 02-11-2013, 06:09 PM
Yuvraj Yuvraj is offline
 
Join Date: Jun 2012
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Show me 2 time

Reply With Quote
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 03:14 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.05630 seconds
  • Memory Usage 2,251KB
  • Queries Executed 13 (?)
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
  • (6)bbcode_code
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete