NEOCROME
Bug :User is online tag, with clear text
Status :Fixed
Severity :Enhancement
Reporter :BroshizzleDizzle 29-04-2008 06:41
Updated by :Olivier C. 24-05-2008 14:16
CategoryForums
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.

http://www.neocrome.net/plug.php?e=sedt&f=125

24-05-2008 14:16   Olivier C.

PM sent to the reporter :
This bug is now fixed.

24-05-2008 14:09   Olivier C.

PM sent to the reporter :
This bug is now fixed.

24-05-2008 14:09   Olivier C.

Added, tag will be :

FORUMS_POSTS_ROW_USERONLINE_TEXT