PDA

View Full Version : Default newsletter format


henrikhansen
08-16-2008, 09:11 PM
At the registration page, new users can subsribe to newsletters and choose format. The default is html, how can I change the default to text?

Morgan
08-17-2008, 03:35 PM
You would need to edit the following line in the gaz_profile_subscriptions template:

$vbphrase[gaz_format] <select name="gaz_format"><option value="1" <if condition="$format < 2">selected ="selected"</if>>$vbphrase[gaz_html]</option><option value="2" <if condition="$format == 2">selected ="selected"</if>>$vbphrase[gaz_plain_text]</select>

By default, if $format is < 2 then HTML is selected, so you might try a nested template conditional, where if $format = 0 then Plain Text is selected, if $format = 1 then HTML is selected, and if $format = 2 then Plain Text is selected.