Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    CommunityBuilder    Topic: [SOLVED] No "My Latest Comments" tab in CB - Joomla 3/CB 1.9.1
Pages: [1]   Go Down
  Print  
Author Topic: [SOLVED] No "My Latest Comments" tab in CB - Joomla 3/CB 1.9.1  (Read 30227 times)
0 Members and 1 Guest are viewing this topic.
sagaranvekar
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« on: February 10, 2014, 14:10:03 »

Hello,

I have a Joomla 3 website with Community Builder 1.9.1.

I have installed JComments and then installed "CB JComments Tab". At the beginning, i faced issues with it as it is not compatible with Joomla 3. Later i found a post which helped me to fix this issue.
(http://www.joomlatune.com/forum/index.php/topic,8521.msg24077.html#msg24077)

But now what i can see is, this plugin does not have any parameter and when i am on user profile page, it is not showing comments made by user on articles. As per this plugin description, it should show two tabs on cb profile:
http://www.joomlatune.com/n28-94.html
One with latest user's comments and one with comment user's profile.
But i have only one tab which allows me to comment on user's profile.

Please help me to get another tab on CB profile.

« Last Edit: February 10, 2014, 14:32:42 by sagaranvekar » Logged
sagaranvekar
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« Reply #1 on: February 10, 2014, 14:48:11 »

I solved this with following steps :

Open :
\components\com_comprofiler\plugin\user\plug_cbjcomments\cb.jcomments.xml

Then change code from :
Code:
<tabs>
<tab name="My latest comments" description="" class="JCommentsMyLatestComments" fields="0" position="cb_tabmain" displaytype="tab">
<params>
<param name="source" type="text" default="com_content" label="Source" description="Component or components names (separated by comma like com_content,com_k2,com_sobi2) to display comments from." />
<param name="count" type="text" size="2" default="10" label="Comments Limit" description="Enter the maximum number of comments you would like listed in the tab" />

<param name="orderby_object_title" type="list" default="1" label="Order By Object Title" description="Order commented objects by title (article title). Within one object (article) comments will be ordered by comment's date (descending).">
<option value="0">No</option>
<option value="1">Yes</option>
</param>

<param name="limit_comment_text" type="text" size="20" default="20" label="Comment Text Limit" description="Please enter in a numeric character limit value. The comment text will be trimmed to the number of characters you enter" />

<param name="show_comment_title" type="list" default="1" label="Comment Title" description="Show/hide comment title.">
<option value="0">Hide</option>
<option value="1">Show</option>
</param>

<param name="show_smiles" type="list" default="0" label="Smiles" description="Select whether to show smiles as text or as images">
<option value="0">Text</option>
<option value="1">Images</option>
<option value="2">Strip smiles</option>
</param>

<param name="show_readmore" type="list" default="1" label="Link 'Read more...'" description="If set to Show, the 'Read more...' link will be shown after comment's text.">
<option value="0">Hide</option>
<option value="1">Show</option>
</param>

<param name="readmore" type="text" default="Read more..." label="Text 'Read more...'" description="Custom text for 'Read more...' link" />
</params>
<fields>
</fields>
</tab>
<tab name="Comments" description="" class="JCommentsProfileComments" fields="0" position="cb_tabmain" displaytype="tab">
<fields>
</fields>
</tab>
</tabs>

to this code:

Code:
<params>
<param name="source" type="text" default="com_content" label="Source" description="Component or components names (separated by comma like com_content,com_k2,com_sobi2) to display comments from." />
<param name="count" type="text" size="2" default="10" label="Comments Limit" description="Enter the maximum number of comments you would like listed in the tab" />

<param name="orderby_object_title" type="list" default="1" label="Order By Object Title" description="Order commented objects by title (article title). Within one object (article) comments will be ordered by comment's date (descending).">
<option value="0">No</option>
<option value="1">Yes</option>
</param>

<param name="limit_comment_text" type="text" size="20" default="20" label="Comment Text Limit" description="Please enter in a numeric character limit value. The comment text will be trimmed to the number of characters you enter" />

<param name="show_comment_title" type="list" default="1" label="Comment Title" description="Show/hide comment title.">
<option value="0">Hide</option>
<option value="1">Show</option>
</param>

<param name="show_smiles" type="list" default="0" label="Smiles" description="Select whether to show smiles as text or as images">
<option value="0">Text</option>
<option value="1">Images</option>
<option value="2">Strip smiles</option>
</param>

<param name="show_readmore" type="list" default="1" label="Link 'Read more...'" description="If set to Show, the 'Read more...' link will be shown after comment's text.">
<option value="0">Hide</option>
<option value="1">Show</option>
</param>

<param name="readmore" type="text" default="Read more..." label="Text 'Read more...'" description="Custom text for 'Read more...' link" />
</params>

Once you do that, plugin parameters will be visible.
You can see them in Joomla admin
Components -> Community Builder -> Plugin Management -> CB JComments.
You will see those parameters now.

But now when you refresh My Account page on frontend, you will either see blank page or an error if Joomla error reporting is on. Error will look like this:

Code:
Fatal error: Call to undefined method JDate::toMySQL() in JOOMLA_PATH\components\com_comprofiler\plugin\user\plug_cbjcomments\cb.jcomments.php on line 65

Then open this file:
\components\com_comprofiler\plugin\user\plug_cbjcomments\cb.jcomments.php

Replace following code on line no. 65:
Code:
$now = $date->toMySQL();

with this line:

Code:
$now = $date->toSql();

Now i have plugin parameters as well as "My Latest Comments" tab on cb profile.

Hope this helps someone who faced issue with "CB JComments Tab" installed on Joomla 3.

Cheers!


Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    CommunityBuilder    Topic: [SOLVED] No "My Latest Comments" tab in CB - Joomla 3/CB 1.9.1
 
Jump to: