solved Index Page Featured Profiles

ukdenny
@ukdenny
6 years ago
293 posts
When a new profile was created it automatically displayed on the Index page (1 of 4 in Flashback Skin) Nothing was added to the backroom where you can choose 4 profiles and it was blank.
Now only one shows up so I have added 4 to balance it up.
But I would like these to interchange from all the profiles, is there an easy way of doing this.
updated by @ukdenny: 05/22/18 12:27:51AM
michael
@michael
6 years ago
7,692 posts
flashback asks you to set settings in the ACP -> SKINS -> FLASHBACK -> GLOBAL CONFIG to choose which profile ids show on the front page in that area.

If you just want random ones you can remove the profile setting restriction by chaning:
{jrCore_list module="jrProfile" order_by="_profile_id asc" profile_id=$_conf.jrFlashback_profile_ids template="index_artists_row.tpl" limit="4"}
to
{jrCore_list module="jrProfile" order_by="_profile_id asc" template="index_artists_row.tpl" limit="4"}

in the index.tpl file
paul
@paul
6 years ago
4,325 posts
Haven't looked but guessing that if the 'featured' field is blank, Flashback shows the four latest profiles by default, which lines up with what you describe.
Quote: But I would like these to interchange from all the profiles, is there an easy way of doing this
Are you asking to pick four random profiles?
Have just looked at the Flashback index.tpl template and see this code -
                    {if isset($_conf.jrFlashback_profile_ids) && strlen($_conf.jrFlashback_profile_ids) > 0}
                        {jrCore_list module="jrProfile" order_by="_profile_id asc" profile_id=$_conf.jrFlashback_profile_ids template="index_artists_row.tpl" limit="4"}
                    {elseif isset($_conf.jrFlashback_require_images) && $_conf.jrFlashback_require_images == 'on'}
                        {jrCore_list module="jrProfile" order_by="_profile_id numerical_desc" quota_id=$_conf.jrFlashback_artist_quota search1="profile_active = 1" template="index_artists_row.tpl" limit="4" require_image="profile_image"}
                    {else}
                        {jrCore_list module="jrProfile" order_by="_profile_id numerical_desc random" quota_id=$_conf.jrFlashback_artist_quota search1="profile_active = 1" template="index_artists_row.tpl" limit="4"}
                    {/if}
So that is where the template is checking for the featured field and showing either those profiles or the latest. But there looks to be a third 'random' option, so to get that, empty the featured field and turn the require images off.
Alternatively, if you permanently want random profiles WITH images, replace that whole section with -
{jrCore_list module="jrProfile" order_by="_profile_id numerical_desc random" quota_id=$_conf.jrFlashback_artist_quota search1="profile_active = 1" template="index_artists_row.tpl" limit="4" require_image="profile_image"}
hth


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
293 posts
Michael, I did what you said, run the reset cache, integrity check and nothing has changed.
{jrCore_list module="jrProfile" order_by="_profile_id asc" template="index_artists_row.tpl" limit="4"}

Brian I turned the require images to off and nothing happend.
The Global Config is blank with no profiles selected however the index page displays one profile for some reason
updated by @ukdenny: 02/20/18 05:32:07AM
paul
@paul
6 years ago
4,325 posts
Try my suggestion above. In the index.tpl template comment out the 'if' block and replace it with
{jrCore_list module="jrProfile" order_by="_profile_id random" search="profile_active = 1" template="index_artists_row.tpl" limit="4" require_image="profile_image"}
Note that for now I've taken out the quota condition. Add that back in if need be when its working.


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
293 posts
Sorry Brian, I am getting a little confused. Your last suggestion, which line is it please 13,15 or 17. Also do I need to againturn the required images to "off"
updated by @ukdenny: 02/20/18 05:55:57AM
paul
@paul
6 years ago
4,325 posts
I've done what I suggested for you here - https://songblitz.com/core/template_modify/skin=jrFlashback/id=20


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
293 posts
Paul, you are a star, most greatful. Thanks
updated by @ukdenny: 02/20/18 07:36:00AM

Tags