Investigate notification links to profiles

Register
Submit a solution
The challenge is finished.

Challenge Overview

As discussed previously:

@jmgasper Some notes why some links are displayed with default styles: notifications

I dig into Vanilla source code and see why it happens. Vanilla provides core functions ("/library/core/functions.*.php"). All functions from functions.render.php can be overriden into plugins. Some parts of controls/views/pages are formatted with the functions declared into functions.general.php which can't be overridden at all.

Vanilla keeps activity details in the activity table with html markups: activity_data-1

These phrases can be changed: activity_type-1

Vanilla uses smarty templates to format these values using static functions declared functions.general.php. e.g. "{ActivityUserID, user}" will be replaced with <a href="/profile/username" >Username</a>.

After loading activity data from database it is formatted, the first event is fired but we get rendered data in the plugin: 2020-04-12 1rendered

So we need to find a workaround if we want to change css styles(e.g. set ratings css style) or build markup dynamically. The custom formatter will be used instead of the static function 'formatString' from functions.general.php. I think it should be loaded in bootstrap. So need to investigate it if it's possible to implement.



Final Submission Guidelines

Git issue link: https://github.com/topcoder-platform/forums-plugins/issues/6

Review style

Final Review

Community Review Board

Approval

User Sign-Off

Challenge links

ID: 30122180