Include Username on an Oxwall Newsfeed Status

Today I am going to show you how to change the default newsfeed status message to include the username of the member using it. When I refer to the newsfeed status message I mean the little message that says “What’s happening?”
My Snapshot44

Open up your Arvixe cPanel and head over to your File Manager.
My Snapshot46

The line of code we are looking to edit can be found here. /ow_plugins/newsfeed/components/update_status.php

My Snapshot47
My Snapshot58
My Snapshot49
My Snapshot57

Once we find the correct location we are going to tap cntrl+f and search for the following

$field->setInvitation( OW::getLanguage()->text(‘newsfeed’, ‘status_field_invintation’) );

and change to

$userName = BOL_UserService::getInstance()->getDisplayName(OW::getUser()->getId());
$field->setInvitation( OW::getLanguage()->text(‘newsfeed’, ‘status_field_invintation’,array(‘userName’=>$userName)) );

My Snapshot52

My Snapshot51
My Snapshot52
My Snapshot53

Now open up your sites language page,( and use the search bar to find the text What’s happening? Change the following text.

What’s happening?
What’s happening {$userName}?
My Snapshot54

Save. Congrats. You just finished modding your newsfeed!
My Snapshot55

Looking for quality Oxwall Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , | Posted under Oxwall | RSS 2.0

Author Spotlight

Charles Benson

I'm here to find you answers and give you tips on running an oxwall based website through Arvixe Web hosting. If you need anything at all feel free to get in touch with me!

Leave a Reply

Your email address will not be published. Required fields are marked *