PDA

View Full Version : how do I add a template bit to the email templates?


Evoir
02-04-2002, 09:27 PM
Hello,

I have a bit of text that I'd like to add to all the email templates. I created a new template and called it "emailpromo" without the quotes of course.

I then went into the email templates and added "$emailpromo" minus the quotes, again. :)

I have done this with other templates and it works well. But, the emails the system sends out does not seem to include the text i place in the new template: "emailpromo"

Am I doing something wrong?

Basically, I want to be able to change the promotion that goes out on every email that leaves our server. I want to be able to change it out by changing one template, not 14 time (email templates) times 3 (template sets)

Can you help me figure this out?

Admin
02-05-2002, 06:54 AM
Try sticking this line in your phpinclude template:
eval("\$emailpromo = \"".gettemplate("emailpromo")."\";");
then see if it helps.

Evoir
02-05-2002, 02:51 PM
Bingo. Thanks. So, do you have to add that sort of code any time you want to add a template to include? (I see I had done that for the last one I included as well, I just hadn't remembered. :) )

Evoir
02-26-2002, 04:32 AM
I have found an odd thing: It seems to add the emailpromo text to all the templates I put the $emailpromo in, except one: email_notify

I sometimes get a bounced email: failure notice and I look in it and there is no email promo. I do see the email promo in the other email templates and that works just fine. I can't figure it out.

I have two sets of templates, two styles. I template set per style. memebrs are not allowed to pick which style, rather, I have one forum that is very high bandwith, and my second template set has no images etc... and is forced upon all members in that forum.

Anyway.... thoughts?