PDA

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


BeerLuver
24 Jun 2008, 02:55
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
24 Jun 2008, 02:59
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
24 Jun 2008, 15:58
It Can Be just shown to the admin and super admin ..

BeerLuver
24 Jun 2008, 20:27
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
24 Jun 2008, 20:36
By using this if statement:

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

BeerLuver
24 Jun 2008, 20:48
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
25 Jun 2008, 21:15
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 ..

http://www.vbulletin.org/forum/showthread.php?t=148790

Easy To UnderStand ..

BeerLuver
27 Jun 2008, 00:24
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
09 Aug 2008, 23:06
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
10 Dec 2008, 20:02
Does it remove views for admin use also? or just non registered and registered users?
Just curious.
thanks.

Keesa
13 Dec 2008, 08:20
When I follow the instructions you give, I ended up with this.

https://www.vbulletin.org/forum/external/2008/12/25.gif


:sad:



This hack worked for me better.
http://www.vbulletin.org/forum/showthread.php?t=161233