Thank youIf I have time next week, I'll write one up and upload here!
Do you have news ?If I have time next week, I'll write one up and upload here!
Please keep me posted, I will donate!
I'll add support for HTML, but will not be able to add support for BBCode.
Not sure about this, had thought about this initially, but I am not sure if I'll be able to parse this sort of stuff. Maybe I'll add a list of variables that can be used in the message and title, for which I'll have to create a custom parser.@Aayush Will it support replacables used for most other places (warning PMs, notices, etc)? ie; {name}, {user_id}, etc.
I would have thought it would have to be bbcode in conversations?I'll add support for HTML, but will not be able to add support for BBCode.
XF just does straight string replacements, nothing that fancy.Not sure about this, had thought about this initially, but I am not sure if I'll be able to parse this sort of stuff. Maybe I'll add a list of variables that can be used in the message and title, for which I'll have to create a custom parser.
If you have any idea how I could parse this kind of stuff using XF built in parser or something, please let me know.
$noticeTokens = array(
'{name}' => $user['username'] !== '' ? $user['username'] : new XenForo_Phrase('guest'),
'{user_id}' => $user['user_id'],
);
XenForo_CodeEvent::fire('notices_prepare', array(&$noticeList, &$noticeTokens, $template, $containerData));
foreach ($noticeList AS $noticeId => $notice)
{
$notices[$noticeId] = array(
...
'message' => str_replace(array_keys($noticeTokens), $noticeTokens, $notice['message']),
...
);
}
Probably BBCode, IDK, it wouldn't be possible to add support for both, I'll still have to look into that part later.I would have thought it would have to be bbcode in conversations?
XF just does straight string replacements, nothing that fancy.
For example, XenForo_ViewRenderer_HtmlPublic has the following code:
Code:$noticeTokens = array( '{name}' => $user['username'] !== '' ? $user['username'] : new XenForo_Phrase('guest'), '{user_id}' => $user['user_id'], ); XenForo_CodeEvent::fire('notices_prepare', array(&$noticeList, &$noticeTokens, $template, $containerData)); foreach ($noticeList AS $noticeId => $notice) { $notices[$noticeId] = array( ... 'message' => str_replace(array_keys($noticeTokens), $noticeTokens, $notice['message']), ... ); }
We use essential cookies to make this site work, and optional cookies to enhance your experience.