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 form showing up as a blank page.

March 18, 2011 12:37pm

Subscribe [3]
  • #1 / Mar 18, 2011 12:37pm

    HI,
    I am on ExpressionEngine v2.1.3 - Build:  20101220.
    Following is the template code:
    SINGLE ENTRY TEMPLATE CODE:

    {exp:channel:entries channel="blog" limit="1" status="not closed" track_views="one"}
    <a href="http://{permalink=includes/tell_friend}">Tell a friend</a>
    <h1>{title}</h1>
    {article_body}
    {/exp:channel:entries}

    INCLUDES/TELL_FRIEND TEMPLATE CODE

    {exp:email:tell_a_friend charset="utf-8" allow_html="no" } 
        
        <label for="from">Your Email: </label>
     
        <input type="text" id="from" name="from" size="40" maxlength="35" value="{member_email}" />
         
        
        <label for="name">Your Name: </label>
     
        <input type="text" id="name" name="name" size="40" maxlength="35" value="{member_name}" />
         
        <label for="to">To: </label>
     
        <input type="text" id="to" name="to" size="40" maxlength="35" />
         
        
        <label for="subject">Subject: </label>
     
        <input type="text" id="subject" name="subject" size="40" value="Entry by: {author}" />
         
        
        <label for="message">Message: </label>
     
        <textarea id="message" name="message" readonly="readonly" rows="18" cols="40">
        {article_excerpt} 
        {permalink}
        </textarea>
         
        
        <input name="submit" type='submit' value='Submit Form' />
        
    {/exp:email:tell_a_friend}

    Returned url is this:
    http://www.mysite.com/index.php/includes/tell_friend/93
    which is a plain blank page without any errors.

    What am I missing or doing wrong here.

    An urgent help would be highly appreciated.

    Regards.

    Bashir Thiar

  • #2 / Mar 18, 2011 12:42pm

    Mark Bowen

    12637 posts

    If you try supplying the channel=”“ parameter to the Tell A Friend tag does it work then?

    Best wishes,

    Mark

  • #3 / Mar 18, 2011 12:47pm

    Hi Mark,

    Thanks for your words.

    I have tried this before.  It isn’t working either._:(

    As per the user guide channel=”” isn’t inevitable. or is it???

    Regards.

  • #4 / Mar 19, 2011 5:46pm

    Greg Salt

    3988 posts

    Hi Ahmed,

    No, the channel parameter is not required though it is available. If you turn on the output profiler at Admin > System Administration > Output & Debugging are you seeing the Email:tell_a_friend method being called?

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases