Forum Activity for @douglas

douglas
@douglas
03/19/16 04:33:13AM
2,808 posts

Where would I find the code that dispays number of online users?


Design and Skin Customization

The jrUser_whos_online functions is whats being used in other Jamroom skins:


{jrUser_whos_online template="whos_online.tpl"}

whos_online.tpl:
<div class="container">
{if isset($master)}
    <div class="row">
        <div class="col12 last">
            <span class="media_title">{jrCore_lang skin=$_conf.jrCore_active_skin id="37" default="Master"} {jrCore_lang skin=$_conf.jrCore_active_skin id="39" default="Admins"}</span>
            <hr>
        </div>
    </div>
    <div class="row">
        {foreach from=$master item="m_admin"}
            <div class="col3{if $m_admin@last} last{/if}">
                <div class="center capital p5">
                    <a href="{$jamroom_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$m_admin.session_user_id size="xsmall" crop="auto" class="iloutline" alt=$m_admin.session_user_name title=$m_admin.session_user_name}</a>
                </div>
            </div>
        {/foreach}
    </div>
{/if}

{if isset($admin)}
    <div class="row">
        <div class="col12 last">
            <hr>
            <span class="media_title">{jrCore_lang skin=$_conf.jrCore_active_skin id="38" default="Site"} {jrCore_lang skin=$_conf.jrCore_active_skin id="39" default="Admins"}</span>
            <hr>
        </div>
    </div>
    <div class="row">
        {foreach from=$admin item="s_admin"}
            <div class="col3{if $s_admin@last} last{/if}">
                <div class="center capital p5">
                    <a href="{$jamroom_url}/{$s_admin.profile_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$s_admin.session_user_id size="xsmall" crop="auto" class="iloutline" alt=$s_admin.session_user_name title=$s_admin.session_user_name}</a>
                </div>
            </div>
        {/foreach}
    </div>
{/if}

{if isset($user)}
    <div class="row">
        <div class="col12 last">
            <hr>
            <span class="media_title">{jrCore_lang skin=$_conf.jrCore_active_skin id="40" default="Members"}</span>
            <hr>
        </div>
    </div>
    <div class="row">
        {foreach from=$user item="member"}
            <div class="col3{if $member@last} last{/if}">
                <div class="center capital p5">
                    <a href="{$jamroom_url}/{$member.profile_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$member.session_user_id size="xsmall" crop="auto" class="iloutline" alt=$member.session_user_name title=$member.session_user_name}</a>
                </div>
            </div>
        {/foreach}
    </div>
{/if}

</div>

<hr>

<div class="p3" style="width:90%;display:table;margin:0 auto;">

    <div style="display:table-row">

        <div class="capital bold" style="display:table-cell">
            {jrCore_lang skin=$_conf.jrCore_active_skin id="37" default="Master"} {jrCore_lang skin=$_conf.jrCore_active_skin id="39" default="Admins"}:
        </div>
        <div class="hl-3" style="width:1%;display:table-cell;;text-align:right;">
            {$master_count}
        </div>

    </div>

    <div style="display:table-row">

        <div class="capital bold" style="display:table-cell;">
            {jrCore_lang skin=$_conf.jrCore_active_skin id="38" default="Site"} {jrCore_lang skin=$_conf.jrCore_active_skin id="39" default="Admins"}:
        </div>
        <div class="hl-3" style="width:1%;display:table-cell;;text-align:right;">
            {$admin_count}
        </div>

    </div>

    <div style="display:table-row">

        <div class="capital bold" style="display:table-cell;">
            {jrCore_lang skin=$_conf.jrCore_active_skin id="40" default="Members"}:
        </div>
        <div class="hl-3" style="width:1%;display:table-cell;;text-align:right;">
            {$user_count}
        </div>

    </div>

    <div style="display:table-row">

        <div class="capital bold" style="display:table-cell;">
            {jrCore_lang skin=$_conf.jrCore_active_skin id="41" default="Visitors"}:
        </div>
        <div style="width:1%;display:table-cell;;text-align:right;">
            <span class="hl-3">{$visitor_count}</span>
        </div>

    </div>

</div>

<hr>

<div class="p3" style="width:90%;display:table;margin:0 auto;">

    <div style="display:table-row">

        <div class="capital bold" style="display:table-cell;">
            {jrCore_lang skin=$_conf.jrCore_active_skin id="70" default="Total"}:
        </div>
        <div class="hl-3" style="width:1%;display:table-cell;text-align:right;">
            {$all_count}
        </div>

    </div>

