Default image for the listings which have no image.

Discussion in 'GeoCraft WordPress Theme' started by anto, Jun 15, 2013.

  1. anto

    anto Member

    Joined:
    Dec 24, 2012
    Messages:
    55
    Likes Received:
    10
    Hello,

    How to insert automatically a default image for the listings which have no image?

    This will be very useful, because all listings will get at least an image - its own image or the default image (such as the logo of the directory).

    Thank you.


    [​IMG]
     
    aliounn likes this.
  2. aliounn

    aliounn Member

    Joined:
    Dec 7, 2012
    Messages:
    136
    Likes Received:
    6
    good point . i have allready tried to include an image ulr as default value of the first image with no result !
     
  3. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Unfortunately there isn't a way to do that with our theme unless you custom code something up. Sorry.
     
  4. anto

    anto Member

    Joined:
    Dec 24, 2012
    Messages:
    55
    Likes Received:
    10
    Hello Neeraj and Inkthemes' Team,

    Does this request really need complicated custom coding?
    I'm afraid not.

    All we need is to create a default image and attribute it to geocraft_meta_image1
    If Inkthemes' Team help us, the issue could be solved very fast, I think.

    It's very important for aesthetics of all your customers' Geocraft Directories.
    Hoping Neeraj and the Team consider this.

    Regards.
     
    webunet and spoonboy90 like this.
  5. spoonboy90

    spoonboy90 Active Member

    Joined:
    Dec 20, 2012
    Messages:
    289
    Likes Received:
    28
    Location:
    Stoke-on-Trent, Staffordshire. UK
    I agree with Anto this would greatly improve the look
     
  6. azza

    azza Member

    Joined:
    Apr 29, 2013
    Messages:
    61
    Likes Received:
    7
    I agree, this would make a useful feature.

    anto,
    So all we need is the image file location? Then swap it with our own image and keep the same file name?

    We need to do this with ftp?
     
    webunet likes this.
  7. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207


    Please provide the following information listed below.

    Thread Link:
    Your Website URL:
    WordPress Username:
    WordPress Password:

    Send this information on our email at [email protected]
     
  8. aliounn

    aliounn Member

    Joined:
    Dec 7, 2012
    Messages:
    136
    Likes Received:
    6
    Could you help us to make this feature too please ?
     
  9. anto

    anto Member

    Joined:
    Dec 24, 2012
    Messages:
    55
    Likes Received:
    10
    Thank you very much, Gourav, for your kind suggestion to help me.
    I'm thinking of a solution and then will let you know.
    Regards.
     
  10. anto

    anto Member

    Joined:
    Dec 24, 2012
    Messages:
    55
    Likes Received:
    10
    Hello aliounn, spoonboy90, azza,

    I've just provided the information as asked by Gourav above, for help.
    I'll let you know after they accomplished the work.

    Thank you for your patience and nice week-end!
     
    spoonboy90 likes this.
  11. azza

    azza Member

    Joined:
    Apr 29, 2013
    Messages:
    61
    Likes Received:
    7
    Thanks anto, I look forward to this.
    Have a good weekend too.
     
  12. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207

    Support mail sent.
     
  13. anto

    anto Member

    Joined:
    Dec 24, 2012
    Messages:
    55
    Likes Received:
    10
    Thanks, Gourav.
    I'll try it very soon.
    Have nice day!
     
  14. anto

    anto Member

    Joined:
    Dec 24, 2012
    Messages:
    55
    Likes Received:
    10
    - Hello Gourav, Harmeet,

    It works! Excellent job, many thanks!
    I'd suggest you adding this awesome modification on the next Geocraft update.

    Have a nice day!

    - Hello aliounn, spoonboy90, azza,

    The only file Inkthemes' Team has mofidied is single-listing.php (geocrafttheme/single-listing.php).
    Because the Forum does not allow to upload .php, I convert the file into .txt and send it to you in the attached file here.
    (Don't forget to change it again to .php)

    You compare it with your existing single-listing.php file and will know what was the modification.

    The location of the default image: /images/default.png

    Enjoy!
     

    Attached Files:

    spoonboy90 likes this.
  15. azza

    azza Member

    Joined:
    Apr 29, 2013
    Messages:
    61
    Likes Received:
    7
    Sorry for my late reply anto, I have not been on the forum for a few days.
    Thanks for this!
    This is good news :) I will try soon.
    aZZa
     
  16. spoonboy90

    spoonboy90 Active Member

    Joined:
    Dec 20, 2012
    Messages:
    289
    Likes Received:
    28
    Location:
    Stoke-on-Trent, Staffordshire. UK
    Good work anto

    however would I be correct in thinking that this is based on the single-listing.php file pre version 1.7.8 as the changes to Description and Social Media Icons that prevent them from showing in free listings don't seem to be working?
     
  17. jsal2

    jsal2 Member

    Joined:
    Dec 23, 2012
    Messages:
    112
    Likes Received:
    7
    Hi, I've been looking into having a default listing image as well... but I'm unclear about exactly what this modified single-listing file is actually doing and the expected results. I have compared the file provided above to the one in the 1.7.8 ver installed and there are many more entries modified than I was expecting, and since I'm only a beginner at understanding code, I'm a bit unclear at this point with what its been modified to accomplish. Could someone provide just a bit more explanation on this? Thanks!
     
  18. tobyb

    tobyb Active Member

    Joined:
    Dec 28, 2011
    Messages:
    256
    Likes Received:
    31
    Location:
    World Wide
    Hi, unclear myself what has been modified, I also have been trying to change the default image, I have created an image with Text, 'claim your listing' as this is usually the only time the default image will be showing after importing bulk listings.

    Tob
     
  19. molatin

    molatin Member

    Joined:
    Aug 11, 2012
    Messages:
    558
    Likes Received:
    19
    Thank you for this thread - is this now something in the latest theme update, or do we have to code it in ourselves?

    Anyone had problems with this?

    Thanks
     
  20. anto

    anto Member

    Joined:
    Dec 24, 2012
    Messages:
    55
    Likes Received:
    10
    It's working in the latest theme update, not necessary any coding.

    Some changes have done in the single-listing.php file.
    The location of the default image: /images/default.png

    Regards.
     
    molatin likes this.

Share This Page