Support Forums - Classified Ads Script Osclass

Osclass theme support => Sigma Osclass Theme => Topic started by: Yuri on January 17, 2024, 09:30:35 PM

Title: Add a line - Viewed by 0 people
Post by: Yuri on January 17, 2024, 09:30:35 PM
In the sigma template, I noticed that there was no line in the ad - 0 people viewed it. I need a line like this.
Title: Re: Add a line - Viewed by 0 people
Post by: Yuri on January 18, 2024, 01:37:13 AM
The issue was resolved independently!
If you want to see the view counter line. Add the code anywhere - oc-content/themes/sigma/item.php

<p class="view_number">
                            <?php _e('Viewed', 'sigma'); ?>:
                            <strong><?php echo ItemStats::newInstance()->getViews(osc_item_id()); ?></strong>
                        </p>

Title: Re: Add a line - Viewed by 0 people
Post by: MB Themes on January 18, 2024, 10:26:52 AM
Code: [Select]
<?php echo osc_item_views(); ?>
Title: Re: Add a line - Viewed by 0 people
Post by: Yuri on January 18, 2024, 10:54:57 AM
Unfortunately this line is not displayed, it shows the number. But I definitely needed a name and quantity. I gave an example on the screenshot.