Log in

View Full Version : How to remove views


Beermonster
12-28-2009, 05:34 PM
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

<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


<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 1262384875 at 1262384875 ---------------

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 :

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


Replace with:

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


Also find:

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

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

<li class="stats">{vb:rawphrase views}: {vb:raw thread.views}</li>


Replace With:

<br />


Open template search_results_postbit

Find:

<li class="stats">{vb:rawphrase views}: {vb:raw post.views}</li>


Replace With:

<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, 03: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, 05:09 PM
Show me 2 time

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