Contact Form DB
Read data from external website (6 posts)

  1. danicasati
    Posted 2 years ago #

    It would be possible to read data from an external website?
    Just like shortcodes, but reading from an external database that use same plugin (Contact Form 7 + DB extension).

    I tried with RSS, but I can't change data format, so I can't customize data display.


  2. Michael Simpson
    Plugin Author

    Posted 2 years ago #

    On the short code builder page, you can create an export link that does the same thing as a short code. If you create such a link from web site A, you can use the link on web site B as "src" to an iframe tag.

  3. danicasati
    Posted 2 years ago #

    I can't did it.
    I get a shortcode from WEB A, but I can't display to WEB B.
    Could you post any sample of shortcode to reach this?
    Thank you in advance.

  4. Michael Simpson
    Plugin Author

    Posted 2 years ago #

    I did a test and the IFrame is not showing up. Did some research. It seems like WP disallows IFrames but there are workarounds:

    Does wordpress support iframe?

  5. danicasati
    Posted 2 years ago #

    Any other solution to retrieve display from another site and display on external site?

  6. Phil
    Posted 2 years ago #

    I'm desperately trying to achieve the same thing.

    I not going to go down the iframe route as 1) My site is responsive and won't like set iframe size and 2) I would rather no url of the originating site in the source.

    I've seen you can connect to the 2nd sites' database using:

    $newdb = new wpdb($DB_USER, $DB_PASSWORD, $DB_NAME, $DB_HOST);

    Site A has the plugin running with a form capturing data

    Site B has the plugin running but I need the datatable on this site with data pulled in from the Site A Database.

    I know Gravity Forms has this ability with an extra add-on but I quite like CFDB so if there's a way to do this using this plugin, it would be more favoured.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form DB
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic