• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: W3C compliance

W3C compliance 17 years 11 months ago #500

  • globule
  • globule's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
As Forme is a new component, why you didn't choose to generate XHTML strict forms?
If you want, I have some code suggestions to go this way.
The administrator has disabled public write access.

Re:W3C compliance 17 years 11 months ago #501

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Hi,

let me know what your suggestions are.
The administrator has disabled public write access.

Re:W3C compliance 17 years 11 months ago #505

  • globule
  • globule's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Here what I did right now.
Form style:
<div align=\"left\" style=\"width:100%\" class=\"componentheading\">{formtitle}</div>
 
<div style=\"text-align:left; margin: 0 auto;\">
<form name=\"{formname}\" id=\"{formname}\" method=\"post\" action=\"{action}\" {enctype} onsubmit=\"return ValidateForm(fields);\">
<legend>Please fill this form</legend>
	<fieldset>
	{formfields}
	</fieldset>
</form>
</div>
Field style:
<div class=\"{fieldtype}\">
		<span class=\"label\">
			{fieldtitle}{validationsign}
		</span >
		<span class=\"field\">
			{field}
		</span >
		<span class=\"desc\">
			{fielddesc}
		</span >
	</div>
In html file, field are parsed like this:
case 'checkbox':
	$html = str_replace('{fieldtitle}',\"<label for=$row->name>$row->title</label>\",$row->fieldstyle);
	$html = str_replace('{fieldtype}','checkbox',$html);
	$html = str_replace('{validationsign}',($row->validation_rule) ? ' *':'',$html);
	$html = str_replace('{field}','<input type=\"checkbox\" name=\"form['.$row->name.']\" value=\"'.$row->default_value.'\" id=\"'.$row->name.'\" '.$row->params.' />',$html);
	$html = str_replace('{fielddesc}', $row->description,$html);
 
break;
and I add a CSS (see attached file) this way in the showform function:
$html='<link href=\"'. $mosConfig_live_site .'/components/com_forme/forme.css\" rel=\"stylesheet\" type=\"text/css\">';
    if (!strpos($mainframe->getHead(), $html))
        $mainframe->addCustomHeadTag($html);
Of course, it is not supposed to be the best way, only a draft... ;)

Attachment forme-d76f9cbf74a2b5454c3d3144e1ceba9d.zip not found

Attachments:
The administrator has disabled public write access.

Re:W3C compliance 17 years 11 months ago #512

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Thank you! i will keep that in mind.
The administrator has disabled public write access.

Re:W3C compliance 17 years 10 months ago #619

hi globule,

is your hack working? have you tried it?
The administrator has disabled public write access.

Re:W3C compliance 17 years 10 months ago #621

  • globule
  • globule's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Why souldn't it?
I didn't write this code directly in the forum, it comes from my files!
The administrator has disabled public write access.

Re:W3C compliance 17 years 10 months ago #771

thanks for this hack.
but i am having some difficulties to implement:
for \"form style\" and \"field code\" = no problem.
but for the implementation of the css and how fields are parse i am not sure i know where to do it. also i see only the change to \"checkbox\", but is it exactly the same for all other type

thanks again
The administrator has disabled public write access.

Re:W3C compliance 17 years 9 months ago #934

  • globule
  • globule's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
You're right when you say teh example is only for checkcode. Do you really think I will publish my devs for free for a (now) commercial extension?
The administrator has disabled public write access.

Re:W3C compliance 17 years 9 months ago #937

I hear you, i see your point.
it's also disappointing for me to see an extension going commercial once they get more or less stable.
you try, test bug track the product and work with the dev, go through the hassle of working with a non fully functional extension, and when it gets good; <<bang>> it becomes a paid extension!

i'd rather be asked for a donation than paid, event though it's not expensive.

my problem is now i have used forme for a important project that is about to go live, i don't have time to try/test a new extension for that.

but thanks again. maybe i'll start from your idea and work on it on my own. If i do, may i send it you so you can compare.

chers
The administrator has disabled public write access.

Re:W3C compliance 17 years 9 months ago #941

  • globule
  • globule's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Sure, you're welcome!
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!