Forum Activity for @michael

michael
@michael
04/28/15 07:12:41PM
7,839 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,839 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.
michael
@michael
04/28/15 05:34:17PM
7,839 posts

Module Specific Comments


Design and Skin Customization

Advantages in building a module:
* faster
* more flexible
* cleaner (not mixing display logic with data logic)

Advantages in using template code:
* quicker to setup
michael
@michael
04/28/15 01:41:01AM
7,839 posts

Module Specific Comments


Design and Skin Customization

It would be better to make a quick module to do this because its really processing logic rather than layout/design logic, but you can do this:

{jrCore_list module="jrBlog" limit="500" search="blog_category in featured,latest" template="null" assign="rows" return_keys="_item_id"}
{if is_array($rows)}
    {foreach $rows as $row}
        {$_ids[$row._item_id] = $row._item_id}
    {/foreach}
    {$wanted = implode(',', $_ids)}
{/if}
{jrCore_list module="jrComment" order_by="_created desc" limit="10" search="comment_module = jrBlog" search1="comment_item_id in $wanted"}

We cant get blog_* because we're searching on the Comment datastore and that info just isn't there. What is there is the item ids of the blogs, so first we get a list of item id's that correspond to the categories you are after.

We then reduce that list down to the distinct values using that foreach loop, then we ask for the comments where the comment_item_id is in the list of the ones that we want.

----------
I reckon a better way would be to make a small utility module that you can use for tweaks

/modules/gmTweaks/

and add in a smarty_function_gmTweaks_comment($params, $smarty) and do the same thing in there in stead.

That way the template would just look like
{gmTweaks_comment category="featured,latest"}

Bit cleaner, but does the same thing.
michael
@michael
04/27/15 11:50:20PM
7,839 posts

Module Specific Comments


Design and Skin Customization

I'll take a look. Need to write some comments first, not many in my dev system.

Back soon.
michael
@michael
04/27/15 11:45:16PM
7,839 posts

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


Using Jamroom

Just updated Slate 2 seconds ago. run the marketplace updates and see if that fixes it.
michael
@michael
04/27/15 11:09:23PM
7,839 posts

Module Specific Comments


Design and Skin Customization

you'll want to make sure the blog category case matches whats in the database, I'm guessing those capitals are throwing it out.
michael
@michael
04/27/15 10:22:04PM
7,839 posts

Issue regarding new site builder menu creation and mobile view


Installation and Configuration

You're right, they are too. I'll get that fixed up. Thanks.
michael
@michael
04/27/15 07:34:03PM
7,839 posts

CRI: Query Error: Duplicate entry '/' for key 'page_uri'


Using Jamroom

This would happen if you had one page at /index and another page at /. I didn't expect anyone to have both.

I'll get a fix in there for it. Thanks.
michael
@michael
04/27/15 07:31:11PM
7,839 posts

New Sitebuilder: Pagination icons not showing


Using Jamroom

Try resetting the icon cache:
ACP -> SYSTEM CORE -> TOOLS -> RESET CACHES -> Reset Icon Cache
  549