WordPress.org

Ready to get started?Download WordPress

Forums

WpZon - Amazon Affiliate Plugin
[resolved] Images size (3 posts)

  1. shehab.voice
    Member
    Posted 1 year ago #

    Hello Dear, Great plugin you've made here. I need to make the images more bigger , but i have fiqured that the images sources is a small thumbs and it cannot be fixed by CSS. Thats urgent actually , cause its make the beauty of the desplaying content very bad !. Any ideas dear ?

    http://wordpress.org/extend/plugins/wpzon/

  2. Lora77
    Member
    Plugin Author

    Posted 1 year ago #

    Open wpzon.php

    1. On line 91 replace
    $img = $item->SmallImage->URL;

    with

    $img = $item->MediumImage->URL;

    2. From line 136 to line 159 replace

    $content .= '<a href="'.$link.'" rel="nofollow" style="text-decoration:none;font-weight:600;">'.$titlel.'</a>
    <div style="margin:1px 0 5px 0;height:155px;width:540px;">
    <div style="float:left;width:100px;">
    <img src="'.$img.'" style="margin:0;padding:0;float:left;border:none;" /></div>
    <div style="float:left;margin:10px 0 0 0;width:440px;"><a href="'.$link.'" rel="nofollow" style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.' </a> <strike style="color:#444;"><span style="font-size:13px;text-decoration:none;font-weight:500;color:#000;">'.$lprice.'</span></strike></br><div style="font-size:12px;clear:left;">'.$avab.'</div><a href="'.$link.'" rel="nofollow" style="text-decoration:none;font-weight:600;">'.$seed.'</a></div></div>';}
    
    else {
    if(($i % 2)==0){
    
    $content .= '<div style="margin-bottom:20px;float:left;width:47%;margin-right:6%;height:230px;">
    <div style="width:250px;height:97px;" >
    <img src="'.$img.'"  style="margin:0;padding:0 0 20px 30px;border:none;" /></div>
    <a href="'.$link.'" rel="nofollow" style="text-decoration:none;font-weight:600;float:left;">'.$title.'</a>
    <div style="float:left;margin:3px 0 0px 0;;width:250px;"><a href="'.$link.'" rel="nofollow" style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.'</a>  <strike style="color:#444;"><span style="font-size:13px;color:#252525;;">'.$lprice.'</span></strike><br><span style="font-size:12px;">'.$avab.'</span></div></div>';
    }
    
    else {
    $content .= '<div style="margin-bottom:20px;float:left;width:47%;margin-right:0%;height:230px;">
    <div style="width:250px;height:97px;" >
    <img src="'.$img.'"  style="margin:0;padding:0 0 20px 30px;border:none;" /></div>
    <a href="'.$link.'" rel="nofollow" style="text-decoration:none;font-weight:600;float:left;">'.$title.'</a>
    <div style="float:left;margin:3px 0 0px 0;;width:250px;"><a href="'.$link.'" rel="nofollow" style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.'</a>  <strike style="color:#444;"><span style="font-size:13px;color:#252525;;">'.$lprice.'</span></strike><br><span style="font-size:12px;">'.$avab.'</span></div></div>';
    }

    with

    $content .= '<a href="'.$link.'" rel="nofollow" style="text-decoration:none;font-weight:600;">'.$titlel.'</a>
    <div style="margin:1px 0 5px 0;height:220px;width:540px;">
    <div style="float:left;width:170px;">
    <img src="'.$img.'" style="margin:0;padding:0;float:left;border:none;" /></div>
    <div style="float:left;margin:22px 0 0 0;width:370px;"><a href="'.$link.'" rel="nofollow" style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.' </a> <strike style="color:#444;"><span style="font-size:13px;text-decoration:none;font-weight:500;color:#000;">'.$lprice.'</span></strike></br><div style="font-size:12px;clear:left;">'.$avab.'</div><a href="'.$link.'" rel="nofollow" style="text-decoration:none;font-weight:600;">'.$seed.'</a></div></div>';}
    
    else {
    if(($i % 2)==0){
    
    $content .= '<div style="margin-bottom:20px;float:left;width:47%;margin-right:6%;height:270px;">
    <div style="width:250px;height:170px;" >
    <img src="'.$img.'"  style="margin:0;padding:0 0 20px 30px;border:none;" /></div>
    <a href="'.$link.'" rel="nofollow" style="text-decoration:none;font-weight:600;float:left;">'.$title.'</a>
    <div style="float:left;margin:3px 0 0px 0;width:250px;"><a href="'.$link.'" rel="nofollow" style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.'</a>  <strike style="color:#444;"><span style="font-size:13px;color:#252525;;">'.$lprice.'</span></strike><br><span style="font-size:12px;">'.$avab.'</span></div></div>';
    }
    
    else {
    $content .= '<div style="margin-bottom:20px;float:left;width:47%;margin-right:0%;height:270px;">
    <div style="width:250px;height:170px;" >
    <img src="'.$img.'"  style="margin:0;padding:0 0 20px 30px;border:none;" /></div>
    <a href="'.$link.'" rel="nofollow" style="text-decoration:none;font-weight:600;float:left;">'.$title.'</a>
    <div style="float:left;margin:3px 0 0px 0;width:250px;"><a href="'.$link.'" rel="nofollow" style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.'</a>  <strike style="color:#444;"><span style="font-size:13px;color:#252525;;">'.$lprice.'</span></strike><br><span style="font-size:12px;">'.$avab.'</span></div></div>';
    }

    Let me know if it worked for you!

  3. shehab.voice
    Member
    Posted 1 year ago #

    Worked perfectly dear. Thanks so much :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic