Each element (e-mail, subscribe and unsubscribe radio buttons) are wrapped in the following div
.
The validation fails as the id appears three times... Any help on how to theme the form accordingly??
Each element (e-mail, subscribe and unsubscribe radio buttons) are wrapped in the following div
The validation fails as the id appears three times... Any help on how to theme the form accordingly??
Comments
Comment #1
sutharsan commentedPlease provide the faulty and the corrected HTML.
Comment #2
maria_zk commentedThe code for the sidebar block that doesn't validate is the following:
So as you can see, the following div appears twice:
It would be corrected if I could change the second div into e.g.
Should I just go ahead and edit the form element in my template.php with theme_form_element? And change the id's to classes?
Also... How can i theme this block?
Comment #3
sutharsan commentedThis is theme specific, not simplenews related. The subscribe block form in Garland:
Comment #4
eeyorrI have the same problem. I tested in Garland, as well, and it still doesn't validate. Here's the output:
Comment #5
sutharsan commentedSee #3
Comment #6
eeyorrI saw #3, which is why I tested it in Garland and posted the results in my previous comment. It's not a theme issue if Drupal's default themes produce the error.
Comment #7
sutharsan commentedYour solutions for this error are welcome.
Comment #8
Whackler commentedAny progress here ?
I really need this subscribe block to work..
I also see the id : 'edit-action-wrapper' twice
Comment #9
sutharsan commentedNo progress. What needs to be done is in the form definition, to replace the two checkbox items by a checkboxes item with two elements. Form validate and submit functions to be modified accordingly. Anyone care to do this?
Comment #10
mogtofu commentedHere is the solution, need to patch /includes/form.inc
http://drupal.org/node/367689
Regards,
Mog.
Comment #11
quinti commentedbut this solution is for D7 my friend....
i have the same problem,
where is the code where the radios print? is it possible add other div there?...
Comment #12
seliqui commentedhi all :)
I fixed it that way:
1.
copy your block.tpl.php to block-simplenews.tpl.php
2.
change
through
(i'm not an coding expert - but it works fine for me, as long as there are only 2 options.
And by using the block-simplenews.tpl.php file it's not gone when you update your drupal and/or modules.)
Comment #13
quinti commentedOk, sorry,
this solutions is OK
mogtofu - http://drupal.org/node/367689
greetings
Comment #14
sutharsan commentedUnless someone provides a patch, I will not fix this. With no help for Simplenews support and D7 coming up, I do not work on D5 anymore.