PDA

View Full Version : Forum Display Enhancements - Remove Thread Views on Forum Display


BeerLuver
06-23-2008, 10:00 PM
This is a simple template edit to Remove Thread Views from the forum display when viewing a forum section with threads in it. Some people like to do this to reduce people from complaining about "I have 200 thread views and only 3 replies... waaaahhh", so this is a simple thing you can do to eleviate those annoyances on your forums.

**TIP: COPY these two templates & paste them into your Notepad program and save them to your hard drive as .txt template backups in case you need to restore the original code then easily.
I always like to warn people to make backups just in case heh. OK then... on to editing...



Templates to edit: 2

===================
FORUMDISPLAY template
===================
Find this code:
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[views]</span></td>
Delete it.

Find this code:
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=views" rel="nofollow">$vbphrase[views]</a> $sortarrow[views]</span></td>
Delete it.

Find this code:
<option value="views" $sort[views]>$vbphrase[number_of_views]</option>
Delete it.

===================
threadbit template
===================
Find this code:
<td class="alt2" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">
Replace it with this code:
<td class="alt2" title="<phrase 1="$thread[replycount]">$vbphrase[replies_x]</phrase>">

Find this code:
<td class="alt2" align="center">$thread[views]</td>
Delete it.



Done. The Thread Views column on the forum display page should be gone now. Hope that helps anyone who is looking to do the same :)

**Screenshot added

BeerLuver
06-24-2008, 12:59 AM
If anyone has anything to add to this, please do :). I'm no whiz with coding, so this is my first attempt to help out like this.

Also I know there is a similiar version of this for 3.6 template mods, but this one requires some slight code modification as well as deletions for use with 3.7.1 then.

bokmade
06-24-2008, 01:58 PM
It Can Be just shown to the admin and super admin ..

BeerLuver
06-24-2008, 06:27 PM
Not sure how to do that bokmade, care to elaborate that though? Might be useful to those wishing to set it up like that.

Jase2
06-24-2008, 06:36 PM
By using this if statement:

<if condition="is_member_of($vbulletin->userinfo, 6)"></if>

BeerLuver
06-24-2008, 06:48 PM
Oh, so basically just put that line of code before each of those lines of code then Jase2, instead of deleting them?

Heh excuse my lack of understanding... I'm not too savvy with coding, so this is all a good learning experience for me; and others no doubt. Appreciate your input so far though :)

bokmade
06-25-2008, 07:15 PM
Not sure how to do that bokmade, care to elaborate that though? Might be useful to those wishing to set it up like that.

By using this if statement:

<if condition="is_member_of($vbulletin->userinfo, 6)"></if>
You Can Read This Thread ..

https://vborg.vbsupport.ru/showthread.php?t=148790

Easy To UnderStand ..

BeerLuver
06-26-2008, 10:24 PM
Haha cool bokmade.. that looks like a better mod for altering what guests can see. I mainly just posted this for those who just want to remove the Thread Views entirely for all viewers. Thanks for that link though... it should be useful for anyone viewing this one to have an optional one to try :)

l2ride55
08-09-2008, 09:06 PM
Awsome! Did just as you said and it works perfectly!

Thanks!

Installed!

I have a few forums that have automated RSS Feed posts in the threads and I was getting nervous when some got more "looks" than others. Now I don't have to worry - and either do any of my members or guests. Out of site, out of mind....

Great fix! Thank-you!

L2

http://www.telepresenceforum.com

adloos
12-10-2008, 06:02 PM
Does it remove views for admin use also? or just non registered and registered users?
Just curious.
thanks.

Keesa
12-13-2008, 06:20 AM
When I follow the instructions you give, I ended up with this.

https://vborg.vbsupport.ru/external/2008/12/25.gif


:sad:



This hack worked for me better.
https://vborg.vbsupport.ru/showthread.php?t=161233