TinyPortal

Development => Support => Topic started by: gfxindia on September 22, 2006, 06:56:45 AM

Title: Templates
Post by: gfxindia on September 22, 2006, 06:56:45 AM
I'm posting here coz i dont get fast replies at sm.org

Where should i go to change the templates of emails.
That is,
when you prefer to notify of topic replie, new PM etc..
you will get PM right ? where should i go and change the look and text of those messages ?
Also where should i go to change the layout of Announcements. I want it to be like the one Bloac uses.
And also the newsletter template - i wanna change.

Thank You
Title: Re: Templates
Post by: G6Cad on September 22, 2006, 07:08:35 AM
I dont think they come premade, i think you have to code the template manually and use as a newsletter when you send mail or PMs  ???
Title: Re: Templates
Post by: gfxindia on September 22, 2006, 07:12:43 AM
its ok with newletter.
But what to do for others ?
I want to edit the text shown in those mails.
Title: Re: Templates
Post by: G6Cad on September 22, 2006, 07:14:04 AM
Im not sure where to do that, it's more an SMF thing then TP so im not all that good in how to change it or where, have you looked in the newsletter admin ???
Title: Re: Templates
Post by: gfxindia on September 22, 2006, 07:16:07 AM
no i dont want to change newsletter.
this topic is mainly for the other mails.
Title: Re: Templates
Post by: G6Cad on September 22, 2006, 07:27:21 AM
If i understand this correct, you have to create an xml or rss feed and make it look the way you want, then when you send "newsletters" using that rss or xml, you have it sent by email to your users with template looks if you created the xml or rss as templates with content
Title: Re: Templates
Post by: gfxindia on September 22, 2006, 07:30:23 AM
ok. but i dont really need to have it for newletters.
i want for other mails sent by my forum.
Title: Re: Templates
Post by: G6Cad on September 22, 2006, 07:32:14 AM
All mails from the forum are sent out from the same place as you create news letters, the mails sends like newsletters, or where do you send out mails from your forum from  ???
Title: Re: Templates
Post by: gfxindia on September 22, 2006, 07:33:28 AM
the automatic ones.
which will be sent to you when you receive new PM, new replies to your posts, announcements, password change mail etc...
Title: Re: Templates
Post by: bloc on September 22, 2006, 09:19:10 AM
Actually..this site use a html template for its announcements only, and that I made as a "hack" to Post.php. SMF sadly hasn't got template editing for the look of anouncements sent, because the notion was that announcements should be pure text-based. But with some slight changes you can have it html-style anyway. :)

I think this has to be made a mod though, so it can be easily installed. Or just added as part of TP. 
Title: Re: Templates
Post by: G6Cad on September 22, 2006, 09:20:45 AM
QuoteOr just added as part of TP.

That sound like the best thing :)
Title: Re: Templates
Post by: gfxindia on September 22, 2006, 09:22:31 AM
Thanks Bloc.
By Template, i meant HTML only.
Which file should be edited to add those HTML
which file for announcements ? Which for the other Notification like PM, Topic Reply etc...
Title: Re: Templates
Post by: bloc on September 22, 2006, 09:23:22 AM
Mainly Post.php.
Title: Re: Templates
Post by: gfxindia on September 22, 2006, 09:24:24 AM
in Sources dir ?
Title: Re: Templates
Post by: bloc on September 22, 2006, 09:26:14 AM
Yes. Most notifications are done there, and announcements.
Title: Re: Templates
Post by: gfxindia on September 22, 2006, 09:26:36 AM
OK.
Thank you
Title: Re: Templates
Post by: rebelrose on September 22, 2006, 03:46:12 PM
When you receive a pm after a post is made, that text is in the default language files post.php, and the email sent when you sign up at a forum is in the login.php, unless you have the pm on registeration mod installed.
Title: Re: Templates
Post by: gfxindia on September 22, 2006, 03:50:51 PM
OK.
Thank You Rebel