<![CDATA[ Dear Developers and community, where are the nobrainer step-by-step tutorials? - My Forums]]> https://forums.modx.com/thread/?thread=24440 <![CDATA[Re: Dear Developers and community, where are the nobrainer step-by-step tutorials?]]> https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=6#dis-post-124658
Thank you for the wonderful theme, it really helped me.]]>
sabo85 Nov 03, 2010, 07:55 AM https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=6#dis-post-124658
<![CDATA[Re: Dear Developers and community, where are the nobrainer step-by-step tutorials?]]> https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=6#dis-post-124657
I began testing this out and right clicked (Files-assets-templates-spirit-)video folder to upload but got an access denied when I tried uploading a flv file. I also tried uploading an mp3 and received the note: Uploaded file is too large - and it gives the bit size of it -. Please ensure your files are less then --- a specific bit size -- bytes.

It seems I will need to upload through ftp.

edit: Actually ftp is not helping either. Weird. I was not able to upload with CyberDuck but I am able to upload flv files and mp3 files with Dreamweaver.


---- I am wondering if I should do a reinstall of Modx. I did though install a site package when I should not have done so, and it messed things up....




One more Thing:
Doing a refresh in Files area for instance creates a reset of the folder one is working with. Refreshing one has to open the tree structure again. What about doing a refresh AND the tree structure opens back up to where one was.]]>
Paal_Joachim Oct 21, 2010, 05:19 AM https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=6#dis-post-124657
<![CDATA[Re: Dear Developers and community, where are the nobrainer step-by-step tutorials?]]> https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124656
You can use snippets, TVs and chunks to automate the loading of the playlist items.

For example, on one site I needed a different video played in the sidebar for each page. I had a radio-button TV for the user to select from the available videos for each resource (this could also be a file upload type TV and work in much the same way), then in the sidebar I have this chunk, which is pretty much a standard Flowplayer setup:
<div id="rightFlash">
<!-- this A tag is where your Flowplayer will be placed. it can be anywhere -->
<a  href="assets/flash/videos/pages/[*PageVideos*].flv"  id="player"> </a> 
<!-- this will install flowplayer inside previous A- tag. -->
<script type="text/javascript" src="assets/js/rightmovie.js"></script>
</div>

Then I wrote a snippet to check for valid .flv files and load the above chunk if the file is OK, and load a default image in case there is no valid .flv file:
<?php
$movie = $modx->getTemplateVar('PageVideos');
if (!empty($movie['value'])) {
    if(is_file('assets/flash/videos/pages/' . $movie['value'] . '.flv')) {
         $chunk = $modx->getChunk('rightflash');
         return $chunk;
    }
}
$output = '<img id="noVideo" src="assets/js/images/flash_bkg.png" width="250" height="261" alt="" />';
return $output;
?>

The included javascript file to configure the player and run it is basically what the Flowplayer demos have:
flowplayer("player", "assets/flash/flowplayer.commercial-3.1.5.swf", {
    key: 'xxxxxxxxxxxxxxx',
    logo: {
        url: '../js/images/flash_bkg.png',
        fullscreenOnly: false,
        zIndex:0,
        top: '45%',
        left: '50%'
    },
    splash: {
        backgroundColor: '#ffffff'
    },
    canvas: {
        backgroundColor: '#ffffff'
    },
        screen: {
        backgroundColor: '#ffffff'
    },
    
    clip: {

        autoPlay: true, autoBuffering: true,

        // let screen fade in gradually so Acme logo can be seen below it
        fadeInSpeed: 3000,

        // on last second, fade out screen
        onLastSecond: function() {
            this.getScreen().animate({opacity: 0}, 3000);
        },

        // if screen is hidden, show it upon startup
        onStart: function() {
            this.getScreen().css({opacity: 1});
        }

    },

    plugins:  { 
            controls: {
                    autoHide: 'true',
                    hideDelay: 1000,
            }
    }
});

For a gallery playlist, you can use a snippet to scan a directory and generate the appropriately formatted list of videos for Flowplayer to work with; you would embed the snippet in the spot where normally the playlist would be in the javascript, which in this case would be inline rather than loaded from an external file so the snippet can do its thing.

]]>
sottwell Oct 15, 2010, 05:58 AM https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124656
<![CDATA[Re: Dear Developers and community, where are the nobrainer step-by-step tutorials?]]> https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124655
Have a great day!]]>
Paal_Joachim Oct 15, 2010, 02:43 AM https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124655
<![CDATA[Re: Dear Developers and community, where are the nobrainer step-by-step tutorials?]]> https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124654 Flowplayer is my favorite. You have to pay for custom branding on the video player, but in my opinion it’s well worth the price they ask. The free version works the same; it just has Flowplayer branding at start-up.]]> sottwell Oct 15, 2010, 01:09 AM https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124654 <![CDATA[Re: Dear Developers and community, where are the nobrainer step-by-step tutorials?]]> https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124653 Easy is the essential word.
Anyone got any tips for this?

Thank you...:)

]]>
Paal_Joachim Oct 14, 2010, 05:55 PM https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124653
<![CDATA[Re: Dear Developers and community, where are the nobrainer step-by-step tutorials?]]> https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124652
I see many things I would like to change there!

Thank you!

Takker og bukker....:)]]>
Paal_Joachim Oct 14, 2010, 09:31 AM https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124652
<![CDATA[Re: Dear Developers and community, where are the nobrainer step-by-step tutorials?]]> https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124651 Quote from: Paal_Joachim at Oct 14, 2010, 12:59 PM

How can I define a new default first page? How to I change the ID’s of the pages?
Goto System - System settings, page four, Area: Site - Site start. Double click on 1 or whatever is set as site-start-ID and change the ID to the document that is to be the site start page.
The ID of the pages can’t be changed. It is index-IDs in the database.]]>
Sylvaticus Oct 14, 2010, 09:23 AM https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124651
<![CDATA[Re: Dear Developers and community, where are the nobrainer step-by-step tutorials?]]> https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124650
Btw
Since the Clairity pack messed up my system (I’ll reinstall Modx it when another version comes out) the default page sunwindproduction.com/modx is not coming up (its gone). How can I define a new default first page? How to I change the ID’s of the pages?

Thanks!...:)

Have a great day!!]]>
Paal_Joachim Oct 14, 2010, 07:59 AM https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124650
<![CDATA[Re: Dear Developers and community, where are the nobrainer step-by-step tutorials?]]> https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124649 sottwell Oct 14, 2010, 07:23 AM https://forums.modx.com/thread/24440/dear-developers-and-community-where-are-the-nobrainer-step-by-step-tutorials?page=5#dis-post-124649