We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

disable status update on user profile [Solution Available] | Forum

ben
ben Jul 15 '14
anyone can update their status on anyone profile, and I dont want anyone update their satus on my profile, i hate this :))

is there any way to disable status update on newsfeed users profile?
The Forum post is edited by Alia Jul 23 '14
Alia Team
Alia Jul 23 '14
File to edit: ow_plugins/newsfeed/components/user_feed_widget.php

Find following piece of code: $feed->addStatusForm('user', $userId, $visibility)

Add custom check to show "Add Status Form" only for the feed owner:

 if (OW::getUser()->getId() == $userId )
                {

                    $feed->addStatusForm('user', $userId, $visibility);
                }


Save changes. And you are done =)

Tested only on 1.7 version of Oxwall.
This modification will be erased if you update "Newsfeed" plugin in future. Keep track of what and where you are changing.



ben
ben Jul 26 '14
Nice! thanks alot Aliaaaaaaa :))
Oxwall Türkiye
Oxwall Türkiye Aug 6 '14
hi Aliaa 

Everyone in the profile editing option of changing it possible to make friends. Personal photographs, I do not want to come to the general flow