Forum Activity for @michael

michael
@michael
10/20/14 09:36:07PM
7,832 posts

A list of Artists a user is following


Design and Skin Customization

in your screenshot {$_user} is an array. To access the sub parts of that array you use the array key.

So in that location use {$_user._user_id} to output "1".

If your passing it in into jrCore_list you dont need to wrap it in {} but sometimes you do need to use backticks `` around it.

so:
{assign var="_following" value=jrFollower_get_profiles_followed(`$_user._user_id`)}
{jrCore_list module="jrProfile" quota_id=$_conf.gmLite_artist_quota search="_profile_id IN `$_following|implode:","`"}
should do the trick.
michael
@michael
10/20/14 04:55:19PM
7,832 posts

A list of Artists a user is following


Design and Skin Customization

See that middle section of code paul has in there.. its:
{jrCore_list module="jrProfile" search="_profile_id IN `$_following|implode:","`"}

which is just a normal {jrCore_list} call. You can ask for whatever you want with that.

So what you need to determine is how you are differentiating Photographers from Models and use that as a search parameter in the core list call.

If your using quotas, and quota 1 is for Photographers while quota 2 is for Models, and you want models, then add in:
search1="quota_id = 2"

Link to the "{jrCore_list}" docs for convenience:
http://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list
michael
@michael
10/20/14 04:49:16PM
7,832 posts

Profiles


Design and Skin Customization

If you want a ton of different layouts for profiles, Instead of trying to do them all in one skin, revisit the idea of using a module to change the skin depending on the quota.

Check out the jrAdminSkin module that allows different skins to be used in different sections.

eg:
* admin section uses jrFlashback
* profile section uses jrSage
* front section uses jrNova

You could use the same concept for different quotas (although that functionality has not been programmed yet, you'd need to build it.)

eg:
* quota 1 profile uses jrNova
* quota 2 profile uses jrFlashback
* quota 3 profile uses jrSage

But in your case, you'd probably build the skins you wanted.
michael
@michael
10/20/14 04:38:07PM
7,832 posts

Playlists


Suggestions

The issue is jplayer.

We tested a TON of different players before deciding on jplayer. Each has its own issues and strengths. jPlayer ( jplayer.org ) was the best of the bunch. Others could play youtube but couldn't do something else.

Here is an archive thread from the May 2013 about the issue:
http://archive.jamroom.net/phpBB2/viewtopic.php?t=42248
michael
@michael
10/20/14 04:29:48PM
7,832 posts

Calendar for jrEvent


Suggestions

I've done it. It just needs to be vetted and an issue sorted related to date format storage in the db. So you'll see it appear in an up-coming release.

Its not about removed, its about remade. Nothing from JR4 came over to JR5, it was all re-made for JR5.
michael
@michael
10/19/14 11:53:49PM
7,832 posts

Profiles


Design and Skin Customization

The index file includes the header, so maybe you could include a different file.

If its getting pretty complex, consider using a module. There are a bunch of hook features to use at various different points.

If you could explain a bit about what your trying to achieve I could maybe suggest some options.
michael
@michael
10/19/14 07:41:30PM
7,832 posts

Profiles


Design and Skin Customization

Quote: ...combine all 3 into one...
not a good idea. Since there are more than just
* profile_header.tpl
* profile_index.tpl
* profile_footer.tpl

the header and footer are also used by modules sometimes. One example is the jrTags module which uses the header, then outputs the tags, then uses the footer.

If there was no header/footer to get it would get stuck.

What advantage were you hoping to achieve by combining them?
michael
@michael
10/19/14 07:13:36PM
7,832 posts

Development Server Control Panel


Using Jamroom

Nice one, thanks for sharing. I see it also has softaculous in it too. Don't suppose that 1-click install is so important for a dev machine though. ;)
updated by @michael: 10/19/14 07:13:50PM
michael
@michael
10/18/14 02:34:13AM
7,832 posts

Forum Redirect option


Suggestions

Nice one Gary. :)

One of the concepts aimed for in JR5 was "make it as minimal as possible but with ways to extend it."

Because if we put something in then its sometimes hard to turn off for those that don't want it.

Glad to hear your sorted.
michael
@michael
10/18/14 02:09:41AM
7,832 posts

Forum Redirect option


Suggestions

To do it for your system right now, the template you want is:
/modules/jrForum/templates/item_categories.tpl

You can over-ride that by copying it to
/skin/YOUR-SKIN/jrForum_item_categories.tpl

Then locate this section:
    {if is_array($_items)}
    <div class="block_content">
        <div class="item">
        {foreach from=$_items item="cat"}
            <div class="p5 mb5">
                <div>
                    <a href="{$jamroom_url}/{$profile_url}/{$murl}/{$cat.cat_title_url}">
                    {if $cat.cat_new_topic_posts == '1' && $cat.cat_topic_count > 0}
                        <div class="forum_post_count forum_post_count_new{$pinned_class}">
                    {else}
                        <div class="forum_post_count{$pinned_class}">
                    {/if}
                    {$cat.cat_topic_count|number_format} {jrCore_lang module="jrForum" id="60" default="topics"} {if $cat.cat_update_user._user_id > 0}<span style="display:inline-block;margin-left:6px" title="{jrCore_lang module="jrForum" id="34" default="update by"} {$cat.cat_update_user.user_name}, {$cat.cat_updated|jrCore_format_time:false:"relative"}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$cat.cat_update_user._user_id size="small" crop="auto" width="32" alt=$cat.cat_update_user.user_name}</span>{/if}
                    </div></a>

                    <h2><a href="{$jamroom_url}/{$profile_url}/{$murl}/{$cat.cat_title_url}">{$cat.cat_title}</a></h2>
                    <br><span class="normal">
                    {if strlen($cat.cat_desc) > 0}
                        &raquo; {$cat.cat_desc}
                    {else}
                        &nbsp;
                    {/if}
                    </span>
                </div>
            </div>
        {/foreach}
        </div>

    </div>
    {/if}

That is the foreach loop that displays the categories.

You can add your link in at the bottom of that.
eg:

    {if is_array($_items)}
    <div class="block_content">
        <div class="item">
        {foreach from=$_items item="cat"}
            <div class="p5 mb5">
                <div>
                    <a href="{$jamroom_url}/{$profile_url}/{$murl}/{$cat.cat_title_url}">
                    {if $cat.cat_new_topic_posts == '1' && $cat.cat_topic_count > 0}
                        <div class="forum_post_count forum_post_count_new{$pinned_class}">
                    {else}
                        <div class="forum_post_count{$pinned_class}">
                    {/if}
                    {$cat.cat_topic_count|number_format} {jrCore_lang module="jrForum" id="60" default="topics"} {if $cat.cat_update_user._user_id > 0}<span style="display:inline-block;margin-left:6px" title="{jrCore_lang module="jrForum" id="34" default="update by"} {$cat.cat_update_user.user_name}, {$cat.cat_updated|jrCore_format_time:false:"relative"}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$cat.cat_update_user._user_id size="small" crop="auto" width="32" alt=$cat.cat_update_user.user_name}</span>{/if}
                    </div></a>

                    <h2><a href="{$jamroom_url}/{$profile_url}/{$murl}/{$cat.cat_title_url}">{$cat.cat_title}</a></h2>
                    <br><span class="normal">
                    {if strlen($cat.cat_desc) > 0}
                        &raquo; {$cat.cat_desc}
                    {else}
                        &nbsp;
                    {/if}
                    </span>
                </div>
            </div>
        {/foreach}
            <div class="p5 mb5">
                <div>
                    <h2><a href="{$jamroom_url}/link/to/wherever/">Report a Problem</a></h2>
                </div>
            </div>
        </div>

    </div>
    {/if}

Or you could adjust the same file in the template editor if you wanted to do it that way too.

ACP -> FORUM MODULE -> TEMPLATES -> item_categories.tpl
  649