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

Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
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}




--

Ken Rich
indiegospel.net

updated by @ken-rich: 01/19/15 08:02:53PM
brian
@brian
11 years ago
10,148 posts
Hi Ken - I can answer your first question - would it possible however to create your other questions as different topics? It becomes very difficult to follow a single forum posts when there are many questions and a lot of back and forth.

#1 - yes - you can simply copy that template in an it will work.

Let me know if that helps.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 12/04/14 09:43:24AM
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
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
indiegospel.net
SteveX
SteveX
@ultrajam
11 years ago
2,584 posts
The issues are usually completely separate.

The confusion is not usually with the person answering support requests. But you can always confuse them by mixing up all of your confusion into one bundle. (actually, they usually just stop reading in order to prevent themselves from becoming confused).

It isn't specifically a programmer mindset. I imagine a mechanic in a garage deals with incoming information in a similar fashion. Just like a personal shopper, a soldier, a bus driver, a vicar... :)

It's not always possible, but if someone asking a whole bunch of questions can think about it and divide them up just a little bit, then that helps everyone involved.

When asking for help, often it's best to think about it a bit, break it down a bit, and formulate your request as best you can. That process is very helpful to you as well as the recipient of the ask. Maybe a bit like prayer (although as you can probably tell, that is outside my belief system so I'm not really qualified to comment on that).


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
paul
@paul
11 years ago
4,335 posts
Its really just a case of working efficiently and not scrolling up and down checking what the questions were.
Also, it makes it easier for other users who may have the same issue when they search the forum looking for answers.
It also helps if threads stay 'on topic'. Invariably, if a thread is hi-jacked, the originator is left high and dry!!


--
Paul Asher - JR Developer and System Import Specialist
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
You are right of course... Just playing with ya... lol


--

Ken Rich
indiegospel.net
SteveX
SteveX
@ultrajam
11 years ago
2,584 posts
You think?


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
11 years ago
10,148 posts
paul:
Its really just a case of working efficiently and not scrolling up and down checking what the questions were.
Also, it makes it easier for other users who may have the same issue when they search the forum looking for answers.
It also helps if threads stay 'on topic'. Invariably, if a thread is hi-jacked, the originator is left high and dry!!

Yep - this exactly :)


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
Ken_Rich:
I'll make new posts out of the other questions

Thanks Ken - it's appreciated! ;)


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
SteveX:
You think?

Sometimes... But it hurts when I do... lol


--

Ken Rich
indiegospel.net
SteveX
SteveX
@ultrajam
11 years ago
2,584 posts
No pain, no gain ;)


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
It took me a while but I finally have this code working in Ningja and Elastic through all media categories and Members.

I had to copy over some missing play button icons, index row files, and do mods on the index.tpl of the various modules.

However, I now have automated site wide featuring based on quotas, which is a good selling point for subscription services.


--

Ken Rich
indiegospel.net
michael
@michael
11 years ago
7,772 posts
I like it when the question is the title of the thread.

"How do I....."
"Can I use...."
"Can I copy template code and use it in other skins?"

It helps understand what has been solved when the thread is marked as solved and also helps understand what the request is before I enter the topic.

Try using the search function to find the answer to the next thing you think of asking and see which threads you open. Most likely it will be the ones that have titles related to what your searching for. :)
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
michael:
I like it when the question is the title of the thread.

"How do I....."
"Can I use...."
"Can I copy template code and use it in other skins?"

It helps understand what has been solved when the thread is marked as solved and also helps understand what the request is before I enter the topic.

Try using the search function to find the answer to the next thing you think of asking and see which threads you open. Most likely it will be the ones that have titles related to what your searching for. :)

Thanks - I updated the title accordingly...


--

Ken Rich
indiegospel.net