Forum Activity for @michael

michael
@michael
04/28/15 05:34:17PM
7,832 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,832 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,832 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,832 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,832 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,832 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,832 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,832 posts

New Sitebuilder: Pagination icons not showing


Using Jamroom

Try resetting the icon cache:
ACP -> SYSTEM CORE -> TOOLS -> RESET CACHES -> Reset Icon Cache
michael
@michael
04/25/15 01:07:20AM
7,832 posts

Link audio genres to a search result


Design and Skin Customization

andrusito:....I'm working on this website: http://sermonescristianos.net/jr5/

The genre list is under "Usuarios En LĂ­nea" section (at bottom left)......

Did you remove it, I cant see it on the page anymore.

* I can see that you have a genre called "Congreso de mujeres".
* I can see that the search works for that genre when I put "Congreso de mujeres" into the search box at: http://sermonescristianos.net/jr5/audio/

The resulting url is:
http://sermonescristianos.net/jr5/audio/ss=Congreso%20de%20mujeres

That shows all the audio files from that genre in the list. You can use the same url structure in your FOREACH to link to that url.
michael
@michael
04/25/15 12:44:28AM
7,832 posts

creating a table in a blog post


Using Jamroom

For a full list of the available plugins for the TinyMCE editor, here are the officially supported ones:
http://www.tinymce.com/wiki.php/Plugins
  551