PDA

View Full Version : template or var?



XFLOfficePool
Wed 10th Jan '01, 10:12am
Ok, I've had the product a few days now, very impressive.

I've modified all my templates to display my menu system and removed the VBulletin graphic, and a few other minor changes.

Now I want to create a new variable or template, not sure which, that will be included in all the email templates. Essentially any email coming from my board(s) will include my sites name, url, email address and a single line link to a sponsor url.

So I created a template, called "emailsigniture" that I put:
Thanks,
$hometitle
$homeurl
$webmasteremail
http://www.x10.com/friends/request.cgi?webmaster@xflofficepool.com

To test it, I modifed the "sendtofriendemail" template, putting "$emailsigniture" at the end.

That didn't work. I'm thinking I should create a new variable, not a template, but not completely sure.

Any help?

Thanks.
Ray
webmaster@xflofficepool.com
http://www.officepool.com
XFL Office Pool
"Coming Jan. 15, 2001 ....maybe sooner :) "

Wayne Luke
Wed 10th Jan '01, 10:20am
At the end of your global.php put:
eval("\$emailsigniture = \"".gettemplate("emailsigniture")."\";");

XFLOfficePool
Wed 10th Jan '01, 10:26am
at the very end, or just before the "?>"

Sorry, not familiar with php3 yet...

also, same thread.... in the sendtofriendemail template, or any email template, how do I force a "newline" \n ?

$hometitle
$homeurl
$webmasteremail
http://www.x10.com/friends/request.cgi?webmaster@xflofficepool.com

comes out as one long line in the email.

Thanks again.

Wayne Luke
Wed 10th Jan '01, 11:10am
Put it before the ?>

If you put it after the whole forum system will break.

Never did anything special. There is a problem in vBulletin where occasionally people get the email without formatting. I have been looking at it but haven't found a fix yet.

I think it has to do with the settings in the email client or the server though.

If the user has their program set to force email to HTML this would happen.

If the server doesn't set the email headers correctly all the time it could happen.

On our board of 3500+, it happens to about 30-40 people. Another board (edevboards.com) has said some of their users have had the same problem.

XFLOfficePool
Wed 10th Jan '01, 11:32am
Thanks again Wayne.

I figured it went before, but just wanted to be sure. I actually went ahead and did it before you answered, so I had my answer :) I'm a PERL guy, for about 8 years now... Never even opened a PHP book to study, but looks similar, a language is a language I always say, jut got to know where to put the semicolons and whatnot :)

If it helps, the touble I am having is only when I receive the email using Outlook 2000, figures! The same email to a Yahoo email address, or downloaded using Netscape Communicator looks great.

Wayne Luke
Wed 10th Jan '01, 11:57am
The people that complain from my forums are all using Outlook 2000 as well. However I use the same program and don't have a problem and get between 100 and 200 emails a day from my forums through the email notification system.

XFLOfficePool
Wed 10th Jan '01, 12:12pm
Must be a setting on my end then.

Although, I just went to your beginners board and sent one of the post to myself, and it came in clean.... weird!

Thanks again.