Hi guys! What about the future of CumulusClips?

edited July 2014 in General
Hi Damian & co.,
I'm using CC since two years now, also made a few customizations and I am happy with it. Doing a video website with wordpress would be an overkill and other video-related CMS just suck.
For me video on the web it's only a side project but it gave me many technical and social opportunities to grow.
This is my video site: http://theatron.it
(I made most part of the videos with friends)

So the first thing I want to say is THANK YOU for your video CMS. I love it.
I hope I can contribute in the future to the development of CC because I'm working as a programmer now and I can git, angular and others. I realized you are still giving support in the forums but the development is not active. No more time/money on this project right? That's a pity.

Please consider me if you need some help and thank you again.

Piero

Comments

  • Please share the modifications done in the forum.How you made the double rows of videos?.may be a simple modification..such things you can share
  • @pansel: here you have the steps I followed. If there is something you don't understand, ask.

    0 - Before reading my code, read the docs:
    http://cumulusclips.org/docs/guide-to-cumulusclips-plugins/
    http://cumulusclips.org/docs/plugin-hook-locations/

    1 - Set up a plugin that hooks on index.before_render and query the db to look for newest and most viewed videos


    <?php

    //plugin class
    class Rettitudine
    {
    //plugin info
    static function Info()
    {
    $pluginInfo['name'] = 'Rettitudine';
    $pluginInfo['author'] = 'Piero';
    $pluginInfo['version'] = '1.0';
    $pluginInfo['site'] = '';
    $pluginInfo['notes'] = 'No docs available';

    return $pluginInfo;
    }

    //hook declaration
    static function Load()
    {
    Plugin::Attach('index.before_render', array(__CLASS__, 'Load_custom'));
    }

    // function that gets fired at the index.before_render hook
    static function Load_custom()
    {
    // how many videos to load
    $how_many = 8;

    App::LoadClass('View');
    App::LoadClass('Database');

    $db = DataBase::GetInstance();

    // load recent videos
    $query = "SELECT video_id FROM " . DB_PREFIX . "videos WHERE status = 'approved' AND private = '0' ORDER BY video_id DESC LIMIT $how_many";
    $result = $db->Query ($query);
    View::$vars->recent_videos = array();
    while ($video = $db->FetchObj ($result))
    View::$vars->recent_videos[] = $video->video_id;

    // load most viewed videos
    $query = "SELECT video_id FROM " . DB_PREFIX . "videos WHERE status = 'approved' AND private = '0' ORDER BY views DESC LIMIT $how_many";
    $result = $db->Query ($query);
    View::$vars->browse_videos = array();
    while ($video = $db->FetchObj ($result))
    View::$vars->browse_videos[] = $video->video_id;
    }
    ?>



    2 - Modify your theme at the end of cc-content/themes/yourtheme/index.tpl (before <?php View::Footer(); ?>)
    Please use divs instead of table markup... I was in a hurry


    <table>
    <tr>
    <td>
    <div class="huge"><?=Language::GetText('home_header')?></div>
    </td>
    <td>
    <div class="huge"><?=Language::GetText('most_viewed')?></div>
    </td>
    </tr>
    <tr>
    <td width="50%">
    <?php if (!empty ($recent_videos)): ?>
    <?php View::RepeatingBlock('video.tpl', $recent_videos); ?>
    <?php else: ?>
    <div class="block"><strong><?=Language::GetText('no_videos')?></strong></div>
    <?php endif; ?>
    </td>
    <td>
    <?php if (!empty ($browse_videos)): ?>
    <?php View::RepeatingBlock('video.tpl', $browse_videos); ?>
    <?php else: ?>
    <div class="block"><strong><?=Language::GetText('no_videos')?></strong></div>
    <?php endif; ?>
    </td>
    </tr>
    </table>



    3 - Activate the plugin :)
  • @pieroit The best way to contribute is to provide themes and plugins. You've done a great job with your site! We can't wait to see what you do when v2 is released.

    We've introduced plugin filters similar to WordPress, and we've simplified the theming system a bit. When it's a bit more stable, we'll email you a private link to the SVN repository so that you can explore a bit before we launch it.
  • edited July 2014
    Great!!!
    @Damian The idea of filters is very good, I hope to see v2 soon.
    Thank you for involving me. :)
  • P.S.: still waiting for a donation button, a few people could use it...
This discussion has been closed.