Forum Activity for @ken-rich

Ken Rich
@ken-rich
12/04/14 12:51:04PM
926 posts

Top Groups - Member Counts all at Zero


Using Jamroom

I have absolutely no idea how to fix this, so I just removed it for the time being.

Everyone of the "Top Groups" showing on the home page were showing a member count of zero.

{assign var="_members" value=$row.group_members|json_decode:true}
                {jrCore_lang  skin=$_conf.jrCore_active_skin id="58" default="members"}: {$_members|@count}<br>

If I go to the actual Groups page - http://indiegospel.net/groups they are all showing zero as well, so I will attempt to find where that is coming from and remove it too, until a fix is found.


updated by @ken-rich: 01/05/15 04:06:29AM
Ken Rich
@ken-rich
12/04/14 11:10:16AM
926 posts

Code Question 3


Using Jamroom

Again, here is the lovely content featuring code that works well and is truly impressive (at least to me). First of all the code looks like this:

 <div class="col12 last">
      {if jrCore_is_mobile_device()}<div class="menu_tab">
             <div id="default" class="p_choice fartist" onclick="jrLoad('#sm','{$jamroom_url}/index_artists');jrSetActive('#default');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="12" default="artists"}</div>
            <div id="s_song" class="p_choice fsong" onclick="jrLoad('#sm','{$jamroom_url}/index_songs');jrSetActive('#s_song');">Songs</div>           
            <div id="s_video" class="p_choice fvideo" onclick="jrLoad('#sm','{$jamroom_url}/index_videos');jrSetActive('#s_video');">Videos</div>                        <div class="clear"></div>        </div>

{else}

        <div class="menu_tab">
            <div id="default" class="p_choice fartist" onclick="jrLoad('#sm','{$jamroom_url}/index_artists');jrSetActive('#default');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="12" default="artists"}</div>
            <div id="s_song" class="p_choice fsong" onclick="jrLoad('#sm','{$jamroom_url}/index_songs');jrSetActive('#s_song');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="13" default="songs"}</div>
            <div id="s_soundcloud" class="p_choice fsoundcloud" onclick="jrLoad('#sm','{$jamroom_url}/index_soundclouds');jrSetActive('#s_soundcloud');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="61" default="Soundcloud"}</div>
            <div id="s_video" class="p_choice fvideo" onclick="jrLoad('#sm','{$jamroom_url}/index_videos');jrSetActive('#s_video');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="14" default="videos"}</div>
            <div id="s_youtube" class="p_choice fyoutube" onclick="jrLoad('#sm','{$jamroom_url}/index_youtubes');jrSetActive('#s_youtube');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="62" default="youtube"}</div>
            <div id="s_vimeo" class="p_choice fvimeo" onclick="jrLoad('#sm','{$jamroom_url}/index_vimeos');jrSetActive('#s_vimeo');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="63" default="vimeo"}</div>
            <div class="clear"></div>
        </div>{/if}
        <div class="inner mb8">
            <div id="sm"></div>
        </div>
    </div>
</div>

At the top of the index page, this code is used to call up the initialization protocol in Java...

<script type="text/javascript">
    $(document).ready(function(){
        jrSkinInit();
    });
</script>


In the java folder, the actual initialization protocol being called up looks like this:


function jrSkinInit() {
       jrLoad('#sm',core_system_url +'/index_artists');
 jrLoad('#top_members',core_system_url +'/top_members');
    jrLoad('#top_songs',core_system_url +'/top_songs');
    jrLoad('#top_groups',core_system_url +'/top_groups');
    jrLoad('#top_discussions',core_system_url +'/top_discussions');
    jrLoad('#top_notes',core_system_url +'/top_notes');
    jrLoad('#top_actions',core_system_url +'/top_actions');
    jrLoad('#top_blogs',core_system_url +'/top_blogs');
    jrLoad('#top_galleries',core_system_url +'/top_galleries');
    jrSetActive('#default');
}


If one were to install this on Ninga what would be the steps?

