Forum Activity for @michael

michael
@michael
04/29/15 12:28:43AM
7,832 posts

Tip for adjusting items layout in the new sitebuilder widgets


Design and Skin Customization

Thanks for the tip john.

You're probably aware, so just a reminder to any readers. Jamroom works on a 12 col layout. so if you have:
col6
col6

Then that will be a 50%|50% layout. If you have col4, col4, col4 then that will be a 33%|33%|33% layout.

When adding an "Item List" widget, you have the option of using a "Custom" template. That will load the default template for the module and you can customize it to change the widths of stuff by changing the class names.

So for example the audio module default template looks like this:
{jrCore_module_url module="jrAudio" assign="murl"}
{if isset($_items)}

    {foreach from=$_items item="item"}

    <div class="item">

        <div class="container">
            <div class="row">
                <div class="col2">
                    <div class="block_image">
                        <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.audio_title_url}">{jrCore_module_function function="jrImage_display" module="jrAudio" type="audio_image" item_id=$item._item_id size="xlarge" crop="auto" class="iloutline img_scale" alt=$item.audio_title width=false height=false}</a>
                    </div>
                </div>
                <div class="col1">
                    <div class="p5">
                    {if $item.audio_active == 'on' && $item.audio_file_extension == 'mp3'}
                        {jrCore_media_player type="jrAudio_button" module="jrAudio" field="audio_file" item=$item}
                    {else}
                        &nbsp;
                    {/if}
                    </div>
                </div>
                <div class="col4">
                    <div class="p5" style="overflow-wrap:break-word">
                        <h3><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.audio_title_url}">{$item.audio_title}</a></h3><br>
                        <span class="info">{jrCore_lang module="jrAudio" id="31" default="album"}:</span> <span class="info_c"><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/albums/{$item.audio_album_url}">{$item.audio_album}</a></span><br>
                        <span class="info">{jrCore_lang module="jrAudio" id="12" default="genre"}:</span> <span class="info_c">{$item.audio_genre}</span><br>
                        {jrCore_module_function function="jrRating_form" type="star" module="jrAudio" index="1" item_id=$item._item_id current=$item.audio_rating_1_average_count|default:0 votes=$item.audio_rating_1_count|default:0}
                    </div>
                </div>
                <div class="col5 last">
                    <div class="block_config">

                        {jrCore_item_list_buttons module="jrAudio" field="audio_file" item=$item}

                    </div>
                </div>
            </div>

        </div>
    </div>
    {/foreach}
{/if}

and you can drop those last co5 and expand the col4 to 9 so it looks like this
{jrCore_module_url module="jrAudio" assign="murl"}
{if isset($_items)}

    {foreach from=$_items item="item"}

    <div class="item">

        <div class="container">
            <div class="row">
                <div class="col2">
                    <div class="block_image">
                        <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.audio_title_url}">{jrCore_module_function function="jrImage_display" module="jrAudio" type="audio_image" item_id=$item._item_id size="xlarge" crop="auto" class="iloutline img_scale" alt=$item.audio_title width=false height=false}</a>
                    </div>
                </div>
                <div class="col1">
                    <div class="p5">
                    {if $item.audio_active == 'on' && $item.audio_file_extension == 'mp3'}
                        {jrCore_media_player type="jrAudio_button" module="jrAudio" field="audio_file" item=$item}
                    {else}
                        &nbsp;
                    {/if}
                    </div>
                </div>
                <div class="col9">
                    <div class="p5" style="overflow-wrap:break-word">
                        <h3><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.audio_title_url}">{$item.audio_title}</a></h3><br>
                        <span class="info">{jrCore_lang module="jrAudio" id="31" default="album"}:</span> <span class="info_c"><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/albums/{$item.audio_album_url}">{$item.audio_album}</a></span><br>
                        <span class="info">{jrCore_lang module="jrAudio" id="12" default="genre"}:</span> <span class="info_c">{$item.audio_genre}</span><br>
                        {jrCore_module_function function="jrRating_form" type="star" module="jrAudio" index="1" item_id=$item._item_id current=$item.audio_rating_1_average_count|default:0 votes=$item.audio_rating_1_count|default:0}
                    </div>
                </div>
            </div>

        </div>
    </div>
    {/foreach}
{/if}

