*

oneloveb

  • ****
  • 112 posts
Ads Files
« on: March 20, 2021, 07:58:52 AM »
Hi

Please Where exactly the Ads data located in the route file to get the XML file of all ads and Import them to my site.


Thanks

*

MB Themes

Re: Ads Files
« Reply #1 on: March 20, 2021, 12:49:02 PM »
@oneloveb
There is nothing like that, you could use i.e. Rest API plugin to get data out of different osclass installation.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oneloveb

  • ****
  • 112 posts
Re: Ads Files
« Reply #2 on: March 20, 2021, 09:23:27 PM »

Hi
What am saying is that I want to import ads from my Friend's osclass to my own osclass so what is the exact XML file I take from him?

*

MB Themes

Re: Ads Files
« Reply #3 on: March 20, 2021, 09:37:18 PM »
Osclass itself cannot generate such file, as I mentioned before, you must use plugin like rest api to export data into json.
Alternativelly, you can write complex query to prepare data you need and download it into csv.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pipetko

  • ****
  • 123 posts
Re: Ads Files
« Reply #4 on: April 19, 2021, 12:32:22 PM »
which basically means You will never be able to export ads if you are not an dev...OR you have to use his db ( simplest way ) and then later change all of your settings to your original as current on your instalation. I find the plugin for import ads useless whitout EXPORT ads plugin existing.... And I still have no clue why there is no such a plugin, not only from osclasspoint but from anyone of the devs workin on products for OC. Everything is possible... its made from humans not from aliens.

I am dealing whit this damn problem with years... If sometghing went wrong and you need a fresh brand new instalation you are fcked... Clients are paing about 400 $ ( and 100 $ form me to install it and set it up running ) per website for the plugins and themes.... and there it is.. expensive plugins ( yes cool and verry good quality ones ), but no ad exporting plugin ?!?!?!?!?!?!?!?!?!?! I mean... what the... And now when osclasspoint has their version in softaculous ( awesome ) i think this plugin is a must!
« Last Edit: April 19, 2021, 12:53:38 PM by pipetko »

*

MB Themes

Re: Ads Files
« Reply #5 on: April 19, 2021, 03:11:33 PM »
@pipetko
As I mentioned before, you can achieve this with Rest API plugin that prepare such output and can be entered as URL into import plugin.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pipetko

  • ****
  • 123 posts
Re: Ads Files
« Reply #6 on: April 20, 2021, 12:12:40 AM »
@pipetko
As I mentioned before, you can achieve this with Rest API plugin that prepare such output and can be entered as URL into import plugin.
And as i mentioned before I am not an dev.. So basically no clue how to work with Rest API plugin................................... In 15 years of experience I never had need to learn this. So i ( and most of the clients ) prefer to pay for something that is ready to go..
« Last Edit: April 20, 2021, 12:16:56 AM by pipetko »

*

MB Themes

Re: Ads Files
« Reply #7 on: April 20, 2021, 07:58:58 AM »
@pipetko
You just choose type of data you want to see and based on that just place URL (with key and some other parameters) into your browser bar.

Example:
https://plugins.abprofitrade.eu/oc-content/plugins/rest/api.php?key=test-api-key&type=read&object=search&action=items&sCategory=2

