Thanks for your reply.
Am sorry the code returned a blank page but when i remove this code
$container = $event->getContainerEntity();
The site will come up without any changes.
Make sure you have an event entity. Modify the code like this
$event = get_entity($event_guid);
if($event){
$group = elgg_get_page_owner_entity();
if (elgg_instanceof($group, 'group')) {
YOUR_CODE_HERE
}
} else {
echo "no event found";
}
Thanks for your contribution @Webgalli
I tried the code, yes i have the event entity,
but no changes took place. Still didn't display the group.
I don't know what must be wrong.
I can't seem understand what that plugin does.
Anyway is like you don't understand what i want. Let me go straight to the point. I want to write http:// in a field so when a user wants to write a website address he/she has no need to write the http:// part.
e.g
echo elgg_view('input/text', array(
'name' => 'fieldname',
'value' => 'http://',
));
@Matt Beckett Thank you very much for all the help you've given me. I appreciate. God bless. It worked just well.
Thanks once again
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.