Vietnam
|
Edited by fanha99 at 2012-4-11 23:51
hi, because Discuz save the full sentence into the database, and it will get the text when it save. It is difficult to make it change when display.
So my solution is, replace "replied your post in thread" with "{action}" inside the text id: 'reppost_noticeauthor'
- 'reppost_noticeauthor' => '{actor} {action} <a href="forum.php?mod=redirect&goto=findpost&ptid={tid}&pid={pid}" target="_blank">{subject}</a> <a class="lit" href="forum.php?mod=redirect&goto=findpost&pid={pid}&ptid={tid}" target="_blank">View</a>',
Copy the Code then I add a new text id:
- 'post_action' => 'replied your post in thread',
Copy the Code then, when display the notify, I just call this
- $value['note'] = str_replace('{action}', lang('notification', $value['type'].'_action'), $value['note']);
Copy the Code It work as charm.
if the solution is accepted I will replace all the notify text with this, and add an text file call 'notification_action' to store all the action text.
|
This post contains more resources
You have to Login for download or view attachment(s). No Account? Register
x
|