Videos on the main page

edited January 2013 in Customizations
How can i set the amont of videos displayed on the front page.

Thank you.

:)

Comments

  • Open cc-core/controllers/index.php in a text editor and find the following :

    // Retrieve Recent Videos
    $query = "SELECT video_id FROM " . DB_PREFIX . "videos WHERE status = 'approved' AND private = '0' ORDER BY video_id DESC LIMIT 3";


    change the number after LIMIT in my case is 3.
  • @bakerman is correct. This will increase the number of video displayed on the homepage.

    Please be informed though that this should only be a short term solution. The reason is because your changes will be lost during an update.

    The long term way of doing this is by using a custom plugin.
This discussion has been closed.