cformsII Support Forum
Current User: Guest Login Register
Please consider registering

Search Forums:


 






Post
Guest

Tino

11:32 am May 28, 2007

After submiting a form Admin gets and email. And in this email I can see the header in which From address is: MYBLOG [wordpress@szymczyk.eu]

Where can I change the word 'wordpress' in this email? 

Admin

Oliver

Munich, Germany

11:44 am May 28, 2007

posts 6000

If you want the From: address to be differnet than the standrard "Wordpress" / System one, you can hard code it in cforms.php, just look for wordpress@ and replace with whatever you want.

Also, see this forum post.

Guest

Tino

12:28 pm May 28, 2007

Cool. Thank you very much and sorry for posting my questions two times in different topics. Your plugin is the best!

 

Guest

Tino

1:09 pm May 28, 2007

Couple more things:

1. In Form Admin / Email Options to email that is send to Admin at te bottom are allways added all fields. See example:

This what I have 

This email was generated by RECOMMEND PAGE form: 
============================================
Submitted on: {Date}
By IP: {IP}
Person recommending: {Your email:}
Person receiving: {Friend's email:}
Recommended page: http://www.blabla.com{Page}

This what I get:

This email was generated by RECOMMEND PAGE form:
============================================
Submitted on: May 28, 2007 @ 1:00 pm
By IP: unknown
Person recommending: tisd@op.pl
Person receiving: tisd@op.pl
Recommended page: http://www.blabla.com/cos/en
————————-My Fieldset———————–

Friend's email:: tisd@op.pl
Your email:: tisd@op.pl

 

I don't need this:  

————————-My Fieldset———————–

Friend's email:: tisd@op.pl
Your email:: tisd@op.pl

 

2. Why I always get: unknown IP ??

Admin

Oliver

Munich, Germany

2:40 pm May 28, 2007

posts 6000

On a side note, if I'm not mistaken there 

to 1: Yes, that is the actual purpose of the form email to the admin, it should contain all form fields.

to 2: Here is the code that's determining the IP address of the user:

if (isset($_SERVER))
    {
         if (isset($_SERVER["HTTP_X_FORWARDED_FOR"]))

            $ip_addr = $_SERVER["HTTP_X_FORWARDED_FOR"];
         elseif (isset($_SERVER["HTTP_CLIENT_IP"]))   

            $ip_addr = $_SERVER["HTTP_CLIENT_IP"];
         else                                                                    $ip_addr = $_SERVER["REMOTE_ADDR"];
    }
    else
    {
         if ( getenv( 'HTTP_X_FORWARDED_FOR' ) )                                 $ip_addr = getenv( 'HTTP_X_FORWARDED_FOR' );
         elseif ( getenv( 'HTTP_CLIENT_IP' ) )                                  $ip_addr = getenv( 'HTTP_CLIENT_IP' );
         else                                                                    $ip_addr = getenv( 'REMOTE_ADDR' );
    }

 

Maybe something is odd with how your web server tracks IP addresses? Or users actually do come with IP addresses unknown to the web server (firefalls, proxies,…)…

 

Guest

Tino

2:48 pm May 28, 2007

Me again :)

Is it posible to change te order of required field text.

By now I have: 

[label] [imput] [required_field_text]

What I need is:

[label][required_field_text]

[imput] 

 

I was trying with CSS but I can't do it. :( 

Admin

Oliver

Munich, Germany

3:03 pm May 28, 2007

posts 6000

That'd be hard if not impossible to do only with CSS. If you really need it this way, I only see two options:

  1. hide [required_field_text] altogether (set display:none;) & add a indicator for "required" to the form field label (field name)
  2. or go into cforms.php and change the code to switch around the order of HTML elements.
Guest

Tino

4:16 pm May 28, 2007

I have almost everything :) it works great.

I have problems with Database Input Tracking, without it everything was ok.

After I pressed send I get error:

cforms.js (line 1)

document.getElementById("cforms" + no + "form") has no properties
cforms_setsuccessmessage("<div
id='error'>\n <p class='wpdberror'><strong>WordPress
database error:</strong> [You have an err..."
)cforms.js (line 1)
e()cforms.js (line 1)
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"": e(parseInt(c/a)))+((c=c%a...
 
Do you know what is this?
 

 

 

Guest

Tino

4:21 pm May 28, 2007

More informations:

 Params:

rs cforms_submitcomment
rsargs[] 1$#$tino@op.pl$#$tino@op.pl
rsrnd 1180361677301

Response:

 

+:<div id='error'>

<p class='wpdberror'><strong>WordPress database error:</strong> [You have an error in your SQL syntax

; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039

;s email:&#039;,&#039;tino@op.pl&#039;),(&#039;1&#039;,&#039;Your email:&#039;,&#039;tino@op.pl&#039

;)&#039; at line 1]<br />

<code>INSERT INTO wp_cformsdata (sub_id,field_name,field_val) VALUES (&#039;1&#039;,&#039;page&#039

;,&#039;/argos_www/de&#039;),(&#039;1&#039;,&#039;Friend&#039;s email:&#039;,&#039;tino@op.pl&#039;)

,(&#039;1&#039;,&#039;Your email:&#039;,&#039;tino@op.pl&#039;)</code></p>

</div>1nThank you! Message send!|<root><text>Thank you! Message send!</text><text></text></root>

 

Admin

Oliver

Munich, Germany

4:55 pm May 28, 2007

posts 6000

The issue seems to be the data entered: "Friend's email" . The single quote causes a problem when inserting the data. It should be escaped in cforms, so I'll check to see where and if it's broken and how to possibly fix it.

Workaround in the meantime: Perhaps choose a field label without a '

Guest

Tino

5:14 pm May 28, 2007

Yes you are right! Single quote is a problem. Thanks! I have changed it.

Guest

Tino

10:45 pm May 28, 2007

Hi Oliver,

Is it possible to let Editor User to see Tracking ???

 

Admin

Oliver

Munich, Germany

11:56 pm May 28, 2007

posts 6000

Yes, you need to use the WP Role Manager plugin to do that.

Btw did you get the two updated files via email?

Guest

Tino

1:41 pm May 29, 2007

OK thank you.

I didn't get any updated files. Can you try again?

No Tags
Reply to Post


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

Guest Name (Required):

Guest Email (Required):

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

Smileys
lol offended sad ??? yell cry frown kiss surprised wink innocent smile oops cool
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
11 + 5
   




About the delicious:days forum

Currently Online:

93 Guests

Membership:

There are 887 Members

There have been 2245 Guests

There is 1 Admin

There are 3 Moderators




Grand Livre de Cuisine: Alain Ducasse's Desserts and Pastries

Grand Livre de Cuisine: Alain Ducasse...
- Frederic Robert

Favourite Dishes from the Tunku's Kitchen

Favourite Dishes from the Tunku's Kit...
- Y.T.M. Dato' Tunku Mukminah Tunku Mohd. Jiwa

'wichcraft: Craft a sandwich into a meal--and a meal into a sandwich

'wichcraft: Craft a sandwich into a m...
- Tom Colicchio

Bite-Size Desserts: Creating Mini Sweet Treats, from Cupcakes and Cobblers to Custards and Cookies

Bite-Size Desserts: Creating Mini Swe...
- Carole Bloom CCP

Mrs. Rowe's Little Book of Southern Pies

Mrs. Rowe's Little Book of Southern Pies
- Mrs. Rowe's Restaurant and Bakery

The Sweet Life in Paris: Delicious Adventures in the World's Most Glorious - and Perplexing - City

The Sweet Life in Paris: Delicious Ad...
- David Lebovitz

The Joy of Pickling, Revised Edition: 250 Flavor-Packed Recipes for Vegetables and More from Garden or Market

The Joy of Pickling, Revised Edition:...
- Linda Ziedrich

Tacos: 75 Authentic and Inspired Recipes

Tacos: 75 Authentic and Inspired Recipes
- Mark Miller

Bittersweet: Lessons from My Mother's Kitchen

Bittersweet: Lessons from My Mother's...
- Matt McAllester

Endangered Recipes: Too Good to Be Forgotten

Endangered Recipes: Too Good to Be Fo...
- Lari Robling

Alvaro's Mamma Toscana: The Authentic Tuscan Cookbook

Alvaro's Mamma Toscana: The Authentic...
- Alvaro Maccioni

The Oxford Companion to American Food and Drink (Oxford Companion To...)

The Oxford Companion to American Food...
- Andrew F. Smith

Field Days: A Year of Farming, Eating, and Drinking Wine in California

Field Days: A Year of Farming, Eating...
- Jonah Raskin

Gale Gand's Brunch!: 100 Fantastic Recipes for the Weekend's Best Meal

Gale Gand's Brunch!: 100 Fantastic Re...
- Gale Gand

I Loved, I Lost, I Made Spaghetti

I Loved, I Lost, I Made Spaghetti
- Giulia Melucci