How do I hide the number of views counter?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
User avatar
paulnicholson
Registered User
Posts: 230
Joined: Thu Jun 04, 2009 9:04 pm
Location: Australia

How do I hide the number of views counter?

Post by paulnicholson »

I don't get enough traffic at my site and I've been manipulating the 'views' count to make people think my site is popular. I figured out how to do this. You go to 'phpmyadmin' - the website that allows you to control your database (there will be a link when you log into webhost's website). After you log into phpmyadmin, on the left menu column, click 'topic posts' or something (sorry -I'm locked out and can't confirm the menu option's correct title from a public computer), then click browse in the top left corner of the 'topic posts' (might be called something similar) page. Then, unfortunately, you'll need to click on every post individually and 'adjust' the figures to your liking. I'm so glad that that's possible.

But I have over a hundred posts and it takes forever. Therefore:

Can someone please tell me how to hide the 'Views' column altogether?

I think guests will feel less pressure of judgement if their posts are not given a view count score. And they will feel that people can come and go freely without being observed. And I believe that people will judge my website less harshly if there are no pushy time limits, and I don't have to send out SPAM begging people in my industry to come and visit. And I won't have to lie. And people won't have to suspect I'm lying and lose all respect for my site. The benefits are vast.

:D Paul
User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: How do I hide the number of views counter?

Post by COD3M4ST3R-X »

so,you wan,t to hide the viewcounts block from guests or all?also what style are you using?
“Need and struggle are what excite and inspire us.”
User avatar
paulnicholson
Registered User
Posts: 230
Joined: Thu Jun 04, 2009 9:04 pm
Location: Australia

Re: How do I hide the number of views counter?

Post by paulnicholson »

I'm using phpbb 3.0.5 prosilver
User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: How do I hide the number of views counter?

Post by COD3M4ST3R-X »

Open:styles/prosilver/template/viewforum_body.html
Find:

Code: Select all

<dd class="views">{L_VIEWS}</dd>  
Add Before:

Code: Select all

<!-- IF not S_IS_BOT and S_USER_LOGGED_IN --> 
Add After the line to Find:

Code: Select all

<!-- ENDIF -->  
Find:

Code: Select all

<dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd> 
Add Before:

Code: Select all

<!-- IF not S_IS_BOT and S_USER_LOGGED_IN --> 
Add After the line to Find:

Code: Select all

<!-- ENDIF -->  
This will hide the viewcounts from guests and Bots :)
“Need and struggle are what excite and inspire us.”
User avatar
paulnicholson
Registered User
Posts: 230
Joined: Thu Jun 04, 2009 9:04 pm
Location: Australia

Re: How do I hide the number of views counter?

Post by paulnicholson »

That's brilliant. It really does hide the view counts column completely from unregistered guests. Thanks COD3M4ST3R-X!

Is there any way for me to hide it from all non-administrators?
User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: How do I hide the number of views counter?

Post by COD3M4ST3R-X »

paulnicholson wrote:Is there any way for me to hide it from all non-administrators?
Than replace the previous switch with

Code: Select all

<!-- IF U_ACP  --> 
with this only admins will be able to see the viewcounts
“Need and struggle are what excite and inspire us.”
User avatar
paulnicholson
Registered User
Posts: 230
Joined: Thu Jun 04, 2009 9:04 pm
Location: Australia

Re: How do I hide the number of views counter?

Post by paulnicholson »

Your answers are swift and flawless. Thank you so much!
User avatar
paulnicholson
Registered User
Posts: 230
Joined: Thu Jun 04, 2009 9:04 pm
Location: Australia

Re: How do I hide the number of views counter?

Post by paulnicholson »

The replies column looks bald without the views column. How can I hide the replies column from non-administrators as well, please?

I figured it out. I just applied the same pre and suffixes to the two references to the word 'replies' in viewforum_body.html.

Thanks again.
User avatar
paulnicholson
Registered User
Posts: 230
Joined: Thu Jun 04, 2009 9:04 pm
Location: Australia

Re: How do I hide the number of views counter?

Post by paulnicholson »

Hi. How can I remove the views and replies columns from Milky Way template please? (Cool template upgrade!)
User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: How do I hide the number of views counter?

Post by COD3M4ST3R-X »

Just find these lines in your milkyway viewforum_body.html

Code: Select all

<th>&nbsp;{L_REPLIES}&nbsp;</th>
<th>&nbsp;{L_VIEWS}&nbsp;</th> 
and apply the switches as mentioned previously. :)
“Need and struggle are what excite and inspire us.”
User avatar
paulnicholson
Registered User
Posts: 230
Joined: Thu Jun 04, 2009 9:04 pm
Location: Australia

Re: How do I hide the number of views counter?

Post by paulnicholson »

That didn't work. I don't really understand.

Which parts do I put before what? Is the quoted section to be in the middle of the before and after instructions or separate? There are 7 instructions for the prosilver fix but only one for the Milky Way fix. It's all confusing. What do I do with this nonexistent part?:

Find:

Code: Select all
<dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd

This part wasn't mentioned.

Please help. :?:
User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: How do I hide the number of views counter?

Post by COD3M4ST3R-X »

Open:viewforum_body.html
Find:

Code: Select all

<th>&nbsp;{L_REPLIES}&nbsp;</th>
<th>&nbsp;{L_VIEWS}&nbsp;</th>  
Add Before:

Code: Select all

<!-- IF U_ACP  --> 
Add after:

Code: Select all

<!-- ENDIF -->  
you will find those lines two time so,just make the same changes to them.
“Need and struggle are what excite and inspire us.”
User avatar
paulnicholson
Registered User
Posts: 230
Joined: Thu Jun 04, 2009 9:04 pm
Location: Australia

Re: How do I hide the number of views counter?

Post by paulnicholson »

Thanks for responding so quickly. It didn't work. It only removed the headings. The replies and views columns are still there with all the data. Anything else I could do please?
User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: How do I hide the number of views counter?

Post by COD3M4ST3R-X »

post your viewforum_body.html here within CODE BBcode :)
“Need and struggle are what excite and inspire us.”

Return to “[3.0.x] Support Forum”