jonnsl / sliComments

Comments component for Joomla! 1.6
GNU General Public License v3.0
16 stars 5 forks source link

sliComments with latest Kunena and Joomla 3.2 #56

Closed szabolcstoth closed 10 years ago

szabolcstoth commented 10 years ago

Hi Jonnsl!

After I managed to change PHP 5.2 to 5.3 on my hosting, it solved my previous issue! Thanks. So I began to upgrade my site's another components, Kunena included (latest 3.0.x).

Then I ran again into a blank page, but I managed to find a solution and I want to share it to you. The new Kunena stores its library files in another directory, so I had to change a line in components/com_slicomments/models/comments.php:

require_once JPATH_ADMINISTRATOR.'/components/com_kunena/libraries/factory.php';

to:

require_once JPATH_LIBRARIES.'/kunena/factory.php';

And now your component works again like a charm. I hope this souliton helps when you are going to release a new version!

szabolcstoth commented 10 years ago

OK, maybe I found another bug connected with the previous mentioned Kunena problem.

If I submit a comment as anonymous, everything is great. If I submit a comment as a registered user, a blank dialogbox appears and the submitted comment won't show until I refresh the page. If a turn off "Link names to Kunena" and "Avatar to Kunena", the problem disappears.

jonnsl commented 10 years ago

I added support for kunena 3.0. Could you please test it: https://github.com/jonnsl/sliComments/archive/master.zip (unzip first) If everything is okay I will release a new version with this fix. Thanks

szabolcstoth commented 10 years ago

I uploaded only the modified components\com_slicomments\models\comments.php. Now I can submit comments with registered users too! Thanks.

By the way, I tried to install this whole package, but in this situation the site is not working:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /var/users/scifihu/firefly/web/administrator/components/com_slicomments/libraries/loader.php on line 10
jonnsl commented 10 years ago

ok, this should be fixed now. Could you test again, Thank you very much :heart:

szabolcstoth commented 10 years ago

And it's fixed! Installed the latest master.zip, and everything seems to be OK. I can submit comments as anonymous or as a registered user and there is no syntax error! ;)

jonnsl commented 10 years ago

Nice, I'm gonna release a new version soon.