cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


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
From mail
May 28, 2007
11:32 am
Tino
Guest

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? 

May 28, 2007
11:44 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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.

May 28, 2007
12:28 pm
Tino
Guest

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

 

May 28, 2007
1:09 pm
Tino
Guest

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 ??

May 28, 2007
2:40 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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,…)…

 

May 28, 2007
2:48 pm
Tino
Guest

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. :( 

May 28, 2007
3:03 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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.
May 28, 2007
4:16 pm
Tino
Guest

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?
 

 

 

May 28, 2007
4:21 pm
Tino
Guest

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>

 

May 28, 2007
4:55 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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 '

May 28, 2007
5:14 pm
Tino
Guest

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

May 28, 2007
10:45 pm
Tino
Guest

Hi Oliver,

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

 

May 28, 2007
11:56 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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

Btw did you get the two updated files via email?

May 29, 2007
1:41 pm
Tino
Guest

OK thank you.

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

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
24 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: 3762

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5359

Posts: 18741

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

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

Administrators: Oliver (6400), Nicky (3)