TUTORIAL - for showing thumbnail ad image on edit ads page
Hi,
Me again... lol
I didn't like how you couldn't see the thumbnail image when you look at the ad's you may have posted via 'Manage Ads' tab/link.
So I fixed it for the simply-responsive theme. This isn't anything to do with the simply-responsive theme, it's a feature missing in classipress generally.
This probably works on the standard classipress theme also.
Okay - Here we go.
Open tpl-dashboard.php in the child theme.
Look for this starting on line 133:
<?php if ( $post_status == 'live' ) { ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php } else { ?>
<?php the_title(); ?>
Replace this with this:
<?php if ( $post_status == 'live' ) { ?>
<div class="showadthumb-left">
<?php if ( $cp_options->ad_images ) cp_ad_loop_thumbnail(); ?>
</div>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php } else { ?>
<div class="showadthumb-left">
<?php if ( $cp_options->ad_images ) cp_ad_loop_thumbnail(); ?>
</div>
<?php the_title(); ?>
Then add this to your child-theme style.css file:
.showadthumb-left {
float: left;
margin: 5px;
}
.showadthumb-left a img {
border: thin solid;
height: 50px;
width: 50px;
}
And you will end up with something that looks like this:
Attachment 7663
You won't get the tabs across the top - this is a custom dashboard I'm working on, but you will get the ad image thumbnails showing against the ad description in the dashboard now
This might be able to be done another way but with my limited knowledge it's the best I can do.
Don't forget to make a back up of tpl-dashboard.php in the child theme first .
Good luck
Bleem