TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 178
  • Total: 178

Frontpage-> Promoted topics-> Remove number of views

Started by mariusfv, May 08, 2011, 11:45:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mariusfv

Hi,
SMF  2.0RC5, TP latest version.

For Frontpage I use Promoted topics and i want to remove number of views!

Ex:
Written by Admin posted in Product May 07, 2011, 04:36:15 PM 5 Views

Please help me to remove number of views, it disadvantage me.

10x


IchBin

There is no option for that unless you use the custom template option in frontpage settings. If you choose that option you can remove {article_views} from the code and it should remove the views.

mariusfv

I use: Picture + Article 2, so no chance to remove number of views on frontpage by "code edit" ?

IchBin

Not an easy thing to change. The layouts and output are all created dynamically. You could do the following edit, but that will remove the views option from all articles and posts on the front page.

Themes/default/TPsubs.template.php file and change this:
Code (find) Select
function article_views($render = true)
{
global $scripturl, $txt, $settings, $context;

if(in_array('views',$context['TPortal']['article']['visual_options']))


To this:
Code (replace) Select
function article_views($render = true)
{
global $scripturl, $txt, $settings, $context;

        return;

if(in_array('views',$context['TPortal']['article']['visual_options']))

mariusfv

10x man...this is what I want, sorry I've forgot to specify for all!
solved!

This website is proudly hosted on Crocweb Cloud Website Hosting.