solved ProJam Index Page - Reviews & Articles Tab

Dazed
Dazed
@dazed
11 years ago
1,022 posts
I am working on a site and I would like to change the Song Review Tab on the Projam Index Page to be a Product Review Tab. I am having trouble doing this.

Suggestions??

Thanks :)
updated by @dazed: 05/04/14 04:33:16PM
michael
@michael
11 years ago
7,772 posts
What have you tried so far?
douglas
@douglas
11 years ago
2,797 posts
And what trouble are you having?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Dazed
Dazed
@dazed
11 years ago
1,022 posts
For products, what is the call/module? Do I need to change the reviews_row.tpl to support this change? Basically I just want to swap songs reviews for product reviews.
douglas
@douglas
11 years ago
2,797 posts
I believe products would be the jrStore module, and you would need to modify the index.tpl, reviews.tpl and reviews_row.tpl.

index.tpl around lines 158 and 181
                    <div id="rdefault" class="p_choice_reviews" onclick="jrLoad('#reviews_div','{$jamroom_url}/reviews/songs');jrSetActiveReviews('#rdefault');" style="font-size:10px;font-weight:bold;padding-left:4px;padding-right:4px;">{jrCore_lang skin=$_conf.jrCore_active_skin id="13" default="Songs"}</div>

.......

            {jrCore_list module="jrAudio" order_by="audio_comment_count NUMERICAL_DESC" limit="5" template="reviews_row.tpl"}


That is basically the tab and the jrCore_list function for the Song Reviews.

And you should be able to tell what needs to be changed in the reviews.tpl and reviews_row.tpl.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Thanks all. I have it working 50%. On the initial page load (refresh index) it comes up with the "Sorry! There are no reviews to list." but if I click the tab I see the product review.

Suggestions?
douglas
@douglas
11 years ago
2,797 posts
Did you modify the jrCore_list function in the index.tpl file?

{jrCore_list module="jrAudio" order_by="audio_comment_count NUMERICAL_DESC" limit="5" template="reviews_row.tpl"}



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Dazed
Dazed
@dazed
11 years ago
1,022 posts
This is what I have there now Douglas -
{jrCore_list module="jrStore" order_by="item.product_comment_count NUMERICAL_DESC" limit="5" template="reviews_row.tpl" }
Dazed
Dazed
@dazed
11 years ago
1,022 posts
ok I figured it out. I had to change it to product_comment_count.

Thanks all!
douglas
@douglas
11 years ago
2,797 posts
Glad you got it figured out. :)


--

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