When I change in this string "add_submenu_item(elgg_echo('videochat:menu:rooms'), $CONFIG->wwwroot."pg/videochat");" Because I look error in site
Deprecated in 1.8: add_submenu_item was deprecated by elgg_register_menu_item
Called from [#10] /var/www/sitename.ru/www/vkte/vk/mod/videochat/start.php:33
add_submenu_item change on this function
elgg_register_menu_item . I don't look item in menu.
What you think?
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.
Read your error log again:
Just change your code with
And please, don't make duplicate posts
When I change this function I don't look in menu link.
This code not for 'Menu' link
For adding link to 'Menu' you need register items for 'site' array
Try now again
.
error
Error after change function
Create file sidebar.php in mod\videochat\views\default\videochat\
With this code:
Then add
$sidebar = elgg_view("videochat/sidebar");
in the mod\videochat\pages\create.php
and
$body = elgg_view_layout('two_column_left_sidebar', array(
'content' => $content,
'title' => $title,
'sidebar' => $sidebar,
));
I create this file , but I don't look items on right side.
- Previous
- 1
- 2
- 3
- Next
You must log in to post replies.