I love SMF's ability to see who's visiting my forums and exactly where they are. Unfortunately, once a visitor goes to my Coppermine gallery I lose them - all I see is "Viewing the main index" or something along those lines. Well, here's how to fix that!
First, add a line like
$txt['whoall_coppermine'] = 'Viewing the Gallery.';
to your SMF theme's Who.english.php file.
Next, open up coppermine/bridge/smf.inc.php and change
cm_include_smf_funcs("$sourcedir/Subs.php", array("updateMemberData", "updateStats", "updateSettings"));
to
cm_include_smf_funcs("$sourcedir/Subs.php", array("updateMemberData", "updateStats", "updateSettings", "writeLog"));
Now, after
reloadSettings();
LoadUserSettings();
add
$_GET['action'] = 'coppermine'; writeLog();
Now you'll know if someone is visiting your gallery!
Tried it today and it worked very useful, thank you.