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

This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.

The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, these ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Question New users need moderator approval for x first messages

More
16 years 11 months ago - 16 years 11 months ago #15410 by Matias
This hack modifies all forums to work as moderated forums for new users (with less than x posts).

During that time user gets this message when he writes a new message: "Your message has been successfully posted. It will be reviewed by a moderator before it will be published on the forum."

Also all posts made by anonymous users needs approval.

-- cut --

Edit default/post.php:

Find (around line 223):
Code:
$holdPost = $database->loadResult();

Add this just after that line:
Code:
if ($holdPost == 0) { $minposts = 10; if ($my->id) { $database->setQuery("SELECT (posts<{$minposts}) AS review FROM jos_fb_users WHERE userid={$my->id}"); $database->query() or trigger_dberror('Unable to load post count from current user.'); $holdPost = $database->loadResult(); } else if ($minposts > 0) { $holdPost = 1; } }

Now modify $minposts to have your preferred value.

That's it!

EDIT: added hold for anonymous users.
Last edit: 16 years 11 months ago by Matias.

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

More
16 years 11 months ago - 16 years 11 months ago #15412 by woonydanny
woohoo!!!!!!!!!!!!!!!!!!!!!

I will definately be implementing this very soon. This is something ive been wanting for ages.

thankyou!!!

(would be great down the track to have this as a backend config option) :)

still wish that i can write my forum signature through a jomsocial plugin and do it from my jomsocial profile :(
Last edit: 16 years 11 months ago by woonydanny.

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

More
16 years 11 months ago #15426 by Matias
Modified hack a bit to moderate all posts made by anonymous users, if $minposts > 0.

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

More
16 years 11 months ago #15437 by Matias
Unfortunately there will be no emails send to the moderators.. :( So the only way to see if there is new messages waiting is to enter into that forum.

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

More
16 years 2 months ago #40666 by FlashDeveloper
I am trying this approach for my Kunena Forum, but there is no post.php file in the default_ex folder, only in the default folder. When I try to switch templates from defualt_ex to defualt, I have no option for just "default". I imagine if I did, I could make those edits work.

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

More
16 years 2 months ago - 16 years 2 months ago #40684 by sozzled
FlashDeveloper wrote:

I am trying this approach for my Kunena Forum, but there is no post.php file in the default_ex folder, only in the default folder. When I try to switch templates from defualt_ex to default, I have no option for just "default". I imagine if I did, I could make those edits work.

That is correct: the file post.php resides in the folder ../components/com_kunena/template/default/ however this has nothing to do with the default template which actually doesn't even exist with new installations of K 1.5.8 on later.

This is a peculiarity of the design of Fireboard that has stayed with Kunena 1.5 (the behaviour changes from K 1.6). There is no need to even try to change templates. Make the changes to post.php; whatever you change there will apply to whatever template you are using. :)
Last edit: 16 years 2 months ago by sozzled.

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

Time to create page: 0.240 seconds