EDIT:
Just guestimating...
Since it's blog component and we are talking about a widget.
Look into ow_plugins/blogs/components/blog_widget
There you should find helper method I typed above.
In the constructor search for array $posts[] variable (around line 73).
It that array you will see that there is $previewLength variable.
Conclusion: widget has built in option for you to truncate the blog text.
... I totaly missed the target; we should search for a newsfeed observer or something similar to that.
Scrap that, look into ow_plugins/newsfeed/components
... run out of time, will look into it when I get back home :)
Maybe someone else can help?
krunch do you still need this ? I will find it for you if you do..
I think there is "UTIL_String::truncate($text, $length, '...')" that's responsible for character truncation count.
EDIT:
Just guestimating...
Since it's blog component and we are talking about a widget.
Look into ow_plugins/blogs/components/blog_widget
There you should find helper method I typed above.
In the constructor search for array $posts[] variable (around line 73).
It that array you will see that there is $previewLength variable.
Conclusion: widget has built in option for you to truncate the blog text.
... I totaly missed the target; we should search for a newsfeed observer or something similar to that.
Scrap that, look into ow_plugins/newsfeed/components
... run out of time, will look into it when I get back home :)
Maybe someone else can help?
I did find the css which is in ow_plugins/newsfeed/classes/event_handler.php line 821
inside of function satusUpdate
$eventData = array(
'content' => '<div class="ow_smallmargin ow_newsfeed_status_txt">' . $status . '</div> [ph:attachment]',
'view' => array(
'iconClass' => 'ow_ic_comment'
),
i have not yet found the text limiter thought but i will keep looking...it has to be close by.
this might notification and not the update but look in same file line 1349
'content' => UTIL_String::truncate($data['status'], 100, '...'),
and another on line 1290
'status' => UTIL_String::truncate($status, 100, '...'),
and another on 1212
'status' => UTIL_String::truncate($status, 100, '...'),
sorry i thought you said 100 oops i will keep looking dang
the size of that box is 400px so i think that is handled by
ow_plugins/notfications/views/components/notification_html.html line 18
<div style="display: inline-block; word-wrap: break-word; vertical-align: top; width: 400px;">
<div>{$item.string}</div>
{if $item.content}
<div style="font-size:11px;color:#666;">{$item.content}</div>
{/if}
</div>
so now i just have to backtrack item content or item string to see where it is set. .
problem is that i cant seem to find where item content, item context, or item string are assigned to smarty in any php file.
i checked the cron, i even checked the table values to see if it was limited there and did not find it. that field is long text or text and i think it comes from the table newsfeed_staus or newsfeed_action strange where is that thing..
my thought is that it would be a even number its prob not 970, i dont think the devs would set it as a strange number like 969. My best guestimate would be its either 960 or 965 so ill check those out...
Also dont forget it could very well NOT be set as a truncated text space, it could be just a block that is 400 wide with a height limitation and have the overflow hidden via css, so we have to consider that it could be either way when are are looking.. that would explain the odd number.
You might consider comparing two seperate posts and seeing if it is the same number of characters. If it is not the same then we need to start looking at css
well if that much difference it cant be a static php setting or truncate unless it goes by percent and not a whole number. i need to sleep for a while but when i get up i will make another attempt.
sorry krunch i failed... maybe a team member can let us in on the secret lol...