PDA

View Full Version : I need help with and a template to a phrase.


Parker Clack
02-11-2009, 08:04 PM
I would like to added a template that I can change out periodically that gets inserted into a phrase.

In the notify phrase you have such variables as

$touser[username], $threadinfo[title] $foruminfo[title_clean] $vboptions[bbtitle] $vboptions[bburl]/showthread.php?t=$threadinfo[threadid]&goto=newpost and $pagetext.

Which .php file is this informaton gettting pulled from? I would like to created a template that I could add to the list the gets emailed out, such a $forum_news, that I could then change the contents of.

This way if I want to let our members know through their instant notifications from subscribed threads about something new on the forum and then two weeks later change this information I would just change the contents in the template.

Any help would be appreciated.

Parker

Dismounted
02-12-2009, 03:51 AM
The variables inside phrases are fetched from the context they are in. For your "problem", there is no need to use variables, just change the phrase itself.

Parker Clack
02-12-2009, 03:08 PM
So do I create a template called something like $email_annoucement and put that in the phrase? So when I change the template the phrase gets updated with what is in the template?

Dismounted
02-13-2009, 08:07 AM
Again, there is no need to use variables, just change the phrase itself.

Parker Clack
02-13-2009, 07:13 PM
I understand that I can just change the phrase but the whole phrase doesn't need to be changed. $touser[username] gets changed with every email that goes out. The whole phrase doesn't need to be changed. I want to change the text that is associated with $email_announcement without chnaging the rest of the phrase.