If you wanted to.
michael
@michael
04/29/15 12:15:42AM
7,832 posts

Issue regarding new site builder menu creation and mobile view


Installation and Configuration

Should be sorted now. Update from the marketplace.
michael
@michael
04/28/15 11:39:33PM
7,832 posts

Specific domain whitelist by filetype for s3


Jamroom Developers

You would never give direct access to your file system to another server. You'd put a script inbetween that feeds the wanted file. That way you can check access permissions.

The setting above relates to the streaming system and embedding players from your site on other sites.

an example from the demo page would be:
http://demo.jamroom.net/jrMediaPro/music

The url for streaming is:
http://demo.jamroom.net/jrMediaPro/audio/stream/audio_file/80/key=55p8Avei6yOV/file.mp3

The jrAudio module streams song with item_id 80. its not a link to the location of the .mp3 file in the file system.

--edit--
If you want to see how that function works, look at the view_jrCore_stream_file() function in the jrCore module. Its the one that goes and gets the file then streams it.
updated by @michael: 04/28/15 11:43:04PM
michael
@michael
04/28/15 07:33:48PM
7,832 posts

Profile missing


Off Topic

Updated the marketplace to add a check to make sure the file is there before requiring it.

You still have the problem that someone has chosen a skin called 'off'. If that is a problem.
michael
@michael
04/28/15 07:25:12PM
7,832 posts

Profile missing


Off Topic

Quote: Failed opening required '/home/xsite/public_html/skins/off/include.php'

That looks like something custom.

The code is complaining: "I need to include /home/xsite/public_html/skins/off/include.php but I cant find it, so I'm stopping."

Look to see if you have a directory called:
/skins/off/

and if that directory contains an include.php file.

--edit--
It seams like someone has chosen 'off' as their skin for their profile, but it doesnt contain the necessary skin include.php file.
updated by @michael: 04/28/15 07:27:35PM
michael
@michael
04/28/15 07:22:21PM
7,832 posts

Specific domain whitelist by filetype for s3


Jamroom Developers

Your probably after:
ACP -> SYSTEM CORE -> GLOBAL CONFIG -> Allowed Domains

Quote: All streams and downloads via media players are restricted to the local domain by default - you can enter additional domains (one per line) that you would like to allow access.

Note: If you would like to allow streaming and downloading from any domain, enter ALLOW_ALL_DOMAINS as the value for this setting.
michael
@michael
04/28/15 07:20:57PM
7,832 posts

Disqus Module


Design and Skin Customization

You'd need to import your jamroom (or previous system) comments into disqus.

https://import.disqus.com/

There are a couple of different accepted formats available at disqus, but you'd need to get your comments into one of those accepted formats to make the import possible.
michael
@michael
04/28/15 07:15:07PM
7,832 posts

New Sitebuilder: Pagination icons not showing


Using Jamroom

Try ctrl+F5 to reset your browsers cache (as opposed to the servers cache.) guessing it could be your browser not showing it.

I'll check out the page jumper issue. Thanks.

--edit--
Page jumper is working on my dev site. Got a URL for where its not working on your site?
updated by @michael: 04/28/15 07:16:42PM
michael
@michael
04/28/15 07:12:41PM
7,832 posts

How to add Oneall as a template?


Design and Skin Customization

The code is on this page:
https://www.jamroom.net/the-jamroom-network/documentation/modules/284/oneall-social-link

Its:
{jrOneAll_embed_code}

So wrapping it becomes:
{if !jrUser_is_logged_in()}
{jrOneAll_embed_code}
{/if}
READS:"If the user is NOT logged in, show the oneall box"
michael
@michael
04/28/15 07:07:42PM
7,832 posts

Feedback new site builder - Menues gone in slate site builder skin


Using Jamroom

Just updated the marketplace now. The second level of menus are there, they just are not showing.

They should show after you update. I expect that the order is correct now too, If you could let me know that would be great.
  550