Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Thann

    (@thann)

    now I found how to do it using Contact Form 7 – Dynamic Text Extension:
    http://sevenspark.com/wordpress-plugins/how-to-dynamically-set-the-recipient-to-email-address-in-contact-form-7
    But I have got another issue: I am displaying all posts from the certain category as accordion tabs (using WP UI Options Plugin). In each of the posts I am displaying the same CF7 Form. The problem is that I cannot get the custom fields of the post containing the form. It seems that form gets attached to the parent page (which shows all my posts) and not to the post that contains the form. Thus, when I added the field [dynamictext user_email "CF7_get_custom_field key='email'"] into the form it displays the custom field of the page which contains this accordion of posts and not that of each post containing the form.
    I also tried to get the ID by the Special Mail Tag [_post_id] which also shows the ID of parent page.
    I also tried to dynamically set the “id” attribute of the [contact-form-7] shortcode, but it is not changing. Although in the post content I see the dynamically set “id”, when I extract the id of the current form object it is the same as it says in the form which i created initially in Contacts.
    How can I use multiple instances of the same form and change their “id”-s or some other attributes? Which attributes of [contact-form-7] can be changed when using the same form multiple times on one page?
    Is there a way to somehow mark the form by ID of the nested post which contains it?

    Thank you in advance for your help.

    Best regards

    ok, now i found how to solve this. You have to put quotes around Mfma_rlMediaSelector on line 376:
    if (class_exists('Mfma_rlMediaSelector'))
    But then i got another problem: undefined constant mfma_relocator_dircmp on line 220 and undefined variable $upload_dir_a on line 354. I set the quotes to the constant again and it worked, but for the variable I am not sure what to do, you could set the if-statement checking if the variable isset:

    if(isset($upload_dir_a)) {
    $upload_dir = substr($upload_dir, 0, strlen($upload_dir) - strlen($upload_dir_a['subdir']));
    }

    but i assume it is not the best way to solve this. However it seems to work, at least you can then see a panel with your files and folders. I think this solution with a variable might cause some problems when relocating files using the panel…But as long as u don’t need to relocate it should be fine.
    Maybe someone can suggest a solution for the problem with variable upload_dir_a?

    I have the same problem. I am using WordPress 3.5.1 and Media File Manager Advanced 1.0.3. Could somebody give an advice?

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