Menu

email-invite.tpl and email-register.tpl help

2007-06-14
2013-04-03
  • Nobody/Anonymous

    Hi All,

    I'm trying to modify the files: email-invite.tpl and email-register.tpl located in styles/templates/campaign.  At the top of these pages, there is hand-coded data that displays static information such as FT.node.uid.  How can we access this from the database itself?  Even FT.node isn't displaying any data.  I've been trying but unsuccessful so far, can someone help?

    Mr. A

     
    • Michael Frumin

      Michael Frumin - 2007-06-15

      when the email is generated inside the application via a web request, it should populate those  variables with the right values.  try reverting the .tpl files back to the way they came, and then send some emails through the web software.  do they look right?

       
    • Nobody/Anonymous

      Hey Mike,

      I reverted both of the files from the original forwardtrack-1.1b.tar.gz and has the same code.  The email-register.tpl has this as the following on top of the page:

      {if $FT.preview}
      {assign_adv base="FT" var="person" value="array('fname' => 'JOHN', 'lname' => 'DOE', 'email' => 'JOHN@EXAMPLE.COM', 'zip' => 10011)"}
      {assign_adv base="FT" var="node" value="array('uid' => 'FAKE_USER', 'depth' => 6, 'name' => 'JOHN', 'place' => 10011)"}
      {/if}

      This is just static code and fake information.  In place of the actual node.uid (which is needed for the links on the page), it uses FAKE_USER and if one were to click on the link, then it ends up with errors on page saying "That's a Bogus Node!" and notes that CampaignApp.class.php has and error along with dispatch.php as Array [type] being blank.

      Any other ideas?

      Mr. A

       
      • Michael Frumin

        Michael Frumin - 2007-06-18

        yes, this is fake data for the sake of _previewing_.  go ahead and make a submission in the system thru the actual web software, as if you were registering for a campaign.  when you do that, it should automatically send the email with correct data, from the DB

         
      • Michael Frumin

        Michael Frumin - 2007-06-20

        you are totally fucking insane.  i went to your installation and both registered for the campaign and invited myself to join, and the emails were perfectly templated.  eg:

        excerpt from registration email:
        --------------------------------------------------------------------------

        Dear senor frumail.

        Thank you so much for supporting Campaign to Test ForwardTrack. Now that you have joined, you can always:

           1. Track your impact:
              http://XXXXXXX/forwardtrack/campaigns/test_campaign/impact/8c8ed2956d88f48755ce4cda441b9fe2/
           2. Invite more friends:
              http://XXXXXXX/forwardtrack/campaigns/test_campaign/invite/8c8ed2956d88f48755ce4cda441b9fe2/
           3. Send your friends to special personalized registration page:
              http://XXXXXX/forwardtrack/campaigns/test_campaign/register/8c8ed2956d88f48755ce4cda441b9fe2/

        excerpt from invitation email:
        --------------------------------------------------------------------------

        senor frumail has invited you to join in supporting Campaign to Test ForwardTrack. All we need is a little help from you. This is the alert test alert(9.48)

        please help us test the email system

        This is a campaign to help test ForwardTrack. We really need your help, because testing ForwardTrack will help lots of people all over the world!

        Click here to join this campaign, see where it is being sent as illustrated geographically on a map and pass it on to your friends. One individual can make a difference.
        http://XXXXXXX/forwardtrack/campaigns/test_campaign/accept/6d2c8eb89ebb98abe051600f6fa2f27a/

        thanks,
        mike

         
    • Nobody/Anonymous

      Even after you make a submission through the web software, the same results show.  After you register for a campaign, you get the thank you letter.  The links to 1)track your impact, 2)invite more friends, 3)send your friends still have the fake user at the end of the URL string. 

       
      • Michael Frumin

        Michael Frumin - 2007-06-18

        ahh, you never said this before.  this is weird behavior.  what version of php are you using?  is it a CGI or an apache_module?

         
    • Nobody/Anonymous

      I'm using PHP version 4.3.2 ; as an apache module.

       
      • Michael Frumin

        Michael Frumin - 2007-06-19

        can i see your install on the web?

         
    • Nobody/Anonymous

      Is it ok if I send you the url via email?  I do not want to post it on here where it is public.  I will continue posting valuable information relevant to solving this issue.

       
      • Michael Frumin

        Michael Frumin - 2007-06-20

        paranoid!

        sent it to my sourceforge address: fruminator@users.sourceforge.net

         
    • Nobody/Anonymous

      I'm partially insane.  I've been pointing out to the wrong file!  Ahh!  Ok, I meant to say on the admin page: http://xxxxxxxxx/forwardtrack/admin , you will see the list of campaigns.  Then it lists the following for each campaign:

      Campaign Name
      Campaign: view, edit, delete
      Preview: invitation, registration
      Data: export, mapped, statistics

      Once you click on Preview Invitation or Registration it will take you to another page, which I haven't figured out the name yet.  On this page (which looks the same as the email you receive), each of the links will have FAKE_USER at the end of the URL.  This is what I wanted to ask about.  So sorry for the confusion, i've been looking at the incorrect file myself.

      I'm going to try myself to fix this as well, but if you know, it would be quicker.
      Thanks again Mike,
      Mr. A

       
      • Michael Frumin

        Michael Frumin - 2007-06-22

        no fucking shit it says FAKE_USER, that's why its called the _preview_ page.  if you really want it to be different, edit those values you have been pointing out so many times at the top of the .tpl files.

         
    • Nobody/Anonymous

      OH my fault.  I thought it would grab info on the last person that registers and display the invite and preview there.  Don't know why I thought that but, should of asked before starting the thread.
      Thanks for the help Mike,
      Mr. A

       
      • Michael Frumin

        Michael Frumin - 2007-06-22

        no problem, though that's not a bad idea.  please let us know if/when  you launch the campaign.

         
    • Nobody/Anonymous

      We sure will Mike.

       

Log in to post a comment.

MongoDB Logo MongoDB