1. I would imagine all the java would need to be copied over.
2. index_artists_row.tpl as detailed in "Code Question 1" as well (separate thread).
3. Am I correct in thinking that the division id's and classes relate to CSS, therefore some CSS values would have to be copied over too?

What I mean by 3 is (if I am understanding correctly), the pointers would have to be changed to Ningja specific ones. That is, things like "div inner mb8 mr8" would have to be renamed to existing Ningja values, or those associated NingNova2 values would have to be incorporated into the Ningja stylesheets???
updated by @ken-rich: 01/09/15 06:55:58AM
Ken Rich
@ken-rich
12/04/14 11:04:25AM
926 posts

how do I choose a random quota_id from a set?


Using Jamroom

There is a lovely content featuring code that works well and is truly impressive (at least to me). First of all the code looks like this:

 <div class="col12 last">
      {if jrCore_is_mobile_device()}<div class="menu_tab">
             <div id="default" class="p_choice fartist" onclick="jrLoad('#sm','{$jamroom_url}/index_artists');jrSetActive('#default');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="12" default="artists"}</div>
            <div id="s_song" class="p_choice fsong" onclick="jrLoad('#sm','{$jamroom_url}/index_songs');jrSetActive('#s_song');">Songs</div>           
            <div id="s_video" class="p_choice fvideo" onclick="jrLoad('#sm','{$jamroom_url}/index_videos');jrSetActive('#s_video');">Videos</div>                        <div class="clear"></div>        </div>

{else}

        <div class="menu_tab">
            <div id="default" class="p_choice fartist" onclick="jrLoad('#sm','{$jamroom_url}/index_artists');jrSetActive('#default');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="12" default="artists"}</div>
            <div id="s_song" class="p_choice fsong" onclick="jrLoad('#sm','{$jamroom_url}/index_songs');jrSetActive('#s_song');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="13" default="songs"}</div>
            <div id="s_soundcloud" class="p_choice fsoundcloud" onclick="jrLoad('#sm','{$jamroom_url}/index_soundclouds');jrSetActive('#s_soundcloud');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="61" default="Soundcloud"}</div>
            <div id="s_video" class="p_choice fvideo" onclick="jrLoad('#sm','{$jamroom_url}/index_videos');jrSetActive('#s_video');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="14" default="videos"}</div>
            <div id="s_youtube" class="p_choice fyoutube" onclick="jrLoad('#sm','{$jamroom_url}/index_youtubes');jrSetActive('#s_youtube');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="62" default="youtube"}</div>
            <div id="s_vimeo" class="p_choice fvimeo" onclick="jrLoad('#sm','{$jamroom_url}/index_vimeos');jrSetActive('#s_vimeo');">{jrCore_lang  skin=$_conf.jrCore_active_skin id="21" default="featured"} {jrCore_lang  skin=$_conf.jrCore_active_skin id="63" default="vimeo"}</div>
            <div class="clear"></div>
        </div>{/if}
        <div class="inner mb8">
            <div id="sm"></div>
        </div>
    </div>
</div>

At the top of the index page, this code is used to call up the initialization protocol in Java for the above code...

<script type="text/javascript">
    $(document).ready(function(){
        jrSkinInit();
    });
</script>


In the java folder, the actual initialization protocol being called up looks like this:


function jrSkinInit() {
       jrLoad('#sm',core_system_url +'/index_artists');
 jrLoad('#top_members',core_system_url +'/top_members');
    jrLoad('#top_songs',core_system_url +'/top_songs');
    jrLoad('#top_groups',core_system_url +'/top_groups');
    jrLoad('#top_discussions',core_system_url +'/top_discussions');
    jrLoad('#top_notes',core_system_url +'/top_notes');
    jrLoad('#top_actions',core_system_url +'/top_actions');
    jrLoad('#top_blogs',core_system_url +'/top_blogs');
    jrLoad('#top_galleries',core_system_url +'/top_galleries');
    jrSetActive('#default');
}



At what point will it grab new content to display? It doesn't appear to be every page load like a simple rotor, as nothing changes over several page loads (at least in a short time frame).

If I reset the cache it immediately grabs new content. So what is actually controlling the initialization? How can it be altered to grab new random content from those assigned quotas every page load (like a rotor), or is that a bad idea in this system?


updated by @ken-rich: 01/08/15 12:52:32PM
Ken Rich
@ken-rich
12/04/14 11:00:41AM
926 posts

How Do I Modify Code - Featuring by Quota - Template Copying


Using Jamroom

Yes that helps - thanks!

I'll make new posts out of the other questions, but this is illustrative of something a friend of mine was remarking on, that I have noted myself and puzzled over (in an amused sort of way) lol

He was saying that if he has 10 different problems going on, he has learned to write 10 different tickets to the data center, spaced apart (waiting for one to be fixed before sending another), as to not confuse them.

It's almost as if something about the "mindset" required to be a programmer, narrows the focus to one single distinct issue at a time. Sequential lists tend to be truncated to one item, and the remainder discarded lol
Ken Rich
@ken-rich
12/04/14 09:40:09AM
926 posts

How Do I Modify Code - Featuring by Quota - Template Copying


Using Jamroom

OK, first of all I'm a non coding Ningster who is at least trying to "learn the ropes" so try not to laugh too hard lol

{jrCore_list module="jrProfile" order_by="_profile_id random" limit="4" quota_id="7,6" search1="profile_active = 1" template="index_artists_row.tpl" require_image="profile_image"}

Looking at this code above (from NingNova2), it seems to me the only thing missing to make this work in Ningja seems to be that index_artists_row.tmp is missing. So my first question is:

1) Can that template be copied to Ningja and will it work there (unaltered)? It looks like this.

{if isset($_items)}
<div class="container">
    <div class="row">
        {foreach from=$_items item="row"}
            <div class="col3{if $row@last} last{/if}">
                <div class="media_title center p5">
                    <a href="{$jamroom_url}/{$row.profile_url}">{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$row._profile_id size="medium" crop="auto" alt=$row.profile_name title=$row.profile_name class="iloutline img_shadow"}</a><br>
                    <br><a href="{$jamroom_url}/{$row.profile_url}">{$row.profile_name}</a>
                </div>
            </div>
        {/foreach}
    </div>
</div>
{/if}


updated by @ken-rich: 01/19/15 08:02:53PM
Ken Rich
@ken-rich
12/03/14 06:09:44PM
926 posts

Search Error


Using Jamroom

I'm wondering about jrningpage in the error because Paul was experimenting with something called Npages on my site, and then they were transferred to Pages when the Ning modules were finalized.

So for a while, I had two set's of pages, and two page creation modules. Hmmmmm....
Ken Rich
@ken-rich
12/03/14 05:03:45PM
926 posts

Search Error


Using Jamroom

That's funny especially since I wrote an article on that very topic lol

http://indiegospel.net/indiegospel/forum/christian-teachings/11/the-power-of-prayer

Seriously though, I've seen it come up on at least one other thing and an integrity check doesn't fix it...
Ken Rich
@ken-rich
12/03/14 12:20:46PM
926 posts

Search Error


Using Jamroom

RI: Query Error: Table 'indiegos_jr5.jr_jrningpage_item_key' doesn't exist
===============================================================================

I am seeing this error on a "blank" page when I search certain things. For instance, if I search for pra I will get the error, if I search for pray I won't.
updated by @ken-rich: 01/06/15 03:11:56AM
Ken Rich
@ken-rich
12/03/14 08:35:06AM
926 posts

Can't Find Forum Template


Design and Skin Customization

brian:

This is something we'll get added to the NIngJa skin so the forum looks more like a "site" forum.

Hope this helps!

Awesome thanks...
Ken Rich
@ken-rich
12/03/14 08:34:25AM
926 posts

Can't Find Forum Template


Design and Skin Customization

John Bizley:
It should be possible to target just the forum page by setting the css to read the url so it will only make those changes on that page.

John... Please teach me this trick... That would be useful in many places going forward...
  67