[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
 OpenForum.dk • Vis emne - Fornavn samt efternavn

Fornavn samt efternavn

Forslag til danske aktiviteter.

Redaktør: Redaktionen

Fornavn samt efternavn

Indlægaf Catch » 2007-05-24 01:30

Hej

Når man registrer sig i systemet så få man en velkomstbrev hvor der står "Kære Hr. efternavn" eller "Kære Fru. efternavn"

Hvordan kan jeg lave det om så der står Kære Fornavn +efternavn i velkomstbrevet?

Håber at der er nogen der kan hjælpe mig.

På forhånd tak.
Catch
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 270
Tilmeldt: 2007-05-18 01:34

Indlægaf mmic » 2007-05-24 03:16

Hej Catch
Hvis du går ind i admin/opsætning/costumer details, og der sætter 'gender' til false, så får du kun fornavnet med i velkomstmailen. Jeg ved ikke lige pt hvordan du får efternavnet med også.
Brugeravatar
mmic
Godt igang
Godt igang
 
Indlæg: 50
Tilmeldt: 2006-08-15 14:30

Indlægaf mmic » 2007-05-24 03:35

Fandt lige ud af hvordan man får både fornavn og efternavn med i velkomstmailen.
Gå ind i catalog/create_account og ret følgende: (det er næsten nede midt i filen)

// build the message content
$name = $firstname . ' ' . $lastname;

if (ACCOUNT_GENDER == 'true') {
if ($gender == 'm') {
$email_text = sprintf(EMAIL_GREET_MR, $lastname);
} else {
$email_text = sprintf(EMAIL_GREET_MS, $lastname);
}
} else {
$email_text = sprintf(EMAIL_GREET_NONE, $firstname);
}

Til:

// build the message content
$name = $firstname . ' ' . $lastname;

if (ACCOUNT_GENDER == 'true') {
if ($gender == 'm') {
$email_text = sprintf(EMAIL_GREET_MR, $lastname);
} else {
$email_text = sprintf(EMAIL_GREET_MS, $lastname);
}
} else {
$email_text = sprintf(EMAIL_GREET_NONE, $name);
}

Så skulle den gerne være der :)
Brugeravatar
mmic
Godt igang
Godt igang
 
Indlæg: 50
Tilmeldt: 2006-08-15 14:30

Indlægaf Catch » 2007-05-24 10:14

Hej og mange tak for dit hurtig svar: Kan kun finde følgende:

if (ACCOUNT_GENDER == 'true') {
if ( ($gender != 'm') && ($gender != 'f') ) {
$error = true;

Er det det jeg skal ændre i "create_account.php" Filen?
Catch
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 270
Tilmeldt: 2007-05-18 01:34

Indlægaf mmic » 2007-05-24 10:33

Nej, du skal meget længere ned i filen. I min er det helt nede i linje 242.

(Husk i øvrigt også stadig at sætte 'gender' til 'false', som jeg skrev først.)
Brugeravatar
mmic
Godt igang
Godt igang
 
Indlæg: 50
Tilmeldt: 2006-08-15 14:30

Indlægaf Catch » 2007-05-24 16:16

Catch
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 270
Tilmeldt: 2007-05-18 01:34

Indlægaf ladylone » 2007-05-24 21:33

Hej Catch

Tror vist også du har indlægget et andet sted:
Hvis det er en standard osc du har så sker det i catalog/login.php

Din nuværende tabel ser kort fortalt sådan ud:
...
...
<tabel>
<tr> <td>Ny kunde</td> <td>Jeg er medlem</td> </tr>
<tr> <td>Første boks</td> <td>Anden boks</td> </tr>
</table>
...
...
Og den skal du have ændret til noget i stil med:
<table>
<tr> <td>Ny kunde</td> </tr>
<tr> <td>Første boks</td> </tr>
<tr> <td>Jeg er medlem</td> </tr>
<tr> <td>Anden boks</td>< /tr>
</table>

Det kan bla. gøres på følgende måde:
...
...
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<!-- AAA --->
<tr>
<td class="main" width="50%" valign="top"><b><?php echo HEADING_NEW_CUSTOMER; ?></b></td>
<!-- fjernes herfra men flyttes længere ned
<td class="main" width="50%" valign="top"><b><?php echo HEADING_RETURNING_CUSTOMER; ?></b></td>
-->

</tr>
<tr>
<td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main" valign="top"><?php echo TEXT_NEW_CUSTOMER . '<br><br>' . TEXT_NEW_CUSTOMER_INTRODUCTION; ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<!-- tilføjet start -->
</tr>
<!-- AAA --->
<!-- BBB --->
<tr>
<td class="main" width="50%" valign="top"><b><?php echo HEADING_RETURNING_CUSTOMER; ?></b></td>
</tr>
<tr>
<!-- tilføjet slut -->
<td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main" colspan="2"><?php echo TEXT_RETURNING_CUSTOMER; ?></td>
</tr>
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main"><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b></td>
<td class="main"><?php echo tep_draw_input_field('email_address'); ?></td>
</tr>
<tr>
<td class="main"><b><?php echo ENTRY_PASSWORD; ?></b></td>
<td class="main"><?php echo tep_draw_password_field('password'); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="smallText" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></td>
</tr>
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td align="right"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<!-- BBB -->
</table></td>
</tr>
...
...
Håber du kan forstå ændringer og ideen.
Start med at se om det virker og bagefter tager du så alt der er mellem AAA-AAA og BBB-BBB og bytter om for at få boksene i den rækkefølge du ønsker.
MVH
Claus
ladylone
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 851
Tilmeldt: 2006-02-25 17:24
Geografisk sted: Hillerød

Indlægaf Catch » 2007-05-25 00:18

Undskyld ulejligheden, men forstår ikke hvad det er jeg skal slette eller erstatte :-(

Jeg ønsker følgende:
JEH ER MEDLEM ØVERST

JEG ER NY MEDLEM i en boks nedenunder

Således at medlemer har hurtig adgang til at logge sig ind uden at scrole ned eller noget... Håber du forstår hvad jeg mener.

Venligste hilsner herfra.
Catch
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 270
Tilmeldt: 2007-05-18 01:34

Indlægaf Catch » 2007-05-26 23:43

Jeg har fået fornavn samt efternavn på bekræftigelsesmailen.
Men hvordan får jeg det i fed skrift?
Catch
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 270
Tilmeldt: 2007-05-18 01:34

Indlægaf Michael » 2007-05-27 08:14

indsæt <b> forand og </b> bagved
Demoshop : www.The-Exterminator.dk
_________________
Knapper til din shop :
_________________
Contri jeg har været med i : http://addons.oscommerce.com/profile/94952
Brugeravatar
Michael
Ekspert medlem
Ekspert medlem
 
Indlæg: 1593
Tilmeldt: 2006-01-15 10:43
Geografisk sted: Ballerup

Indlægaf Catch » 2007-05-27 22:21

Tusinde Tak for dit svar, men hvor skal det placeres i følgende tekst?

define('EMAIL_GREET_NONE', 'Kære %s' . "\n\n");
define('EMAIL_WELCOME', 'Vi er glade for at kunne byde dig velkommen som kunde her hos os.
Catch
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 270
Tilmeldt: 2007-05-18 01:34


Tilbage til Forslag og ønsker til DK

Hvem er online

Brugere der læser dette forum: Ingen tilmeldte og 7 gæster

cron