Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter eshamis

    (@eshamis)

    It does process the value {location|1} before it is actually sent to email. Like any contact form. In other words before it reaches the inbox.

    This is the chain:
    USER INPUTS VALUE INTO THE FORM > FORM PROCESSES VALUE (REPLACING {} with the actual word that user choses from the dropdown menu) > FORM GENERATES EMAIL AND SENDS IT > POSTIE PROCESSES EMAIL FROM INBOX.

    I found the solution. I just placed {location|1} inside <p></p> and now it attaches the tag. It worked fine before, so one of the updates changed how tagging behave with html code. Before you could just post html code and tags: X, where is now if you use code you need to make sure tag is a part of the code.

    Thank you for your assistance, very thankful that you support your plugin!

    Thread Starter eshamis

    (@eshamis)

    Wanted to make sure this is clear, because you might not be familiar with quform.

    It is a contact form plugin. So everything with {} is replaced before it is processed by postie.

    I was testing with a tag: “demo”, so what I see posted in the body of the message is tags: demo

    Thread Starter eshamis

    (@eshamis)

    I have sent the email the way it’s being sent with postie. I combine functionality of postie with quform plugin so everything inside { } is replaced with a value entered in quform form when it’s submitted. It did not conflict before.

    Thank you for a fast reply.

    Thread Starter eshamis

    (@eshamis)

    @jaswsinc I read about the loop and tried to insert the code in idex.php with no success, because the location is probably wrong.

    Meta Box is not an option because my security staff wont have access to backend of the site.

    I believe I found a work around. I can assign a new membership level for each new user and then manually remove access to all lower levels with any user role plugin or similar. Then in s2member in tag restrictions.

    The problem with this work around is that I can’t raise the limit of 100 membership levels. I tried this code:
    <?php add_filter("ws_plugin__s2member_max_levels", function(){ return PHP_INT_MAX; }); ?>
    And tried to insert desired value:
    <?php add_filter("ws_plugin__s2member_max_levels", function(){ return 120; }); ?>
    This code brakes my site, did I do something wrong here? Thank you.

    Thread Starter eshamis

    (@eshamis)

    I also already tried replacing this code `header (“Location: “.S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
    exit();`
    with continue;

    Didn’t work.

    Thread Starter eshamis

    (@eshamis)

    Thank you,

    The Alternative View Protection is enabled for ALL wordpress queries by default. This was one of the first things I checked.

    Do I need to use this code?

    <?php
    if ($tags = get_the_tags ())
        {
            foreach ($tags as $tag)
                {
                    if (!is_permitted_by_s2member ($tag->name, "tag"))
                        continue;
                    /* Skip it. The current User/Member
                        CANNOT access this Tag Archive,
                    or any Posts/Pages with this Tag. */
                }
        }
    ?>

    Or this one?

    <?php
    if ($posts = get_posts ())
        {
            foreach ($posts as $post)
                {
                    if (!is_permitted_by_s2member ($post->ID, "post"))
                        continue;
                    /* Skip it. The current User/Member
                    CANNOT access this particular Post. */
    
                    $post_or_page_id = $post->ID;
                    if (!is_permitted_by_s2member ($post_or_page_id, "singular"))
                        continue;
                    /* The "singular" attribute can check both Pages and Posts the same time.
                    So if this was actually a "Page", that would be valid, w/ "singular". */
                }
        }
    ?>

    And do I insert it in the same s2hacks file or elsewhere? Sorry, I have very limited code knowledge.

    Thank you.

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