Forum Activity for @michael

michael
@michael
09/27/16 09:16:23PM
7,839 posts

getting an error with Mastro 4 skin with Annika live wall Audio buttons


Design and Skin Customization

The issue is in /feedback.tpl it is currently this:
    {if jrCore_module_is_active('jrShareThis')}
        <div class="like_button_box">
            {if jrUser_is_logged_in()}
                <a href="#" class="share">
            {else}
                <a href="{$jamroom_url}/{$uurl}/login">
            {/if}
                    {jrCore_image image="share.png" width="24" height="24" class="like_button_img" alt='Share' title='Share'}</a>
            <span><a href="#">{$item.action_shared_by_count}</a> </span>
            {$id = $item._item_id}
            {if isset($item.action_original_item_id) && is_numeric($item.action_original_item_id)}
                {$id = $item.action_original_item_id}
            {/if}
            <input type="hidden" id="share_id" value="{$id}" />
        </div>
    {/if}
It needs changing to this:
    {if jrCore_module_is_active('jrShareThis')}
        <div class="like_button_box">
            {$id = $item._item_id}
            {if isset($item.action_original_item_id) && is_numeric($item.action_original_item_id)}
                {$id = $item.action_original_item_id}
            {/if}
            {if jrUser_is_logged_in()}
                <a href="#" class="share" onclick="confirmActionShare({$id})">
            {else}
                <a href="{$jamroom_url}/{$uurl}/login">
            {/if}
                    {jrCore_image image="share.png" width="24" height="24" class="like_button_img" alt='Share' title='Share'}</a>
            <span><a href="#">{$item.action_shared_by_count}</a> </span>
        </div>
    {/if}
Then the skin needs to be released. We'll get this sorted, sorry for the delay.
michael
@michael
09/27/16 07:07:06PM
7,839 posts

comments order newest first?


Installation and Configuration

I looked into this yesterday because it should have been easy, but ran into some issues. So its on my todo list for today.

Should be as easy as adding 'comment_order_by' to the request in the profile_index.tpl function call but its not working for some reason. Will update when I know why.
michael
@michael
09/27/16 06:58:59PM
7,839 posts

How to list Forum categories by order Profile Arranged


Jamroom Developers

'forum_cat' and 'forum_cat_url' are stored in the jrForum datastore, the order is not. Its a performance thing.

If we stored the forum_cat_order in the jrForum datastore, when the order was changed every datatore item would need to be updated.

Performance wise its better as is. You can write a smarty function to get the categories and their order first if needed:

Docs "Defining your own smarty function"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/1569/defining-your-own-smarty-function

Then run a foreach loop over the returned categories to get the contents for each of them.

The forum categories are stored in the 'jr_jrforum_category' table so a query like this will get the order your after:
SELECT * FROM `jr_jrforum_category` WHERE cat_profile_id = 1 ORDER BY cat_order asc
michael
@michael
09/27/16 06:28:09PM
7,839 posts

Add notification triggers?


Using Jamroom

There is no way to do it via ACP settings right now, it would require a module.

There are a couple of ways I could think to build it:
1.) create an RSS feed of your timeline, then subscribe to that with your email program. Probably the easiest because it already has the correct feed content of the profiles you are following.

2.) Update the video module to have a follow icon like the forum does. Not exactly what you are suggesting because its not connected to the 'Profile Follow' button, but is a stand alone system.

3.) create a separate module that listens for specific events and fires off an email when it finds them, maybe this is the easiest way, just check settings..... not sure....

It would make your email system much more active, currently with the mailgun system you only get 10,000 emails a month before they start charging per email. I worry that could be an issue on larger sites.

The module might be something others are interested in using too. not sure. We do have a "Sponsor a module" system where you can sponsor a module to be built for the community if you (and maybe anyone else interested in it) can pay for a module to be built which then becomes available to everyone.

I'll move this to the suggestions section and open a ticket on it.
michael
@michael
09/27/16 06:00:05PM
7,839 posts

Forum Widget Returns Empty Result


Installation and Configuration

If you want JUST the forum topics, then you're always going to need more than just the minimum:
{jrCore_list module="jrForum" limit="5"}
because that will include each of the replies too.

To get just the topics you could use either
{jrCore_list module="jrForum" search1="forum_title_url LIKE %"}
Which reads "Get me all forum posts that have a forum_title_url" which only the topic place holders do, or
{jrCore_list module="jrForum" group_by="forum_group_id"}

Which reads "Get me all forum posts and group them by their group id" which will squash all posts into one result, so you only get 1 result from any one forum thread.
michael
@michael
09/27/16 05:40:27PM
7,839 posts

Make a more compact Latest Activity list on my home page


Design and Skin Customization

LesRinchen:.....Okay, so to do this in Site Builder, what's the template code I need to put in the custom box?.....
When you choose 'custom' template the box will be blank. You don't want to write your custom template from scratch, you just want to change a few things from the default, so click the 'click to load default template' link under CUSTOM TEMPLATE and tweak from there.
michael
@michael
09/27/16 05:32:49PM
7,839 posts

private blog issue?


Installation and Configuration

only blogs that are in the past will show. If you set a blog's publish date to next tuesday, it wont show up until next tuesday.

Perhaps set your private blogs to show up in 2050
michael
@michael
09/26/16 09:17:23PM
7,839 posts

Wrong Meta Lang value in the Meta Tag


Using Jamroom

Most of the skins use this in their meta.tpl file:
<!doctype html>
<html lang="{jrCore_lang module="_settings" id="lang" default="en"}" dir="{jrCore_lang module="_settings" id="direction" default="ltr"}">

Check it for your skin.
michael
@michael
09/26/16 09:06:21PM
7,839 posts

Forum Widget Returns Empty Result


Installation and Configuration

What are you wanting to show? The forums datastore is slightly different than other datastores in that it has replies too.

eg: ask for a site builder Item List of blogs and you get 1,2,3,4,5,6 blogs. Each one is a blog. But ask for the same list of fourms and you get a forum post with all of its replies each on their own _item_id. If you can say what your trying to build, it will be easier to build.

--edit--
At a guess, I reckon you're probably after this widget setup:
{jrCore_list module="jrForum" order_by="_created desc" limit="5" group_by="forum_group_id"}

Use the above code in the "Template Code" widget, or you can build the same in the "Item List" widget with:
LIST MODULE: forum
ORDER BY: _created | descending
GROUP BY: forum_group_id
updated by @michael: 09/26/16 09:12:42PM
  339