This topic contains 3 reply and 2 voices, and was last updated by Tareq Hasan 5 years, 10 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
December 28, 2013 at 3:56 pm 13983
Tareq Hasan Hello, I just created a test site to try your plugin. I created a new form and gave it 2 fields: title and url. All I want is for my users to be able to submit links to all sort of things. But my problem is, I need a script that would scrap data from all external urls: title,description,thumbnail and display them within the post. Is that possible? Even if I have to modify the core php files of the plugins...
December 28, 2013 at 4:46 pm 13984
Tareq Hasan Tareq Hasan

That is certainly possible.

You can use the action hooks/filter provided by the plugin, no need to
modify the core files. When someone submits the post, you can add a
function as hook and fetch external resources and save them to your post
meta or even update the post itself.

http://docs.wedevs.com/wp-user-frontend-pro/#developer-documentation

December 28, 2013 at 5:04 pm 13989
Snitz Snitz

Something like this?
https://github.com/slv/PoOr.Scraper/blob/master/index.php

December 28, 2013 at 7:41 pm 13997
Tareq Hasan Tareq Hasan

[php]
function update_my_brand_new_hook( $post_id ) {
// do the scraping and update the post
}
 
add_action( ‘wpuf_add_post_after_insert’, ‘update_my_brand_new_hook’ );
add_action( ‘wpuf_edit_post_after_update’, ‘update_my_brand_new_hook’ );
[/php]

BTW, have you purchased the plugin yet?

Viewing 3 Posts - 1 through 3 (of 3 total)