Advanced search  

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]

Pages: [1]   Go Down

Author Topic: need help with gallery name display in email  (Read 6288 times)

0 Members and 1 Guest are viewing this topic.

sugar

  • Guest
need help with gallery name display in email
« on: October 15, 2006, 11:51:23 pm »

Hi,

When emails with the registration link are sent to new users, the sender looks like:

"\"sugar&#39;s Photo Gallery\"" <myemail@something.com> 

In the config at 'general' I set the gallery name: (example:) sugar's Photo Gallery.

Can you help me? I use coppermine 1.4.9.

Thanks in advance!

sugar.
« Last Edit: October 27, 2006, 01:39:05 am by Nibbler »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: need help with gallery name display in email
« Reply #1 on: October 16, 2006, 12:08:11 am »

Known issue ( '  will replace by &#39 ) ,
You can remove ' from gallery name
Logged
‍I don't answer to PM with support question
Please post your issue to related board

sugar

  • Guest
Re: need help with gallery name display in email
« Reply #2 on: October 16, 2006, 07:00:34 pm »

Known issue ( '  will replace by &#39 ) ,
You can remove ' from gallery name

Hi Sami,
thanks for your reply.
When I replace ' by &#39 then my title on the main page of my gallery looks like "sugar&#39s Photo Gallery". Grrrrr...
I don't want this. Is there no other possibility other than removing the ' ? I mean, it would be wrong english if I write "sugars Photo Gallery".
Logged

Nibbler

  • Guest
Re: need help with gallery name display in email
« Reply #3 on: October 16, 2006, 08:10:53 pm »

I applaud your insistence on good grammar. :)

include/mailer.inc.php

find

Code: [Select]
if ($sender_name == '') { $sender_name = '"' . $CONFIG['gallery_name'] . '"'; }
change to

Code: [Select]

global $HTML_SUBST;
if ($sender_name == '') $sender_name = strtr($CONFIG['gallery_name'], array_flip($HTML_SUBST));
Logged

sugar

  • Guest
Re: need help with gallery name display in email
« Reply #4 on: October 17, 2006, 07:32:20 pm »

I applaud your insistence on good grammar. :)

Hehe  ;D

Quote
Code: [Select]
if ($sender_name == '') { $sender_name = '"' . $CONFIG['gallery_name'] . '"'; }
change to

Code: [Select]

global $HTML_SUBST;
if ($sender_name == '') $sender_name = strtr($CONFIG['gallery_name'], array_flip($HTML_SUBST));

Thanks a lot!
It works fine now with the senders name/title in the email, but in the email subject it's like before  :-\

Guess I have to change the code of the mailer.inc.php somewhere else as well? But where?

Logged

sugar

  • Guest
Re: need help with gallery name display in email
« Reply #5 on: October 23, 2006, 07:32:23 pm »

Ok, I guess there is no soluton for the broken subject in emails?

Just want to know if I can stop searching for a fix...

Thanks for any reply in advance,

sugar.
Logged

Nibbler

  • Guest
Re: need help with gallery name display in email
« Reply #6 on: October 23, 2006, 08:28:43 pm »

Apply the same code to the subject.

Code: [Select]
$subject = strtr($subject, array_flip($HTML_SUBST));
Logged

sugar

  • Guest
Re: need help with gallery name display in email
« Reply #7 on: October 27, 2006, 01:20:59 am »

Thank you very much, Nibbler!  :)

First, I didn't really know where to add the code you suggested, because I couldn't find something that looked right,
but then I inserted it right under the other code (see above post) and it seems too work (I made one user registration test).
YEAH!!
Thanks for your help! Now I'm very happy.  8)

I hope this little fix will be included in the next update of coppermine. ;)
Logged

Nibbler

  • Guest
Re: need help with gallery name display in email
« Reply #8 on: October 27, 2006, 01:38:52 am »

I hope this little fix will be included in the next update of coppermine. ;)

Done.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.