How private messages work on CPG (with modpack) & SMF work? How private messages work on CPG (with modpack) & SMF work?
 

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]

Main Menu

How private messages work on CPG (with modpack) & SMF work?

Started by blackRock, April 12, 2007, 09:53:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blackRock

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.

Stramm

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
if ($CONFIG['display_pms_status']){
to grab the data from your forums db. Also change the link to your forums PM system
<a href='pms.php'>

blackRock

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

Blackdragon

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

Stramm

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.