WordPress Affiliate Manager

Affiliates Management Plugin for WordPress

  • Home
  • Features
    • Screen Shots
  • Download
  • Documentation
  • Addons
  • Support
    • Support Forum
    • Forum Login
    • Forum Registration
    • Contact
    • Premium Addon/Plugin Support

[Support request] How to Show Creatives

by

WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › How to Show Creatives

  • This topic has 7 replies, 5 voices, and was last updated 7 years, 8 months ago by mibtp.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • June 26, 2018 at 9:25 pm #3738
    stand
    Participant

    Hi,

    How do we show a picture of each creative for the affiliates to see, when they choose a creative? This would help motivate affiliates and improve your product.

    Let us know.

    Thanks.

    June 27, 2018 at 4:51 am #3739
    mbrsolution
    Moderator

    Hi, please read the following documentation. Let me know if you need more help.

    Kind regards

    July 3, 2018 at 11:46 am #3759
    Cactii
    Participant

    I’m pretty sure he means to ask if it’s possible to show a small thumbnail beside each listing after it’s been created. So when the affiliate is browsing the creatives he gets to see a little thumbnail of it instead of having to click each time to see what it looks like. I am also interested in this.

    July 4, 2018 at 8:42 am #3766
    admin
    Keymaster

    It shows the thumbnail when you click on the creative name and view the creative.

    The creative listings has a two column layout where it shows the “Type” and “Name”. Showing an image there breaks the layout as the text type doesn’t have any image. When you click on it to view the creative, then it can show all the details specific to that creative.

    July 4, 2018 at 8:50 am #3767
    Cactii
    Participant

    Yes, I know. But that is too many steps. Think big, what if I have 100 creatives and my affiliate wants to find just one out of those. Is he going to click every link to see what each creative looks like just so he can choose one?

    The list should show at least a small thumbnail that the affiliate can then click to the page that you’re talking about admin.

    July 4, 2018 at 1:05 pm #3774
    Cactii
    Participant

    I meant to post this here:

    <tbody>
        <?php foreach ($this->viewData['creatives'] as $creative) { ?>
            <tr>
               <td class="wpam-creative-type"><?php if($creative->type == text) {echo $creative->type;} ?><img src="<?php
    				$url = wp_get_attachment_image_src($creative->imagePostId);
    				echo $url[0];?>" style="max-width: 200px; max-height: 50px;"/></td>
               <td class="wpam-creative-name"><a href="?page_id=<?php echo the_ID() ?>&sub=creatives&action=detail&creativeId=<?php echo $creative->creativeId ?>"><?php echo $creative->name ?></a></td>
            </tr>
        <?php } ?>
    </tbody>
    July 4, 2018 at 4:18 pm #3775
    Cactii
    Participant

    BTW this is in the file : affiliates-manager/html/affiliate_creative_list.php

    With this it will show a small (resized version) of the creative instead of the word IMAGE. You can adjust the max-width and max-height as you see fit

    <tbody>
       <?php foreach ($this->viewData['creatives'] as $creative) { ?>
          <tr>
             <td class="wpam-creative-type">
    	    <?php if($creative->type == text) {echo $creative->type;} ?>
    	    <?php if($creative->type == image) {$url = wp_get_attachment_image_src($creative->imagePostId);
    	          echo '<img src="' . $url[0] . '" style="max-width: 200px; max-height: 80px;" />';
    	    } ?>
    	 </td>
             <td class="wpam-creative-name"><a href="?page_id=<?php echo the_ID() ?>&sub=creatives&action=detail&creativeId=<?php echo $creative->creativeId ?>"><?php echo $creative->name ?></a>
    	 </td>
          </tr>
       <?php } ?>
    </tbody>
    August 8, 2018 at 7:21 pm #3853
    mibtp
    Participant

    Thank you for posting this code. Can you tell us how to add to the file? At the end of the file?
    Thanks.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Log In

Featured Addons

  • WooCommerce Coupon Tracking
  • WooCommerce Product Specific Commission

Copyright © 2026 | WordPress Affiliate Manager | Privacy Policy