MyBB Community Forums

Full Version: Which template...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Which template contains the text in the private message notification box? Its called {$privatemessage_text} in the global pm alert template but I can't find it Sad
I suspect it may be in one of the language files:

Use this script to search your server for it: Change the string 'listing forumlist' to what you need

<?php
$command = "grep -ri 'listing forumlist' ./*";
$output = shell_exec($command);
echo "$output";
echo "Grep job over.";
?>
https://github.com/mybb/mybb/blob/20903e...g.php#L387

$l['newpm_notice_one'] = "<strong>You have one unread private message</strong> from {1} titled <a href=\"{2}/private.php?action=read&amp;pmid={3}\" style=\"font-weight: bold;\">{4}</a>";
$l['newpm_notice_multiple'] = "<strong>You have {1} unread private messages.</strong> The most recent is from {2} titled <a href=\"{3}/private.php?action=read&amp;pmid={4}\" style=\"font-weight: bold;\">{5}</a>";
Hey eeji

Go to your Admin CP then > Configuration > Languages > Options > Edit variables > click edit for global.lang.php

Now find the following
newpm_notice_one
newpm_notice_multiple

Edit the text in those fields to what you'd like.
thanks all, found it in the language file although it does seem very odd that they contain html (needed to remove the <strong> tags)