#128 Multiple Users Lists Select Dropdown missing

10 years 11 months ago #81640 by spikec
Using: J1.5.8/CB1.2RC4/No external SEF

I have 3 published lists and created a link to 'CB Users Lists' using the menu manager. The menu item link pulls up the default list only - no way to select other published lists. What happened to the little dropdown menu on the List page that allows users to select a list to view?


EDIT: Added # and improved subject for forum search results

Post edited by: beat, at: 2008/12/09 01:38
10 years 11 months ago #81669 by beat
Something swallowed the count on its way to the template...

CB 1.2 RC 4 has more templating control.

Assigning id #128

crosslinking with this seems-to-be-related thread:

www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/id,81581/catid,70/

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
10 years 11 months ago #81682 by beat
Fix for that is very simple:

open components/com_comprofiler/plugin/templates/default/default.php

(btw say... "aha... that's where the view is happening now" ;) ).

go to line 290 and 296, and replace "> 1" by "> 0" like this:

this:

[code:1] <div class="cbUserListHeadTitle">
<?php
if ( ( count( $this->lists ) > 1 ) || $this->searchTabContent ) {
?>

<div class="cbUserListChanger">
<?php
// selector for user-list:
if ( count( $this->lists ) > 1 ) {
foreach ( $this->lists as $kname => $ncontent ) {
?>
[/code:1]

becomes that:

[code:1] <div class="cbUserListHeadTitle">
<?php
if ( ( count( $this->lists ) > 0 ) || $this->searchTabContent ) {
?>

<div class="cbUserListChanger">
<?php
// selector for user-list:
if ( count( $this->lists ) > 0 ) {
foreach ( $this->lists as $kname => $ncontent ) {
?>
[/code:1]

Good find, sorry about that, but think the much demanded templating benefits are worth the change hassle...

Moving thread to identified issues.

Thanks for reporting B)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
Moderators: beatnantkrileon
Time to create page: 0.410 seconds
Facebook Twitter Google LinkedIn