- Thank you received: 0
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
-
Topic Author
- New Member
-
Less
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
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.
15 years 5 months ago #62188
by mijalis
Replied by mijalis on topic Topic Creation Behavior and Date of Posts
I could give it a try...but I am far from being a PHP expert...could you give me details?fxstein wrote: FYI anybody is welcome to help here. It's not rocket science, the basics are done, it just takes time and effort.
The topic has been locked.
15 years 5 months ago #62484
by foesl
Replied by foesl on topic Topic Creation Behavior and Date of Posts
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.
15 years 5 months ago #62500
by mijalis
Replied by mijalis on topic Topic Creation Behavior and Date of Posts
Yes you are right, I never understood this decision from the developers...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...
The topic has been locked.
15 years 5 months ago #62530
by sebkun
Replied by sebkun on topic Topic Creation Behavior and Date of Posts
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 :
2/ create the topic on the quickform processing. And it is here I need advice :
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 ?
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.
15 years 5 months ago #62537
by sebkun
Replied by sebkun on topic Topic Creation Behavior and Date of Posts
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