forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: blackRock on April 12, 2007, 09:53:07 am

Title: How private messages work on CPG (with modpack) & SMF work?
Post by: blackRock 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.
Title: Re: How private messages work on CPG (with modpack) & SMF work?
Post by: Stramm 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'>
Title: Re: How private messages work on CPG (with modpack) & SMF work?
Post by: blackRock on April 13, 2007, 02:18:52 pm
Thank you very much! I made the changes and all works ok!
Title: Re: How private messages work on CPG (with modpack) & SMF work?
Post by: Blackdragon 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
Title: Re: How private messages work on CPG (with modpack) & SMF work?
Post by: Stramm 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.