Forum Replies Created
-
AuthorPosts
-
Cactii
ParticipantBTW 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>Cactii
ParticipantI 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>Cactii
ParticipantSo 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>Cactii
ParticipantCouldn’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.
Cactii
ParticipantYes, 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.
Cactii
ParticipantI’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.
-
AuthorPosts