forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: udgang99 on May 26, 2006, 12:44:18 pm

Title: "in-house" messagesystem
Post by: udgang99 on May 26, 2006, 12:44:18 pm
I was wondering why there isn't an "in-house" messagesystem in CPG? It would be nice if the users of a gallery could send emails to eachother ... to build a "community".
Title: Re: "in-house" messagesystem
Post by: Stramm on May 26, 2006, 03:22:26 pm
http://forum.coppermine-gallery.net/index.php?topic=28367.0
Title: Re: "in-house" messagesystem
Post by: udgang99 on May 26, 2006, 05:42:06 pm
That sounds really, really, realllllly great !!!

As far as I can understand (sorry, I'm simpelminded) I have to have phpBB2 installed first for the PM to work ... is that correct? And do you know of a step-by-step (for DUMMIES) tutorial on how to do this?
Title: Re: "in-house" messagesystem
Post by: Stramm on May 26, 2006, 05:54:22 pm
no, if you have phpbb2 installed the modpack uses the forums PM system and integrates it into coppermine. If you have a standalone CPG then the modpack adds its own PM system.
Title: Re: "in-house" messagesystem
Post by: udgang99 on May 26, 2006, 07:44:40 pm
Thank you SO much !!!  I installed it, and it work perfectly !!!  (one recommendation though - it would be cool to have a "SEND PM"-link, when you are checking somebodys profile out...

Anyway - I have implemented this thing into my gallery, which is in danish, and I'd like to translate these new features into danish, but looking over the english php-file, I have a hard time figuring out what is new, and what is old ... is it possible for you to let me know what is new, so I can translate it ? - you can have the file afterwards, and put it into your next update. ;)

Title: Re: "in-house" messagesystem
Post by: Stramm on May 26, 2006, 07:46:13 pm
there's a send PM link when viewing a users profile
http://stramm.st.funpic.org/profile.php?uid=1

and you can use a diff viewer like winmerge to compare the original and the modpack english langfile. With that it'S easy to copy over the changes to every other language file
Title: Re: "in-house" messagesystem
Post by: udgang99 on May 26, 2006, 07:47:25 pm
hmmm - I don't have that: http://www.udgang99.dk/cpg140/profile.php?uid=6
Title: Re: "in-house" messagesystem
Post by: Stramm on May 26, 2006, 07:53:24 pm
you have
http://www.udgang99.dk/cpg140/profile.php?uid=6&theme=tentacle

for other themes that classic, tentacle or oranje you need to copy the 'send pm' gfx to that themes images dir
Title: Re: "in-house" messagesystem
Post by: udgang99 on May 26, 2006, 08:03:33 pm
OMG !!!

Eversince I hit your link, I can't get away from the "tentacle-design! !!!!!!

How do I get back to "Hardwired" again??? -I tried changing in "setup", but nomatter what I choose, it wont change!!!
Title: Re: "in-house" messagesystem
Post by: udgang99 on May 26, 2006, 08:51:05 pm
ahhhh - I figured it out ... I used the same link as you had provided, just changed the last bit to =hardwired

... what a STRANGE function!!!  -You could really screw somebody up that way, by keep changing his/hers design!!!  :-\
Title: Re: "in-house" messagesystem
Post by: Stramm on May 26, 2006, 09:58:09 pm
This changes the design only for you.
You can either clear your cookies, use the way you found out or the theme selector to switch back to standard
Title: Re: "in-house" messagesystem
Post by: udgang99 on May 26, 2006, 10:00:57 pm
That's actually not right ... I had a friend of mine check it out on his computer, using the "real" adresse, and he only saw the change too . Also, I tried to change it back in the themeselector, but it didn't change back. 
Title: Re: "in-house" messagesystem
Post by: Stramm on May 26, 2006, 11:55:16 pm
actually it's right what I say. Try it again, then delete your cookie and open your site using your 'real' address. How yould you explain that you now get your default theme again??? Or do you want to claim that your local cookie can change your coppermine theme for all other possible users accessing your website???

And I'm not talking about the theme selector in config but the one you can enable for your users
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_theme_theme_list

If you still can't believe me I suggest checking the code
Title: Re: "in-house" messagesystem
Post by: Joachim Müller on May 27, 2006, 12:52:21 am
Initial question solved anyway, mods don't go supported on the "regular" support board.
Title: Re: "in-house" messagesystem
Post by: udgang99 on May 27, 2006, 08:48:58 am
@stamm: Okay, I guess your right ... all I know is that my friend (I was talking to him over msg) said that he saw a "white-design" (not Hardwired), but I may have misunderstod something! (I often do!) -Sorry to be a bother, especially when I so very, very happy with the service you have provided me !!

@GauGau: Yes, the initial question has been answerd - and I'm very, very happy !!! :)

-Kim
Title: Re: "in-house" messagesystem
Post by: udgang99 on May 27, 2006, 08:53:23 am
@stamm : Again, if you're interested, I would love to help out and translate this to danish !!! (and keep translating future versions).
Title: Re: "in-house" messagesystem
Post by: Stramm on May 27, 2006, 09:16:31 am
of course, I'd love if you try to translate the modpack language file to danish
http://forum.coppermine-gallery.net/index.php?topic=31907.msg147991#msg147991

see if you understand what I mean. It's the easiest way to compare files
Title: Re: "in-house" messagesystem
Post by: udgang99 on May 27, 2006, 09:29:58 am
Ahhh - somehow I missed the meaning of that post before  ::)
Anyway - how would you surgest that I do this in WinMerge? I have 3 files: original eng, mod eng (yours), and original danish. -and I want to make a "mod danish".   ... do I just compare the "mod eng" to the "original danish"?
Title: Re: "in-house" messagesystem
Post by: Stramm on May 27, 2006, 09:39:49 am
you open the modpack danish file (the one you want to create) in an editor
with winmerge you compare english.php orig and modpack. The changes winmerge shows you just copy/ paste into your editor (danish) and translate ;)
Title: Re: "in-house" messagesystem
Post by: udgang99 on May 27, 2006, 02:45:01 pm
Oh damn !!!

I have just spent a couple of house translating the file... and it turns out theres an ERROR now !!!
But what's really strange, is that it's on line 726 of danish.php, whish is simply:                               'pictures' => 'billeder',
... what can be wrong there???

If you want to have a look at it, drop me an email here: udgang99@gmail.com, and I'll send you the php-file.
Title: Re: "in-house" messagesystem
Post by: Joachim Müller on May 27, 2006, 05:26:37 pm
just zip it and attach it to your posting (using "additional options" when composing your message).
Title: Re: "in-house" messagesystem
Post by: udgang99 on May 27, 2006, 05:28:34 pm
Okay :)

Title: Re: "in-house" messagesystem
Post by: Stramm on May 27, 2006, 08:08:57 pm
attach the lang file to your next post and I'll have a look
Title: Re: "in-house" messagesystem
Post by: udgang99 on May 28, 2006, 12:38:10 am
@STRAMM: I did, it's in my previous post! ;)
Title: Re: "in-house" messagesystem
Post by: Stramm on May 29, 2006, 07:46:57 am
Code: [Select]
  'cur_sub_text' => 'Du er i øjeblikket abonnent på,needs to be
Code: [Select]
  'cur_sub_text' => 'Du er i øjeblikket abonnent p&aring',
Code: [Select]
if (defined('DB_INPUT_PHP')) $lang_db_input_php = array(change to
Code: [Select]
if (defined('DB_INPUT_PHP')) { $lang_db_input_php = array(
Title: Re: "in-house" messagesystem
Post by: udgang99 on June 01, 2006, 08:50:08 pm
Okay - I finally had the chance to make the two updates to the danish file - and it WORKS now !!! :) Thank you !!!

-Theres is just one thing more I'd like to ask. I'm using the Hardwired-theme, and that one dosn't show the "send PM" and "Become friends" icon, when you look at a users profile... what do I do to get those? Is it just a matter of creating two images, or is it a much bigger operation?

*** edit
I don't know if this is just me missing something, but it dosn't seem like the "Private Messages"-note, now displayed on the index right below "welcome back", works ... Eventhough I KNOW that I have some messages, it keeps saying "0 new messages" - cos' when I pop over to the forum, I can see I have several messages.
As far as I can figure out, this only works when there isn't a forum bridged to it...?

*** edit again
Okay, the PM system only works properly when not bridge with SMF - so I have decided to NOT bridge those two, because I like Stramm's PM-system better than SMF. Of course I'll still have the forum, it just wont be "connected" like before.

*** edit - once again ;)
This is to my first question, on how to make those "send pm" and "become friends" ... well, I figured it out! -For anyone else trying to find this out, all you have to do is copy the two images (you can see them while in classic-theme), and upload them to the theme you are using yourself. If needed, you can design your very own! -Very cool! :)

Last question !!!
On the index-page of my gallery, next to the usernames, it says "SEND PM" - I'd like to change that to "SEND PB" (danish!), but I have no idea where that line is in the code ... could you help me out? Roughly which linenumber?
Title: Re: "in-house" messagesystem
Post by: Stramm on June 02, 2006, 12:58:20 am
looks like you found out most on your own ;)

yes, you can create your own images that exactly match your theme. Therefore you need to create/copy the two images into your themes images folder. 

A bridged coppermine with modpack uses the forums PM system. Therefore you can't use modpack stats but have to implement the bbs function. I can't write and maintain such a function for each bbs...

Send PM on the index... I'm not exactly sure which one you mean but I guess that one
include/functions.inc.php in function build_caption ~line 850
Title: Re: "in-house" messagesystem
Post by: udgang99 on June 02, 2006, 01:04:41 am
line 850: YES! That was exactly the line I was looking for!!! Thank you, kind sir - you have helped me once again!!!