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    Topic: Force Show CB Tab
Pages: [1]   Go Down
  Print  
Author Topic: Force Show CB Tab  (Read 10190 times)
0 Members and 1 Guest are viewing this topic.
lohck
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: January 03, 2009, 12:12:49 »

Hi,

currently all the tabs in CB is showing even if there's 0 content ... forum, articles etc

Is there a way to show Jcomments tab even when there's no comments made by user?

So that it is standardised across all tabs
Logged
smart
Administrator
Hero Member
*****

Karma: 187
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #1 on: January 04, 2009, 19:48:52 »

The tab is invisble because it fully empty (as no comments found). We can fix it in JComments plugin by adding message then comments list is empy:

1. Open jcomments.plugin.php file
2. Replace code (and the end of file):

Code: (php)
$content .= '</ul>'."\n";
}
with
Code: (php)
$content .= '</ul>'."\n";
} else { $content .= 'Where are no comments at this time'; }
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Force Show CB Tab
 
Jump to: