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: How private messages work on CPG (with modpack) & SMF work?  (Read 5599 times)

0 Members and 1 Guest are viewing this topic.

blackRock

  • Translator
  • Coppermine novice
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 20
    • DecoClub
How private messages work on CPG (with modpack) & SMF work?
« on: April 12, 2007, 09:53:07 am »

I have CPG 1.4.10 (Modded by Stramm - lattest mod) bridged with SMF 1.1.2.
Tables are in the same db, and I use the same db user for both CPG and SMF.
When I choose to send a pm, I've been redirected to forum's send pm feature (.../forum/index.php?action=pm;sa=send;u=2).
From CPG I can't see if there is a pm when I log in (and I know I have some pm) and Private Messages link sends me to pms.php (of CPG), where of course I can't see any message. I think, the right is to send me to the Private Messages of the forum (.../forum/index.php?action=pm).

So, how private messages work? Is there something I've done wrong?

Thanks in advance.
« Last Edit: April 17, 2007, 06:32:47 pm by Stramm »
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: How private messages work on CPG (with modpack) & SMF work?
« Reply #1 on: April 12, 2007, 06:03:51 pm »

When you're bridged the mocpack won't use it's own PM system but the forums. As a downside of this the PM status info won't work anymore.

Quote
Additional info when logged in (default off)
Config -> Performance settings -> Display buddy status info when logged in, Display pm status info when logged in
displays additional info when a user's logged in, PM info only when you don't use a bridged coppermine

However with a lil bit of coding you can make it work.
-> copy function loginForm from include/themes.inc.php to the theme.php you're actually using (eg. themes/classic/theme.php)
 now just change the SQL query below
Code: [Select]
if ($CONFIG['display_pms_status']){
to grab the data from your forums db. Also change the link to your forums PM system
Code: [Select]
<a href='pms.php'>

blackRock

  • Translator
  • Coppermine novice
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 20
    • DecoClub
Re: How private messages work on CPG (with modpack) & SMF work?
« Reply #2 on: April 13, 2007, 02:18:52 pm »

Thank you very much! I made the changes and all works ok!
Logged

Blackdragon

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: How private messages work on CPG (with modpack) & SMF work?
« Reply #3 on: June 05, 2007, 06:55:47 am »

That fix would be a lot easier if you explained where to add that code in. Im not code savvy so for all i know it can go anywhere in there.
Something like replace this -->xxxxx with this-->xxxxx would be so helpful for us dummies
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: How private messages work on CPG (with modpack) & SMF work?
« Reply #4 on: June 05, 2007, 04:46:02 pm »

I can't tell you copy/ paste code cause what you need is forum specific.

Reason:
I do not know any forum software in general(just sometimes I check to see if the modpack works together with a few and to adapt bridge files) and especially I do not know the forum you're using.
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.