在我的RSVP页面中,我希望能够向显示该名称的访客显示一条消息,并显示“您已被邀请......”的消息。
我在数据库rsvpEvent中添加了一个字段,并仔细检查了命名是否正确。
如果有人可以查看此页http://amy-and-duncan-are-getting-married.co.uk/rsvp/。
名字:克雷格
姓氏:测试
密码:rsvp
以下是我添加的代码行
if($attendee != null) {
// hey we found something, we should move on and print out any associated users and let them rsvp
$output = "<div>\r\n";
if(strtolower($attendee->rsvpStatus) == "noresponse") {
$output .= RSVP_START_PARA."Hi ".htmlspecialchars(stripslashes($attendee->firstName." ".$attendee->lastName)).RSVP_END_PARA;
$output .= RSVP_START_PARA."You have been invited to ".($attendee->rsvpEvent).RSVP_END_PARA;
/*if(trim(get_option(OPTION_WELCOME_TEXT)) != "") {
$output .= RSVP_START_PARA.trim(get_option(OPTION_WELCOME_TEXT)).RSVP_END_PARA;
} else {
$output .= RSVP_START_PARA.__("There are a few more questions we need to ask you if you could please fill them out below to finish up the RSVP process.", 'rsvp-plugin').RSVP_END_PARA;
}*/
$output .= rsvp_frontend_main_form($attendee->id);
} else {
$output .= rsvp_frontend_prompt_to_edit($attendee);
}
return rsvp_handle_output($text, $output."</div>\r\n");
}
第7行是已添加的新代码行,有人可以告诉我哪里出错了吗?