0

在我的 RSVP 页面中,我希望能够向客人显示一条消息,显示姓名以及一条消息,说“您已被邀请......”。

我在我的数据库 rsvpEvent 中添加了一个字段,并仔细检查了命名是否正确。

如果有人可以查看此页面http://amy-and-duncan-are-getting-married.co.uk/rsvp/

名字 : craig
姓氏 : test
密码 : 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 行是新添加的代码行,有人能告诉我哪里出错了吗?

4

0 回答 0