Topic RSS
11:32 am
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?
11:44 am
March 6, 2005
OfflineIf 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.
12:28 pm
Cool. Thank you very much and sorry for posting my questions two times in different topics. Your plugin is the best!
1:09 pm
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 ??
2:40 pm
March 6, 2005
OfflineOn 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["HTTP_X_FORWARDED_FOR"]))
elseif (isset($_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,…)…
2:48 pm
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. :(
3:03 pm
March 6, 2005
OfflineThat'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.
4:16 pm
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:
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…
4:21 pm
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>
4:55 pm
March 6, 2005
OfflineThe 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 '
5:14 pm
Yes you are right! Single quote is a problem. Thanks! I have changed it.
11:56 pm
March 6, 2005
OfflineYes, you need to use the WP Role Manager plugin to do that.
Btw did you get the two updated files via email?
Most Users Ever Online: 959
Currently Online:
77 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: 3548
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5157
Posts: 18385
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote










