vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How to remove views (https://vborg.vbsupport.ru/showthread.php?t=231479)

Beermonster 12-28-2009 05:34 PM

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?

LifesGreatestGift 01-01-2010 08:22 PM

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

Beermonster 01-02-2010 07:27 AM

Thanks I couldn't find it at all, that worked great

LifesGreatestGift 01-02-2010 08:46 AM

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>

NoraBones 01-02-2010 06:16 PM

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?

LifesGreatestGift 01-02-2010 06:41 PM

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!

NoraBones 01-02-2010 06:45 PM

I think that got it! Thank you so much!

Hummie 02-06-2012 04:35 PM

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.

Yuvraj 02-11-2013 06:09 PM

Show me 2 time

https://vborg.vbsupport.ru/external/2013/02/1.png?1


All times are GMT. The time now is 10:00 PM.

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.01057 seconds
  • Memory Usage 1,740KB
  • 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
  • (6)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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