Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23329

    Hi,

    im using the 3 columns text and image in the index php file and I have 3 image files. They are named different but it still only shows the 1st image. The names are ouri_1, ouri_2 and ouri_3. But Only ouri_1 shows in all 3 places. Am I doing something wrong? Website is http://www.ouriscaterers.com. This is the index.php below:

    <?php get_header(); ?>

    <div id=”featured”>

    <div id=”featured_image”><?php

    ######################################################################

    # Get Images for the Basic Image Slider

    ######################################################################

    // these are the images for the jQuery slideshow, rendered with the help of the class

    // framework/theme_plugins/kriesi_menu_manager/kriesi_slider_display

    if(is_object($k_option)) $k_option->display(‘Mainpage Slider’); ?>

    </div><!–end featured_image–>

    </div><!–end featured–>

    <?php

    ######################################################################

    # Infotext with fallback message

    ######################################################################

    ?>

    <div id=”infotext”>

    <h2><?php echo $k_option; ?></h2>

    </div><!–end infotext–>

    <div id=”main”>

    <?php

    ######################################################################

    # 3 Boxes are created here, with the class “kclass_display_box” (located in framework/classes/)

    # content that is passed here is the html output if the

    # “output by html(default)” is choosen in the backend

    #

    # if you want to edit the html directly you can do this here. you can

    # enter your images directly as well if the size is already ok

    # or you might want to uncomment and change the paths of the placeholder

    # images i used here

    #

    ######################################################################

    // the kriesi_build_image function used here checks if the image should be resized.

    // it returns the resized image if the size is larger than the parameters provided

    // the function is located in framework/helper_functions

    $placeholder_image1 = get_bloginfo(‘template_url’).’/files/ouri_1.jpg’;

    #$placeholder_image2 = get_bloginfo(‘template_url’).’/files/ouri_2.jpg’;

    #$placeholder_image3 = get_bloginfo(‘template_url’).’/files/ouri_3.jpg’;

    $placeholder_image1 = kriesi_build_image(array(‘url’=>$placeholder_image1,’height’=>’124′,’width’=>’280′));

    #$placeholder_image2 = kriesi_build_image(array(‘url’=>$placeholder_image2,’height’=>’124′,’width’=>’280′));

    #$placeholder_image3 = kriesi_build_image(array(‘url’=>$placeholder_image3,’height’=>’124′,’width’=>’280′));

    $placeholder[1] = $placeholder_image1.’<h3>HTML Template „Display“</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo conse. Read more</p>’;

    $placeholder[2] = $placeholder_image1.’<h3>Amanded with Adobe Flash</h3><p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Read more</p>’;

    $placeholder[3] = $placeholder_image1.’<h3>jQuery to the rescue</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo conse.

    quat. Read more‘;

    //call class

    $boxes = new kclass_display_box(‘mainpage’,'mainpage_column’,'Mainpage Column’, $placeholder);

    $boxes-> prev_image(array(‘height’=>’124′,’width’=>’280′));

    $boxes-> display();

    ?>

    </div><!–end main–>

    <?php get_footer(); ?>

    #119391

    Also tried the solution from http://www.kriesi.at/support/topic/home-page-3-columns and it did not work. Box 2 and 3 just disappeared.

    #119392
    #119393

    Hey,

    Glad you fixed it. :))

    Regards,

    Ismael

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

The topic ‘HOME PAGE 3 DIFFERNT IMAGES ONLY DISPLAYING 1’ is closed to new replies.