limited profiles with premium modules

resif
@resif
6 years ago
187 posts
can i make limited users..

like silver/ gold

can read blogs, can send direct message, can chat, can add friend/follow, or can see videos can discuss on forum and other every modules
updated by @resif: 01/08/19 04:27:57PM
paul
@paul
6 years ago
4,331 posts
Yes - Checkout Jamroom's Quota system.

https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/2985/understanding-profile-quotas

Hope that helps


--
Paul Asher - JR Developer and System Import Specialist
resif
@resif
6 years ago
187 posts
ok but i am asking also... not create a blog rights its about reading other blog rights....
paul
@paul
6 years ago
4,331 posts
resif:
ok but i am asking also... not create a blog rights its about reading other blog rights....

In that case you'll need to edit the appropriate templates in order to conditionally test the quota that the logged in user is in and only show the content if they are allowed to see it. For instance, the Blog index.tpl template looks like this -

{jrCore_lang module="jrBlog" id=29 default="Blogs" assign="page_title"}
{jrCore_page_title title=$page_title}
{jrCore_include template="header.tpl"}

<div class="block">

    <div class="title">
        {jrSearch_module_form fields="blog_title,blog_text"}
        <h1>{jrCore_lang module="jrBlog" id=29 default="Blogs"}</h1>
    </div>

    <div class="block_content">
        {jrCore_list module="jrBlog" search1="blog_publish_date <= `$smarty.now`" order_by="blog_publish_date desc" pagebreak=10 page=$_post.p pager=true}
    </div>

</div>
{jrCore_include template="footer.tpl"}

so to only show it to logged in users in profile quote 1, say, change it to -

{jrCore_lang module="jrBlog" id=29 default="Blogs" assign="page_title"}
{jrCore_page_title title=$page_title}
{jrCore_include template="header.tpl"}

{if jrUser_is_logged_in() && $_user.profile_quota_id == 1}

<div class="block">

    <div class="title">
        {jrSearch_module_form fields="blog_title,blog_text"}
        <h1>{jrCore_lang module="jrBlog" id=29 default="Blogs"}</h1>
    </div>

    <div class="block_content">
        {jrCore_list module="jrBlog" search1="blog_publish_date <= `$smarty.now`" order_by="blog_publish_date desc" pagebreak=10 page=$_post.p pager=true}
    </div>

</div>

{else}

  // Add some code to tell the users how to see this page

{/if}

{jrCore_include template="footer.tpl"}

Note the addition of the conditional tests.

The same principle applies to other blog templates and any other content you only want to show to specific profile quotas.

Hope that helps


--
Paul Asher - JR Developer and System Import Specialist
resif
@resif
6 years ago
187 posts
@paul thank you, looks easy...
resif
@resif
6 years ago
187 posts
@paul i dont know myabe this is absurd... but can i add a date this code after or before this date... i want to limited some user blogs.. so every user can will read only 3 articles for every authors and he will blocked after this date... whats is you solution for this... i thougt date solutions

{if jrUser_is_logged_in() && $_user.profile_quota_id == 1}
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
You'd need to build module which records what everyone reads to a datastore, then check that data against the date each time a user visits a blog post. If they pass the check show them the article, otherwise hide the article.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags