Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2009 at 02:47 UTC
Updated:
21 Oct 2015 at 21:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidThe node/%node/track SQL query can be written as the perfectly SQL-99 valid query and there would be no change needed for theme_username():
SELECT a.aid, a.timestamp, a.url, a.uid, (CASE a.uid WHEN 0 THEN a.hostname ELSE u.name END) AS name FROM accesslog a LEFT JOIN users u USING(uid) WHERE a.path LIKE 'node/%d%%'Also would like to change this at admin/reports/dblog, and admin/reports/hits.
Comment #2
dave reidInitial patch for review. Changing theme_username seems to be the way to go because if I used the SQL in #1, an unwanted condition in theme_username would hit.
Comment #4
dave reidRe-rolled because user table name was rolled back to users.
Comment #5
moshe weitzman commentedYup, just a little more useful. Thanks.
Comment #6
dries commentedI'm not convinced that should live in theme_username(). I think the caller of theme_username() should be made smarter instead.
Comment #7
johnalbinAfter a quick glance, I think this might be a duplicate of #192056: User's raw login name should not be output directly. But I'll let you guys make that determination.
Comment #8
dave reidNo this is quite a bit different from #192056: User's raw login name should not be output directly. Let's leave it separate for now.
Comment #9
akahn commentedTo whom it may concern,
Work being done in #514928: Provide {comment}.hostname in comment_render() may make this task more do-able.
Comment #10
dave reidReverting title
Comment #11
Zed Pobre commented#4: 381802-theme-username-hostname-D7.patch queued for re-testing.
Comment #12
Zed Pobre commentedI requeued only to verify that the patch breaks as badly in the automated tester as it does on my own install. I wasn't intending to change the status.
Comment #13
mgiffordPushing this to D8. Would be nice if there was a hook that could be used to make this work in D7 mind you. Maybe it will be backported....
Comment #14
mandreato commentedSubscribe
Comment #15
japerryChanged issue format into filtered html because it was originally made with a user who had full html support, which blocks most users from commenting on an issue.
Comment #16
lauriiiI don't believe it is useful information for the user to show their IP for them.