cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Post

lucifer - Guest

6:24 am - February 14, 2008

Please replace the ??? with your data!

  • Your URL: http://???
  • The browser used: ???
  • cforms version: ???
  • Your Wordpress version: ???

What a wonderful plugin, would be great to see some kind of validation though. It does thtow off validated sites with only a few errors.
_

Oliver - Admin

7:15 am - February 14, 2008

posts 3562

Validation comes in many forms, can you be more specific?

If you're refereing to xHTML/strict it validates nicely here...but I'm happy to stand corrected.

Juhi - Guest

5:07 pm - February 22, 2008

i am facing 1 error with transitional xhtml validation. everything goes fine, only it defines the <li> attribute twice like:

<li id="cforms-ii-2tell-a-fri" class="widget widgetcform1">

--cform goes here...coded stuff--

</li>

after this complete cform, it says again:

<li id="cforms-ii-2tell-a-fri" class="widget widgetcform1"><!--2--></li>

. this leads to a double use of an 'id' tag, ie, 'cforms-ii-2tell-a-fri'. which is invalid markup as a class tage shud be used instead of 'id', if the id is to be used more than once.


the other invalid markup its showing in my case is the absence of the closing 'li' tag for the first <li>. I had to go though all the functions and add a closing </li> to the link love line in the php cforms.php. which wasnt the best way to handle it, but well...


by the way, i am using the tell a friend form in the dynamic sidebar and a theme based on the kubric theme. cform v 7.51.

i wish this problem would be fixed as thats the only thing keeping my website from having valid xhtml for the first time! :)

not that i need to mention, but great plugin! takes all the work out of making forms!

Oliver - Admin

6:56 pm - February 22, 2008

posts 3562

You're right. Until v7.52 is released, here is a patch. Find function widget_cformsin cforms.php and replace the complete function with:

function widget_cforms($args) {
        extract($args);
        preg_match('/^.*widgetcform([^"]*)".*$/',$before_widget,$form_no);
        $no = ($form_no[1]=='0')?'':(int)($form_no[1]+1);
        echo $before_widget . "<!--$no-->";
        insert_cform($no);
        echo $after_widget;
}

and double check your widgets in the widget control panel. the cforms ones may have been kicked out.

Juhi - Guest

10:43 am - February 23, 2008

Thanx!

That worked perfectly well, and after changing the Link-love line back to the way it was, the page validated for transitional xhtml 1.0 very easily!

thanx again. Smile

Penelope - Guest

11:45 pm - March 20, 2008

Hi, thanks for this great plug-in. I'm having some XHTML validation issues on a couple of forms. In case the errors I copied don't paste correctly, the links to the validation errors is:

http://validator.w3.org/check?uri=http%3A%2F%2Fourfourpenceworth.com%2Flink-exchange

http://validator.w3.org/check?uri=http%3A%2F%2Fourfourpenceworth.com%2Fcontact-us

[edit: copy&paste removed]

Add a New Topic Reply to Post


Reply to Topic: Validation
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 6 + 3        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)