Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Help:
JR5 Creating Search For Genre
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 10/06/13 18:39 
Need some help guys. I want to create a new search page in PJ5 based on the old jr4 ranking system. What I am particularily looking for is a Genre Search. Right now there is no way to search a specific genre.

Below is the old JR4 code. How is the best way to go about converting this to JR5?


Code
<!-- Song Genre Search -->
   <form class="margin" method="post" action="{$JAMROOM_URL}/ranking.php">
   <input type="hidden" name="mode" value="song">
   <input type="hidden" name="order" value="3">
   <input type="hidden" name="search_area" value="genre_name">
   <input type="hidden" name="pagebreak" value="20">
   <input type="hidden" name="header_template" value="jr_ranking_header.tpl">
   <input type="hidden" name="footer_template" value="jr_ranking_footer.tpl">
   </input>

   <select class="select" name="search_string" style="width:100%; font-size:13px;" onchange="this.form.submit()">
   <option value="">Song Genres</option>
   <option value="">- All Genres</option>
      {jr_ranking mode="song" order="6" row_template="side_genre_song_row.tpl"}
   </select>
   </form>


Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 10/07/13 16:01 

Dazed:
....Right now there is no way to search a specific genre.....


Its real easy to search genres, or anything else, here's a quick setup:

url: yoursite.com/junk?genre=pop

Template:
/skins/yourskin/junk.tpl


Code
the list with a genre

{jrCore_list module="jrAudio" search="audio_genre = $genre"}

end


That will search any genre you add to the URL.


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 10/12/13 21:13 
Thanks Michael. If I want to create a side search form for this how would I go about doing it? I do not want people having to type the genre in the url lol. I would rather have a drop down list of all genres and a page next feature. This is what I am playing with so far.


<!-- Search Song Genre-->
<div class="content">
<div class="head-180">Genre Search</div>
<br />
<form class="margin" method="post" action="{$JAMROOM_URL}/junk">
<input type="hidden" name="module" value="jrAudio">
<input type="hidden" name="search_area" value="audio_genre">
<select class="select" name="search_string" style="width:100%; font-size:13px;" onchange="this.form.submit()">
<option value="">Select..</option>
{jrCore_list module="jrAudio" search="audio_genre = $genre" template="music_row.tpl"}
</select>
</form>
</div>



Last edited by Dazed on 10/15/13 04:01; edited 1 time in total
Back to top
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 10/15/13 04:00 
shameless bump

Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 10/15/13 05:42 
Hey Dazed,

I'll have a genre search drop down for the music page side section in the next release of ProJam/ProJamLight.

Hope this helps,
Douglas


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 10/15/13 05:47 

Douglas:
Hey Dazed,

I'll have a genre search drop down for the music page side section in the next release of ProJam/ProJamLight.

Hope this helps,
Douglas


oh you rock! Thanks Douglas. I have this working as a temporary for now so I can definitely get by until the release. Thanks again!

Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 10/15/13 05:50 
http://douglas.jamroomnetwork.com

user: testuser1
pass: test123

Check it out on the music page and let me know if that is what your looking for?


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 10/15/13 05:53 
You are down for Maint!

Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 10/15/13 05:57 
Yes, but you can still login with that info


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 10/15/13 05:59 
ok I did not think you would post login info to your test env. I am in.

Back to top
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 10/15/13 06:01 
That works Douglas! Can you change it so that it keeps the Genre Search Tab active on the tab after submitting? Also I am assuming that drop down auto populates. I probably have 100+ active genres. I am not sure how that will look hehe.



Last edited by Dazed on 10/15/13 06:02; edited 1 time in total
Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 10/15/13 06:02 
I'll change that users access after you've looked at it. Wink


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 10/15/13 06:06 
I'll see if I can keep the tab open.

Yes, the drop down auto populates, it is using a jrCore_list function to populate it so it will show all music genres being used on the site.


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Dazed



Joined: 22 Mar 2006
Posts: 4147

Posted: 10/15/13 06:06 

Douglas:
I'll see if I can keep the tab open.

Yes, the drop down auto populates, it is using a jrCore_list function to populate it so it will show all music genres being used on the site.



awesome!

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Help

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.