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 third-party extensions (e.g. JomSocial, Community Builder, etc.) 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, the ideas in these topics may not work with later versions and, for that reason, the topics are locked.

Question ObjectClarity Kunena Discussbot released!

More
16 years 9 months ago #22481 by NateLogan
Possible solution:
In "components\com_kunena\lib\kunena.category.class.php" add highlited row:
[IMG


In "components\com_kunena\kunena.php" also add highlited row:
[IMG


Basically as someone said before, add that row ($kunena_db = &JFactory::getDBO();) everywhere in kunena code, where you can find this variable: $kunena_db. At least it does seems to work this way (I did not tested it completely inside out).

But it would be nice to have official 1.5 native discuss bot :)
The topic has been locked.
More
16 years 9 months ago #22486 by kmilos
@NateLogan
Don't think you should need to change any of the main Kunena files, $kunena_db is already properly defined in components/com_kunena/class.kunena.php...

@PGLion
The difference is that you should here of course use $database instead of $kunena_db.

This is the patch that seems to do the job for me:
Code:
--- kdiscussbot.php.bak 2009-03-16 22:04:34.000000000 +0000 +++ kdiscussbot.php 2009-07-05 12:18:10.770903743 +0100 @@ -1555,7 +1555,7 @@ * Determine if the user is a Moderator on this forum. *****************************************************************************/ function kdbIsModerator($myId, $catId) { - global $database, $mosConfig_absolute_path, $acl; + global $mosConfig_absolute_path, $acl; $permsFile = $mosConfig_absolute_path.'/components/com_kunena/lib/kunena.permissions.php'; if (file_exists($permsFile)) { @@ -1581,6 +1581,7 @@ $aro_group = $acl->getAroGroup($myId); $is_admin = (strtolower($aro_group->name) == 'super administrator' || strtolower($aro_group->name) == 'administrator'); + $database = &JFactory::getDBO(); $obj_fb_cat = new jbCategory($database, $catId); $is_moderator = fb_has_moderator_permission($database, $obj_fb_cat, $myId, $is_admin); }
The topic has been locked.
More
16 years 9 months ago #22929 by wvrapscene
Joomla 1.5.12 Legacy Mode
PHP 5
Kunena 1.5.3
Kunena Discussbot 1.0.8g
Community Builder 1.2.1

My site is:
www.WVRapScene.com/main/

I have the Discussbot Auto Discuss Link Enabled.

If users are NOT logged in, the error is not displayed.

When a user logs in, they receive this error message above each frontpage article:
Code:
Warning: Missing argument 1 for database::loadObject(), called in /home/content/j/h/a/jhamrick304/html/main/components/com_kunena/lib/kunena.category.class.php on line 47 and defined in /home/content/j/h/a/jhamrick304/html/main/plugins/system/legacy/mysql.php on line 44

The Debug information is....
Code:
[K-DISCUSSBOT DEBUG: Discussbot called with row->id=47. ] [K-DISCUSSBOT DEBUG: Article is being displayed on the Front Page ] [K-DISCUSSBOT DEBUG: Using Auto-Mode to discuss article in FB CategoryId:4 ] [K-DISCUSSBOT DEBUG: Rendering the bot... ] [K-DISCUSSBOT DEBUG: Kunena Config loaded from the DB. ] [K-DISCUSSBOT DEBUG: Kunena Config(CKunenaConfig,DB): discussbot=[1] ] [K-DISCUSSBOT DEBUG: Kunena Config(CKunenaConfig,DB): joomlastyle=[0] ] [K-DISCUSSBOT DEBUG: Kunena Config(CKunenaConfig,DB): template=[default_ex] ] [K-DISCUSSBOT DEBUG: Kunena Config(CKunenaConfig,DB): board_ofset=[0] ] [K-DISCUSSBOT DEBUG: Found the FB threadId in the cross reference table(#__fb_discussbot). ] Warning: Missing argument 1 for database::loadObject(), called in /home/content/j/h/a/jhamrick304/html/main/components/com_kunena/lib/kunena.category.class.php on line 47 and defined in /home/content/j/h/a/jhamrick304/html/main/plugins/system/legacy/mysql.php on line 44 [K-DISCUSSBOT DEBUG: User is NOT a moderator. ] [K-DISCUSSBOT DEBUG: Kunena Config(CKunenaConfig,DB): pubwrite=[0] ] [K-DISCUSSBOT DEBUG: User has permission to post in FB category 4. ] [K-DISCUSSBOT DEBUG: User is logged in. ] [K-DISCUSSBOT DEBUG: Article Id is 47 ] [K-DISCUSSBOT DEBUG: Counted 1 actual post(s) in this thread #3. ] [K-DISCUSSBOT DEBUG: Displaying Intro, link to the forum only. ] [K-DISCUSSBOT DEBUG: Counting posts with:SELECT count(id) from #__fb_messages where hold=0 AND thread!=id AND thread=3 ] [K-DISCUSSBOT DEBUG: botCopyContent:2 ] [K-DISCUSSBOT DEBUG: Counted 0 displayed posts in this thread with holds and the copied content removed. ] [K-DISCUSSBOT DEBUG: Building a simple link to create new posts. ] [K-DISCUSSBOT DEBUG: Showing QuickPost below the article comments. ] [K-DISCUSSBOT DEBUG: Done rendering the bot... ] [K-DISCUSSBOT DEBUG: Removed the tag... ] [K-DISCUSSBOT DEBUG: botkReadMore Called with row->id=47. ] [K-DISCUSSBOT DEBUG: Article is being displayed on the Front Page ] [K-DISCUSSBOT DEBUG: ShowOnFrontPage is set to True. ]

Can somebody help me please? I posted in the ObjectClarity.com Forums 5 days ago... and nobody has replied or helped me! Only other people having the same problem!
The topic has been locked.
More
16 years 9 months ago #22940 by sozzled
NateLogan wrote:

But it would be nice to have official 1.5 native discuss bot :)

Yes, I agree. The current version of the ObjectClarity Discussbot (released 16 March 2009) is not J! 1.5 natively-compatible.
The topic has been locked.
More
16 years 9 months ago #22943 by 4umfreak
I posted a 1.0.8h version that includes the above mentioned fix and a fix to the borked emoticons... It's *only* for Kunena v1.5.3+ but still requires Legacy mode.

www.objectclarity.com/index.php?option=c...&func=fileinfo&id=30

It's pretty much a rewrite to go Native mode properly...

-Mark
The topic has been locked.
More
16 years 9 months ago - 16 years 9 months ago #22945 by sozzled
It was a nice feature when I tried it out. As my goal has always been, like many Kunena users, to get to the stage where I could disable J! 1.5 "legacy" mode, I have been steadily upgrading all my components to J! 1.5 "native" status.

Depending on one's need, having the Discussbot component could be quite important. In my case no-one made use of the feature on any of my sites and I decided to disable the plugin. It's a pity, but I'm comfortable with the choice that I made. Other people have their different needs and, if having a Discussbot is a must-have requirement, then they'll have to compromise by leaving "legacy" mode enabled ... at least until a new, J! 1.5 native version is developed.

Thanks for the update. :)
Last edit: 16 years 9 months ago by sozzled.
The topic has been locked.
Time to create page: 0.271 seconds