Advertisement:

Author Topic: SOLVED : sitemap not working properly  (Read 7557 times)

telecomseva

  • Newbie
  • *
  • Posts: 32
Re: sitemap not working properly
« Reply #15 on: September 18, 2012, 03:36:43 am »
hi,

i have figure out this issue by changing the code.

Open your /oc-content/plugins/sitemap_generator/index.php

find
Code: [Select]
foreach($countries as $country) {
        $regions = Region::newInstance()->getByCountry($country['pk_c_code']);
        foreach($regions as $region) {
            $cities = Search::newInstance()->listCities($region['pk_i_id']);
            $l = min(count($cities), 30);
            for($k=0;$k<$l;$k++) {
                if($cities[$k]['items']>$min) {
                    sitemap_add_url(osc_search_url(array('sCountry' => $country['s_name'], 'sRegion' => $region['s_name'], 'sCity' => $cities[$k]['city_name'])), date('Y-m-d'), 'hourly');
                }
            }
        }
    }

replace with
Code: [Select]
foreach($countries as $country) {
        $regions = Region::newInstance()->getByCountry($country['pk_c_code']);
        foreach($regions as $region) {
            $cities = Search::newInstance()->listCities($region['pk_i_id']);
            $l = min(count($cities), 30);
            for($k=0;$k<$l;$k++) {
                if($cities[$k]['items']>$min) {
                    sitemap_add_url(osc_search_url(array('sRegion' => $region['s_name'], 'sCity' => $cities[$k]['city_name'])), date('Y-m-d'), 'hourly');
                }
            }
        }
    }

thanks every one. finally it is working fine.

evilgenius79

  • Newbie
  • *
  • Posts: 39
Re: sitemap not working properly
« Reply #16 on: March 24, 2013, 12:41:46 pm »
;D ;D ;D Thank you bandsinasia


it work

http://okeypinoy.com/sitemap.xml

 ;D ;D ;D


how did you add a style to your sitemap?

evilgenius79

  • Newbie
  • *
  • Posts: 39
Re: SOLVED : sitemap not working properly
« Reply #17 on: March 25, 2013, 08:42:16 pm »
^^^^^^^^^^^^^^^^^^^lol ban yet?

vivekshan

  • Jr. Member
  • **
  • Posts: 67
Re: SOLVED : sitemap not working properly
« Reply #18 on: April 26, 2018, 11:20:40 pm »
there is still one problem in this sitemap generator

after following step 1 and step 2

when i have created sitemap
 

www.yoursite.com/classifieds/health-beauty-fitness/arogyam-pure-herbs-kit-for-psoriasis_11403

before the item id there is " i " like i11403

www.yoursite.com/classifieds/health-beauty-fitness/arogyam-pure-herbs-kit-for-psoriasis_i11403

i is missing
so please complete the things