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 appears twice

February 04, 2011 7:36am

Subscribe [4]
  • #1 / Feb 04, 2011 7:36am

    goodmixer

    31 posts

    I’m running ee 1.6.7 on a legacy site and having a strange issue where the tell-a-friend (Named tell-a-colleague on left side nav) form appears twice on some entries and once on others.
    E.g. http://www.quickstep.ie/courses/detail/ifrs_vs_us_gaap/ Shows once and
    http://www.quickstep.ie/courses/detail/ucits_for_hedge_funds/ appears twice.

    Both are using the same template which is the standard tell-a-friend 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="34" maxlength="35" value="{member_email}" /></p>
    
    <label for="name">Your Name: </label>
    
    <input type="text" id="name" name="name" size="34" maxlength="35" value="{member_name}" /></p>
    
    <label for="to">To: (email)</label>
    
    <input type="text" id="to" name="to" size="34" maxlength="35" /></p>
    
    <label for="subject">Subject: </label>
    
    <input type="text" class="text" id="subject" name="subject" size="34" value="{title}" /></p>
    
    <label for="message">Message: </label>
    
    <textarea id="message" name="message" readonly="readonly" rows="6" cols="27">
    Here is a link to a course I thought you might find useful. I found it at quickstep.ie: {comment_url_title_auto_path}
    </textarea></p>
    
    {if captcha}
    Please enter the word you see in the image below:
    {captcha}
    
    <input type="text" name="captcha" value="" maxlength="20" /></p>
    {/if}
    
    <input name="submit" type='submit' value='Submit Form' /></p>
    {/exp:email:tell_a_friend}

    Has anyone run into the same issue?

  • #2 / Feb 05, 2011 12:52pm

    Sue Crocker

    26054 posts

    Hi, goodmixer. As a non logged in user, I only see one form on each page. Did you fix something?

  • #3 / Feb 05, 2011 1:01pm

    goodmixer

    31 posts

    No. I’m still at a loss on this one. I’ve logged out and at this url
    http://www.quickstep.ie/courses/detail/ucits_for_hedge_funds/
    I still see two forms

    Regards,
    Micky

  • #4 / Feb 06, 2011 3:11pm

    Greg Salt

    3988 posts

    Hi Micky,

    Can you please temporarily remove the jQuery Accordion so that we can remove that as a possible cause of the problem?

    Cheers

    Greg

  • #5 / Feb 06, 2011 3:51pm

    goodmixer

    31 posts

    Greg,

    I’ve duplicated the template as site is live. Issue is now at

    http://www.quickstep.ie/courses/detail2/ucits_for_hedge_funds/

    Maybe I’ve been looking at this too long but I can’t see what’s causing this. What I find really strange is it’s happening on some pages and not others even though they’re using the same template.

    Regards,

    Micky

  • #6 / Feb 07, 2011 3:18pm

    Ingmar

    29245 posts

    Is that the only article where the form is showing twice? Are you using any server side rewriting? Please not that the forms are not exactly similar:

    <input type="text" class="text" id="subject" name="subject" size="34" value="UCITS for Hedge Funds" /></p>
    <input type="text" class="text" id="subject" name="subject" size="34" value="UCITS for Hedge Funds 2011" />

    Is the “2011” actually part of the url title, or part of a different entry? Where does it come from?

  • #7 / Feb 07, 2011 4:20pm

    goodmixer

    31 posts

    Ingmar,

    It seems that this is happening when the client had changed the title of the entry and the url_title remained as the old url_title. It is happening in a few entries but so far each one has a Title that does not match the url title.

    Is there a way to automatically change the url title if the client changes the title?

    Regards,

    Micky

  • #8 / Feb 08, 2011 9:22am

    Sue Crocker

    26054 posts

    It depends on how the client is doing things. For instance, you can clear out the url_title manually, make a new title and then save the entry. In that case, EE will redo the url_title. Otherwise, it won’t.

    Does that help?

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

ExpressionEngine News!

#eecms, #events, #releases