BBPress Javier : Replies Created

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: addresstype show only 'work' #346173
    Javier
    Participant

    Hello Steven,

    I want to select only the work type, and then show on the user profile only type work

    if ($ atts ['show_addresses']) $ entry-> getAddressBlock (array ('format' => $ atts ['addr_format'], 'type' => 'work'));
    

    As I can put the address input is single type work and in select not show me all types

    cnHTML::field(
                            array(
                                'type'     => 'select',
                                'class'    => '',
                                'id'       => 'address['  . $token . '][type]',
                                'options'  => $addressTypes, (ONLY TYPE WORK)
                                'required' => FALSE,
                                'before'   => '',
                                'label'    => __( 'Address Type', 'connections' ),
                                'return'   => FALSE,
                            ),
                            $address->type
    

    Thanks!

    in reply to: Header Slim Plus – Show Category #346047
    Javier
    Participant

    Thank you very much Steven!

    in reply to: Header Slim Plus – Show Category #345882
    Javier
    Participant

    Hello Steven,

    Already you solved the links into categories. Then the code (class.entry-output.php)

     if ( empty( $atts['separator'] ) ) {
                $atts['list'] === 'unordered' ? $out .= '<ul class="cn_category_list">' : $out .= '
      '; foreach ( $categories as $category ) { $out .= 'term_id . '"><li class="cn_category" id="cn_category_' . $category->term_id . '">' . $category->name . ''; } $atts['list'] === 'unordered' ? $out .= '' : $out .= '
    '; } else { $i = 1; foreach ( $categories as $category ) { $out .= 'term_id . '">term_id . '">' . $category->name . ( count( $categories ) > $i++ && ! empty( $atts['separator'] ) ? $atts['separator'] : '' ) . ''; } } $out .= $atts['after']; return $this->echoOrReturn( $atts['return'], $out ); }

    I managed to make me a checkbox to filter by state, but need to make a CheckboxGroup to select more than one state. Could you help, please?

    My code:

    array(
    
    
        'name'       => 'States Group',
                        'show_label' => TRUE, // Show field label
                        'desc'       => 'field description',
                        'id'         => 'address[::FIELD::][state]',
                        'type'       => 'checkboxgroup',
                        'options'    => array(
                                'Barcelona'   => 'Barcelona',
                                'Madrid'   => 'Madrid',
                                'Sevilla' => 'Sevilla',
                            ),    
    

    Because it doesn’t work?

    Thank you very much!

    in reply to: Header Slim Plus – Show Category #345507
    Javier
    Participant

    Thank you!

    Can I put categories as permanent links?

    in reply to: Header Slim Plus #337810
    Javier
    Participant

    Thanks!!

    Perfect!

    in reply to: Header Slim Plus #337796
    Javier
    Participant

    Thank you very much.

    This would be the link: http://s574341219.mialojamiento.es/directorio-2

    I just need to know how I can put it all on one line

    in reply to: Header Slim Plus #337792
    Javier
    Participant

    I’m lost and I don’t know how modify the css to display all the data in a line.

    Thanks

    in reply to: Header Slim Plus #337759
    Javier
    Participant

    My php Code

     echo '<h3 class="" data-div-id="cn-detail-' , $uuid , '"' , ' style="border-bottom: ' , $atts['color'] , ' 1px solid ; color:#000000' , $atts['color'] , ';">' , $entry->getNameBlock( array( 'format' => $atts['name_format'] ) ) , $entry->getAddressBlock( array( 'format' => 'Localidad: %city% Provincia: %state%' , 'type' =>  $atts['address_types'] ) ) , '</h3>';
    
Viewing 8 posts - 1 through 8 (of 8 total)