Support Forum ยป User Profile

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: โœ…Cant get image with php object #16114
    Yuttapong LaksaptoYuttapong Laksapto
    Participant

    yeah it's work!

    Thank you

    in reply to: โœ…Cant get image with php object #16094
    Yuttapong LaksaptoYuttapong Laksapto
    Participant

    this is my full code

    <?php
    $room_view_group = rwmb_meta( 'rk2019_project_room_preview' );
    if( ! empty( $room_view_group ) ) {
        $room_count = 0;
        foreach( $room_view_group as $room ) {
            $room_count++;
            $room_name = isset( $room['rk2019_room_peview_name'] ) ? $room['rk2019_room_peview_name'] : '';
            $room_img = isset( $room['rk2019_room_peview_img'] ) ? $room['rk2019_room_peview_img'] : array();
            $room_text = isset( $room['rk2019_room_peview_text'] ) ? $room['rk2019_room_peview_text'] : '';
            
            foreach( $room_img as $room_img_id ) {
                $room_show_img = RWMB_Image_Field::file_info( $room_img_id, ['size' => 'thumbnail'] );
            }
    ?>
    );">
        
            
                
                    
                
            </div>
        </div>
    </div>
    <?php
        }
    }
    ?>
    in reply to: โœ…Cant get image with php object #16093
    Yuttapong LaksaptoYuttapong Laksapto
    Participant

    sorry i not good with english

    my problem is i can't use
    <"$image = RWMB_Image_Field::file_info( $image_id, ['size' => 'thumbnail'] );"
    if use this code the page will show "http 500 internal server error"

    i guess the cause is php is less than 5.6 it not support object-orient right?

    sorry again for my poor english

Viewing 3 posts - 1 through 3 (of 3 total)