Forum Activity for @madc

MAD
@madc
12/19/13 05:33:32AM
600 posts

Aparna with Nova Skin


Installation and Configuration

Yes @douglas but that gives the same effect ie No Audio Loaded
That was one of the first things I checked
I just tried again with the code above and it is the same
See the source at the moment with that edit in
http://final.punkbp.com/
updated by @madc: 12/19/13 05:55:05AM
MAD
@madc
12/19/13 04:41:47AM
600 posts

Aparna with Nova Skin


Installation and Configuration

Thanks for the support <a href="https://www.jamroom.net/michael">@michael</a>.

I have added an audio upload field to my form designer in my cloned Aparna Module.
(Although after it is uploaded I see this)

<img src="http://final.punkbp.com/temptodelete/imageupload.jpg" />

See how everything is blank (ie AUDIO FILE: etc) ?
Although it definately uploads as I have checked and it's there and it is an mp3 file.

I am trying to call it into the home page. ( http://final.punkbp.com ).
I am using the prBotw module I created with Aparna.

You are right the song isn't coming in to my homepage as you can see from my source below. (condensed)
View MY SONG IS MISSING which I put in

<script type="text/javascript">
$(document).ready(function(){
    new jPlayerPlaylist({
        jPlayer: "#jquery_jplayer_m52b2cbc8f4092",
        cssSelectorAncestor: "#jp_container_m52b2cbc8f4092"
    },[
          MY SONG IS MISSING
                                        ],{
        playlistOptions: {
            autoPlay: false,
            displayTime: 'fast'
        },
        swfPath: "http://final.punkbp.com/modules/jrCore/contrib/jplayer",
        supplied: "mp3",
        solution: "html,flash",
        volume: 0.8,
        wmode: 'window',
        preload: 'none'
    });
});
</script>

My player shows, and I get this ie hit play, nothing

<img src="http://final.punkbp.com/temptodelete/player1.png" />


If I don't upload a song ( as I have no if statements yet )
I get this

<img src="http://final.punkbp.com/temptodelete/player2.png" />

The code I am using in my index.tpl file to pull it in to the home page is

{jrCore_list module="prBotw" order_by="_created DESC" limit=1 template="index_list_botw.tpl"}

That is pulling in my index_list_botw.tpl template which consists of this ( condensed for example purpose )

{jrCore_module_url module="prBotw" assign="murl"}
{if isset($_items)}
    {foreach from=$_items item="item"}
<div class="item">
 <div id="botw"><div class="row"><div class="col6 last"><div class="inner">
               {jrCore_media_player type="jrAudio_player_dark" module="jrAudio" field="botw_song" item=$item}<br>
 </div>
</div>
    {/foreach}
{/if}

My upload field in my form/module is called botw_song.
<i>The song is uploaded as I have checked where it is on my server.</i>
But It just isn't pulling it in.

<img src="http://final.punkbp.com/temptodelete/botw_song.jpg" />

So what am I doing wrong?
Is there something else I need to do . Or is it this section?

{jrCore_media_player type="jrAudio_player_dark" module="jrAudio" field="botw_song" item=$item}<br>

The source code shows EVERYTHING that should be there ( I compared it with other pages )

Yet the source doesn't show the song information that it should be calling in
ie. file name and MP3 data as another page shows below
View MY MODULE IS NOT INSERTING THIS DATA which I put in


<script type="text/javascript">
$(document).ready(function(){
    new jPlayerPlaylist({
        jPlayer: "#jquery_jplayer_m52b2f3a731fd1",
        cssSelectorAncestor: "#jp_container_m52b2f3a731fd1"
    },[ 
                MY MODULE IS NOT INSERTING THIS DATA
                                        {
                    title: "01 Hey You",
                    artist: "Two Two 79",
                    mp3: "http://final.punkbp.com/audio/stream/audio_file/1/key=CnTmJvi1RCqj/file.mp3",
                    poster: "http://final.punkbp.com/audio/image/audio_image/1/large"
                },

                            ],{
        playlistOptions: {
            autoPlay: true,
            displayTime: 'fast'
        },
        swfPath: "http://final.punkbp.com/modules/jrCore/contrib/jplayer",
        supplied: "mp3",
        solution: "flash,html",
        volume: 0.8,
        wmode: 'window',
        preload: 'none'
    });
});
</script>

I know there is something else I should be doing or setting up, but it is beyond me.

Would really like some help on this as we really need this to work.

Cheers :D
updated by @madc: 12/19/13 05:42:05AM
MAD
@madc
12/17/13 04:55:49PM
600 posts

Foxycart and Downloadable Audio


Design and Skin Customization

EDIT: POSSIBLE FIX?

It seems as though I needed to also update the song_chart_row.tpl file and the songs_row.tpl file.
I couldn't find these in the ACP so had to hardcode them into the files in root

I added this to those two files and it seems to be ok now.
( Can someone else let me know if there are any more to edit or if the edit is correct )

Find
                            <div class="add_to_cart_section" title="Free Download"><span class="add_to_cart_price">Free</span><a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}" title="download">{jrCore_icon icon="download" size="24"}</a></div>

Replace with this in both files

{if $item.audio_downloadable == 'on'}
                            <div class="add_to_cart_section" title="Free Download"><span class="add_to_cart_price">Free</span><a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}" title="download">{jrCore_icon icon="download" size="24"}</a></div>
{/if}

updated by @madc: 12/17/13 05:35:31PM
MAD
@madc
12/17/13 04:37:44PM
600 posts

Aparna with Nova Skin


Installation and Configuration

I am trying to add an audio file to the above area.
I have added the field in the form designer ( I have tried File Upload and also Audio Upload )
Then I added this field to my index_list_fmradio.tpl trying to use the player to call the file.

<div style="display: inline-block; width:75%">
    {jrCore_media_player type="jrAudio_player_dark" module="jrAudio" field="radio_song" item=$item}
</div>

The player shows but no song is loaded.
Do I need to set something else up?
MAD
@madc
12/16/13 08:52:38PM
600 posts

Foxycart and Downloadable Audio


Design and Skin Customization

Would it be easier if I gave you access to the server?
MAD
@madc
12/16/13 06:05:23PM
600 posts

Foxycart and Downloadable Audio


Design and Skin Customization

You need to set it up through some edit
Check this out
https://www.jamroom.net/the-jamroom-network/documentation/howto/1389/howto-allow-downloads-to-logged-in-users

My question still stands
Quote: Its the foxycart download button on songs and charts Pages that SHOULD'NT be showing as that song isn't DOWNLOADABLE
( The Song in question is called 01 Broken )

How do I make the foxycart respect the Downloadable check box.
The rest of the areas are but not the Songs or Charts pages
MAD
@madc
12/16/13 05:30:56PM
600 posts

Favicon?


Design and Skin Customization

Quote: Thanks @brian. I uploaded over the favicon at modules/jrCore-release-5.1.5/img
Upload your favicon into that directory. But as I said any future updates will override it.
MAD
@madc
12/16/13 05:58:55AM
600 posts

Aparna with Nova Skin


Installation and Configuration

Hi @paul after studying the developers course at https://www.udemy.com/discover I found the solution to my problem.
( I am running in developer mode and empty my cache manually to make sure on my server )
One of the problems I had was this section
template=$template

in my case
template=$index_list_fmradio.tpl
DIDN'T WORK
it should have been
template="index_list_fmradio.tpl"

I have written up a short tute for myself I thought I would share.
Let me know if there is something wrong with this but it works here

Creating an Aparna Module in JR

fmRadio and Radio are terms I used to create this module

Open Aparna in the ACP under the Tools side menu

Clone the Aparna Module
Make sure you use a UNIQUE 2 letter prefix when naming your module
eg. fmRadio
( "fm" is your prefix to make it unique. Radio is your module)

After it is cloned click Cancel
RUN AN INTEGRITY CHECK...."RIGHT NOW"
Doing so will make sure everything is working ok

Now you will see your new created module under the "TOOLS" side menu
Click on it and make it active under the "INFO" tab
*This will then create a tab on your profile page to access your new module call RADIO
Set your quotas through the global config of the module to make sure who are allowed to use it.
eg. Artists to use it on their profile
*The quotas can be done at anytime if you are developing

Create all your fields in your module
*Create them through the form designer by accessing your module through YOUR profile, Click on the RADIO TAB and click on Form Designer

Once they are all created take note of the fields in the middle columns
ie. ModuleName_YourField
which for this tute equates to
eg. radio_station

Below are some other fields you may have included which I will use in this example tute

radio_title (Default Created Aparna Field )
radio_station
radio_name
radio_address
radio_description


Once you are happy with your fields you want to bring into somewhere on your site, you need to style all the CREATED templates that were created through Aparna.
*Not doing so will bring in the fields eg. radio_station so you need to allocate each field

Open your module directory on your server ( modules/fmRadio/templates ) and edit the below tpl files
( These tpl files are created by Aparna )

