Skip to main content

Import ads template error

ClassiBase classifieds script Forums General help Import ads template error

Tagged: , ,

This topic contains 5 replies, has 2 voices, and was last updated by  Andrew 2 weeks, 6 days ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7128 Reply

    Andrew
    Participant

    – The import works fine with the exception of two fields:
    <address>
    <image> – I want to import a placeholder image and seems like it’s not working. Probably this is due to the recent dropzone implementation?

    – I was reading the additional example xml files for Example for importing an ad with checkbox custom values but throws a 404 error.

    /import-example-checkbox. zip

    Can you please help me?

    #7134 Reply

    Andrew
    Participant

    Can someone share an example of how can I import checkfields,address, and photo fields in xml?

    I think there is a bug in 1.9

    • This reply was modified 3 weeks, 2 days ago by  Andrew.
    #7155 Reply

    ClassiBase
    Keymaster

    We are checking files and will reply with working example.

    #7157 Reply

    Andrew
    Participant

    Thank you!

    #7175 Reply

    ClassiBase
    Keymaster

    We updated tutorial about importing ads using XML. Added examples:
    1) Simple example XML generation by connecting to database server of old script.
    2) How to read data from .csv file and format XML for importing.
    3) static XML file with custom fields and images. This one shows how to format address, checkboxes, dropdown, radio, number, price fields and import images.

    Regarding images you were right there is a bug in /sys/app/models/Adpics.php file on line 692 change this:

    $dest_unique = FileDir::genFileName(UPLOAD_ROOT . '/tmp/' . $basename);

    to this:

    $dest_unique = FileDir::genFileName(UPLOAD_ROOT . '/tmp/' . $img_name);

    Images should be full url.

    Working downloadable examples can be found in related article here http://classibase.com/how-to-import-ads-from-other-classifieds-website/

    If you have related questions please let us know.

    Thank you for reporting bugs.

    #7177 Reply

    Andrew
    Participant

    Wonderful!

    Where can I make a donation?

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Import ads template error
Your information:




  • Classifieds Business Newsletter

    Get discounts and tips about growing your classifieds website.

    Subscribe