• With WordPress 2.9.2+, you can include the user’s login name in the email if he/she is logged in. That way, you’ll know who sent the email if the user is logged in. For that you’ll have to tweak the code a little bit.

    in si-contact-form/si-contact-form-process.php
    Look for,
    if ($user_ID != ” && !current_user_can(‘level_10’) ) {
    //user logged in
    $user_info_string .= __(‘From a WordPress user’, ‘si-contact-form’).’: ‘.$current_user->user_login . $php_eol;
    }

    Replace
    if ($user_ID != ” && !current_user_can(‘level_10’) ) {
    with
    if (is_user_logged_in() ) {

    Easy fix.

    You’re welcome.

    http://wordpress.org/extend/plugins/si-contact-form/

Viewing 5 replies - 1 through 5 (of 5 total)
  • What is wrong with the code that is there?

    The code I have there works and includes all logged in users except administrators.
    Your code includes all users and admin.

    Thread Starter Blackgossbo

    (@blackgossbo)

    Oh I overlooked the fact that it didnt include the admin. Sorry man.
    On another note, i have an email for Form 1 and a different email for Form 2. When I try Form 2, it sends the email to Form 1’s email address. Any ideas?

    Did you use the correct shortcode for form 2?
    [si-contact-form form=’2′]

    Thread Starter Blackgossbo

    (@blackgossbo)

    Yes sir. In the Form 2 options, I didnt add Webmaster to ‘Email To’ list. And the email I specified is valid since the email test at the bottom works.

    I never had and issue where form would cross them.

    Test it using a totally different email address on the 2nd form, maybe they are getting crossed at your mail server.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Fast Secure Contact Form] Include User's Login Name if user is logged in’ is closed to new replies.