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.

Can't get modules working in MSM

October 12, 2009 11:51am

Subscribe [4]
  • #1 / Oct 12, 2009 11:51am

    wondermade

    53 posts

    I’m having problem with modules on my second site on an MSM installation.
    I couldn’t get epeditor to work and saw broken images in the epeditor prefs. Then I try tell-a-friend:

    {exp:email:tell_a_friend}
    
                <input type="hidden" name="from" value="info@northlandchurch.net" />
                <input type="hidden" name="subject" value="Personal Study Notes" />
                <textarea name="message" id="commentinput">{exp:weblog:entries weblog="media" dynamic="on" orderby="date" sort="desc" limit="1"}
                {media-notes}{/exp:weblog:entries}
                </textarea>
                <input id="submitinput" type="image" src="/_img/button-send.png" value="Send it!" alt="Send" name="submit" class="button" />
                <input type="text" name="to" class="email" id="to" value="Enter your email address">
                {/exp:email:tell_a_friend}

    Which won’t render at all.

    Is there perhaps a setting I failed to set either in the path.php or in some other pref?
    Or is there a way to test if modules generally are working?

    Thanks!

  • #2 / Oct 12, 2009 12:02pm

    Sue Crocker's avatar

    Sue Crocker

    26054 posts

    What is epeditor?

  • #3 / Oct 12, 2009 12:03pm

    wondermade

    53 posts

    Just a ‘for instance’ on modules. It provides wysiwyg editing in the CMS. Works perfectly on the default site…

  • #4 / Oct 12, 2009 12:20pm

    Sue Crocker's avatar

    Sue Crocker

    26054 posts

    Have you tried contacting the author? We don’t provide direct support for third party addons, but I can move this to the Extensions forum if you’d like.

  • #5 / Oct 12, 2009 12:29pm

    wondermade

    53 posts

    Well, I definitely can’t get the email module / tell-a-friend working. I included the epeditor because I have two modules not working, which I thought would be helpful in the diagnoses.

    Ultimately I really just need the email module working.

  • #6 / Oct 12, 2009 12:31pm

    Sue Crocker's avatar

    Sue Crocker

    26054 posts

    How are you calling the tell a friend form? Can you send email via the Communicate tab?

  • #7 / Oct 13, 2009 5:22pm

    wondermade

    53 posts

    Sending through communicate works, the code is above in the original post.
    If I use that exact code in a template on the default site it works perfectly. Copy and paste and it won’t render. If I yank out the reference to tell a friend, the content within shows up fine.

  • #8 / Oct 13, 2009 7:46pm

    Adam Dorsey's avatar

    Adam Dorsey

    1439 posts

    It seems the issue may be that you have a nested weblog entries tag.

    Try doing this instead:

    {exp:email:tell_a_friend}
    
    <input type="hidden" name="from" value="info@northlandchurch.net" />
                <input type="hidden" name="subject" value="Personal Study Notes" />
                <textarea name="message" id="commentinput">
                {media-notes}
                </textarea>
                <input id="submitinput" type="image" src="/_img/button-send.png" value="Send it!" alt="Send" name="submit" class="button" />
                <input type="text" name="to" class="email" id="to" value="Enter your email address">
    
    {/exp:email:tell_a_friend}

    If the problem persists, try using the code from the docs, and see if you get the same error:
    http://expressionengine.com/docs/modules/email/tellafriend.html

  • #9 / Oct 14, 2009 2:44pm

    wondermade

    53 posts

    No matter what tell a friend code I drop in it doesn’t render it. I tried the default from EE and it’s still a no go…
    Strangely if I copy / paste the default contact form is works like a charm. It’s just the tell a friend that fails.

    Any other ideas?

  • #10 / Oct 14, 2009 2:49pm

    wondermade

    53 posts

    I went ahead and made a new template that only contained the tell a friend call, then immediately below it the exact same code less the tell a friend reference.

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

    http://churchsimply.com/share/

    As you can see, it only renders the second instance.

  • #11 / Oct 14, 2009 3:12pm

    Adam Dorsey's avatar

    Adam Dorsey

    1439 posts

    Hi wondermade-
    I think I figured out what is going on.

    In order to use the Tell-a-Friend feature, you will need to link to it from a {exp:weblog:entries} tag using the permalink variable, like so:

    {exp:weblog:entries weblog="your_weblog"}
    <a href="http://{permalink=weblog/friend}">Tell-a-Friend</a>
    {/exp:weblog:entries}

    You can read more about this in the EE Docs, under the heading “Linking to the Tell-a-Friend page”
    http://expressionengine.com/docs/modules/email/tellafriend.html

    Let me know if this works for you!

    Thanks,
    Adam

  • #12 / Oct 14, 2009 4:39pm

    wondermade

    53 posts

    Via all the helpful tips, I realized my problem lay in calling the tell-a-friend from the index page. The module only responds from a single entry page.

    Thanks!

  • #13 / Oct 14, 2009 4:41pm

    Ingmar's avatar

    Ingmar

    29245 posts

    Very glad to see you got to the bottom of this. Please don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases