Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: SMF, Coppermine, and Who's Online  (Read 3998 times)

0 Members and 1 Guest are viewing this topic.

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
SMF, Coppermine, and Who's Online
« 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
Code: [Select]
$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
Code: [Select]
cm_include_smf_funcs("$sourcedir/Subs.php", array("updateMemberData", "updateStats", "updateSettings"));to
Code: [Select]
cm_include_smf_funcs("$sourcedir/Subs.php", array("updateMemberData", "updateStats", "updateSettings", "writeLog"));
Now, after
Code: [Select]
reloadSettings();
LoadUserSettings();
add
Code: [Select]
$_GET['action'] = 'coppermine'; writeLog();
Now you'll know if someone is visiting your gallery!
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

aravot

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 73
    • Product Compare for Virtuemart Shopping Cart
Re: SMF, Coppermine, and Who's Online
« Reply #1 on: January 25, 2005, 11:29:08 pm »

Tried it today and it worked very useful, thank you.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.