hi there,
i wrotet a post at plugins thread, but the author doesn't seem to watch at it anytime.
i want to customize the market plugin, specially the menu of it, but i didn't found where to do this.
ok. i want only that admins can post entries to the market. i have changed the add.php that only admins can watch it.
but there is a menu, where you can watch your adds, adds of friends, all friends an can click on create new post. this menu i didn't found to edit. can you tell me where i can do it. and if you know cann you tell me what to do, that only admin can see the link to create a post.
many thanks and sorry for my english. im german and only have to learn english in school
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.
- lenzen24@lenzen24
lenzen24 - 0 likes
- spacemanjason@spacemanjason
spacemanjason - 0 likes
- lenzen24@lenzen24
lenzen24 - 0 likes
- spacemanjason@spacemanjason
spacemanjason - 0 likes
- slyhne@slyhne
slyhne - 0 likes
You must log in to post replies.thanks for your replies, i found it in the start.php
So how did you do it? I'm trying to do the same thing.
in start.php:
//add submenu options for admin
if (get_context() == "market" && isadminloggedin()) {
// Get page owner
$page_owner = page_owner_entity();
if (($page_owner->guid == $_SESSION['guid'] || page_owner()) && isadminloggedin()) {
and in add.php just replace
gatekeeper(); with admin_gatekeeper();
works fine
Nice one Lenzen, cheers!
Hi, lenzen24
I did get an notification about you writing a comment on my market plugin, but I couldn't find it afterwards.
Anyway, I can see you did find a solution to your problem.
I will consider building this functionality into the next release, and make this behavior controlled in the plugin settings.
Regards
slyhne