Advertisement:

Author Topic: Latest items dont appear in home page!!!  (Read 4511 times)

7eway

  • Newbie
  • *
  • Posts: 11
Latest items dont appear in home page!!!
« on: June 18, 2012, 02:35:23 pm »
Hello,

I use osclass classified for real estate
I did some research on this problem foum but I have not found a clue!!!

Osclass version: 2.4.1
Theme: OSClass realestate Theme 1.0.1

The font end of my home page here:
 :-[

I wait your help.

Thank you.

desh.bandhu

  • Newbie
  • *
  • Posts: 11
Re: Latest items dont appear in home page!!!
« Reply #1 on: June 18, 2012, 02:38:24 pm »
Hi
What script did you write for latest items?

localsales

  • Full Member
  • ***
  • Posts: 130
Re: Latest items dont appear in home page!!!
« Reply #2 on: June 18, 2012, 11:41:49 pm »
in main.php search for


  <div id="latest-ads">               
                <?php if( osc_count_latest_items() == 0) { ?>


and replace these with

div id="latest-ads">               
<?php osc_reset_latest_items(); ?>     ///add this line
                <?php if( osc_count_latest_items() == 0) { ?>


7eway

  • Newbie
  • *
  • Posts: 11
Re: Latest items dont appear in home page!!!
« Reply #3 on: June 19, 2012, 12:04:39 pm »
in main.php search for


  <div id="latest-ads">               
                <?php if( osc_count_latest_items() == 0) { ?>


and replace these with

div id="latest-ads">               
<?php osc_reset_latest_items(); ?>     ///add this line
                <?php if( osc_count_latest_items() == 0) { ?>

I add the line  :D :D :D :D

The problem is solved thanks to your help localsales :)

serjuc11111

  • Hero Member
  • *****
  • Posts: 814
Re: Latest items dont appear in home page!!!
« Reply #4 on: January 22, 2013, 04:09:09 pm »
hy!for me is not working with <?php osc_reset_latest_items(); ?>

i use bcute 1.1.3 osclass version 3.0.2 thx!any help for me?thx in advance!

localsales

  • Full Member
  • ***
  • Posts: 130
Re: Latest items dont appear in home page!!!
« Reply #5 on: January 22, 2013, 09:51:37 pm »
send me the main.php file @serjuc11111

serjuc11111

  • Hero Member
  • *****
  • Posts: 814
Re: Latest items dont appear in home page!!!
« Reply #6 on: January 25, 2013, 04:12:12 pm »
look here localsales!

utente

  • Newbie
  • *
  • Posts: 6
  • nino_web
error : Latest items dont appear in home page!!!
« Reply #7 on: February 14, 2013, 08:03:39 pm »
I tried to make this change in the new version 3.02,
using the thema realestate does not work.
someone has a suggestion for removal.
thanks in advance
I noticed that this only happens using theme real estate, if you use another theme, osclass base, this is not seen.
 :)
it

Ho provato a fare questa modifica nella nuova versione 3.02,
utilizzando il  thema realestate non funziona.
qualcuno ha un suggerimento per la rimozione.
grazie in anticipo
ho notato che questo accade solo utilizzando theme real estate, se si utilizza altro tema,osclass base , questo non si vede.
 
« Last Edit: February 14, 2013, 08:31:27 pm by nino_web »

jvpacoin

  • Newbie
  • *
  • Posts: 4
  • Forever Newbie
Re: Latest items dont appear in home page!!!
« Reply #8 on: June 09, 2015, 10:34:14 am »
in main.php search for


  <div id="latest-ads">               
                <?php if( osc_count_latest_items() == 0) { ?>


and replace these with

div id="latest-ads">               
<?php osc_reset_latest_items(); ?>     ///add this line
                <?php if( osc_count_latest_items() == 0) { ?>

Thanks Dude! It work for me. :D