coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: kegobeer on July 07, 2004, 10:06:58 AM

Title: SMF, Coppermine, and Who's Online
Post by: kegobeer on July 07, 2004, 10:06:58 AM
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!
Title: Re: SMF, Coppermine, and Who's Online
Post by: aravot on January 25, 2005, 11:29:08 PM
Tried it today and it worked very useful, thank you.