Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Help:
Projam Theme Index Page Data Pull
Ekwe



Joined: 21 Feb 2009
Posts: 185

Posted: 10/07/13 17:06 
Where is the code being pulled from? Trying to edit the rows that show up on the index page of the theme


Code
      <div class="newest_body_3 mb30 pt20">
            <div id="newest_artists">

            </div>


This shows new artists, but from where?

Back to top
b360



Joined: 02 Feb 2011
Posts: 264

Posted: 10/07/13 20:05 
I don't have the ProJam skin available so I cant tell you what the files are but we can deffinatly use jrFlashback to explain this a little better.

Open up your jrFlashback skin and you will see .tpl files such as

music_chart_row.tpl
events_row.tpl
gallaries_row.tpl
artists_row.tpl

The files like the ones listed above have the code that take a request from a page like artist.tpl and process the data its requesting generating the rows using the function calls and paramaters.

so for the first example I will open artists_row.tpl

you should see code on line 7 similar to yours on ProJam these are opening <div> tags for your item.
now goto a line 8/56


Code
<a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$item._profile_id size="medium" crop="auto" class="iloutline" alt=$item.profile_name title=$item.profile_name style="max-width:290px;"}</a><br>


This uses the "jrImage_display" function to call items from the "jrProfile" module. and puts it to a clickable link because its being called in a <a href=". So in a search from artist.tpl its putting here the profile picure.

So hopefully to answer your question about the how this works in itself.

Its actually using code and generating the results in the rows on the fly from artist.tpl to artist_row.tpl and returned all when the page is loaded. The content for the rows (paramaters) are based on the properties listed with the function.

heres an example in artist.tpl of where it is sending a search to artist_row.tpl
on line 102/122



Code
{jrCore_list module="jrProfile" order_by=$order_by search1="profile_active = 1" search2="profile_quota_id in `$_conf.jrFlashback_artist_quota`" search3="profile_name like `$_post._1`%" tpl_dir="jrFlashback" template="artists_row.tpl" pagebreak=$_conf.jrFlashback_default_artist_pagebreak page=$_post.p}


above you will see code that calls a jrCore_list function using jrProfile. It is asking to list the results in order by

search1= "profile_active =1"
(so if the profile is active its included)

search2="profile_quota_id in `$_conf.jrFlashback_artist_quota"
(so its telling jrCore_list to use anything in the jrFlashback artist quota)

and so on...
the following parameters template="artist_row.tpl" is the location of where these results are sent..
then returns with the rows...

so everything added from the search will run and be processed through the "artist_row.tpl"
and returned to continue on with the rest of the page source on the artist.tpl page.

let me know if that helps you out.

Back to top
Douglas
Jamroom Team


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

Posted: 10/08/13 03:23 

Ekwe:
Where is the code being pulled from? Trying to edit the rows that show up on the index page of the theme


Code
      <div class="newest_body_3 mb30 pt20">
            <div id="newest_artists">

            </div>


This shows new artists, but from where?


This is using jQuery to load the div with a .tpl file. You can find the code that adds the .tpl file in the skins/jrProJam/js/jrProJam.js file. and the actual code, variables etc.., is in the skins/jrProJam/index_new_artists.tpl

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
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.