Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Limit on number of posts, based on user type...

More
14 years 4 months ago #113452 by gilliad
Hi...

Is it possible, to restrict the number of posts depending on user type??

Eg.:

registered users = max 10 posts
silver users = max 200 posts
gold users = unlimited posts

/gilliad

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #113457 by sozzled
No, this is not possible without hacking the source code. Perhaps you or someone might be able to do that.

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #113464 by gilliad
Maybe,

is it the post.php file that needs to do the checking??

Just so i dont spend to much time searching

Please Log in or Create an account to join the conversation.

  • C0n
  • C0n's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Only the strongest will survive
More
14 years 4 months ago - 14 years 4 months ago #113473 by C0n
What izactly are you trying to limit the users access to based on post count ?

I wrote a hack a while ago that stops users with low post counts accessing certain forum categories.
www.kunena.org/forum/114-user-written-ha...st-count-restriction

If you require it for another purpose let me know.

Also based on user type is a easy solve.
Code:
$user =& JFactory::getUser(); //This would be for guest users if($user->get('guest') == 1) { } //This would be for registered users if($user->get('guest') == 0) { } // This would be super admins if($user->get('gid') == 25) { }

I mostly use the gid's from sessions to control user access.
Code:
if($user->get('gid') == 25) { } gid = 18 //is a registered user gid = 19 //is a author gid = 20 //is a editor gid = 21 //is a publisher gid = 23 //is a manager gid = 24 //is a administrator gid = 25 //is a super admin gid = 1 //is a guest gid = 0 //is not a guest
Last edit: 14 years 4 months ago by C0n.

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #113798 by gilliad
I want it so that basic members can not post more than 5 posts in the forum, after the 5 posts, they are blocked for writing, they can only read.

paying members can post more depending on their membership.

I am going to take a look at this later today.

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #114280 by gilliad
Got it fixed, it is an ugly hack but it works...

Please Log in or Create an account to join the conversation.

Time to create page: 0.250 seconds