Forum Replies Created

Viewing 15 replies - 31 through 45 (of 61 total)
  • Which special tag are you referring to?

    List of special mail tags: https://contactform7.com/special-mail-tags/

    I used to have my own shortcode for CF7. But when a major update would come my little addition would vanish and I had to reinsert again.

    I even tried to insert my own shortcode within my function file but I thought I was making too much of something little.

    So, since I do not need to use hidden fields in all of my contact forms I insert the following code only when I need it (for the simple stuff) at the very beginning of the form (or at the bottom before the submit button, wherever appropriate)

    <script>
    var thisYr = 2016;
    var nextYr = thisYr + 1;
    document.write('<input type="hidden" name="year" value="' + nextYr + '" />');
    </script>

    and I just call this hidden field at my email form as [year]

    I am using javascript because I am calculating few numbers that I needed. I suppose just entering HTML code will do just fine if you do not need to calculate.

    So, if I understand you correctly, you want to use form’s built-in validation but also have the ability to redirect to another page after submit?

    In the Additional Settings tab I added this:
    on_sent_ok: "location = 'https://somewebpage.com/redirect-page';"

    The form will validate and submit (even with submit response will show) but then it will redirect to the page designated above.

    If you don’t want to see the response and redirect to a page regardless of successful submit or not, use:
    on_submit:

    Manual on page: https://contactform7.com/additional-settings/

    I had this problem for about 3 years and I replied to two other threads, and the solution I used is to use BCC: youraddress in the Additional Headers section. That was the only way I was able to receive submitted forms for all these years. I was told that my hosting sucks and I should change it.

    But, the problem is that email used to work (I had my site over 8 years and it originally worked) until at some point. And then, about a month ago it started to work without BCC in the additional headers section. So, was it the updates on CF7 or my hosting finally got it right?

    All I know is that the author and hosting provider pointed the blame on each other.

    I have been contemplating with this plugin

    https://www.ads-software.com/plugins/contact-form-7-dynamic-text-extension/

    I hope it helps you out. I have not had the chance to use it because I solved it other ways.

    I replied to another thread… I had the same issue for about 3 years now. I used the Mail section Additional Headers with:

    BCC: myaddress@addy{dot]come

    to at least get an email delivered to me. Just about a month ago I started to receive emails from CF7 without BCC option. Weird. I was told that the initial problem was with my hosting (but nothing has changed then, and now…so what gives?)

    I stopped digging into it because I found the workaround solution. Not one person could give me an answer or solution. So, BCC was my only option.

    Email not arriving has been the problem for me for about 3 years now. Mainly, it was pointed out that my hosting company’s fault. However, just a month ago I started to receive again. I have not changed anything.

    So, while I was not receiving any email I added this to the “Additional Headers” in Mail section.

    BCC: myemail@addy{dot}com

    At least this way, I was able to receive it. Secondly, I used Contact Form DB as my backup just in case.

    And, for that error faults, you will need to go though every tab (Form, Mail, Message and Additional Settings) to see where the error is indicated. Mine is usually when I set the field in the subject line or in the From address field as “[your-email] <[your-emil>” and it points out that “This email address does not belong to the same domain as the site.”

    I ignore it and it sends just fine for me.

    If you are comfortable with editing this plugin, open gdocs.php

    Find in function gdrive_fl_renderFromFolderview
    $html .= "<tr><td><a href='".$l[1]."'><img style='height:50px;width:auto;' src='".$v[1]."'/></a></td><td><a href='".$l[1]."'>".$v['0']."</a></td></tr>";

    Insert target=\”_blank\” where needed.

    Forum: Plugins
    In reply to: [Staff Directory] Ordering

    Try without the single quotes.

    [staff-directory orderby=sort_order]

    You can further order them by

    [staff-directory orderby=sort_order order=asc]
    or
    [staff-directory orderby=sort_order order=desc]

    The help section indicates “the attribute to use for ordering. Supported values are ‘name’ and ‘ID’. (Ex: [staff-directory orderby=name])” so I am not sure if you can use custom field. If this is the case, and you only have one category, you can sort them by “order=asc”

    If sorting is paramount and you have multiple categories, I found for now just change the date and time of each staff–very similar to changing date and time on posts. This orders the way I’d like to see it (until the plug-in has built in ordering system).

    My workaround solution on URL format was to use the custom template

    a href=”mailto:[email]”>[email]</a

    Use shortcode [website_link] (deprecated) or create custom shortcode called [website_url]

    a href=”[website_url]”>[website_url]</a
    or
    a href=”https://[website_address]”>%5Bwebsite_address%5D</a
    depending on how you enter in this custom box

    To call custom template via the shortcode, first make sure you have made custom template 1 or 2 etc and then save.

    Then use,

    [staff-directory template=custom_1] or [staff-directory cat=22 template=custom_2]

    whichever fits your situation.

    Featured Image box is part of WordPress itself. Are you on the latest version? I believe Featured Image has been around for a while, now.

    Scroll down and watch for it on the right hand side.

    Grid and List templates cannot be changed. I would think you can create your own custom template that looks like the grid and add the link. I believe the plug-in author is working on something similar to permalink shortcode (I am not sure, but the author likes the idea and may work on it judging from other posts.)

    Will this work for you?

    Addition to basic shortcodes

    Adding to this thread.

    I had a specific need for slugs. And I hope I am using “slugs” the right way–I am somewhat new to WordPress.

    I needed “john-smith” from this plug-in. So, I used

    $staff_slug = basename(get_permalink());

    insert this right under $staff_name (it really does not matter but for easy to find purpose).

    And then, followed “accepted_single_tags” and “replace_single_values” so that I can use this as [name_slug].

    I can then use john-smith from Staff title, and also use it as anchor.

    a href=”my_url/#[name_slug]”>[name]</a

    and so on…and so on…

    I suppose I am okay how it functions until adamtootle introduces on the future release, like [permalink] and [name_slug].

    PS the original need for slugs was to use them as anchor. This attempt was to satisfy my frustration on a website that someone else designed, and the current owner wanted that way ??

Viewing 15 replies - 31 through 45 (of 61 total)