| Bug : | User is online tag, with clear text |
| Status : | Fixed |
| Severity : | Enhancement |
| Reporter : | BroshizzleDizzle |
| Updated by : | Olivier C. |
| Category | Forums |
| Version : | 121 |
| Frequency : | Consistently |
| Fixed in : | 125 |
| Details : | We have a tag for determining whether the user is online or not, but a 0 or 1 just doesn't really cut it. What if I want to display the text "User is (online|offline)"? Currently, I cannot. I suggest that a new tag is added that grabs text from the language file. The code is simple. I don't particularly care about the name of the tag nor the exact array name, but for the sake of the example, I used FORUMS_POSTS_ROW_POSTERONLINE. The code inserted /system/core/forums/forums.posts.inc.php, at around 570 would be something like: Code: "FORUMS_POSTS_ROW_POSTERONLINE" => sed_userisonline($row['fp_posterid']) ? $skinlang['forumspost']['Online'] : $skinlang['forumspost']['Offline'] |
| Items affected : | system/core/forums/forums.posts.inc.php |
History and comments :
| 24-05-2008 14:18 Olivier C. |
| 24-05-2008 14:16 Olivier C. PM sent to the reporter : |
| 24-05-2008 14:09 Olivier C. PM sent to the reporter : |
| 24-05-2008 14:09 Olivier C. Added, tag will be : |