solved JrproJam dark5

amwproductions
@amwproductions
9 years ago
185 posts
Wrong settings on index template if i see the events on scheudled and newest not list correctly and how i can set on blogs in the index so that i can add more users, here only the admin or one user can post on index? And how we can set blogs for song or video reviews that list here on rewievs so can one or more users only set here to list reviews
image.jpg
image.jpg  •  582KB


updated by @amwproductions: 04/25/15 09:37:10PM
douglas
@douglas
9 years ago
2,790 posts
amwproductions:
Wrong settings on index template if i see the events on scheudled and newest not list correctly

I'm not seeing an issue with this on my dev site, do you have a link we can check out?

amwproductions:how i can set on blogs in the index so that i can add more users, here only the admin or one user can post on index?

I'll get a fix in for this, right now, the ProJam skins are not setup for more than one blog ID.


amwproductions:And how we can set blogs for song or video reviews that list here on rewievs so can one or more users only set here to list reviews

Song and video reviews are comments left on the song or video detail page, if you want to use a blog for those reviews, you would have to modify the templates to change how those sections work. The current templates used for that are:

index.tpl, reviews.tpl and reviews_row.tpl

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 11/02/15 04:32:13PM
amwproductions
@amwproductions
9 years ago
185 posts
www.r-m-n.com yes correctly we would use a blog for song and video how we can change it?what we write into the template
douglas
@douglas
9 years ago
2,790 posts
amwproductions:
www.r-m-n.com yes correctly we would use a blog for song and video how we can change it?what we write into the template

Your events list like my events list, but I can see where there would be some confusion so I'll get that fixed up for the next ProJam release.

Making the song and video reviews use a blog instead of the comments could take a while, let me see what can be done.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
amwproductions
@amwproductions
9 years ago
185 posts
Many thx for your support we would be create a great music community jamroom rocks
douglas
@douglas
9 years ago
2,790 posts
Can you let me know if you know how to create custom form fields for the create/modify blog section?

The reason I ask, in order to do this we'll either need to use a blog category and setup a couple of new radio fields for the type, ie. song or video.

OR

We can use a category like song_review and video_review and not have to worry about the custom form fields.

Not having to create custom form fields is a little easier to explain and accomplish.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
amwproductions
@amwproductions
9 years ago
185 posts
The second option would be great for us, could you explain me how we have to insert this into the template? Thx
douglas
@douglas
9 years ago
2,790 posts
First you'll want to modify your skins/YOURSKIN/index.tpl and find this:

{if jrCore_module_is_active('jrComment')}
{jrCore_list module="jrAudio" order_by="audio_comment_count NUMERICAL_DESC" limit="5" template="reviews_row.tpl"}

then change it to this:

{if jrCore_module_is_active('jrBlog')}
{jrCore_list module="jrBlog" order_by="blog_comment_count desc" limit="5" search1="blog_category = song_review" template="reviews_row.tpl"}

Then modify your reviews.tpl and replace all the code in the template with this:

{if isset($_post.option) && $_post.option == 'videos'}
    {* assign var="com_mod" value="jrVideo" *}
    {assign var="search_tag" value="video"}
{elseif isset($_post.option) && $_post.option == 'songs'}
    {* assign var="com_mod" value="jrAudio" *}
    {assign var="search_tag" value="song"}
{/if}
{jrCore_list module="jrBlog" order_by="blog_comment_count desc" limit="5" search1="blog_category = `$search_tag`_review" template="reviews_row.tpl"}

Then modify your reviews_row.tpl and replace all the code in the template with this:

{if isset($_items)}
    {jrCore_module_url module="jrBlog" assign="burl"}
    {foreach from=$_items item="item"}
        <div class="body_5 page" style="padding:5px; margin-bottom:5px; margin-right:10px;">
            <h3 style="font-weight:normal;">
                <a href="{$jamroom_url}/{$item.profile_url}/{$burl}/{$item._item_id}/{$item.blog_title_url}">{$item.blog_title|truncate:35:"...":false}</a>
            </h3>
            <div style="font-size:12px;">{$item._created|jrCore_date_format}</div>
            <div style="font-size:11px;"><span class="highlight-txt"><i>By:</i></span>&nbsp;<a href="{$item.profile_url}"><span class="capital">{$item.profile_name}</span></a></div>
            {if jrCore_module_is_active('jrComment')}
                <br>
                <div class="float-right" style="padding-right:5px;">
                    <a href="{$jamroom_url}/{$item.profile_url}/{$burl}/{$item._item_id}/{$item.blog_title_url}#comments"><span class="capital">{jrCore_lang module="jrBlog" id="27" default="comments"}</span>: {$item.blog_comment_count|default:0}</a>
                </div>
                <div class="clear"></div>
            {/if}
        </div>
    {/foreach}
{else}
    <div class="body_5 page" style="padding:5px; margin-bottom:5px; margin-right:10px;">
        {jrCore_lang skin=$_conf.jrCore_active_skin id="166" default="Sorry! There are no reviews to list."}
    </div>
{/if}

and finally, to keep these blogs from showing in the user blog section, modify the site_blogs.tpl and find this:

{jrCore_list module="jrBlog" order_by=$order_by template="site_blogs_list.tpl" search1="blog_category not_in about,news,welcome,latest,featured,exclusive" pagebreak="9" page=$_post.p}

and replace it with this:

{jrCore_list module="jrBlog" order_by=$order_by template="site_blogs_list.tpl" search1="blog_category not_in about,news,welcome,latest,featured,exclusive,song_review,video_review" pagebreak="9" page=$_post.p}

be sure to clear your caches after making the changes.

To create a song or video review, just create a blog and make the category be either song_review or video_review.

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
amwproductions
@amwproductions
9 years ago
185 posts
Wow cool thx we test it and let you know how it works big thx
amwproductions
@amwproductions
9 years ago
185 posts
at this time we will test it , now works great job
douglas
@douglas
9 years ago
2,790 posts
Glad to hear it. :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags