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.
Idea Enabling Discuss bot in 3rd party components
15 years 6 months ago #67858
by gray
www.justPHP.net - Custom coding for Joomla!
Enabling Discuss bot in 3rd party components was created by gray
I successfully enabled the bot in a component (not com_content).
Still I run into a problem.
When the post is published, page is being reloaded. It's done by the code on lines 437-440
My problem is that $uri->toString () returns BOTH the SEF and not-SEF link as one string.
To fix the problem I used JURI::current().
It seems to work in articles also.
But my questions is why 2 links are returned in one string by $uri->toString ()?
Still I run into a problem.
When the post is published, page is being reloaded. It's done by the code on lines 437-440
Code:
// Redirect
$uri = JFactory::getURI ();
$app = JFactory::getApplication ( 'site' );
$app->redirect ( $uri->toString (), $result );
My problem is that $uri->toString () returns BOTH the SEF and not-SEF link as one string.
To fix the problem I used JURI::current().
It seems to work in articles also.
But my questions is why 2 links are returned in one string by $uri->toString ()?
www.justPHP.net - Custom coding for Joomla!
Please Log in or Create an account to join the conversation.
15 years 6 months ago - 15 years 6 months ago #68103
by gray
www.justPHP.net - Custom coding for Joomla!
Replied by gray on topic Re: Enabling Discuss bot in 3rd party components
Partially clarified the issue. It happens only with SEF enabled. For some components $uri->toString () return path + query. I think it's due to improper routing
When viewing an article, the [_query] is empty and only the path is returned, that is OK.
My workaround was to replace in
$uri->toString () with $uri->_uri
Code:
JURI Object ( [_uri] => http://111.blabla.com/blabla/blabla/591_blabla
[_scheme] => http [_host] => 111.blabla.com
[_port] => [_user] => [_pass] =>
[_path] => /blabla/blabla/591_blabla
[_query] => option=com_combla&view=blaview&layout=bla&id[0]=591 [_fragment] =>
[_vars] => Array ( [option] => com_combla [view] => blabiew[layout] => blalayout
[id] => Array ( [0] => 591 ) ) [_errors] => Array ( ) )
My workaround was to replace in
Code:
// Redirect
$uri = JFactory::getURI ();
$app = JFactory::getApplication ( 'site' );
$app->redirect ( $uri->toString (), $result );
www.justPHP.net - Custom coding for Joomla!
Last edit: 15 years 6 months ago by gray.
Please Log in or Create an account to join the conversation.
15 years 4 months ago #79158
by kayrozen
Replied by kayrozen on topic Re: Enabling Discuss bot in 3rd party components
Hi ! I would like to enable discuss bot 1.6.2 in EventList 1.1. Eventlist has already a comments implementation (Jcomments...ect)
Does your solution would work with my needs ?
Does your solution would work with my needs ?
Please Log in or Create an account to join the conversation.
15 years 4 months ago #79163
by kayrozen
Replied by kayrozen on topic Re: Modules and Plugins to be upgraded to 1.6.2
Hi ! I'm not much a coder but I am willing to test it and give you help.
I'm using K1.5 with a discussbot hacked plugin to display comments in eventlist 1.0.1 ( www.kunena.org/forum/113-user-written-pl...t-and-kunena-discuss ).
I'm looking forward to upgrade to K1.6.2 with the new discussion plugin and EventList 1.1.3 ( www.jlv-solutions.com/support/6-community-support-11x ) and searching some help to guide me integrate both. I know that Eventlist can use an external comment system (Jcomments, JOMcomments...) and im searching if it can work and how to do it (even if i need to maintain that hack, like i do with my actual solution)
Just drop me a line
I'm using K1.5 with a discussbot hacked plugin to display comments in eventlist 1.0.1 ( www.kunena.org/forum/113-user-written-pl...t-and-kunena-discuss ).
I'm looking forward to upgrade to K1.6.2 with the new discussion plugin and EventList 1.1.3 ( www.jlv-solutions.com/support/6-community-support-11x ) and searching some help to guide me integrate both. I know that Eventlist can use an external comment system (Jcomments, JOMcomments...) and im searching if it can work and how to do it (even if i need to maintain that hack, like i do with my actual solution)
Just drop me a line
Please Log in or Create an account to join the conversation.
15 years 1 month ago #88002
by stigzelm
Replied by stigzelm on topic Re: Enabling Discuss bot in 3rd party components
does this work for eventlist??
Please Log in or Create an account to join the conversation.
15 years 1 month ago #88709
by stigzelm
Replied by stigzelm on topic Re: Enabling Discuss bot in 3rd party components
How did you manage to get discuss bot integrated with another component? I would also like to have it integrated with eventlist.. Please tell me what you modified and how.
Thanks
Thanks
Please Log in or Create an account to join the conversation.
Time to create page: 0.308 seconds