@ihayredinov
I'm sure many here happy to see you alive :)
@ihayredinov
I'm sure many here are happy to see you alive :)
Ismayil (@ihayredinov),
So good to hear you're still alive. I didn't think I'd ever have a chance to say how grateful I am for your work those many years ago. I'm still using several, including, now, hypeScraper. I convinced it to do what I needed, for the most part, but am still bedeviled by its difficulty scraping pages from several different domains. Here's an example: "Parser Error for HEAD request (https://www.walgreens.com/store/c/onetouch-ultra-2-blood-glucose-meter-kit/ID=300400575-product): cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)" because "filter_var($url, FILTER_VALIDATE_URL))" returns false. If you have an inspiration for where to look for a solution, I'd be incredibly grateful.
Sincerely,
- Scott (@C0Rrupter)
function elgg_register_widget_type() isn't apply this param.
Thanks Nikolai. That's what I discovered. Do you have any advice for setting and getting default widget options?
1. You can use widget_settings, <widget_handler> hook:
Triggered when saving a widget settings
$params['params']
for widget$params['widget']
. If handling saving the settings, the handler should return true to prevent the default code from running.
Look at this example.
2. Widget is an entity, so you can use it as the usual object via setting/getting metadata.
Of course, you need to know a GUID for this.
3. Don't forget, you can override the edit form of your widget by setting the default values before the user has done so.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.