cforms II User Forum

Registration is currently disabled.


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
Recommend this page - how to
May 16, 2007
9:59 am


 Can somebody tell me
how to do:

 Recommend this page
with two  fields: Your email, Friend's email

It will be on every page. After
submitting I need to get e-mail with those two addresses and IP. All the
information must be stored in db.

 Oh and by the way. Because
my blog is Multilanguage is it possible to change global setting depending on


May 16, 2007
2:16 pm
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

I suggest you setup a form and use the PHP method of inserting the form code in your post/page template, see the Help! documentation on how to insert forms using PHP.

You can setup the form itself with just the two email fields, if you check both fields as "Is Email" make sure to put the "friends' email" field as the FIRST email field (this one will receive the auto confirmation message!).

Then configure a notification message (look for auto confirmation settings) that will go out to the first email  address provided when submitting the form.

Multi-language: not sure what you're trying to do, but cforms is currently supporting Spanish and German (for the admin UI) and is dependent on the WP_LANG variable set in WP.

May 18, 2007
1:16 pm


For example in options in Admin Panel you can specify the error messages shown in case something goes awry.

My blog (CMS) will be in 3 languages (using Gengo). When there will be an error it will show in every language the same information that I wrote in Admin Panel. 

Normally in my template I do:

if (is_language('en')) echo "Try again";
elseif (is_language('pl')) echo "Sprobuj ponownie";
elseif (is_language('de')) echo "blabla";
else query_posts('pagename=translation-company');

Can I place such a code somewhere?

May 18, 2007
3:40 pm
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

not really, or unless you hard code it into cforms.php, but then you loose the benefits of the admin UI.

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
16 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: 3763

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5359

Posts: 18742

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

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

Administrators: Oliver (6400), Nicky (3)