If you are using TGPX, can you check this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zeiss
    Confirmed User
    • May 2012
    • 5189

    #1

    If you are using TGPX, can you check this?

    I need to find a way to run certain gallery scanner with cron. I don't find a case for this in the cron.php. Anyone know how to do this?

    Something like this will do it. But I don't know what else to include.

    Code:
    if( $configuration['import_rss'] )
    {
    
        $DB->Update('UPDATE `PREFIX_scanner_configs` SET `current_status`=?,`status_updated`=? WHERE `config_id`=?',
                    array("Importing galleries from RSS",
                          time(),
                          $config_id));
    
        $result = $DB->Query('SELECT * FROM `PREFIX_rss_feeds`');
        $total_feeds = $DB->NumRows($result);
        $current_feed = 0;
        while( $feed = $DB->NextRow($result) )
        {
            $current_feed++;
    
            $DB->Update('UPDATE `PREFIX_scanner_configs` SET `current_status`=?,`status_updated`=? WHERE `config_id`=?',
                    array("Importing galleries from RSS feed $current_feed of $total_feeds",
                          time(),
                          $config_id));
    
            ImportFromRss($feed);
        }
        $DB->Free($result);
    }
    Ideas, please!
    Last edited by Zeiss; 06-08-2013, 07:48 AM.


    Adult Webmasters Guides
  • Zeiss
    Confirmed User
    • May 2012
    • 5189

    #2
    Solved.


    Adult Webmasters Guides

    Comment

    • brassmonkey
      Pay It Forward
      • Sep 2005
      • 77385

      #3
      Originally posted by Zealotry
      Solved.
      glad you and yourself worked it out
      TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
      DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com

      Comment

      Working...