Results 1 to 3 of 3

Thread: Image Magnify v1.11 help to install

  1. #1
    Join Date
    Jul 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Magnify v1.11 help to install

    Hello

    I'm not good at it but I like it.
    To activate ImageMagnify have to upload code:
    <img src="ocean.gif" class="magnify" style="width:200px;height:150px" />
    or
    <img src="forest.gif" class="magnify" border="0" />

    So ImageMagnify script need to fit in to script below. There is no photo name like "ocean.gif" it must be linked by ID. It's users photos.

    Any help or advise please.

    Thank you


    PHP Code:
    </td></tr></table>

    <?php

    if (@mysql_num_rows($pres))
    {
        
    $i 0;
    ?>

        <table class="postpics" width="100%"><tr><td> <!-- Version 5.0 -->

    <?php
        
    while ($row mysql_fetch_array($pres))
        {
            
    $i++;

            
    $imgsize GetThumbnailSize("{$datadir[adpics]}/{$row[picfile]}"$images_max_width$images_max_height);

    ?>

            <img src="<?php echo "{$datadir[adpics]}/{$row[picfile]}"?>" id="adimg<?php echo $i?>" width="<?php echo $imgsize[0]; ?>" height="<?php echo $imgsize[1]; ?>"><br><br>

    <?php
        
    }
    ?>

        </td></tr></table>

    <?php

        $imgcnt 
    $i;

    }
    ?>
    Last edited by jscheuer1; 07-07-2011 at 01:19 AM. Reason: format code

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    In this line add the highlighted:

    Code:
    <img class="maginify" src="<?php echo "{$datadir[adpics]}/{$row[picfile]}"; ?>" id="adimg<?php echo $i; ?>" width="<?php echo $imgsize[0]; ?>" height="<?php echo $imgsize[1]; ?>"><br><br>
    But the dimensions:

    PHP Code:
    width="<?php echo $imgsize[0]; ?>" height="<?php echo $imgsize[1]; ?>"
    should ideally be less than the actual dimensions of the image.
    Last edited by jscheuer1; 07-07-2011 at 01:27 AM. Reason: add info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It's working!!!
    You help me so much.
    Thank you, John

    Have a nice day ; )

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •