Author Topic: display video  (Read 1000 times)

0 Members and 1 Guest are viewing this topic.

Offline spritzjungs

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
display video
« on: April 11, 2013, 04:35:08 PM »
hi someone now how i can desplay only videos whats older than one hour ?
I have try this but it´s now working.

          {videos
          var=$videos
          amount=20
          category=1
          paginate=true
          pagination=$pagination
          sort=date_added DESC, RAND()}

          {foreach var=$video from=$videos}
          {if $video.date_added < date('Y-m-d H:i:s', time() + 3600)}

Offline peeperd

  • Newbie
  • *
  • Posts: 45
  • Karma: +1/-0
    • View Profile
Re: display video
« Reply #1 on: April 14, 2013, 03:57:14 PM »
http://www.jmbsoft.com/docs/tubex/1.0.x/cron.html


The cron.php script will accept one of several command line arguments that will tell it which function it should run. Each of the available command line arguments are listed below.

    --backup This will run the database backup function. You must specify the filename for the backup file using the --file argument.
    --feed-read This will read the video feed(s) that you have setup. If you do not provide the optional --feeds argument, all feeds will be read. You can specify in the --feeds argument to only read specific feeds, and that takes this format:

    You can find the ID number for each feed through the Search Feeds interface

    --feeds=3
    This will read only the feed with ID 3

    --feeds=3,7,12
    This will read the feeds with ID numbers 3, 7, and 9

    --feeds=5-10
    This will read the feeds with ID numbers 5 through 10 inclusive (5, 6, 7, 8, 9, and 10)

    --feeds=3,12,5-10
    This will read the feeds with ID numbers 3, 12, and 5 through 10 inclusive (5, 6, 7, 8, 9, and 10)
    --stats-rollover This will run the stats rollover. This should be run once each day at midnight of the timezone you selected in the Global Settings interface
    --run-convert-queue This will run the video conversion queue if necessary. If the queue is already running, it will do nothing. --run-thumb-queue This will run the thumbnail generation queue if necessary. If the queue is already running, it will do nothing. --activate-scheduled This will activate scheduled videos. The following options are supported for this action:

    --amount=10
    Specify the number of scheduled videos to activate. This will select from all of the available scheduled videos, and cannot be used in combination with the --amount-per-category or --amount-per-sponsor options.

    --amount-per-category=5
    Specify the number of scheduled videos to activate per category. This cannot be used in combination with the --amount or --amount-per-sponsor options.

    --amount-per-sponsor=5
    Specify the number of scheduled videos to activate per sponsor. This cannot be used in combination with the --amount or --amount-per-category options.

    --sort="RAND()"
    Specify the order in which the scheduled galleries should be selected.

Here are some examples of the cron commands you might use. Assume that the CLI version of PHP is located at /usr/bin/php and the cron.php script is located at /home/john/site.com/admin/cron.php:

    Backup the database at 3am daily
    0 3 * * * /usr/bin/php /home/john/site.com/admin/cron.php --backup --file=backup.sql


    Run stats rollover at midnight daily
    0 0 * * * /usr/bin/php /home/john/site.com/admin/cron.php --stats-rollover


    Check and process the video conversion queue every hour on the hour:
    0 * * * * /usr/bin/php /home/john/site.com/admin/cron.php --run-convert-queue


    Read feeds with ID numbers 1, 5, and 10-15 at 6am daily:
    0 6 * * * /usr/bin/php /home/john/site.com/admin/cron.php --feed-read --feeds=1,5,10-15


    Activate 5 new videos per category at 5am daily:
    0 5 * * * /usr/bin/php /home/john/site.com/admin/cron.php --activate-scheduled --amount-per-category=5 --sort="RAND()"

Unofficial JMB Support Forums

Re: display video
« Reply #1 on: April 14, 2013, 03:57:14 PM »


Tags: video time date 
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1317 Views
Last post April 15, 2012, 11:36:42 AM
by a4evermedia
0 Replies
1465 Views
Last post April 30, 2012, 04:35:57 AM
by a4evermedia
0 Replies
852 Views
Last post April 02, 2013, 07:27:47 AM
by vince81540
1 Replies
1023 Views
Last post September 18, 2013, 01:12:54 PM
by a4evermedia
1 Replies
996 Views
Last post January 04, 2014, 07:13:24 PM
by mac500