Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi Dan

    Yes, that is exactly the scenario – I tried to login using the WordPress App on the iphone, which had an old password in it.

    Just a suggestion – surely once a password has been changed and the user logged-in again you should clear that IP as being from an attacker? Otherwise everyone who forgets their password will have to delete the plugin.

    I still think its a neat plugin though ??

    I just wanted to post a note that I have had the exact same problem with this plugin as described in this thread. Ie repeatedly logged out and told to reset the password, then logged out again as soon as the password is changed.

    I also get an email telling me to email myself if I’m not me:

    Someone just logged into your ‘xxxxxx’ account at XXXXXX. Was it you that logged in? We are asking because the site happens to be under attack at the moment.

    To ensure your account is not being hijacked, you will have go through the ‘Lost your password?’ process before logging in again.

    If it was NOT YOU, please do the following right away:
    * Send an email to xxxxxxx letting them know it was not you who logged in.

    I had to delete the plugin to get back in.

    I have now switched to a different security plugin, which is a shame as yours seems like a neat plugin.

    Thread Starter dibbit

    (@dibbit)

    How? Using All In One SEO each page or post has a separate Menu Label box where you can set the name as it appears in the nav menu. For example if you have a page whose title is “100 Greatest Films Ever Made” you could set Menu Label to read “Top 100 Films” and that is the name that will appear in the nav menu.

    I can’t see how to do that in WordPress itself and if it is possible, it would be a good idea to incorporate that into the All In One importer in your SEO plugin, as right now if I switch to WordPress SEO all my menu titles break.

    Thread Starter dibbit

    (@dibbit)

    That is why I am looking for an alternative to the media uploader. My original question remains:

    “Anyone know how to change the menu_order ID on an image?”

    If I knew how to do that I could write a bit of code to do what I want in half an hour or so.

    Thanks again for your suggestions.

    Thread Starter dibbit

    (@dibbit)

    No. If they can access the media library they can delete other users images.

    Back to the original question I suppose, but thanks for your suggestions.

    Thread Starter dibbit

    (@dibbit)

    Are you sure I can give them access to the media uploader without them then having access to the media library and hence other users images?

    Thread Starter dibbit

    (@dibbit)

    Indeed why can’t they? WordPress just isn’t flexible enough to do that, so I need a different solution, hence my question.

    Just to restate I need a user to be able to change the order of the images on one page and not be able to delete, upload or alter the order of images on any other pages.

    Thread Starter dibbit

    (@dibbit)

    Thanks for the reply. When I said “users” I did in fact mean users of the website not visitors. I need to allow a user to edit the order of images on their own page. Sorry that I didn’t make that clear.

    I don’t really want to make changes direct to the database, and was hoping that there is some function I can call to update the images?

    Thread Starter dibbit

    (@dibbit)

    Hi Jenn

    Here is the code snippet I changed. Its in si-contact-form/si-contact-form.php in Version 2.9.8.4. You will need to change the custom field name to whatever you are using. I don’t know if the code has changed in later versions of the plugin.

    global $post;
      if ( 1 /*$si_contact_opt['email_subject'] == get_option('blogname') . ' ' .'Contact:'*/) {
          $si_contact_opt['email_subject'] =  'PUT YOUR WEBSITE NAME HERE ' .__('Contact ', 'si-contact-form') . "Ref: " . get_post_meta( $post->ID, "Reference", true) ;
          $si_contact_option_defaults['email_subject'] = $si_contact_opt['email_subject'];
      }

    To find the code search for the line I have commented out. Hope that helps.

    Thread Starter dibbit

    (@dibbit)

    Thanks Mike – I actually did it in the end by making a small change to the PHP, so that the subject line has a custom field value tacked on.

    BTW best contact form plugin I have found.

    Thread Starter dibbit

    (@dibbit)

    I must have been having brain fade when I posted on this back in December, as you clearly can’t use a variable before you have set its value…

    Two possible solutions:

    1) Use GET or POST data to communicate with the header part of the page.

    2) Save the value you want to pass in a custom field somewhere and retrieve it in the header. This will only work if the value is the same for everyone who looks at your website.

    Hope that helps.

    I had the exact same problem, so I made a small change to WP Mail From to allow contact form 7 to work correctly with it. My change means that if an email goes through WP Mail From with the default wordpress name and address, then WP Mail From changes that name/address to the ones specified in the settings. If however the name/address isn’t the default (like when someone uses the contact form), they are passed straight through. I think this is more sensible behaviour anyway for WP Mail From.

    Here is the snippet of code I changed in the last two functions in wp-mailfrom/wp-mailfrom.php:

    function site_mail_from ($mail_from_email) {
      $site_mail_from_email = get_option('site_mail_from_email');
      if( $mail_from_email != "[email protected]" || empty($site_mail_from_email) ) {
        return $mail_from_email;
      }
      else {
        return $site_mail_from_email;
      }
    }
    
    function site_mail_from_name ($mail_from_name) {
      $site_mail_from_name = get_option('site_mail_from_name');
      if( $mail_from_name != "WordPress" || empty($site_mail_from_name) ) {
        return $mail_from_name;
      }
      else {
        return $site_mail_from_name;
      }

    You will have to replace my website name (football-racing-betting-forum.co.uk) with your own in the above code snippet – or indeed spend five minutes making it work generically.

    Anyway, works for me, hope it helps someone else.

    I came up against this problem using Contact Form 7 – I needed to include a custom field value in the subject of the form. I added this simple fix to the file modules\text.php. First find this code at line 76 on:

    // Value
    	if ( is_a( $wpcf7_contact_form, 'WPCF7_ContactForm' ) && $wpcf7_contact_form->is_posted() ) {
    		if ( isset( $_POST['_wpcf7_mail_sent'] ) && $_POST['_wpcf7_mail_sent']['ok'] )
    			$value = '';
    		else
    			$value = stripslashes_deep( $_POST[$name] );
    	} else {
    		$value = isset( $values[0] ) ? $values[0] : '';
    	}

    I then added the following lines:

    if ( $name == 'your-subject' )
    	{
    		global $post;
    		$result = get_post_meta($post->ID, 'Reference', true);
    		$value = "Ref: " . $result ;
    	}

    My hack places the value of the Custom Field ‘Reference’ as the subject line, so when a user sends a contact form, it contains the reference number of the property they are looking at. If you want to use this with a different custom field, just change the name ‘Reference’ to the one you want.

    If you want to see it in action have a look at the site:

    https://www.nerja-holidayrentals.com/

    Hope this is of use to someone else.

Viewing 13 replies - 1 through 13 (of 13 total)