Forum Activity for @brian

brian
@brian
05/16/14 07:45:18AM
10,169 posts

Album Downloads


Design and Skin Customization

MAD©:Maybe add another checkbox saying album downloadable?
or something along those lines so it will have two variables

That's what I actually want to avoid - I don't want to start adding additional fields into any of the forms - that's what the form designer is for. "out of the box" the forms should be as minimal as they need to be, and site owners can then customize them to suit their needs - otherwise we actually make the module less flexible by forcing every site to support a base set of form fields.

So instead what I've created is a new module - "Parameter Injection" that I've just uploaded to the marketplace. This module can work hand in hand with the form designer to give you more control over how specific "views" gather and show data.

So in this instance what you want to do is:

1) Go to your marketplace and install the new Parameter Injection module (it's free).

2) Enable the module, then go to the ACP -> Parameter Injection and you should land on the Parameter Browser page.

3) Create a new parameter by selecting "Audio Support" from the List Module select, then "download_album" from the List View. Select the groups you want to apply this view to (i.e. all users), and then finally in the List Parameters textarea enter:

audio_downloadable != off

4) Save the new entry

What this will do is when the "download_album" view is loaded, that extra parameter will be "injected" into the search function that gathers the songs that are part of the album - in this case, only songs that have been specifically excluded from being downloaded will NOT be included in the album download.

Note that the download_album view is _cached_ - if you already have clicked on it for albums that contain songs that should NOT be downloaded, you can simply modify a song in the album and it will delete the existing cached download and allow it to be rebuilt again.

So check that out and let me know if that works.

Hope this helps!
updated by @brian: 05/16/14 07:46:47AM
brian
@brian
05/16/14 07:26:42AM
10,169 posts

Jamroom.net jrImage_stacked_image message


Using Jamroom

Are you talking about on this page:

https://www.jamroom.net/genosis/bundle

I'm not seeing any error.

Thanks!
brian
@brian
05/15/14 01:53:15PM
10,169 posts

RSS feeds for each host?


Using Jamroom

Looks like the ALLOW_ALL_DOMAINS is only setup for streaming - that's going to need to be added to the download support as well - I'll get that in for the next release.

Hope this helps!
brian
@brian
05/15/14 12:08:51PM
10,169 posts

RSS feeds for each host?


Using Jamroom

hansd007:@brian,

Thanks, I got it working.

Sorry to be a pain in the a$$, but what I wanted was to have a link to the mp3 file of that show.

I got that working by using the following path,

{$jamroom_url}/radio/download/audio_file/{$item._item_id}

However, I get the following error when accessing that URL "Error: Offsite media downloads are blocked".

I have set ALLOW_ALL_DOMAINS in the Global config.

Any ideas.

ACP -> Audio Support -> uncheck the "Block Downloads" Global Config option.

Hope this helps!
brian
@brian
05/15/14 10:50:36AM
10,169 posts

Album Downloads


Design and Skin Customization

When you make that change you need to reset caches so the cached profile pages are regenerated.

I've come up with an idea for a solution and will be working on it. What I want to avoid is building specific solutions for specific fields - it needs to work with all modules and fields, and events. So I'm checking that out now, but it may take a few days before something is ready.

Thanks!
brian
@brian
05/15/14 08:30:15AM
10,169 posts

I crashed my templete and need to reset my cashe


Installation and Configuration

If you fixed the template, you should be able to get in (a template that bombs due to a template error will not be cached).

If you need to however, you can log in via FTP and delete the contents of the following directories:

data/cache/jrCore
data/cache/activeSkin (i.e. "jrElastic").

Let me know if that helps.

Thanks!
brian
@brian
05/15/14 07:54:55AM
10,169 posts

Album Downloads


Design and Skin Customization

I'm checking this out to see the best way to handle this. Unfortunately it's not something you can do via a template, so for now I would turn off album downloads.

What is the name of your custom form field for allowing/not allowing downloads? I'm assuming it is a checkbox.

Thanks!
brian
@brian
05/15/14 06:36:49AM
10,169 posts

RSS feeds for each host?


Using Jamroom

Yep I was missing the closing tag in my post - fixed that. Thanks!
brian
@brian
05/14/14 02:03:30PM
10,169 posts

RSS feeds for each host?


Using Jamroom

hansd007:Is there a way to output the audio file URL of show in the feed?

ie: http://pulse.bamradionetwork.com/feed/radio/grammar-girl

Yeah - you can customize the RSS feed to suit your needs:

1) as the master, go into ACP -> Listing -> Feed Reader
2) click on the "templates" tab
3) click on "modify" to the right of the "rss.tpl" file.

Update the foreach loop from this:

<item>
    <title>{$item.title}</title>
    <link>{$item.link}</link>
    <description>{$item.description|jrCore_format_string:$item.profile_quota_id|strip_tags}</description>
    <pubDate>{$item.pubdate}</pubDate>
</item>

to something like this:

<item>
    <title>{$item.title}</title>
    <link>{$item.link}</link>
    <description>
    {if $_post.module == 'jrAudio'}
        Listen to this song here: {$jamroom_url}/{$item.profile_url}/{$module_url}/{$item._item_id}/{$item.audio_title_url}
    {else}
        {$item.description|jrCore_format_string:$item.profile_quota_id|strip_tags}
    {/if}
    </description>
    <pubDate>{$item.pubdate}</pubDate>
</item>

Basically we put a small if/else branch in there to check if it is the Audio Module and we output something unique for it. Adjust the custom text to suit your needs.

Hope this helps!
updated by @brian: 05/15/14 06:36:33AM
brian
@brian
05/13/14 01:29:37PM
10,169 posts

skin_menu menu_unique field


Jamroom Developers

SteveX:No worries or hurry. It isn't holding me up, I can use skin_menu as it is for the footer menus.

I think I'm going to need a parent_category field for adding mega menu options to the header menu, but I should be able to add the field to the menu table on skin install and add the form field from a listener, right? (I haven't tried that with a non-datastore table yet)

I'm curious, is there a reason why the skin menu hasn't been made as a datastore module?

while the DS is super handy when you have a lot of entries, for a small amount of entries (say under 100) it's a bit overkill, and for something that is going to be run on every single page view, the "overhead" is lower with a single table. It certainly COULD be done in DS, but since we know the fields we will be using for our menu entries a fixed table offers better performance.
  711