solved Choosing a specific member's blog post to show on homepage

perrie
@perrie
9 years ago
435 posts
How do I set the quota/profile of a specific individual so that only their blog post is featured on the homepage?
updated by @perrie: 12/22/16 11:55:59AM
derrickhand300
@derrickhand300
9 years ago
1,353 posts
you could try this
{jrCore_list module="jrBlog" search1="_profile_id = 1" limit="1" group_by="_profile_id"}

and replace 'profile id=1' ( change the "1" to the profile id number of the person whose blogs you want to show...)
I am not sure if this is the correct way but tested it here and it worked for me...
Good luck!
updated by @derrickhand300: 08/19/15 11:23:04AM
paul
@paul
9 years ago
4,326 posts
Nothing to do with quotas - use the SiteBuilder listing widget. Set the List Module to Profile Blog, then use the search field(s) to select the profile and/or the blog. If its just one blog, set the Result Limit to one.


--
Paul Asher - JR Developer and System Import Specialist
paul
@paul
9 years ago
4,326 posts
Or, if its in a template, use Curtis's solution ;-)


--
Paul Asher - JR Developer and System Import Specialist
derrickhand300
@derrickhand300
9 years ago
1,353 posts
Yes I actually generated the code using site builder- then copied it in case she was not using the site builder...works both ways :)
perrie
@perrie
9 years ago
435 posts
OK so I did that, and nada. I did it the way Paul said to, but I even checked the code to what Curtis did, looked good and yet nada.
Here is the code I have:
{jrCore_list module="jrBlog" search1="_profile_id = 98" limit="1" group_by="_profile_id"}
What did I do wrong? (I say that a lot)
derrickhand300
@derrickhand300
9 years ago
1,353 posts
I know its probably a silly question but does profile #98 have nay blogs written yet? I used the code you posted and just changed the profile id # to 1 and it displays fine on my site
Makes me think that blog module is not active or no blogs written-usually something simple like that...
perrie
@perrie
9 years ago
435 posts
Curtis, I specifically chose that person to test since I knew that they had blogs imported already and indeed, there was a blog there before I tried this. so I am at a loss. I guess I will try with another member.
But what you described is something I could do! D'oh! :)
updated by @perrie: 08/19/15 07:29:49PM
derrickhand300
@derrickhand300
9 years ago
1,353 posts
:) I STILL do it all the time...good luck!
perrie
@perrie
9 years ago
435 posts
HA! Changed to a different member and it worked. Thanks for the help! Curious thing that it didn't work with the other member.
Update... that is an older blog post. How do I adjust this so that I get the latest?
updated by @perrie: 08/19/15 07:56:20PM
michael
@michael
9 years ago
7,714 posts
It wont show their blog posts if the profile is set to 'Private'. You can check that by going to the profile as the admin, then click on the settings 'gear' icon. If their 'profile active' is off, or 'profile privacy' is set to PRIVATE.

The docs for jrCore_list are here:

"{jrCore_list}"
http://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list

Try this code:
{jrCore_list module="jrBlog" search1="_profile_id = 98" limit="1" order_by="blog_publish_date numerical_asc"}

and the other direction is:
{jrCore_list module="jrBlog" search1="_profile_id = 98" limit="1" order_by="blog_publish_date numerical_desc"}

Those will show by the blog publish date. Or you could use the _created date if you wanted to order by the newest added to the system.

The difference is "user adds a blog set to become visible at christmas, then writes another blog post set to be published tomorrow.", the difference is when the blog is published, vs when the blog is created.
perrie
@perrie
9 years ago
435 posts
Ah now I see. I had it reversed in my mind about the numerical_asc" v numerical_desc".

Thanks for clarifying that!

I'm going to try it now! Thanks Michael!
updated by @perrie: 08/20/15 09:23:44AM
perrie
@perrie
9 years ago
435 posts
OMG Michael,

When I went to adjust it (using the template) the whole site builder glitched when I went back to check! (btw, your code worked!)
I have lost some of my widgets and others just moved.
Is there a way to restore?
paul
@paul
9 years ago
4,326 posts
Don't worry Perrie/Michael - I was working on your site at the same time and did that, as explained in my email.


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 08/20/15 10:29:28AM