(SOLVED)Formating Newsletter input form
(SOLVED)Formating Newsletter input form
Hi
I have CMSMS 1.10.10.
I have installed the News letter module.
The module extends outside the Div it should be in.
I want to get the label on one line and the input field on the next to reduce the width.
I would also like to control the width of the input field.
You can see my problem under the draft site:
http://www.lackier-und-designstudio.de/web1/.
Sorry but I can not find anything on this subject in the help or forum.
This appears to be the code:
{if $message ne ""}
<br /><span class="nms_message">{$message}</span><br />
{/if}
{$formstart}
{$formhidden}
{if $prompt_email ne ""}
{$prompt_email}: {$email}<br />
{/if}
{if $prompt_firstname ne ""}
{$prompt_firstname}: {$firstname}<br />
{/if}
{if $prompt_surname ne ""}
{$prompt_surname}: {$surname}<br />
{/if}
{foreach from=$listids item=curr_id}
{$curr_id}<br/>
{/foreach}
{$submitbtn}
{$formend}
I would expect there to be a name and surname field, but only Name appears.
There is obviously a CSS file as the class "nms_message", but where?
If anyone can help I would be very greatfull.
Alternatively I could link in an external mail client. Can anyone recommend a good one?
Thanks in advance.
Dave
I have CMSMS 1.10.10.
I have installed the News letter module.
The module extends outside the Div it should be in.
I want to get the label on one line and the input field on the next to reduce the width.
I would also like to control the width of the input field.
You can see my problem under the draft site:
http://www.lackier-und-designstudio.de/web1/.
Sorry but I can not find anything on this subject in the help or forum.
This appears to be the code:
{if $message ne ""}
<br /><span class="nms_message">{$message}</span><br />
{/if}
{$formstart}
{$formhidden}
{if $prompt_email ne ""}
{$prompt_email}: {$email}<br />
{/if}
{if $prompt_firstname ne ""}
{$prompt_firstname}: {$firstname}<br />
{/if}
{if $prompt_surname ne ""}
{$prompt_surname}: {$surname}<br />
{/if}
{foreach from=$listids item=curr_id}
{$curr_id}<br/>
{/foreach}
{$submitbtn}
{$formend}
I would expect there to be a name and surname field, but only Name appears.
There is obviously a CSS file as the class "nms_message", but where?
If anyone can help I would be very greatfull.
Alternatively I could link in an external mail client. Can anyone recommend a good one?
Thanks in advance.
Dave
Last edited by Dave59 on Sat Dec 31, 2011 9:04 am, edited 3 times in total.
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: Formating Newsletter input form
NMS Made Simple 2.3.8 only uses the username and the emailaddress.
to split the label and the input field, just change your template by replacing with <br />
{if $message ne ""}
<br /><span class="nms_message">{$message}</span><br />
{/if}
{$formstart}
{$formhidden}
{if $prompt_email ne ""}
{$prompt_email}:<br />{$email}<br />
{/if}
{if $prompt_username ne ""}
{$prompt_username}:<br />{$username}<br />
{/if}
{foreach from=$listids item=curr_id}
{$curr_id}<br/>
{/foreach}
{$submitbtn}
{$formend}
to split the label and the input field, just change your template by replacing with <br />
{if $message ne ""}
<br /><span class="nms_message">{$message}</span><br />
{/if}
{$formstart}
{$formhidden}
{if $prompt_email ne ""}
{$prompt_email}:<br />{$email}<br />
{/if}
{if $prompt_username ne ""}
{$prompt_username}:<br />{$username}<br />
{/if}
{foreach from=$listids item=curr_id}
{$curr_id}<br/>
{/foreach}
{$submitbtn}
{$formend}
Re: Formating Newsletter input form
Hi Thanks
I had put a </br> in, this had no effect in I.E 9, but works fine in FF.
I was looking at the page with i.e. which still shows the input and label side by side so I did not see the change.
In FF they are as I want them to be.
Do you know why please?
Thanks for the quick response.
Dave
I had put a </br> in, this had no effect in I.E 9, but works fine in FF.
I was looking at the page with i.e. which still shows the input and label side by side so I did not see the change.
In FF they are as I want them to be.
Do you know why please?
Thanks for the quick response.
Dave
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: Formating Newsletter input form
did your refresh your page by pressing one or twice CTRl-F5?
It seems IE doesn't always render <br /> correct, you can also use a simple <br>
It seems IE doesn't always render <br /> correct, you can also use a simple <br>
Re: Formating Newsletter input form
Yes I tried this.
I will boot up another computer and try.
The other changes appear, but not in the form??
Even clear history etc. with Ccleaner no change.
Did it look ok on your computer?
Unfortunately I will be away for a while now.
Dave
I will boot up another computer and try.
The other changes appear, but not in the form??
Even clear history etc. with Ccleaner no change.
Did it look ok on your computer?
Unfortunately I will be away for a while now.
Dave
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: Formating Newsletter input form
it looks fine with Opera, Chrome, Pale Moon (a Firefox distro) and IE 9
Re: Formating Newsletter input form - Solved
Thanks I will assume the problem is with my comp.
I will mark this solved.
Thanks for your help
Dave
I will mark this solved.
Thanks for your help
Dave
Re: (solved) Formating Newsletter input form
You can use the label field or a span around them and tell that to display:block in CSS...
<span>{$prompt_username}:</span> you can give the span a class to target it specifically...
<span>{$prompt_username}:</span> you can give the span a class to target it specifically...
Re: (solved) Formating Newsletter input form
OK I will try that.
Thanks for the great support.
Happy new year to you all.
Dave
Thanks for the great support.
Happy new year to you all.
Dave
Re: Formating Newsletter input form
I thought this was solved, but I have tested on other computers and in I.E.9 the input form is wrongly formatted.
This is driving me crazy and has costed hours of lost work.
Why do you see it as it should be and I get the label and forms side by side even on different computers, but only with I.E. in FF it is as it should be on all computers.
The working draft is under:
http://www.lackier-und-designstudio.de/web1/
I do not understand this and am out of ideas where to look, so that probably means the solution is simple!!
Sorry to have to ask again.
Dave
This is driving me crazy and has costed hours of lost work.
Why do you see it as it should be and I get the label and forms side by side even on different computers, but only with I.E. in FF it is as it should be on all computers.
The working draft is under:
http://www.lackier-und-designstudio.de/web1/
I do not understand this and am out of ideas where to look, so that probably means the solution is simple!!
Sorry to have to ask again.
Dave
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: Formating Newsletter input form
for me it looks fine with IE9 http://dl.dropbox.com/u/54430152/Naamloos%201.jpg
Re: Formating Newsletter input form
There seem to be differences in the way FF and Chrome (in my case) render the default HTML for form fields. I was able to get around that by sizing the text field widths in CSS instead of relying on the "size=" parameter. Add the following to your CSS and that should fix it:
Of course you can adjust the width and height to suit your particular design and layout.
Hope this helps.
-S
Code: Select all
div#newsletterbox input.cms_textfield {width:150px;height:14px;}
Hope this helps.
-S
Re: Formating Newsletter input form
It looks like I have a messed up installation.
Under Extensions, NMS appears twice.
Only once in the module list of installed modules.
I also had TNMS installed
When I look at the templates in each of these one has the </br> the other not.
So I did a de install and reinstalled now the module is dead.
I just get "no list to register found" (Rough translation from German "Keine Liste zum Anmelden gefunden") no form!
Out of the frying pan and into the fire! I could express it another way, but it would get censored.
Now I need to find the last back up that works.
I will post when I know if this was the cause.
Thanks again
Dave
Under Extensions, NMS appears twice.
Only once in the module list of installed modules.
I also had TNMS installed
When I look at the templates in each of these one has the </br> the other not.
So I did a de install and reinstalled now the module is dead.
I just get "no list to register found" (Rough translation from German "Keine Liste zum Anmelden gefunden") no form!
Out of the frying pan and into the fire! I could express it another way, but it would get censored.
Now I need to find the last back up that works.
I will post when I know if this was the cause.
Thanks again
Dave
Re: (SOLVED)Formating Newsletter input form
That solved it.
Don't know how I managed to get NMS installed twice.
Thanks for your help.
Happy new year!!!!!!!!!!
Don't know how I managed to get NMS installed twice.
Thanks for your help.
Happy new year!!!!!!!!!!