Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Make user names etc in log entries clickable  (Read 4353 times)

0 Members and 1 Guest are viewing this topic.

Veronica

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: se
  • Offline Offline
  • Posts: 106
  • Coppermine 1.5.22
Make user names etc in log entries clickable
« on: October 26, 2012, 04:09:53 am »

I want to see at least all user names in log files with links to their profiles so you make the admin user work to follow up on log entries more user friendly.





Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Make user names etc in log entries clickable
« Reply #1 on: October 26, 2012, 04:23:44 am »

Shouldn't involve much more then a find and replace on $USER_DATA['user_name'] and $user_name where the log_write function is called. In other words, I don't see why this can't be added in future versions.

Thanks for the request.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Veronica

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: se
  • Offline Offline
  • Posts: 106
  • Coppermine 1.5.22
Re: Make user names etc in log entries clickable
« Reply #2 on: October 26, 2012, 04:36:22 am »

Excellent and there are about 35 log_writes in 13 files cpg.
Replace also the htmlspecialchars call with strip_tags(trim($log_entry), '<a>') in viewlog.php line 82
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Make user names etc in log entries clickable
« Reply #3 on: October 26, 2012, 04:42:28 am »

I don't have svn access so we'll have to wait for Αndré or Phill to approve it.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 21 queries.