ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Tell-a-Friend not working

February 01, 2010 12:49pm

Subscribe [2]
  • #1 / Feb 01, 2010 12:49pm

    Marcus Hodges

    84 posts

    Hi. I’m trying to use the tell-a-friend form, but I can’t get it to work. When I load the page, the form doesn’t show up at all, and is not in the source.

    I have the form in a separate template embedded into my main page. Here is the code for that template. Can someone please advise?

    <div id="emailModal" class="jqmWindow">
            
            <h3><a href="#">Close Window</a></h3>
    <p>{exp:weblog:entries weblog="default_site" limit="1" disable="member_data|pagination|trackbacks"}</p>
    
    <p>{exp:email:tell_a_friend allow_html='n'}<br />
                    <fieldset><br />
                        <label for="to">To email:</label><br />
                        <input type="text" id="to" name="to" /><br />
                        <label for="name">Your name:</label><br />
                        <input type="text" id="name" name="name" /><br />
                        <label for="from">Your email:</label><br />
                        <input type="text" id="from" name="from" /><br />
    <input type="text" id="subject" name="subject" value="Subject" /><br />
                        <textarea name="message" readonly="readonly">{body}</textarea><br />
                        <input type="submit" id="modalSubmit" name="modalSubmit" value="Submit" /><br />
                    </fieldset><br />
    {/exp:email:tell_a_friend}<br />
    {/exp:weblog:entries}<br />
            </div><!--end emailModal-->

    EDIT: Running 1.6.8 build 20100121

  • #2 / Feb 01, 2010 3:47pm

    Ingmar

    29245 posts

    Do you’ve got a link? The Tell-A-Friend form is supposed to go on a single entry template. This usually means you should have a url_title or entry_id in segment 3.

  • #3 / Feb 02, 2010 12:19pm

    Marcus Hodges

    84 posts

    It was on a single-entry page, but we were running out of time for the request so I just did it with pure PHP. You can mark as resolved.

  • #4 / Feb 02, 2010 4:01pm

    Ingmar

    29245 posts

    Thanks for letting us know. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases