- This topic has 3 replies, 2 voices, and was last updated 7 years, 9 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Affiliates Management Plugin for WordPress
by
WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › Organize Creatives into Groups
Tagged: Creatives, feature, organize, request, suggestion
It would be nice to be able to organize creatives into different groups.
For instance:
By type – Text versus Image
By tags – tag image creatives with dimensions for easy choosing of creatives that fit a certain size.
Hi, the plugin developers will investigate further your request.
Thank you
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.
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>