Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    1
    Member #
    29532
    Hello,

    I'm not sure if someone can help me but I'm having some problems with my new website. Basically I've been working with a coder, using my designs, to create it but he's gone a bit MIA and I have a problem with the blogs

    The designer put in one upload option in admin (via a radio button 'upload image' style) for photos to be inserted into the post, but I really need the option to be able to have multiple images per post. Of course I could upload them to the server then embed them manually, but I will be doing a few posts daily with 3 or 4 images so this wont be very efficient! Anyway I have very minimal HTML/CSS experience, but have managed to do two things so far:

    The first is that I added an extra 'upload' box, but because it is using the same code and routing to the same destination, one box overrides the other if I try and upload separate photos, and I can't work out what I need to change in the code to make them be separate.

    The second thing I did, giving up on the first idea, is use the code from the rest of the site, where the designer has put in separate pages for each post to upload images in admin. I haven't created a separate page but I have used the flash photo uploader that these pages use. This allows me to upload photos individually, but it was directed to another part of the site. When I redirected the uploads to site_images/blogs they came up as question marks, and I never actually got it to effect the blog post itself.

    Here is the original code for the upload box that the designer integrated:
    In the individual blog post page, it is coded as:

    <div class="b_image" >
    <a href="{$site_url}{$issueactive}/blogs/{$feature.seo_name}.html" class="oftext" >
    <img src="{$site_url}site_images/blogs/{$feature.image}" width="450" height="230" />
    </a>
    </div>

    and in admin, the upload option is coded as:

    <?php if( $bc_image != "" )
    {
    echo '<img src="../site_images/blogs/'.$bc_image.'" class="dynamicImg" id="delImg_image" width="75" height="76" />';
    $image_del1= '<img src="images/remove_img.png" class="delImg" id="'.$frmID.'" style="cursorointer" rel="blogs|image|'.$bc_image.'|../site_images/blogs/" />';
    }
    else {
    echo'<img src="images/no_image.png" class="dynamicImg"width="75" height="76" />';
    }
    ?>
    <input type="file" name="image" id="image" /><br />450 x 230 px<br />
    <?=$image_del1?>

    This is also in admin, which I think is connected, but makes little sense to me:
    if (isset($_POST["submit"]) ) {

    if (!count($errors)) {

    if ($_FILES["image"]["name"] != "") {
    $bc_image = time() . "_" . $_FILES["image"]["name"] ;
    if ($action1 == "edit") {
    deleteImage($frmID,"blogs","image");
    }
    move_uploaded_file($_FILES["image"]["tmp_name"], "../site_images/blogs/".$bc_image);
    makeThumbnail($bc_image,"../site_images/blogs/" , '', 245, 1000,'');
    $sql_image = " image = '$bc_image' , ";
    }

    Any help will be greatly appreciated! Happy to provide any additional info aswell. Attached is the admin situation at the moment.
    Many thanks
    Attached Images Attached Images

  2.  

  3. #2
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    That's a lovely site - I wish I could help you with your problem.

    I wonder why he didn't use WordPress for the blog? It has built-in functions to upload more than one image per post, and you can add tags, titles, captions if you want.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:16 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com