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
You are here: Home

Cactii

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • July 4, 2018 at 4:18 pm in reply to: How to Show Creatives #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>
    July 4, 2018 at 1:05 pm in reply to: How to Show Creatives #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 9:43 am in reply to: Organize Creatives into Groups #3771
    Cactii
    Participant

    So here it is not showing the IMAGE type anymore:

    <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 9:24 am in reply to: Organize Creatives into Groups #3768
    Cactii
    Participant

    Couldn’t you just do this in affiliates-manager/html/affiliate_creative_list.php:

    <tbody>
         <?php foreach ($this->viewData['creatives'] as $creative) { ?>
             <tr>
               <td class="wpam-creative-type"><?php 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>

    Probably it’d be better to have an if statement that doesn’t display the word “IMAGE” if it’s an image type creative and that it zooms in when hovering over the image.

    July 4, 2018 at 8:50 am in reply to: How to Show Creatives #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 3, 2018 at 11:46 am in reply to: How to Show Creatives #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.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)

Featured Addons

  • WooCommerce Coupon Tracking
  • WooCommerce Product Specific Commission

Copyright © 2026 | WordPress Affiliate Manager | Privacy Policy