Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#109 2007-01-29 12:23:16

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

ruud wrote:

Gallex, I can’t read Estonian, but I’m guessing that those radio buttons are used to indicate the preferred contact method.

yes, exactly :) my aim is to create reservation form to hotell

If so, have you considered putting “Contact me” in the left column of the table and using radio options “by telephone” and “by email” in the right column. That way you don’t have to switch label and radio option.
A similar thing can be done with the checkbox option: “Hommikusöök” in left column and radio options “yes” and “no” on the right side.

your idea have “colouration”. but how to do that? how to put this 2 paragraphs:
<p><txp:zem_contact_radio name="Broneeringukinnitus" label="Telefoni teel" break="" /></p> <p><txp:zem_contact_radio name="Broneeringukinnitus" label="E-posti teel" break="" /></p>

into one tabel and (more impotant) how to put label and radiobuttons into different columns? i’m afraid i need some help here….;)

Offline

#110 2007-01-29 12:39:22

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

I assume that “Broneeringukinnitus” means something like “Contact me”, so you can put that in the left column so it would look like this:

 ---- column 1 ---    --- column 2 ---
Broneeringukinnitus:  ( ) Telefoni
                      ( ) E-Posti

In HTML:

<tr>
  <td>Broneeringukinnitus:</td>
  <td>
    <txp:zem_contact_radio name="Broneeringukinnitus" label="Telefoni teel" break="" /><br />
    <txp:zem_contact_radio name="Broneeringukinnitus" label="E-posti teel" break="" />
  </td>
</tr>

Last edited by ruud (2007-01-29 12:55:45)

Offline

#111 2007-01-29 13:55:20

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

ruud wrote:

I assume that “Broneeringukinnitus” means something like “Contact me”, so you can put that in the left column so it would look like this: —— column 1 —- —- column 2 —-
Broneeringukinnitus: ( ) Telefoni ( ) E-Posti

I’m afraid that you (and others too ) are missing my big point(problem). I want to float labels “Telefoni teel”(by phone) and “E-posti teel”( by e-mail) to left from their own radiobuttons not “Broneeringukinnitus” from those two options. like this:

—— column 1 —- —- column 2 —-
Telefoni teel: ( )
E-Posti teel: ( )

and that’s why your html code doesn’t help me at all

Offline

#112 2007-01-29 14:39:02

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Oops, sounds like I misunderstood. When you said your idea have “colouration” and asked how to do that I assumed you liked the idea and wanted further details (though I must admit that I wasn’t sure about what coloration meant in this context). Back to square one.

Instead of floating, have you tried giving the label a negative left-margin (and display: block)?

input.Broneeringukinnitus { 
  margin-left: 8em;  
}

label.Broneeringukinnitus {
  float: none;
  margin-left: -8em;
}

And you still have the option of editing the plugin and reverse the order of the label and input fields yourself for both checkbox and radio buttons. It’s probably easier to do that than try solving it with CSS. The changes you’d have to make would be in the zem_contact_radio and zem_contact_checkbox functions.

Last edited by ruud (2007-01-29 17:54:12)

Offline

#113 2007-01-30 11:25:36

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

ruud wrote:

though I must admit that I wasn’t sure about what coloration meant in this context

my fault, bad choice of words

Instead of floating, have you tried giving the label a negative left-margin (and display: block)?
input.Broneeringukinnitus { margin-left: 8em; }
label.Broneeringukinnitus { float: none; margin-left: -8em;}

opera and ie liked your new solution, but firerfox…..didn’t at all :(

And you still have the option of editing the plugin and reverse the order of the label and input fields

ok, let’s try this option. I think I found right lines, but you have to help me. I have not enough courage to do it myself ;)

function zem_contact_radio($atts)
{ global $zem_contact_form, $zem_contact_error, $zem_contact_submit;

extract(lAtts(array(

‘break’ => ‘ ‘,

‘checked’ => ‘no’,

‘label’ => zem_contact_gTxt(‘radio’),

‘name’ => zem_contact_gTxt(‘radio’)

), $atts));

$fname = zem_contact_label2name($name ? $name : $label);

$id = zem_contact_label2name($label);

Offline

#114 2007-01-30 12:00:29

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Wrong lines ;)
Send me an email and I’ll send you a modified plugin later today. That’s easier.

Strange that it didn’t work in Firefox, because that’s what I used for testing. I did remove the exiting style for Broneeringukinnitus before adding my own style.

Last edited by ruud (2007-01-30 12:01:45)

Offline

#115 2007-01-30 12:22:46

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

ruud wrote:

Strange that it didn’t work in Firefox, because that’s what I used for testing. I did remove the exiting style for Broneeringukinnitus before adding my own style.

really wierd :( my testing ff ver. 1.0.7

Offline

#116 2007-01-30 12:50:52

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

I’m using Firefox 2.0

Offline

#117 2007-01-30 19:24:58

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

>ruud
remember this problem I was having? Turns out my problem is far greater than I expected; I’m borderline retarded…

The email I was using in my “to” address was not one that existed. Initial problem solved, now I just need to see a doctor and get my mental acuity tested.

Offline

#118 2007-01-30 20:50:11

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

That’s good news… at least for one of us ;)
But seriously, thanks for the feedback!

Offline

#119 2007-01-31 10:03:20

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,643
GitHub Twitter

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Sorry to break your discussion.

>ruud :

First. I added an attribute in your plugin for a tabindex option into all inputs. Do you think this is a good idea?
Second. I’m looking a way to insert a default value into an input. In the purpose to guidance users. But $value is used for htmlspecialcaracters to send the form. Is there a way to obtain that?
Cheers,


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#120 2007-01-31 10:30:22

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

For default values there’s already a ‘default’ attribute :)

You mention ‘tabindex’. I’ve already seen someone asking about ‘onchange’ as well. Both can be added externally with a bit of javascript, but that’s probably a lot more work than having them built in, so adding them to the plugin is probably the better approach.

Offline

Board footer

Powered by FluxBB