0
drupal 6 사용자 정의 user-register.tpl.php 양식을 만들었습니다. 사용자 이름이나 이메일이 이미 존재하면 상자가 빨간색으로 표시되지만 " 귀하의 이메일이 이미 등록되었습니다. "가 표시되지 않습니다. "귀하의 로그인 정보가 귀하에게 우편으로 발송되었습니다"라고 성공적으로 등록하면 메시지가 표시되지 않습니다.user-register.tpl.php 오류 메시지가 나타나지 않습니다.
어떻게 해결할 수 있습니까? 내 코드는
<div id="registration_form">
<div class="field">
<?php print drupal_render($form['name']); // prints the username field
?>
</div>
<div class="field">
<?php
print drupal_render($form['mail']); // print the email field
?>
</div>
<div class="field">
<?php
print drupal_render($form['submit']); // print the submit button
?>
</div>
<?php
print drupal_render($form['timezone']);
print drupal_render($form['form_build_id']);
print drupal_render($form['form_id']);
?>
<?php
drupal_set_message('<pre>'. var_export($variables,TRUE) .'</pre>');
?>
당신은 변수
$ 메시지로
page.tpl.php에 직접
drupal_set_message() 방법으로 제조 된 메시지를 인쇄 할 수 있습니다 당신에게
위대한! 그 코드는 user-register.tpl.php와 user-login.tpl.php 페이지에 넣었고 작동하지 않았다. 그것을 page.tpl.php에 넣으면됩니다. 감사 –