Kunena 7.0.2 Released

The Kunena team has announce the arrival of Kunena 7.0.2 [K 7.0.2] in stable which is now available for download as a native Joomla extension for J! 5.3.x/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 Topic Creation Behavior and Date of Posts

  • pedrohsi
  • pedrohsi's Avatar Topic Author
  • New Member
  • New Member
More
15 years 5 months ago #62115 by pedrohsi
Replied by pedrohsi on topic Topic Creation Behavior and Date of Posts
sadly, i can't code at all :)

in the meantime, i've clicked on every single article on my site and put those topics in a locked Archive category, as a temporary solution
The topic has been locked.
More
15 years 5 months ago #62188 by mijalis

fxstein wrote: FYI anybody is welcome to help here. It's not rocket science, the basics are done, it just takes time and effort.

I could give it a try...but I am far from being a PHP expert...could you give me details?
The topic has been locked.
More
15 years 5 months ago #62484 by foesl
In my opinion the option to create threads only when the first comment gets in is a must have. Because otherwise (specially if you have a large sites with many articles) the forum gets spammed by threads with no discussion at all...
The topic has been locked.
More
15 years 5 months ago #62500 by mijalis

foesl wrote: In my opinion the option to create threads only when the first comment gets in is a must have. Because otherwise (specially if you have a large sites with many articles) the forum gets spammed by threads with no discussion at all...

Yes you are right, I never understood this decision from the developers...
The topic has been locked.
More
15 years 5 months ago #62530 by sebkun
Hi,

I need an answer from the dev for this question. I'm willing to make the change myself for the creation of the topic on first post rather than on first display of the article.

Here what I wanna do in kunenadiscuss.php

1/ disable topic creation on display (that I know it works) like this :
Code:
} else if (! $result) { //$thread = $this->createTopic ( $row, $catid, $subject ); $this->debug ( "showPlugin: First hit, created new topic {$thread} into forum" );

2/ create the topic on the quickform processing. And it is here I need advice :
Code:
if ($botShowForm) { if (! $canPost && ! $this->_my->id) { $this->debug ( "showPlugin: Public posting is not permitted, show login instead" ); $login = KunenaFactory::getLogin (); $loginlink = $login->getLoginURL (); $registerlink = $login->getRegistrationURL (); $quickPost = JText::sprintf ( 'PLG_KUNENADISCUSS_LOGIN_OR_REGISTER', '"' . $loginlink . '"', '"' . $registerlink . '"' ); } else if ($canPost) { $this->debug ( "showPlugin: You can discuss this item" ); if (JRequest::getInt ( 'kdiscussContentId', 0, 'POST' ) == $row->id) { $this->debug ( "showPlugin: Reply topic!" ); $quickPost .= $this->replyTopic ( $row, $catid, $thread, $subject ); } else { $this->debug ( "showPlugin: Rendering form" ); $quickPost .= $this->showForm ( $row ); } } else { $this->debug ( "showPlugin: Unfortunately you cannot discuss this item" ); $quickPost .= JText::_ ( 'PLG_KUNENADISCUSS_NO_PERMISSION_TO_POST' ); } }

I have the feeling I must use "$thread = $this->createTopic ( $row, $catid, $subject ); in the last else statement or something like that. But I'm not sure, I have no test server for now so I won't try and break my site ! :-)

what do you think ?
The topic has been locked.
More
15 years 5 months ago #62537 by sebkun
perhaps I could do like this :
Code:
elseif (! $thread){ $thread = $this->createTopic ( $row, $catid, $subject ); } elseif ($canPost){ ...
The topic has been locked.
Time to create page: 0.488 seconds