Forum Activity for @dazed

Dazed
@dazed
12/08/16 07:03:00PM
1,022 posts

Little Help With Config Settings


Design and Skin Customization

Michael one last question. I have the below working but when I entered a value for "favorite_artsist" the gui shows another AOTM field upon save. I am not sure why once i added a value, I had the option to add a second AOTM value. The "AOTM Song ID" however still shows only 1 field when populated.

Any ideas?

Thanks


	// AOTM
    $_tmp = array(
        'name'     => 'favorite_artist',
        'type'     => 'text',
        'default'  => '',
        'validate' => 'not_empty',
        'label'    => 'AOTM',
        'help'     => 'Enter the artist ID you want to show in the Favorite Artist section on the index page.',
		'section'  => 'AOTM',
        'order'    => 0
    );
    jrCore_register_setting('MixAP',$_tmp);
	
    // AOTM
    $_tmp = array(
        'name'     => 'favorite_song',
        'type'     => 'text',
        'default'  => '',
        'validate' => 'not_empty',
        'label'    => 'AOTM Song ID',
        'help'     => 'Enter the song ID you want to show in the Favorite Song section on the index page.',
		'section' => 'AOTM',
        'order'    => 0

    );
    jrCore_register_setting('MixAP',$_tmp);
Dazed
@dazed
12/08/16 06:04:18PM
1,022 posts

Little Help With Config Settings


Design and Skin Customization

I completely missed the section on there. You rock Michael.
Dazed
@dazed
12/08/16 06:01:03PM
1,022 posts

Little Help With Config Settings


Design and Skin Customization

Call it Hail Mary and I will change it hehe. Favorite Song would be fine. :)
Dazed
@dazed
12/08/16 05:58:01PM
1,022 posts

Little Help With Config Settings


Design and Skin Customization

Michael how do I get the below on a new tab? Projam just had these all on the same page. Audio Pro has tabs which is a lot cleaner.

    // Favorite Song ID
    $_tmp = array(
        'name'     => 'favorite_song',
        'type'     => 'text',
        'default'  => '',
        'validate' => 'not_empty',
        'label'    => 'Favorite Song',
        'help'     => 'Some Helpful Info.',
        'order'    => 8
    );
    jrCore_register_setting('NewSkin',$_tmp);


updated by @dazed: 12/08/16 05:59:57PM
Dazed
@dazed
12/08/16 05:50:41PM
1,022 posts

Little Help With Config Settings


Design and Skin Customization

Yeah it is a virtual copy and past from PJ just changing the skin name. Here is the full file.My addition is at the bottom. The blog_profile does not display in the config.

<?php
/**
 * Jamroom MixAP skin
 *
 * copyright 2003 - 2016
 * by The Jamroom Network
 *
 * This Jamroom file is LICENSED SOFTWARE, and cannot be redistributed.
 *
 * This Source Code is subject to the terms of the Jamroom Network
 * Commercial License -  please see the included "license.html" file.
 *
 * This module may include works that are not developed by
 * The Jamroom Network
 * and are used under license - any licenses are included and
 * can be found in the "contrib" directory within this skin.
 *
 * This software is provided "as is" and any express or implied
 * warranties, including, but not limited to, the implied warranties
 * of merchantability and fitness for a particular purpose are
 * disclaimed.  In no event shall the Jamroom Network be liable for
 * any direct, indirect, incidental, special, exemplary or
 * consequential damages (including but not limited to, procurement
 * of substitute goods or services; loss of use, data or profits;
 * or business interruption) however caused and on any theory of
 * liability, whether in contract, strict liability, or tort
 * (including negligence or otherwise) arising from the use of this
 * software, even if advised of the possibility of such damage.
 * Some jurisdictions may not allow disclaimers of implied warranties
 * and certain statements in the above disclaimer may not apply to
 * you as regards implied warranties; the other terms and conditions
 * remain enforceable notwithstanding. In some jurisdictions it is
 * not permitted to limit liability and therefore such limitations
 * may not apply to you.
 *
 * Jamroom MediaPro Skin
 * @copyright 2003 - 2016 by The Jamroom Network - All Rights Reserved
 */

// make sure we are not being called directly
defined('APP_DIR') or exit();

/**
 * MixAP_skin_config
 */
function MixAP_skin_config(){
    $styles = array('light', 'dark');
    $titles = array('Style','On Sale','Featured Artists', 'Charts');

    // Style
    $_tmp = array(
        'name'     => "style",
        'type'     => 'select',
        'default'  => 'light',
        'options'  => $styles,
        'validate' => 'printable',
        'label'    => "Skin Style",
        'help'     => "Media Pro includes an alternative dark style.",
        'section'  => $titles[0],
        'order'    => 0,
    );
    jrCore_register_setting('MixAP', $_tmp);




    foreach (range(1, 3) as $num) {
        // On Sale IDs
        $_tmp = array(
            'name'     => "list_{$num}_active",
            'type'     => 'checkbox',
            'default'  => 'on',
            'validate' => 'onoff',
            'label'    => "List Active",
            'help'     => 'If you have the payment processor, like of our Foxycart module, you may require a price for songs in this list.',
            'order'    => ($num * 10) + 1,
            'section'  => $titles[$num]
        );
        jrCore_register_setting('MixAP', $_tmp);

        if ($num == 3) {
            $days = array('1' => '1', '7' => '7','14' => '14','30' => '30','365' => '365');

            // Style
            $_tmp = array(
                'name'     => "chart_days",
                'type'     => 'select',
                'default'  => '30',
                'options'  => $days,
                'validate' => 'printable',
                'label'    => "Chart Days",
                'help'     => "Enter the range of days your chart will calculate. it will show the top 17 Tracks.",
                'section'  => $titles[$num],
                'order'    => ($num * 10) + 2,
            );
            jrCore_register_setting('MixAP', $_tmp);
        }
        else {
            // Featured Artist IDs
            $_tmp = array(
                'name'     => "list_{$num}_ids",
                'type'     => 'text',
                'default'  => '',
                'validate' => 'printable',
                'label'    => "$titles[$num] IDs",
                'help'     => 'If you would like to choose which items appear on this list, enter the item IDs for those items. Separate entries by commas.',
                'order'    => ($num * 10) + 2,
                'section'  => $titles[$num]
            );
        }

        jrCore_register_setting('MixAP', $_tmp);

        // On Sale IDs
        $_tmp = array(
            'name'     => "require_price_{$num}",
            'type'     => 'checkbox',
            'default'  => 'off',
            'validate' => 'onoff',
            'label'    => "Require Price",
            'help'     => 'If you have the payment processor, like of our Foxycart module, you may require a price for songs in this list. If this box is check soundcloud items will NOT be listed.',
            'order'    => ($num * 10) + 3,
            'section'  => $titles[$num]
        );

        jrCore_register_setting('MixAP', $_tmp);

        // On Sale IDs
        $_tmp = array(
            'name'     => "list_{$num}_soundcloud",
            'type'     => 'checkbox',
            'default'  => 'on',
            'validate' => 'onoff',
            'label'    => "Show SoundCloud",
            'help'     => 'With this box checked SoundCloud items will appear in this list. Note that if require price is checked it will override this setting.',
            'order'    => ($num * 10) + 4,
            'section'  => $titles[$num]
        );
        jrCore_register_setting('MixAP', $_tmp);
    }





    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    $_tmp = array(
        'name'     => 'auto_play',
        'default'  => 'off',
        'type'     => 'checkbox',
        'validate' => 'onoff',
        'required' => 'on',
        'label'    => 'Auto Play',
        'help'     => 'If this box is checked your players will play when loaded.',
        'order'    => 210,
        'section'  => 'Settings'
    );
    jrCore_register_setting('MixAP',$_tmp);

    // Forum Profile
    $_tmp = array(
        'name'     => 'forum_profile',
        'default'  => '',
        'type'     => 'text',
        'validate' => 'url',
        'label'    => 'Forum Profile URL',
        'sublabel' => 'Check the help section.',
        'help'     => 'If you have a Site Forum, enter the <b>Full URL</b> to the forum (usually the site admin Profile URL)<br><br><b>Note:</b> If you are using Site Builder, add the Discussion Link via the Site Builder menu manager',
        'section'  => 'Settings',
        'order'    => 213,
    );
    jrCore_register_setting('MixAP', $_tmp);


    // Social Media
    $num = 220;
    foreach (array('twitter', 'facebook', 'google', 'youtube', 'linkedin') as $network) {

        // App Store URL
        $_tmp = array(
            'name'     => "{$network}_url",
            'type'     => 'text',
            'default'  => '#',
            'validate' => 'printable',
            'label'    => ucfirst($network) . " page",
            'help'     => "If you have an account for your site on " . ucfirst(str_replace('_', ' ', $network)) .", enter the page url.  Enter 0 to disable.",
            'order'    => $num++,
            'section'  => 'social networks'
        );
        jrCore_register_setting('MixAP', $_tmp);
    }

	    // Blog Profile ID
    $_tmp = array(
        'name'     => 'blog_profile',
        'type'     => 'text',
        'default'  => '1',
        'validate' => 'not_empty',
        'label'    => 'Blog Profile',
        'help'     => 'By default the admin blog is used to show site news - set this profile_id to a valid profile_id if you want to use a different profile for blogs.',
        'order'    => 9
    );
    jrCore_register_setting('MixAP', $_tmp);
    return true;
}

Dazed
@dazed
12/08/16 05:46:20PM
1,022 posts

Little Help With Config Settings


Design and Skin Customization

I am working on a possible conversion from ProJam to Audio Pro. I am trying to move some of the config settings over from PJ and it is not displaying correctly in the skin global config. Any ideas what is wrong?

    // Favorite Song ID
    $_tmp = array(
        'name'     => 'favorite_song',
        'type'     => 'text',
        'default'  => '',
        'validate' => 'not_empty',
        'label'    => 'Favorite Song',
        'help'     => 'Some Helpful Info.',
        'order'    => 8
    );
    jrCore_register_setting('NewSkin',$_tmp);

updated by @dazed: 03/09/17 12:39:05PM
Dazed
@dazed
12/07/16 03:19:14PM
1,022 posts

Error: Your entry contains the following text which is not allowed: "'"


Using Jamroom

I can duplicate it on my site with different profiles. I did not see this issue as an admin so it could be permission based. When I login as the user though I see the error. I will send you login info.
Dazed
@dazed
12/07/16 03:08:14PM
1,022 posts

Error: Your entry contains the following text which is not allowed: "'"


Using Jamroom

I have a profile throwing this error in the profile bio. After the upgrade, if I just save on this page it throws the error. I narrowed it down one word, "Don't". Apparently it does not like the apostrophe.
updated by @dazed: 03/10/17 10:45:45PM
  35