vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   how do I add a template bit to the email templates? (https://vborg.vbsupport.ru/showthread.php?t=34790)

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:
Code:

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?


All times are GMT. The time now is 08:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01900 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete