Hi guys,
I need to move the "add blog" button to the index as explained in the title of this post.
I tried these lines :
echo elgg_view('input/submit', array('value' => elgg_echo('groups:add')));
and the button are here, in correct format but they don't redirect to the groups/add page.
Can you help me to stick a http link to my new buttons please ?
Best Regards!
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.
- lolarr@Nutz22
lolarr - 0 likes
- orta@orta25
orta - 0 likes
- Mark@Zander1983
Mark - 0 likes
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- orta@orta25
orta - 0 likes
- orta@orta25
orta - 0 likes
- Mark@Zander1983
Mark - 0 likes
- orta@orta25
orta - 0 likes
You must log in to post replies.I will became crazy lol!
Can I put an output/url into the echo elgg_view('input/submit' ? If yes, It's hard!
help UP!
... I'm lost.
To register an "add blog" button use:
elgg_register_title_button("blog", "add");
Yes you can just create a link with elgg_view('output/url', $vars);
Hi guys and thanks but I need more infos..
I tried to "register" the button like you said Mark, but still don't work, button appear but is like href=#..
<?php
elgg_register_title_button("groups", "add");
echo elgg_view('input/submit', array('value' => elgg_echo('groups:add')));
?>
What's wrong with me?
UP UP UP
No Elgg developpers stay here ?????
Who must I contact to get some help with this little button to work.. ?
do this
if(elgg_is_logged_in()){
echo elgg_view('output/url', array("text" => "Add Blog", "href" => "blog/add/". elgg_get_logged_in_user_guid(), 'class' => 'elgg-button elgg-button-action'));
}
here is the solution, for these in need!
$allz = elgg_view('input/submit', array('value' => elgg_echo('groups:all')));
echo elgg_view('input/form', array('body' => $addz, 'action' => "{$CONFIG->url}groups/add"));
Solved, thanks to me :)
EDIT : Thanks Mark, it works like a charm too!!!!