Thanks it worked...I'm loving it :)
Will wait for you regarding the other changes that you said will take time.
Thanks
Also allow your plugin to use oxwall variable like {$user_name} to use withing the plugin on custom tips like.
Hey there {$user_name}, welcome back
This would be great please :)
Any updates on these especially the above request with the {$user_name} issue ?
PUTTING USERNAME IN NEWSFEED
You can do this in /ow_plugins/newsfeed/components/UpdateStatus.php
Just a correction.. Its update_status.php actually.
Change the below line $field->setInvitation( OW::getLanguage()->text('newsfeed', 'status_field_invintation') );
to
$userName = BOL_UserService::getInstance()->getDisplayName(OW::getUser()->getId());$field->setInvitation( OW::getLanguage()->text('newsfeed', 'status_field_invintation',array('userName'=>$userName)) );
And then in your language page, change text for the keystatus_field_invintation.
What’s happening? to What’s happening {$userName}?
Seems he needs to render the variable as displayed information in the text string. This is the general Oxwall code for it:
$language = OW::getLanguage();
$language->text("pluginkey", "lang_key", array('user_name'=>$var));
You still need to call it as well to actually display.
Seems he needs to render the variable as displayed information in the text string. This is the general Oxwall code for it:
$language = OW::getLanguage();
$language->text("pluginkey", "lang_key", array('user_name'=>$var));
You still need to call it as well to actually display.
Okay this works and to prove it you can see the pic at the end of this post. but do this to achive what you want.
PUTTING USERNAME IN NEWSFEED
You can do this in /ow_plugins/newsfeed/components/UpdateStatus.php
Just a correction.. Its update_status.php actually.
Change the below line $field->setInvitation( OW::getLanguage()->text('newsfeed', 'status_field_invintation') );
to
$userName = BOL_UserService::getInstance()->getDisplayName(OW::getUser()->getId());$field->setInvitation( OW::getLanguage()->text('newsfeed', 'status_field_invintation',array('userName'=>$userName)) );
And then in your language page, change text for the keystatus_field_invintation.
What’s happening? to What’s happening {$userName}?
Hey Steve,How good that you solved Webster Molaudi. Maybe in another occasion he adds changes. At the moment I can not. Greetings to all. Have a good day.Thanks a lot it worked like a charm
Okay this works and to prove it you can see the pic at the end of this post. but do this to achive what you want.
PUTTING USERNAME IN NEWSFEED
You can do this in /ow_plugins/newsfeed/components/UpdateStatus.php
Just a correction.. Its update_status.php actually.
Change the below line $field->setInvitation( OW::getLanguage()->text('newsfeed', 'status_field_invintation') );
to
$userName = BOL_UserService::getInstance()->getDisplayName(OW::getUser()->getId());$field->setInvitation( OW::getLanguage()->text('newsfeed', 'status_field_invintation',array('userName'=>$userName)) );
And then in your language page, change text for the keystatus_field_invintation.
What’s happening? to What’s happening {$userName}?
The status Update worked but as per above i waiting for Jake's answer on where i can make those changes....or have any ideas or rather direct me in the plugins folder on which files to change the below ?
$language = OW::getLanguage();
$language->text("pluginkey", "lang_key", array('user_name'=>$var));
Hi Sumate,Hello Webster Molaudi, I made some updates that you may like. Happy 2019
The status Update worked but as per above i waiting for Jake's answer on where i can make those changes....or have any ideas or rather direct me in the plugins folder on which files to change the below ?
$language = OW::getLanguage();
$language->text("pluginkey", "lang_key", array('user_name'=>$var));