Output will be like this (unformatted):
Code: [Select]
{
   "status":"OK",
   "message":"Successful",
   "execution_seconds":0.015237,
   "block_id":54,
   "response":[
      {
         "pk_i_id":"1201",
         "fk_i_user_id":null,
         "fk_i_category_id":"31",
         "dt_pub_date":"2021-01-15 17:31:50",
         "dt_mod_date":null,
         "f_price":null,
         "i_price":null,
         "fk_c_currency_code":null,
         "s_contact_name":"marcio",
         "s_contact_email":"[email protected]",
         "s_ip":"177.141.139.226",
         "b_premium":"0",
         "b_enabled":"1",
         "b_active":"1",
         "b_spam":"0",
         "s_secret":"zQ2BH05V",
         "b_show_email":"0",
         "dt_expiration":"9999-12-31 23:59:59",
         "i_gdpr_tc":"1",
         "i_gdpr_pp":"1",
         "s_user_name":"marcio",
         "locale":{
            "en_US":{
               "fk_i_item_id":"1201",
               "fk_c_locale_code":"en_US",
               "s_title":"sfsdafdsfa",
               "s_description":"sfdasdfsafdasd"
            }
         },
         "s_title":"sfsdafdsfa",
         "s_description":"sfdasdfsafdasd",
         "fk_i_item_id":"1201",
         "fk_c_country_code":"SK",
         "s_country":"Slovakia",
         "s_address":"",
         "s_zip":null,
         "fk_i_region_id":"782094",
         "s_region":"Trnava",
         "fk_i_city_id":null,
         "s_city":"",
         "fk_i_city_area_id":null,
         "s_city_area":"Sp",
         "d_coord_lat":null,
         "d_coord_long":null,
         "s_category_name":"Cars",
         "i_num_views":"12",
         "i_num_spam":"0",
         "i_num_bad_classified":"0",
         "i_num_repeated":"0",
         "i_num_offensive":"0",
         "i_num_expired":"0",
         "i_num_premium_views":"0"
      },
      {
         "pk_i_id":"1061",
         "fk_i_user_id":null,
         "fk_i_category_id":"31",
         "dt_pub_date":"2020-10-13 18:22:43",
         "dt_mod_date":null,
         "f_price":null,
         "i_price":"777000000",
         "fk_c_currency_code":"GBP",
         "s_contact_name":"Arnold Calvin",
         "s_contact_email":"[email protected]",
         "s_ip":"91.204.113.82",
         "b_premium":"0",
         "b_enabled":"1",
         "b_active":"1",
         "b_spam":"0",
         "s_secret":"3j2ZfuZt",
         "b_show_email":"0",
         "dt_expiration":"9999-12-31 23:59:59",
         "i_gdpr_tc":"1",
         "i_gdpr_pp":"1",
         "s_user_name":"Arnold Calvin",
         "locale":{
            "en_US":{
               "fk_i_item_id":"1061",
               "fk_c_locale_code":"en_US",
               "s_title":"Bored of your User Experience Design?",
               "s_description":"Bored of your User Experience Design? Bored of your User Experience Design? Bored of your User Experience Design? "
            }
         },
         "s_title":"Bored of your User Experience Design?",
         "s_description":"Bored of your User Experience Design? Bored of your User Experience Design? Bored of your User Experience Design? ",
         "fk_i_item_id":"1061",
         "fk_c_country_code":"US",
         "s_country":"United States",
         "s_address":"223.190.81.103",
         "s_zip":"67037",
         "fk_i_region_id":"782042",
         "s_region":"Alabama",
         "fk_i_city_id":"424219",
         "s_city":"Abbeville",
         "fk_i_city_area_id":null,
         "s_city_area":"Derby",
         "d_coord_lat":null,
         "d_coord_long":null,
         "s_category_name":"Cars",
         "i_num_views":"148",
         "i_num_spam":"0",
         "i_num_bad_classified":"0",
         "i_num_repeated":"0",
         "i_num_offensive":"0",
         "i_num_expired":"0",
         "i_num_premium_views":"0"
      },
      {
         "pk_i_id":"743",
         "fk_i_user_id":"36126",
         "fk_i_category_id":"31",
         "dt_pub_date":"2020-06-20 08:57:30",
         "dt_mod_date":null,
         "f_price":null,
         "i_price":"89900000000",
         "fk_c_currency_code":"USD",
         "s_contact_name":"jolo",
         "s_contact_email":"[email protected]",
         "s_ip":"188.24.105.172",
         "b_premium":"0",
         "b_enabled":"1",
         "b_active":"1",
         "b_spam":"0",
         "s_secret":"7FxYNo6c",
         "b_show_email":"0",
         "dt_expiration":"9999-12-31 23:59:59",
         "i_gdpr_tc":"0",
         "i_gdpr_pp":"0",
         "s_user_name":"jolo",
         "locale":{
            "en_US":{
               "fk_i_item_id":"743",
               "fk_c_locale_code":"en_US",
               "s_title":"Mercedes Benz GLX",
               "s_description":"Vestibulum dapibus diam sit amet metus volutpat, fermentum viverra nisi euismod. Donec feugiat vel mauris ac malesuada. Etiam laoreet id tellus a condimentum. Nunc at lectus at nulla tincidunt feugiat. Morbi ac semper lectus. Duis semper ante pharetra, tincidunt nunc eu, posuere enim. Duis dignissim enim vitae dui fringilla iaculis. Cras congue tincidunt justo, id consectetur ligula ornare et. Ut blandit nulla vitae egestas rhoncus. Etiam pharetra, felis in dignissim mattis, nunc magna eleifend libero, vitae placerat turpis tortor ac arcu. Phasellus vitae rhoncus libero, et accumsan augue. Mauris facilisis sem aliquet, ornare risus vel, fermentum lacus. Proin tincidunt mollis arcu. Morbi pulvinar arcu a est fermentum, sed posuere mauris sodales."
            }
         },
         "s_title":"Mercedes Benz GLX",
         "s_description":"Vestibulum dapibus diam sit amet metus volutpat, fermentum viverra nisi euismod. Donec feugiat vel mauris ac malesuada. Etiam laoreet id tellus a condimentum. Nunc at lectus at nulla tincidunt feugiat. Morbi ac semper lectus. Duis semper ante pharetra, tincidunt nunc eu, posuere enim. Duis dignissim enim vitae dui fringilla iaculis. Cras congue tincidunt justo, id consectetur ligula ornare et. Ut blandit nulla vitae egestas rhoncus. Etiam pharetra, felis in dignissim mattis, nunc magna eleifend libero, vitae placerat turpis tortor ac arcu. Phasellus vitae rhoncus libero, et accumsan augue. Mauris facilisis sem aliquet, ornare risus vel, fermentum lacus. Proin tincidunt mollis arcu. Morbi pulvinar arcu a est fermentum, sed posuere mauris sodales.",
         "fk_i_item_id":"743",
         "fk_c_country_code":"US",
         "s_country":"United States",
         "s_address":"",
         "s_zip":"33681",
         "fk_i_region_id":"782072",
         "s_region":"New Jersey",
         "fk_i_city_id":"439046",
         "s_city":"Sergeantsville",
         "fk_i_city_area_id":null,
         "s_city_area":"",
         "d_coord_lat":null,
         "d_coord_long":null,
         "s_category_name":"Cars",
         "i_num_views":"75",
         "i_num_spam":"0",
         "i_num_bad_classified":"0",
         "i_num_repeated":"0",
         "i_num_offensive":"0",
         "i_num_expired":"0",
         "i_num_premium_views":"0"
      },
      {
         "pk_i_id":"744",
         "fk_i_user_id":"36126",
         "fk_i_category_id":"31",
         "dt_pub_date":"2020-06-20 08:57:30",
         "dt_mod_date":null,
         "f_price":null,
         "i_price":"128500000000",
         "fk_c_currency_code":"USD",
         "s_contact_name":"jolo",
         "s_contact_email":"[email protected]",
         "s_ip":"188.24.105.172",
         "b_premium":"0",
         "b_enabled":"1",
         "b_active":"1",
         "b_spam":"0",
         "s_secret":"YsHbcH0R",
         "b_show_email":"0",
         "dt_expiration":"9999-12-31 23:59:59",
         "i_gdpr_tc":"0",
         "i_gdpr_pp":"0",
         "s_user_name":"jolo",
         "locale":{
            "en_US":{
               "fk_i_item_id":"744",
               "fk_c_locale_code":"en_US",
               "s_title":"Maserati One Z9",
               "s_description":"Duis auctor nisl sed libero interdum, vel vulputate diam iaculis. Sed ultricies odio ac odio facilisis imperdiet. In posuere nisl est, sit amet semper lacus sagittis id. Aliquam justo augue, ullamcorper non augue sed, aliquam egestas velit. Fusce lacus tellus, faucibus at dui vel, efficitur venenatis enim. Curabitur fringilla viverra dolor, at sodales eros volutpat hendrerit. Donec sollicitudin malesuada nisl, dapibus pretium eros porttitor ac. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris eget eleifend nulla. Aliquam erat volutpat. Pellentesque fringilla felis non tempor porttitor."
            }
         },
         "s_title":"Maserati One Z9",
         "s_description":"Duis auctor nisl sed libero interdum, vel vulputate diam iaculis. Sed ultricies odio ac odio facilisis imperdiet. In posuere nisl est, sit amet semper lacus sagittis id. Aliquam justo augue, ullamcorper non augue sed, aliquam egestas velit. Fusce lacus tellus, faucibus at dui vel, efficitur venenatis enim. Curabitur fringilla viverra dolor, at sodales eros volutpat hendrerit. Donec sollicitudin malesuada nisl, dapibus pretium eros porttitor ac. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris eget eleifend nulla. Aliquam erat volutpat. Pellentesque fringilla felis non tempor porttitor.",
         "fk_i_item_id":"744",
         "fk_c_country_code":"US",
         "s_country":"United States",
         "s_address":"",
         "s_zip":"33681",
         "fk_i_region_id":"782072",
         "s_region":"\"New"
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pipetko

  • ****
  • 123 posts
Re: Ads Files
« Reply #8 on: April 25, 2021, 10:33:15 AM »
I couldnt suceed making this :(