item_action.tpl
item_detail.tpl
item_index.tpl
item_list.tpl
item_search.tpl


These are GENERIC tpl files created by Aparna

Edit them to suit your purpose
*An Example edit is below but you can style and call however the way you want

This is an example edit of the item_list.tpl in your new module/template directory

{jrCore_module_url module="fmRadio" assign="murl"}
{if isset($_items)}
    {foreach from=$_items item="item"}
        <div class="item">

            <div class="block_config">
                {jrCore_item_update_button module="fmRadio" profile_id=$item._profile_id item_id=$item._item_id}
                {jrCore_item_delete_button module="fmRadio" profile_id=$item._profile_id item_id=$item._item_id}
            </div>

            <h2><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.radio_title_url}">{$item.radio_title}</a></h2>
            <br>
            <!--EDITED FIELDS ARE BELOW-->
            Radio Station: {$item.radio_station}<br>
            Radio Name: {$item.radio_name}<br>
            Address: {$item.radio_address}<br>
            Description: {$item.description}
        </div>

    {/foreach}
{/if}

*If you aren't using translated languages you can do the above.
*If you are using translated languages you will have to set your languages via the ACP and add the relevant code to the above eg. add the lang string which I am not going to cover here


Do this in all your templates.
Add all the fields you created in each tpl file to style each file.

Your module will now show in your profile ( depending on quotas ) on a tab.
You can click on this after setting up one ie Radio Station etc and it will display the station/s.

How do I get this into my homepage?

This is what I asked which I worked out is quite easy

To display this information on the home page STYLED the way you want it, you need to:
(You must do all of the above first otherwise your other pages will look wrong)

Create a new tpl file in your root template directory. ( yoursite/templates folder )
Call it what you want *eg. file name is : index_list_fmradio.tpl

Now open your item_list.tpl file in your module folder ( modules/fmRadio/templates ) and copy and paste the contents of this file into your new index_list_fmradio.tpl file you created above
Edit this the way you want it looking on your home page and save it.

To Call The Template In:

Paste this wherever you want it in your index.tpl file in skins/"YourSkin" directory
<!--fmRadio-->
{jrCore_list module="fmRadio" order_by="_created DESC" limit=1 template="index_list_fmradio.tpl"}
<!--END fmRadio-->
*The comments can be removed. They are only for coding purposes

Now your radio module will show up on your home page the way you styled it FOR YOUR HOME PAGE. ie. Has its own styling separate from the module pages.
updated by @madc: 12/16/13 08:49:36AM
MAD
@madc
12/15/13 04:04:07AM
600 posts

Aparna with Nova Skin


Installation and Configuration

Thanks <a href="https://www.jamroom.net/paul">@paul</a> it is working now but none of the other fields show?
It is showing what i put in the title field, but I removed the ($botw_title) to see if it would still show the title and it did
This is the code i used. Does it look right?

<div class="infobox">
        {capture name="row_template" assign="botw_template"}
               {literal}
                 {if isset($_items) && is_array($_items)}
                    {foreach from=$_items item="item"}
     {$item.botw_title}<br>
     {$item.botw_lfsep}<br>
     {$item.botw_date}<br>
     {$item.botw_genre}<br>
     {$item.botw_location}<br>
     {$item.botw_description}<br>
     {$item.botw_video}<br>
     {$item.botw_song}<br>
     {$item.botw_lfsfeatured}<br>
                    {/foreach}
                 {/if}
               {/literal}
        {/capture}
        {jrCore_list module="prBotw" template=$item_list.tpl}
</div>

This is what is in my item_list.tpl file in the module
modules/prBotw/templates/item_detail.tpl

                    <div class="col9 last">
                        <div class="p5">
                            <h2>{$item.botw_title}</h2>
                            {foreach from=$item item="v" key="k"}
                                {assign var="m" value="Temp"}
                                {assign var="l" value=$m|strlen}
                                {if substr($k,0,$l) == "botw"}
                                    <span class="info">{$k}:</span> <span class="info_c">{$v}</span><br>
                                {/if}
                            {/foreach}
                        </div>
                    </div>

The admin is the only one with access to this module ( edit etc ) and it will always be active
I just wanted an easier way to populate the areas rather than hard coding it every week.

We would also like to keep each PAST band of the week somewhere that is viewable on the site like on archive.
So how would I pull only the latest one?

( BTW I just signed up at https://www.udemy.com for the developers course )
updated by @madc: 12/19/13 05:43:09AM
  52