Re: Newsletter-Only Subscriptions for v1.3x
As an additional to what I said above....
Quote:
Originally Posted by
Doodlebuckets
Everything works great except if you go here
http://www.giftsofcharacter.com and look at the sidebox, the radio input is not right. The subscribe button and text-only are in the wrong place.
If you want to stick with your current stylesheet settings then you could try editing includes/templates/YOUR_TEMPLATE/sideboxes/tpl_subscribe.php and change the lines that say...
PHP Code:
if(EMAIL_USE_HTML == 'true') {
$content .= ' <br /> <label>' . zen_draw_radio_field('email_format', 'HTML', true) . ENTRY_EMAIL_HTML_DISPLAY . '</label>';
$content .= ' <label style="white-space:nowrap">' . zen_draw_radio_field('email_format', 'TEXT', false) . ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
}
...to be...
PHP Code:
if(EMAIL_USE_HTML == 'true') {
$content .= ' <br /> ' . zen_draw_radio_field('email_format', 'HTML', true, 'id="emailhtmlformat"');
$content .= ' <label for="emailhtmlformat" class="radioButtonLabel">'. ENTRY_EMAIL_HTML_DISPLAY . '</label>';
$content .= zen_draw_radio_field('email_format', 'TEXT', false, 'id="emailtextformat"');
$content .= ' <label for="emailtextformat" class="radioButtonLabel">'. ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
}
Hope that helps.
Regards,
Christian.
Re: Newsletter-Only Subscriptions for v1.3x
Quote:
Originally Posted by
CJPinder
As an additional to what I said above....
If you want to stick with your current stylesheet settings then you could try editing includes/templates/YOUR_TEMPLATE/sideboxes/tpl_subscribe.php and change the lines that say...
PHP Code:
if(EMAIL_USE_HTML == 'true') {
$content .= ' <br /> <label>' . zen_draw_radio_field('email_format', 'HTML', true) . ENTRY_EMAIL_HTML_DISPLAY . '</label>';
$content .= ' <label style="white-space:nowrap">' . zen_draw_radio_field('email_format', 'TEXT', false) . ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
}
...to be...
PHP Code:
if(EMAIL_USE_HTML == 'true') {
$content .= ' <br /> ' . zen_draw_radio_field('email_format', 'HTML', true, 'id="emailhtmlformat"');
$content .= ' <label for="emailhtmlformat" class="radioButtonLabel">'. ENTRY_EMAIL_HTML_DISPLAY . '</label>';
$content .= zen_draw_radio_field('email_format', 'TEXT', false, 'id="emailtextformat"');
$content .= ' <label for="emailtextformat" class="radioButtonLabel">'. ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
}
Hope that helps.
Regards,
Christian.
Thanks! I think that's what I'll do :o) I really love my template. I also just remembered that the defined pages from the newsletter subscription mod are not showing up in the admin Define Pages Editor. I've uploaded the mod twice, so I don't think I missed anything. How do I get those to show up there? Thanks! Amy
PS For anyone who's using the Apple Zen template, the above line of code should have a second break in it to put the subscribe button down to the next line:
$content .= ' <br /><br />' . zen_image_submit (BUTTON_IMAGE_SUBSCRIBE,HEADER_SUBSCRIBE_BUTTON, 'value="' . HEADER_SUBSCRIBE_BUTTON . '" ');
Otherwise it just sits next to the text-only line :)
Re: Newsletter-Only Subscriptions for v1.3x
Quote:
Originally Posted by
Doodlebuckets
Thanks! I think that's what I'll do :o) I really love my template.
Your welcome. Your template does look very nice.
I've had a play with the HTML a bit more and I think the following will probably work best...
PHP Code:
if(EMAIL_USE_HTML == 'true') {
$content .= '<div id="subscribeBoxEmailFormat" style="white-space:nowrap"> ';
$content .= zen_draw_radio_field('email_format', 'HTML', true, 'id="emailhtmlformat"');
$content .= '<label for="emailhtmlformat" class="radioButtonLabel">'. ENTRY_EMAIL_HTML_DISPLAY . '</label>';
$content .= zen_draw_radio_field('email_format', 'TEXT', false, 'id="emailtextformat"');
$content .= '<label for="emailtextformat" class="radioButtonLabel">'. ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
$content .= '</div>';
}
Quote:
Originally Posted by
Doodlebuckets
I also just remembered that the defined pages from the newsletter subscription mod are not showing up in the admin Define Pages Editor. I've uploaded the mod twice, so I don't think I missed anything. How do I get those to show up there?
Now you come to mention it I seem to remember having the same problem when I first started using it. I'll have a look and see what is going on.
Regards,
Christian.
Re: Newsletter-Only Subscriptions for v1.3x
Quote:
Originally Posted by
CJPinder
Your welcome. Your template does look very nice.
I've had a play with the HTML a bit more and I think the following will probably work best...
PHP Code:
if(EMAIL_USE_HTML == 'true') {
$content .= '<div id="subscribeBoxEmailFormat" style="white-space:nowrap"> ';
$content .= zen_draw_radio_field('email_format', 'HTML', true, 'id="emailhtmlformat"');
$content .= '<label for="emailhtmlformat" class="radioButtonLabel">'. ENTRY_EMAIL_HTML_DISPLAY . '</label>';
$content .= zen_draw_radio_field('email_format', 'TEXT', false, 'id="emailtextformat"');
$content .= '<label for="emailtextformat" class="radioButtonLabel">'. ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
$content .= '</div>';
}
Now you come to mention it I seem to remember having the same problem when I first started using it. I'll have a look and see what is going on.
Regards,
Christian.
The same changes that were made to the sidebox also need to be made to tpl_subscribe_header.php Thanks for looking into the defines thingy and for the other fixes. It looks so much better!
Re: Newsletter-Only Subscriptions for v1.3x
Quote:
Originally Posted by
Doodlebuckets
I also just remembered that the defined pages from the newsletter subscription mod are not showing up in the admin Define Pages Editor.
I've had a look and I remember now what I had to do to get this working. It is because of a feature (bug?) in the Define Pages Editor. If you look at the files that came in the mod download you will see define_subscribe.php and define_unsubscribe.php in the includes/languages/english/html_includes/YOUR_TEMPLATE directory. So you rename YOUR_TEMPLATE to the name of your custom template and upload them to your server. Trouble is the files won't appear in the Define Pages Editor unless you also upload the define_subscribe.php and define_unsubscribe.php files to the includes/languages/english/html_includes directory. Once you have done that it should all work fine and the Define Pages Editor will allow you to edit the files in your custom template directory.
Regards,
Christian.
Re: Newsletter-Only Subscriptions for v1.3x
Quote:
Originally Posted by
CJPinder
I've had a look and I remember now what I had to do to get this working. It is because of a feature (bug?) in the Define Pages Editor. If you look at the files that came in the mod download you will see define_subscribe.php and define_unsubscribe.php in the includes/languages/english/html_includes/YOUR_TEMPLATE directory. So you rename YOUR_TEMPLATE to the name of your custom template and upload them to your server. Trouble is the files won't appear in the Define Pages Editor unless you also upload the define_subscribe.php and define_unsubscribe.php files to the includes/languages/english/html_includes directory. Once you have done that it should all work fine and the Define Pages Editor will allow you to edit the files in your custom template directory.
Regards,
Christian.
Thanks! They are now there...Preshiate the help once more!