Page 1 of 2 12 LastLast
Results 1 to 10 of 11
Like Tree1Likes

Thread: TUTORIAL - for showing thumbnail ad image on edit ads page

  1. #1
    Thread Starter
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,571
    Thanks
    103
    Thanked 205 Times in 180 Posts

    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
    gunacel likes this.

  2. The Following User Says Thank You to bleem For This Useful Post:

    maderson (February 17th, 2014)

  3. #2
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,497
    Thanks
    75
    Thanked 553 Times in 502 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


  4. #3
    Thread Starter
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,571
    Thanks
    103
    Thanked 205 Times in 180 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #4
    jamespfc's Avatar
    Join Date
    Feb 2014
    Location
    United Kingdom
    Posts
    38
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #5
    Thread Starter
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,571
    Thanks
    103
    Thanked 205 Times in 180 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. The Following 2 Users Say Thank You to bleem For This Useful Post:

    simeon (February 27th, 2014), talent (February 16th, 2014)

  8. #6
    jamespfc's Avatar
    Join Date
    Feb 2014
    Location
    United Kingdom
    Posts
    38
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #7
    Thread Starter
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,571
    Thanks
    103
    Thanked 205 Times in 180 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. The Following User Says Thank You to bleem For This Useful Post:

    cozmuler (May 7th, 2014)

  11. #8
    cozmuler's Avatar
    Join Date
    Apr 2014
    Location
    Pakistan
    Posts
    21
    Thanks
    9
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  12. The Following User Says Thank You to cozmuler For This Useful Post:

    bleem (April 19th, 2015)

  13. #9
    simeon's Avatar
    Join Date
    Jun 2011
    Location
    South Africa
    Posts
    129
    Thanks
    36
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  14. #10
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,497
    Thanks
    75
    Thanked 553 Times in 502 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


  15. The Following 2 Users Say Thank You to talent For This Useful Post:

    marvhart (March 23rd, 2016), simeon (June 25th, 2015)

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Events list - Show featured image thumbnail instead of calendar thumbnail
    By cllzor in forum Vantage General Discussion (Legacy)
    Replies: 8
    Last Post: January 19th, 2016, 02:02 AM
  2. Replies: 4
    Last Post: June 14th, 2013, 11:13 AM
  3. [SOLVED] how to change image size (thumbnail) in classipress 3.2 on home page?
    By tupecik in forum ClassiPress General Discussion
    Replies: 4
    Last Post: January 21st, 2013, 08:33 AM
  4. is there anyway to edit the size of thumbnail display image
    By yuynkng in forum ClassiPress General Discussion
    Replies: 2
    Last Post: May 5th, 2010, 10:05 AM
  5. is there anyway to edit the size of thumbnail display image
    By yuynkng in forum Help Using ClassiPress
    Replies: 2
    Last Post: December 31st, 1969, 06:00 PM