</div>

You may need to adjust the class on the div elements as this is from the MediaPro skin.

Hope this helps!
douglas
@douglas
03/18/16 12:09:10PM
2,808 posts

Images square all the time


Using Jamroom

You can set a max-width and max-height on the image so it doesn't get out of proportion...

{jrCore_module_function function="jrImage_display" module="jrAudio" type="audio_image" item_id=$item._item_id size="medium" crop="square" class="r r-2x img-full" alt=$item.audio_title style="max-width:250px;max-height:250px;}

just change the 250px to the size you want.
douglas
@douglas
03/18/16 10:24:13AM
2,808 posts

Seeing Periodic DB Connection Error


Installation and Configuration

Are you still seeing this Dazed?
douglas
@douglas
03/18/16 10:21:38AM
2,808 posts

Images square all the time


Using Jamroom

Try crop="square"
douglas
@douglas
03/18/16 07:51:10AM
2,808 posts

Site Builder Image Slideshow


Using Jamroom

Your welcome, glad it worked for you. :)
douglas
@douglas
03/17/16 10:40:46AM
2,808 posts

How to display Profile Statistics - Public visits


Design and Skin Customization

I don't think there is a way to get counts for a single day, at least not that I know of, but you can get counts for plays, views etc... by using the jrCore_get_count smarty function.

https://www.jamroom.net/the-jamroom-network/documentation/development/773/jrcore-get-count
douglas
@douglas
03/15/16 08:48:25AM
2,808 posts

Having a problem with Playlists


Using Jamroom

Just posting here so it might help others.

The issue was your custom skin config.php was missing the new player settings.
douglas
@douglas
03/14/16 09:24:56AM
2,808 posts

Site Builder Image Slideshow


Using Jamroom

Are you using the Site Builder module?

If so, you can add this to the "Template Code" widget:

{capture name="slider_template" assign="slider_template"}
    {literal}
    	{if isset($_items)}
		    {foreach from=$_items item="row"}
        		<li><a href="{$jamroom_url}/{$row.profile_url}/{jrCore_module_url module="jrGallery"}/{$row._item_id}/{$row.gallery_title_url}">{jrCore_module_function function="jrImage_display" module="jrGallery" type="gallery_image" item_id=$row._item_id size="xxlarge" crop="auto" alt=$row.gallery_image_name title=$row.gallery_image_name style="max-width:725px;"}</a><p class="caption"><a href="{$jamroom_url}/{$row.profile_url}/{jrCore_module_url module="jrGallery"}/{$row._item_id}/{$row.gallery_title_url}"><span style="color:#FFF;">{$row.gallery_image_name}</span></a></p></li>
		    {/foreach}
		{/if}
    {/literal}
{/capture}    

<script type="text/javascript">
    $(function () {
        $("#slider1").responsiveSlides({
            auto: true,          // Boolean: Animate automatically, true or false
            speed: 400,          // Integer: Speed of the transition, in milliseconds
            timeout: 4000,       // Integer: Time between slide transitions, in milliseconds
            pager: true,         // Boolean: Show pager, true or false
            random: true,        // Boolean: Randomize the order of the slides, true or false
            maxwidth: 725,       // Integer: Max-width of the slideshow, in pixels
            pause: true,         // Boolean: Pause on hover, true or false
            namespace: "rslides" // String: change the default namespace used
        });
    });
</script>

<div class="block_content">
    <div id="swrapper" style="padding-top:10px;">
        <div class="callbacks_container">
            <div class="ioutline">
                <ul id="slider1" class="rslides callbacks">
                    {jrCore_list module="jrGallery" order_by="_item_id desc" limit="10" template=$slider_template require_image="profile_image"}
                </ul>
            </div>
        </div>
        <div class="clear"></div>
    </div>
</div>

and that will give you an image slider like the Elastic skin.

If your not using the Site Builder, just add that code to the template you want it to show on.

Note: You may need to adjust the width and cropping.
douglas
@douglas
03/14/16 08:50:18AM
2,808 posts

Having a problem with Playlists


Using Jamroom

If you will, send your site URL, admin login and FTP info to support[at]jamroom[dot]net and I'll take a look at it.

Hard to say what it is without digging into the templates and database.
douglas
@douglas
03/14/16 07:36:39AM
2,808 posts

Having a problem with Playlists


Using Jamroom

Most likely you have bad code in your database for the template you edited in the Playlist module.

When you go to the templates section, do you see an enabled reset button for the template you modified? If so, reset that template and you should get the default template again.
  110