We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27330
    • 884 Posts
    Thanks David, hope you enjoying the weather smiley

    I tried what you have there and got ti to send the email, but I don’t get the url for page info at all.
    can you share your report chunck ’SendToFriendReport’ or explain how to add it to my template?

    thanks a lot once more!
      • 27330
      • 884 Posts
      reason asked is that adding [+link+] [+title+] to the report gives me

      mypage.php

      without the complete path
        • 5727
        • 160 Posts
        Hello,

        Try replacing [~[*id*]~] with [(base_url)][~[*id*]~]

        You probably guessed it but it adds the host name and sub-folder if any.

        Hope this helps.
          Olivier Deland
          Montreal, Canada - Web Developer
          • 27330
          • 884 Posts
          Thank Olivier,
          don’t know how I didn’t think about it.
          just in case someone else tries it, it should be [(site_url)]
            • 6726
            • 7,075 Posts
            Ooops sorry here is my report chunk :

            <p>Bonjour [+name2+],</p>
            <p>[+name1+] a pensé que cet article du site pargade-notaires.fr pourrait vous intéresser : <a href="[+urlsite+][+link+]">[+title+]</a></p>
            
            <p style="color: #ccc; font-style: italic;">Ce message vous est envoyé via le site http://www.pargade-notaires.fr</p>
            


            Notice that in the formSendToFriend chunk urlsite and title are set with hidden fields in the form :

            <input name="urlsite" type="hidden" value="[(site_url)]" eform="::0::" />
                  <input name="link" type="hidden" value="[~[*id*]~]" eform="::0::" />
                  <input name="title" type="hidden" value="[*pagetitle*]" eform="::0::" />

              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l&#39;outil id
              • 27330
              • 884 Posts
              David do u recall any issues with the capacha?
              I can’t get it to work on my form which is also inside jquery div. on my other forms I can see the capacha image.
                • 20349 ☆ A M B ☆
                • 453 Posts
                Quote from: davidm at Oct 12, 2008, 12:51 PM

                Sorry guys I have been strolling Paris streets all day, great weather here, and went to the movies... just got back.

                The jquery bit :


                <script type="text/javascript">
                
                var $j = jQuery.noConflict();
                
                    $j(document).ready(function() {
                             $j('#stf').hide(); 
                
                             $j('a#show_stf').click(function() {
                                         $j('#stf').toggle(400);
                                        return false;  }); 
                     }); 
                
                </script>


                Where did you put this code? Can’t work it out :/
                  BASE - Web Design Studio
                  MODX Ambassador

                  Website
                  • 6726
                  • 7,075 Posts
                  I put this code in the header but don’t forget this has to match the template chunk, jquery needs the id’s to work (see previous post !).
                    .: COO - Commerce Guys - Community Driven Innovation :.


                    MODx est l&#39;outil id
                    • 20349 ☆ A M B ☆
                    • 453 Posts
                    Quote from: davidm at Nov 22, 2008, 04:37 PM

                    I put this code in the header but don’t forget this has to match the template chunk, jquery needs the id’s to work (see previous post !).

                    I made my own form and changed ID properly and it did’nt work.
                    Then I just copy/pasted all of your chunks... and it still won’t work.. It just won’t hide the from.. I can’t see what I’m doing wrong undecided

                    Emails work fine... jQuery gives me soem hadache smiley

                    Here are my calls and chunks so please take a look... maybe I missed something foolish

                    My call (on "pop" template)
                    <div id="pp">[!eForm? &formid=`SendToFriend` &tpl=`formSendToFriend` &report=`SendToFriendReport` &thankyou=`thankYou` &to=`[+email+]` &from=`[+from+]` &protectSubmit=`0`!]</div>


                    formSendToFriend
                    <div id="pp">
                    <p class="error">[+validationmessage+]</p>
                    
                    <form action="[~[*id*]~]" id="SendToFriend" method="post" name="SendToFriend">
                    <table width="400" border="0">
                      <tr>
                        <td width="200" height="60">
                        <input type="hidden" name="formid" value="SendToFriend" />
                    <p align="center"><label for="sfName1">Vaše ime:<br />
                        <input name="name1" type="text" class="text" id="sfName1" size="30" /></label></p></td>
                        <td width="200" height="60"><p align="center">
                          <label for="sfEmail1">Vaša email adresa:<br>
                    	<input name="emailfrom" type="text" class="text" id="sfEmail1" size="30" eform="Vasa adresa:email:1"/></label></p></td>
                      </tr>
                      <tr>
                        <td width="200" height="60"><p align="center">
                          <label for="sfName2">Ime prijatelja:<br />
                        <input name="name2" type="text" class="text" id="sfName2" size="30" /></label></p></td>
                        <td width="200" height="60"><p align="center">
                          <label for="sfEmail2">Email adresa vašeg prijatelja:<br>
                    	<input name="email" type="text" class="text" id="sfEmail2" size="30" eform="Adresa vaseg prijatelja:email:1" /></label></p></td>
                      </tr>
                      <tr>
                        <td height="60" colspan="2"><div align="center">
                          <input name="urlsite" type="hidden" value="[(site_url)]" eform="::0::" />
                          <input name="link" type="hidden" value="[~[*id*]~]" eform="::0::" />
                          <input name="title" type="hidden" value="[*pagetitle*]" eform="::0::" />
                            <input class="button" id="sfRecommend" name="recommend" type="submit" value="Pošalji" />
                        </div></td>
                      </tr>
                    </table>
                    </form>
                    </div>


                    jQuery
                    <script type="text/javascript">
                    
                    var $j = jQuery.noConflict();
                    
                        $j(document).ready(function() {
                                 $j('#pp').hide(); 
                    
                                 $j('a#show_pp').click(function() {
                                             $j('#pp').toggle(400);
                                            return false;  }); 
                         }); 
                    
                    </script>
                      BASE - Web Design Studio
                      MODX Ambassador

                      Website
                      • 6726
                      • 7,075 Posts
                      Be careful jQuery’s update often "break" the code you build and I am using an older version, can’t find the rev number in the packed js I have on the website I quoted as an example but should be a rev released something like 7/8 months ago. You can get my version there

                      I didn’t take time to rewrite the jquery with the new rev...
                      It’s the only annoying thing with jQuery really sad
                        .: COO - Commerce Guys - Community Driven Innovation :.


                        MODx est l&#39;outil id