D7B4: Categories still not working on Blogs

Hi,

 

I have been testing Blogs and Categories.

I have added my first blog post and added it to the common category called "Baby Blogs". This can be seen on the index page of my website http://socialathens.com in the Blogs block. The entry displays that it is filed under the "Baby Blogs" category.

I go to the Categories Menu and select each of the following sub menu categories:

"All Categories"

This displays empty having added my blog entry. I am not sure what should be on this section.

"Common Categories"

"Baby Blogs" shows the number 0 i.e. "Baby Blogs(0)". Should I be expecting "Baby Blogs(1)" if I have added my blog to this category? When I click on "Baby Blogs(0)" is shows my blog post and indicates it is filed under the "Baby Blogs" category.

"User Categories"

I have added no user categories yet so cannot test this.

"Calendar"

There is nothing dislayed here. The calendar entry for August 21st contains no text but the background colour seems slightly different to the other dates.

"Search"

I enter in the keyword "Baby" as my blog entry and category contains the word baby. No search results were found.

I did my testing using IE8 and Fire Fox 3.0.13

Paul

Quote · 24 Aug 2009

I have seen more recent forum posts have tickets raised and be fixed, whilst no one has looked into mine. They may have assumed I was making it up, but these issues were in beta 2, 3 and 4 and I reported them as such. I am not going to go away. I have looked into it myself and this is what is happening:

 

In BxDolCategories.php there is a function called  _insertTags. This function contains the following line of code:

 

$aTagsSet['status'] = getParam($this->sAutoApprovePrefix . $aTagsSet['type']) == 'on' ? 'active' : 'passive';

 

The value of $aTagsSet['status'] is being set to passive which gets written to the sys_categories table for the category you are assign to your blog posting. This is because $this->sAutoApprovePrefix . $aTagsSet['type'] = category_auto_app_bx_blogs. This parameter does not exist in the the sys_options table or cache file. What does exist is category_auto_app_blogs. Looking at the naming conventions category_auto_app_blogs should probably be renamed to category_auto_app_bx_blogs. Here is what you have to do to address the issue in your dolphin source code:

 

Amend follow line in file modules/boonex/blogs/install/sql/install.sql

 

('category_auto_app_blogs', 'on', @iGlCategID, 'Autoapprove categories of blog posts', 'checkbox', '', '', 8),

to

 

('category_auto_app_bx_blogs', 'on', @iGlCategID, 'Autoapprove categories of blog posts', 'checkbox', '', '', 8),

 

Amend follow line in file cache/sys_options.php

 

'category_auto_app_blogs' => 'on',

 

to

 

'category_auto_app_bx_blogs' => 'on',

 

That fixes all the issues I mentioned in my posting.

 

Paul

 

 

Quote · 25 Aug 2009

Thanks, accepted

http://www.boonex.com/trac/dolphin/ticket/1028

Quote · 26 Aug 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.