email contact via cb

17 years 9 months ago #18617 by jascha
email contact via cb was created by jascha
Hi @all,
yesterday I have upgraded to cb1.01, all works fine in the moment only when I want to contact members with email via cb email function in profil this warning is shown:

Warning: sprintf() [function.sprintf.php]: Too few arguments in /var/www/virtual/xyz.com/xyz_de/htdocs/administrator/components/com_comprofiler/comprofiler.class.php on line 3476
Ihre E-Mail wurde erfolgreich versendet!

CB send the email but give me this notice? Did anybody have the sme problem or has an Idea what we can do? I`m not a coder so I need help with this issue...;)

Thanx for your time.
Jascha

Please Log in to join the conversation.

17 years 9 months ago #18618 by jascha
Replied by jascha on topic Re:email contact via cb
Hi again,
this is the code around the row 3476:

if($addPrefix) {
$uname=getNameFormat($from->name,$from->username,$ueConfig);
$premessage = sprintf(_UE_SENDEMAILNOTICE, $uname, $mosConfig_sitename, $mosConfig_live_site);
if (isset($ueConfig) && $ueConfig == 2) {
$premessage .= sprintf(_UE_SENDEMAILNOTICE_REPLYTO, $uname, $from->email);
}


.....:(

Please Log in to join the conversation.

17 years 9 months ago #18712 by beat
Replied by beat on topic Re:email contact via cb
jascha wrote:

Hi again,
this is the code around the row 3476:

if($addPrefix) {
$uname=getNameFormat($from->name,$from->username,$ueConfig);
$premessage = sprintf(_UE_SENDEMAILNOTICE, $uname, $mosConfig_sitename, $mosConfig_live_site);
if (isset($ueConfig) && $ueConfig == 2) {
$premessage .= sprintf(_UE_SENDEMAILNOTICE_REPLYTO, $uname, $from->email);
}


.....:(


You should check in your language file that _UE_SENDEMAILNOTICE and _UE_SENDEMAILNOTICE_REPLYTO have the same number of %s as in the original default_language.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

17 years 9 months ago #18725 by jascha
Replied by jascha on topic Re:email contact via cb
Thanx for your help...now it works rigth;-)

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.174 seconds

Facebook Twitter LinkedIn