Looking for a template but can't find...:(

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JamesUS
    Senior Member
    • Aug 2000
    • 4622

    Looking for a template but can't find...:(

    Hey all,

    I have my board set up to email me when there is a new registration...is the email that gets sent a template, and if so what is it called?

    Thanks in advance!
  • JohnM
    Senior Member
    • May 2000
    • 622

    #2
    That's not a template

    You can edit the message in member.php, where it says this:

    Code:
      if ($newuseremail!="") {
        $message="There is a new user, $username, at $bbtitle. To view their profile, go here:\n$bburl/member.php?action=getinfo&userid=$userid";
        mail ($newuseremail,"New User at $bbtitle",$message,"From: \"$bbtitle User Manager\" <$webmasteremail>");
      }
    Suggestion for v2.0: why isn't this a template??

    Comment

    • JamesUS
      Senior Member
      • Aug 2000
      • 4622

      #3
      Thanks John ...yes that really does need to be a template.
      John/James --> Will it be a template in v2?

      Comment

      • chrispadfield
        Senior Member
        • Aug 2000
        • 5366

        #4
        guessing it is not a template because it is an admin only option, what are you planning to change it to?

        Email features of the board need work though and better templates for email sent and easiser customization of them is a must for 2.5 if not 2.0 !
        Christopher Padfield
        Web Based Helpdesk
        DeskPRO v3.0.3 Released - Download Demo Now!

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 74092

          #5
          • Make a template and call it newmembermail
          • Put whatever code you want into it.
          • Change the following code:
            Code:
              if ($newuseremail!="") {
                $message="There is a new user, $username, at $bbtitle. To view their profile, go here:\n$bburl/member.php?action=getinfo&userid=$userid";
                mail ($newuseremail,"New User at $bbtitle",$message,"From: \"$bbtitle User Manager\" <$webmasteremail>");
              }
            TO:
            Code:
              if ($newuseremail!="") {
                eval("\$message = \"".gettemplate("newmembermail")."\";");
                mail ($newuseremail,"New User at $bbtitle",$message,"From: \"$bbtitle User Manager\" <$webmasteremail>");
              }


          Voila, it is in a template.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          • JamesUS
            Senior Member
            • Aug 2000
            • 4622

            #6
            Cool thanks for that Wayne...I'll give it a try in the morning
            chrispadfield ---> I want to change it to include various bits of profile info about the user...myself and the other admins are trying to contact some of the users and get their opinions on the board etc...will hopefully promote the community feel a bit

            Comment

            • JohnM
              Senior Member
              • May 2000
              • 622

              #7
              Even better:

              Code:
                if ($newuseremail!="") {
                  eval("\$message = \"".gettemplate("newmembermail")."\";");
                  eval("\$subject = \"".gettemplate("newmembersubject")."\";");
                  mail ($newuseremail,$subject,$message,"From: \"$bbtitle User Manager\" <$webmasteremail>");
                }
              Just make a template called newmembersubject and put whatever you want...

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...