Forum Activity for @michael

michael
@michael
09/27/16 06:58:59PM
7,832 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,832 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,832 posts

Forum Widget Returns Empty Result


Ning To Jamroom

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,832 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,832 posts

private blog issue?


Ning To Jamroom

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,832 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,832 posts

Forum Widget Returns Empty Result


Ning To Jamroom

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
michael
@michael
09/26/16 09:02:51PM
7,832 posts

Make a more compact Latest Activity list on my home page


Design and Skin Customization

Yes, the simplest is a custom template in Site builder.

Another way would be to use that same code and save it to your filesystem somewhere:
/skins/( YOUR SKIN )/your-custom-named-template.tpl

Then add that templates name to the Template Code section of the Site builder widgets like this:
{jrCore_list module="jrAction" template="your-custom-named-template.tpl"}
If you wanted to store it in the filesystem.
michael
@michael
09/26/16 08:56:55PM
7,832 posts

Add notification triggers?


Using Jamroom

by "option to be notified" you mean you want an email sent to you?

--edit--
Easiest way is to make a list using {jrCore_list} or the widget Item List and list up the newest created stuff.

--edit edit--
But then again, if you're following them, that stuff should be appearing on your timeline anyhow, so im uncertain of the question.
updated by @michael: 09/26/16 08:59:39PM
  340