| Post |
|
Tino - Guest
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?
|
|
|
Oliver
- Admin
11:44 am - May 28, 2007
posts 3909 |
| |
|
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.
|
|
|
Tino - Guest
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!
|
|
|
Tino - Guest
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 ??
|
|
|
Oliver
- Admin
2:40 pm - May 28, 2007
posts 3909 |
| |
|
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,...)...
|
|
|
Tino - Guest
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. :(
|
|
|
Oliver
- Admin
3:03 pm - May 28, 2007
posts 3909 |
| |
|
That'd be hard if not impossible to do only with CSS. If you really need it this way, I only see two options:
- hide [required_field_text] altogether (set display:none;) & add a indicator for "required" to the form field label (field name)
- or go into cforms.php and change the code to switch around the order of HTML elements.
|
|
|
Tino - Guest
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)
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?
|
|
|
Tino - Guest
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 '
;s email:','tino@op.pl'),('1','Your email:','tino@op.pl'
;)' at line 1]<br />
<code>INSERT INTO wp_cformsdata (sub_id,field_name,field_val) VALUES ('1','page'
;,'/argos_www/de'),('1','Friend's email:','tino@op.pl')
,('1','Your email:','tino@op.pl')</code></p>
</div>1nThank you! Message send!|<root><text>Thank you! Message send!</text><text></text></root>
|
|
|
Oliver
- Admin
4:55 pm - May 28, 2007
posts 3909 |
| |
|
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 '
|
|
|
Tino - Guest
5:14 pm - May 28, 2007
|
| |
|
Yes you are right! Single quote is a problem. Thanks! I have changed it.
|
|
|
Tino - Guest
10:45 pm - May 28, 2007
|
| |
|
Hi Oliver,
Is it possible to let Editor User to see Tracking ???
|
|
|
Oliver
- Admin
11:56 pm - May 28, 2007
posts 3909 |
| |
|
Yes, you need to use the WP Role Manager plugin to do that.
Btw did you get the two updated files via email?
|
|
|
Tino - Guest
1:41 pm - May 29, 2007
|
| |
|
OK thank you.
I didn't get any updated files. Can you try again?
|
|