This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

David Beaudoin

  • ****
  • 240 posts
  • https://abrutis.net
Show the number of views
« on: March 25, 2021, 02:12:26 PM »
It seems to me that there is a variable to do but I don't know which one. Can you direct me to show the number of views
« Last Edit: March 25, 2021, 02:14:29 PM by David Beaudoin »
Regards,
David
0640404083

*

MB Themes

Re: Show the number of views
« Reply #1 on: March 25, 2021, 02:16:45 PM »
@David
Code: [Select]
<?php echo osc_item_views(); ?>
https://docs.osclasspoint.com/hitems-php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

David Beaudoin

  • ****
  • 240 posts
  • https://abrutis.net
Re: Show the number of views
« Reply #2 on: March 25, 2021, 02:19:35 PM »
Thanks, but what should I change?
Regards,
David
0640404083

*

David Beaudoin

  • ****
  • 240 posts
  • https://abrutis.net
Re: Show the number of views
« Reply #3 on: March 25, 2021, 02:20:47 PM »
no rather where should I put this line?
Regards,
David
0640404083

*

MB Themes

Re: Show the number of views
« Reply #4 on: March 25, 2021, 03:01:05 PM »
@David
Anywhere you need it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

David Beaudoin

  • ****
  • 240 posts
  • https://abrutis.net
Re: Show the number of views
« Reply #5 on: March 25, 2021, 03:10:09 PM »
This only shows me the number that should I add so that it adds a sentence please ?
Regards,
David
0640404083

Marked as best answer by david.beaudoin on March 25, 2021, 03:55:09 PM
*

MB Themes

Re: Show the number of views
« Reply #6 on: March 25, 2021, 03:39:03 PM »
@David
Code: [Select]
Hello world <?php echo osc_item_views(); ?> views
Code: [Select]
<?php echo 'Hello world ' osc_item_views() . ' views'?>
Code: [Select]
<?php echo sprintf(__('Hello world %d views''theme_name'), osc_item_views()); ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

David Beaudoin

  • ****
  • 240 posts
  • https://abrutis.net
Re: Show the number of views
« Reply #7 on: March 25, 2021, 03:53:46 PM »
@MB Theme

Thanks it works wonderfully !!!
Regards,
David
0640404083