cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
moved: Re-Locate
January 5, 2008
10:02 am
Tony
Guest

Please replace the ??? with your data!

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

Hi,  I wish to re-locate the "require" html code to infront of "label". Currently, the require is located after the input area. Example of what I want :

Name * —Input Area—

The asterisk mark will the the require text that I am going to enter.  I understand tht I can add a HTML (ie<font….) to the label field but this will break the variable that I am going t use in the Auto confirmation.

Any advise.

Thanks in avance 

January 5, 2008
10:51 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

What's your URL Tony?

January 5, 2008
4:05 pm
Tony
Guest

Hi, 

http://blogdemo.anthonet.com/?p=8

Please advise. Thanks

January 5, 2008
4:48 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Tony, you have three options, with no. 3 being the recommended one.

  1. Move the form elements around via CSS:
    1. float the required field and input field to the right and the label to left
    2. set all margins for (input, required field and label) appropriately
  2. Modify the source code to 'physically' change the order of elements
  3. Use CSS backgrounds to change the respective label ID's look
    1. Activate LABEL ID's in the Styling Menu
    2. Add specific CSS to your cforms CSS theme, e.g.
      #label—2 { background: url(req-bg.gif) no-repeat right top; }
January 5, 2008
6:14 pm
Tony
Guest

Hi Oliver,

Thanks for your recommendation.

For Option 3, the asterisk mark is not based on my form setting but rather just to hardcode the label. I may create other forms as well so this method may not be feasible.

For Option 1, it will mess up the CSS a lot.

I would like to go for option 2 but any idea where should I make changes. I believe it is under cforms.php but can you guide me which line I need to change.

Your assistance is very very much appreciated.

Thanks 

January 5, 2008
9:01 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Yes it be in cforms.php, but I can't provide you any support in customizing it to your specific needs.

The only rough guide-line would be to search for <label and move that part of the code after the <input fields get added.

Considering a future upgrade path, this frankly would be the least favorable approach.

 

January 5, 2008
9:10 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

By the way why not do something like this:

Message<span class="m">*</span>

The corresponding variabel name would be:

{Message<span class="m">*</span>}

not pretty, but it works like a charm.

 

EDIT: It works in the TXT part of the (admin/confirmation) emails, not in the HTML part yet – there seems to be a tiny bug.

I'll fix it tomorrow and can send you an update per email. 

January 6, 2008
2:31 am
Tony
Guest

Hi Oliver,

Yes, initially, I did what you have suggested and place the whole string in admin/confirmation/html and it can't work. That is why I asked whether there is any alternative way.

Glad that you are fixing it.

Thanks for such a beautiful plugin and your support.

Regards 

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3713

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5311

Posts: 18672

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)