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

user activity on user profile | Forum

inside83
inside83 Dec 29 '14
Hello,


Does anyone know how to disable input on user activity widget on user profile page?

"User activity" refers to <div class="ow_dnd_widget profile-NEWSFEED_CMP_UserFeedWidget">


When I add user activity widget on user profile page, it has an input area on top (like the one one the main page, with the option to write a status or ask a question) but I would to remove that input area.

It would basically be just an information on user activity (likes, posts, friendships...) 

The Forum post is edited by inside83 Dec 29 '14
ross Team
ross Dec 29 '14
Topic was moved from General Questions.
inside83
inside83 Jan 7 '15
no one?
Daisy Team
Daisy Jan 20 '15
You can hide it using CSS. Simply try adding the following code via Admin Area > Appearance > Edit Theme > CSS:

.profile-NEWSFEED_CMP_UserFeedWidget textarea.ow_newsfeed_status_input {
    display: none !important;
}
inside83
inside83 Jan 20 '15

Daisy,

You're genius!!!

...

But there's still the option to click on "Status" (which does nothing when clicked) and the option to click on "Question" (which actually opens the options for asking a question)

How to hide that, please...

D Colton
D Colton Jan 20 '15
WTF do I have to do to get an answer to my questions?  $$$?  Ok....somebody respond to my question and I can offer $$$$
inside83
inside83 Jan 20 '15
@D Colton

Why are you trashing the thread if you have nothing to say regarding the topic?

What questions are you talking about?

Oxwall Tips
Oxwall Tips Jan 20 '15
inside83, as far as I know "Questions" link comes from a third party plugin called "Question and Polls" ( or something like that). So you might want to check with developer of that plugin  on how to hide that link.
The Forum post is edited by Oxwall Tips Jan 20 '15
inside83
inside83 Jan 21 '15
@Oxwall Tips,


I know, I just wrote to Sergey Kambalin (the developer of the plugin) but I think that if I find a way to hide "Status" (which does not come from a plugin), I could easily hide the "Question" label/link as well.


Thank you for your input.

Oxwall Tips
Oxwall Tips Jan 21 '15
inside83 , just an idea. not sure how it will work out.
But you might want to try editing the source code ( modification will be erased if you update the plugin in future)
ow_plugins/newsfeed/compoents/my_feeed_widget.php :


 public function __construct( BASE_CLASS_WidgetParameter $paramObj )
    {
        parent::__construct($paramObj);

        $feed = $this->createFeed('my', OW::getUser()->getId());
        $feed->setDisplayType(NEWSFEED_CMP_Feed::DISPLAY_TYPE_ACTIVITY);
       
       if ( OW::getUser()->isAuthorized('newsfeed', 'allow_status_update') )
        {
            $feed->addStatusForm('user', OW::getUser()->getId());
        }


        $this->setFeed( $feed );
    }
The Forum post is edited by Oxwall Tips Jan 21 '15
inside83
inside83 Jan 22 '15
@Oxwall Tips

I should delete/comment out the bolded lines?

inside83
inside83 Jan 22 '15
@Oxwall Tips

I tries both deleting and commenting out those lines - did not work.


But thank you for your input.

Daisy Team
Daisy Jan 22 '15
If you are using the Questions/Polls plugin. Try using these styles in addition to the styles I've provided above:

.profile-NEWSFEED_CMP_UserFeedWidget .gtabs-tabs-c {
    display: none !important;
}
inside83
inside83 Jan 22 '15
Daisy,


There's a beer with your name on it :)