I altered my TheWire in a way you can post a message directly from the homepage. This will, most likely, increase the use of the wire dramaticly. Which is exactly what I need to jumpstart my community.
I made changes to only a few files of TheWire.
I think this very simple plugin could benefit alot of people, but now I need to know how to make this file a plugin ;-)
Here is what I did:
Add this code in:
mod/vazco_mainpage/views/default/vazco_mainpage/widgets/thewire.php
<?php
//mod that adds the functionality to post on the wire directly from the homepage when logged in
if (!isloggedin() && (!function_exists("loginbox_enabled") || loginbox_enabled())){
}
else{
//if logged in show add form
echo elgg_view("thewire/forms/add_frontpage");
}
?>
This basicly did the trick. I edited a two more files so the you would return to the same page after posting.
So once again, how do I make it a plugin so other people can benefit?
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.
- Mike Zacher (vazco)@vazco

Mike Zacher (vazco) - 0 likes
- Studio1031@studio1031

Studio1031 - 0 likes
You must log in to post replies.Daniel, if you agree, I can add this code as a separate widget in the comm version of vazco_mainpage plugin. This way you won't have to do this modification once a new version of vazco_mainpage comes out.
it would be nice to have a plugin like that for the default setup.. i mean, not everyone cares to use vazco paid products (no offense intended).