Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

E-mail problem with multiple templates

Quote Reply
E-mail problem with multiple templates
Hello,

I am having a little problem with non default mail templates.

Apparently they are NOT used by the forum. As I first thought it was due to my installation I also tried it with this forum: I made myself a new account trough the german pages: http://www.gossamer-threads.com/perl/gforum/gforum.cgi?do=user_signup;t=german and received the validation email in English, so if I use that validation link I am back on the English template forum...

Replacing the default templates is not a solution, as I want to work my forum with multpls templates (different languages and different layouts), so how do I fix that little problem that the right email templates are used?

Thanks,
Paul
Quote Reply
Re: [pvc] E-mail problem with multiple templates In reply to
Hi Paul,

Gossamer Forum will use the e-mail from whatever template set you select on the signup form. On our forum here, there isn't an option for the german templates on signup - just "default" or "default_top".

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] E-mail problem with multiple templates In reply to
Hi Jason,

Thanks a lot for ypur reply, I didn't try that one... So, I suppose the best thing I can do is to make in every template set (language or layout) that very same template set as the checked one when people subscribe.

I'll give it a try!

Thanks a lot for the useful advise,
Paul
Quote Reply
Re: [pvc] E-mail problem with multiple templates In reply to
hello,

for anyone who has ever this problem, it is even easier,

look in the template file user_signup.html

for the part[quote]
<%--
The following option is used to allow users to choose a different template set
when they sign up.

You can specify alternate template sets that a user may choose by simply
cutting and pasting the HTML below. If a user has an alternate template set
specified, whenever they use the forum they will see the template set of their
choice. This makes using an interface with multiple languages very easy - one
template set for English users, one for French users, one for German users,
etc.

For example, if you were to add two new template sets called "french" and
"german", in addition to "default", you might do something like this:
<option value="default"<%if user_template eq default%> selected<%endif%>>English</option>
<option value="francais"<%if user_template eq new_template_set%> selected<%endif%>>Fran&ccedil;ais</option>
<option value="deutsche"<%if user_template eq deutsche%> selected<%endif%>>Deutsche</option>

Also remember to change the same select box in user_profile_display.html.
--%>
[/quote]

So, this explains everything. And, if you don't want to let the person the choice, you can make it an hidden input.

Paul