Dang- this video came out a little blurry- if you need a better version let me know
https://youtu.be/O2JSxoQCcBI
Not included in the video- but here I think we have to remember we are editing a module- which could possible be broken with updates-I am not sure in some instances like this- so to be SAFE just make the code I am copying from jrComments module into a template and insert the code that way into your template page
so here is my code
{*Use this for comments under profile image on profile*}
<a id="{$jrComment.unique_id}_cm_section"></a>
<a id="comment_section"></a>
<div id="{$jrComment.unique_id}_comments" class="comment_page_section">
{* see if profile owners can delete *}
{assign var="profile_owner_id" value=0}
{if $_user.user_active_profile_id == $_item._profile_id && $_item.quota_jrComment_profile_delete == 'on'}
{assign var="profile_owner_id" value=$_item._profile_id}
{/if}
{if $jrComment.pagebreak > 0}
{jrCore_list module="jrComment" search1="comment_module = `$jrComment.module`" search2="comment_item_id = `$jrComment.item_id`" order_by="_item_id `$_conf.jrComment_direction`" profile_owner_id=$profile_owner_id pagebreak=$_conf.jrComment_pagebreak page=1 pager=true pager_template="comment_pager.tpl"}
{else}
{jrCore_list module="jrComment" search1="comment_module = `$jrComment.module`" search2="comment_item_id = `$jrComment.item_id`" order_by="_item_id `$_conf.jrComment_direction`" limit="500" profile_owner_id=$profile_owner_id}
{/if}
</div>
{if jrUser_is_logged_in() && $_user.quota_jrComment_allowed == 'on'}
<div id="comment_form_holder">
<div id="comment_form_section">
<div id="{$jrComment.unique_id}_cm_notice" class="item error" style="display:none;">
{* any comment error loads here *}
</div>
{if $_conf.jrComment_threading == 'on' && $_conf.jrComment_editor == 'on'}
<div id="comment_reply_to" class="item success" style="display:none;">
{* small note about how you are replying to when editor is enabled *}
{jrCore_lang module="jrComment" id=18 default="Your Reply To:"} <strong><span id="comment_reply_to_user"></span></strong>
</div>
{/if}
<div class="item" style="display:table">
<div style="display:table-row">
<div class="p5" style="display:table-cell;width:5%;vertical-align:top;">
{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$_user._user_id size="small" alt=$item.user_name class="action_item_user_img iloutline" _v=$_user.user_image_time}
</div>
<div class="p5" style="display:table-cell;width:95%;padding:5px 12px;">
<a id="cform"></a>
<form id="{$jrComment.unique_id}_form" action="{$jamroom_url}/comment/comment_save" method="POST" onsubmit="jrPostComment('#{$jrComment.unique_id}', 'undefined', 5000, '{$_conf.jrComment_editor}');return false">
<input type="hidden" id="{$jrComment.unique_id}_cm_module" name="comment_module" value="{$jrComment.module}">
<input type="hidden" id="{$jrComment.unique_id}_cm_profile_id" name="comment_profile_id" value="{$jrComment.profile_id}">
<input type="hidden" id="{$jrComment.unique_id}_cm_item_id" name="comment_item_id" value="{$jrComment.item_id}">
<input type="hidden" id="{$jrComment.unique_id}_cm_order_by" name="comment_order_by" value="{$_conf.jrComment_direction}">
<input type="hidden" id="comment_parent_id" name="comment_parent_id" value="0">
{if isset($_conf.jrComment_editor) && $_conf.jrComment_editor == 'on'}
{jrCore_editor_field name="comment_text"}
{else}
<textarea id="comment_text" name="comment_text" cols="40" rows="5" class="form_textarea {$jrComment.class}" style="height:64px;width:98%;{$jrComment.style}"></textarea><br>
{/if}
<div style="vertical-align:middle">
{jrCore_lang module="jrCore" id="73" default="working..." assign="working"}
{jrCore_image image="form_spinner.gif" id="`$jrComment.unique_id`_fsi" width="24" height="24" alt=$working style="margin:8px 8px 0px 8px;display:none"}<input id="{$jrComment.unique_id}_cm_submit" type="submit" value="{jrCore_lang module="jrComment" id="2" default="Save Comment"}" class="form_button {$jrComment.class}" style="margin-top:8px;{$jrComment.style}">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{elseif jrUser_is_logged_in() === false}
{jrCore_module_url module="jrUser" assign="url"}
<div class="item"><div class="p5"><a href="{$jamroom_url}/{$url}/login">{jrCore_lang module="jrComment" id="16" default="You must be logged in to post a comment"}</a></div></div>
{/if}
{*End of "Use this for comments under profile image on profile"*}
( Now the code above if you use it- its not going to work right off- when you add a comment and "save" it will give you an error message concerning an invaild module or something- this is where yo have to edit the smarty- sometimes combine it with other smarty in the same module and play with it to make it work---this can be the hardest part ( to me) and where I usually bring stuff like this to the forum to get help. )
When you get the code working correctly then do the below
Open notepad then paste this working code to a blank page in notepad and click "save as" and type the file name - in this instance I am using "jrComments_profile_comment_under_image.tpl" ( always end with .tpl if its a template file) then select "all file types" when saving.
Now go to your FTP and upload this notepad file to SKINS>Templates Folder
NOW you can remove ALL THAT code you copied from the "Comments" module and added to the "Online status" template- you wont need it anymore. ( I suppose you could just comment it all out if you wanted using the {* code is in here I want to comment out*}
Then when you get ready to insert it into some code somewhere you do not have to worry about an update breaking it- you can even edit it to display as many comments as you want 1-or 10 or more...just depends on how much space on the page you want to allocate to comments- I think you would insert the above into the place where you just removed all the code you copied over from COMMENTS module
Use something like this to insert it and adjust the variables you want:
{jrCore_list module="jrComment" template="jrComments_profile_comment_under_image.tpl" limit="6" pager="true" order_by="_created numerical_desc" }
That should put ALL that code back where you want it in a way that wont break on updates
That's really all I got for you on this- just MY way of trying to make all this make sense in a way that allows me to work in the platform with so little experience
I know I must have some of this wrong- but I welcome anyone to chime in and correct me so we can ALL learn
I do this stuff and sometimes get lost in it-I know I may have gone a little overboard with this-but forcing myself to actually outline the steps I use has also helped me today to understand exactly what MY process in all this is- so I apologize if there is more here than asked for
IF WE ARE LUCKY someone knowledgeable will edit the above code so it works for us
man I love it when that happens but these guys are like school teachers- they COULD give you the answers BUT they prefer to give you the HINTS to figure out the answers on your own...always disliked that part about teachers
updated by @derrickhand300: 03/31/15 12:36:17PM