solved ProJam - Remove Profile on Blog

Dazed
Dazed
@dazed
10 years ago
1,022 posts
I created a "no index blog" profile in order to move a user so that their blogs are no longer displayed on the index page.

I added the below to the blogs.tpl file but I am still seeing the posts as an admin. What am I missing?

Thanks!!

search3="$item.profile_id not_in '30'"

updated by @dazed: 03/25/16 06:25:36AM
douglas
@douglas
10 years ago
2,797 posts
Try changing your search to this:

 search2="profile_id != 30"


Thanks!


--

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

updated by @douglas: 11/29/15 04:30:46AM
Dazed
Dazed
@dazed
10 years ago
1,022 posts
Thanks Douglas. Same results. On the index.tpl I have the below but as an admin I still see it. As a regular user I do not. I do not think the call in the blogs_row.tpl needs to be changed.

       <div id="blog_div" class="mb20">
        {jrCore_list module="jrBlog" order_by="_created desc" limit="5" search1="blog_category not_in about,welcome,latest,featured,exclusive" search2="profile_id != 30"  template="blogs_row.tpl"}
        </div>

The blogs.tpl has:

{if isset($option) && $option != 'all'}
    {jrCore_list module="jrBlog" order_by="_created desc" limit="5" search1="_user_id = 1" search2="blog_category = `$option`" search3="profile_id != 30'" template="blogs_row.tpl"}
{else}
    {jrCore_list module="jrBlog" order_by="_created desc" limit="5" search1="blog_category not_in about,news,welcome,latest,featured,exclusive" search2="profile_id != 30" template="blogs_row.tpl"}
{/if}
douglas
@douglas
10 years ago
2,797 posts
What you have should work, can you send me your URL, FTP and login info so I can take a look?

douglas[at]jamroom[dodt]net

Note that in this code:

{if isset($option) && $option != 'all'}
    {jrCore_list module="jrBlog" order_by="_created desc" limit="5" search1="_user_id = 1" search2="blog_category = `$option`" search3="profile_id != 30'" template="blogs_row.tpl"}
{else}
    {jrCore_list module="jrBlog" order_by="_created desc" limit="5" search1="blog_category not_in about,news,welcome,latest,featured,exclusive" search2="profile_id != 30" template="blogs_row.tpl"}
{/if}

The top jrCore_list function does not need the profile_id search since the first search only lists user_id 1 blogs, which is usually the site admin user_id. So the blogs.tpl should be this instead.

{if isset($option) && $option != 'all'}
    {jrCore_list module="jrBlog" order_by="_created desc" limit="5" search1="_user_id = 1" search2="blog_category = `$option`" template="blogs_row.tpl"}
{else}
    {jrCore_list module="jrBlog" order_by="_created desc" limit="5" search1="blog_category not_in about,news,welcome,latest,featured,exclusive" search2="profile_id != 30" template="blogs_row.tpl"}
{/if}



--

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

updated by @douglas: 11/30/15 05:17:37AM
Dazed
Dazed
@dazed
10 years ago
1,022 posts
I figured it out. Thanks for your help Douglas.
douglas
@douglas
10 years ago
2,797 posts
Glad to hear it. :)


--

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