Curves UI
[Support] How to add MyAlerts to CurvesUI - Printable Version

+- Curves UI (https://www.curvesui.com)
+-- Forum: Product Support (https://www.curvesui.com/forumdisplay.php?fid=12)
+--- Forum: Support (https://www.curvesui.com/forumdisplay.php?fid=4)
+--- Thread: [Support] How to add MyAlerts to CurvesUI (/showthread.php?tid=65)



How to add MyAlerts to CurvesUI - rocketfoot - 02-05-2024

Hello, I would like to add MyAlerts to Curvesui but I can't seem to fit the headericon in anywhere without breaking the template layout!  Any ideas on where I can add it or what to do to make it work?


RE: How to add MyAlerts to CurvesUI - I_Love_Curves_UI - 12-07-2025

Hi rocketfoot,

This one has been puzzling me too, but I have a solution Smile

If you look at line 382 of the MyAlerts plugin myalerts.php file, you'll see that it inserts the code in header_welcomeblock_member and inserts the applicable code after the modcp link.

This works great on the default MyBB theme, but Curves UI puts the User CP / Mod CP / Admin CP in a dropdown menu - and this seems to confuse the plugin.

Open up the header_welcomeblock_member template for Curves UI, find the {$myalerts_headericon} code that was inserted around line 8 and delete it.

Towards the bottom of the file, find this line:

Code:
<li class="list-inline-item ms-2">{$pmslink}</li>

and add this to the line before it

Code:
<li class="list-inline-item ms-2 d-inline-block d-sm-inline-block d-md-inline-block d-lg-none d-xl-none d-xxl-none">{$myalerts_headericon}</li>

Then go and edit the myalerts_headericon template and replace the contents of the file with this

Code:
<li class="alerts {$newAlertsIndicator}"  style="display: inline-block;">
    <a href="{$mybb->settings['bburl']}/alerts.php" class="myalerts" onclick="MyBB.popupWindow('/alerts.php?modal=1&amp;ret_link={$myalerts_return_link}', { fadeDuration: 250, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }); return false;"><i class="fas fa-bell"></i> &nbsp;{$lang->myalerts_alerts}
        ({$mybb->user['unreadAlerts']})</a>
</li>

This fixes the header icon in Curves UI (as shown below)



There are still other issues, this only fixes the header, and I haven't found fixes for those yet!


RE: How to add MyAlerts to CurvesUI - ms08 - 12-08-2025

thanks


RE: How to add MyAlerts to CurvesUI - selleck87 - 09-10-2025

Sorry for interrupting the discussion. I entered the suggested code and finally see “alert” in the menu. The problem is that when I click on alert, it looks terrible. How can I fix this? Thanks in advance.


RE: How to add MyAlerts to CurvesUI - selleck87 - 12-10-2025

I just wanted to let you know that everything is working now after tweaking the plugin in question a little.