Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:15:10 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Form module help  (Read 1078 times)
Lotus

Offline Offline

Posts: 184


« on: December 07, 2007, 07:49:13 PM »

I have to tweak the form module a bit, but I have some problems doing that.

Used the module on a page and put email A as the address the form should send to. Now I have changed the address to address B but when not filling the capcha properly it reports that you should contact address A. Why is that? Where does it get that address from.

When not filling in the form properly you get a list of what is wrong and what you need to do. this text i want to have inside a table to get a border and i want to make the text bold to make it more visible. I need help with some leeds how to do that. it is easy to edit the note when you successfully sending the form, but that you do in the prefs.

btw my site is Swedish and the form module is translated.
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #1 on: December 07, 2007, 08:40:49 PM »

The first part, I think I can answer - I believe the system adminstrator's email is displayed when there is a problem.

Look under the site settings for that. Might be Advanced settings.  I ran into the same issue myself.

For the second part, trace the view.php file for that page or actually I think it's module/forms/view.php.  I would be interested to see how to change that too.  It's not very user-friendly, is it?  It would be nice to redisplay the form the errors marked instead of a separate page.
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #2 on: December 08, 2007, 07:53:31 AM »

Hello,

- using the advanced form from our addons only brings up a javascript popup if an form entry is missing without loosing the content.

- the mail in captcha error message comes from WB settings as DGEC suggested

- unfortunately if captcha is wrong all entries are away. This needs to be fixed in one of the next versions. An example how this can be done could be the guestbook (Version 2.0).

Matthias

Logged
Lotus

Offline Offline

Posts: 184


« Reply #3 on: December 10, 2007, 07:58:07 AM »

Hi and thanks for the help.

Found the mail where you said it would be, great. Trying to modify view.php with some luck as I am not so much into PHP.

Added red text into view.php and got the message into a tablecell. But it doesnt look good yet but thet is another story.

   
// Check if the user forgot to enter values into all the required fields
        if($required != array()) {
            if(!isset($MESSAGE['MOD_FORM']['REQUIRED_FIELDS'])) {
                echo 'You must enter details for the following fields';
            } else {
                echo '<table cellspacing ="0" cellpadding="50" border="1" bordercolor="black" width="100%">
                <tr><td align="left"><b>';
                echo $MESSAGE['MOD_FORM']['REQUIRED_FIELDS'];
            }
            echo ':<br /><ul>';
            foreach($required AS $field_title) {
                echo '<li>'.$field_title;
            }
            if(isset($email_error)) { echo '<li>'.$email_error.'</li>'; }
            if(isset($captcha_error)) { echo '<li>'.$captcha_error.'</li>'; }
            echo '</ul><a href="javascript: history.go(-1);">'.$TEXT['BACK'].'</a>';
            echo ' </b></td></tr></table';


Matthias, i am interested in the suggester advances form but I cant find it. Please post an URL if you can.
   
« Last Edit: December 10, 2007, 08:42:59 AM by Lotus » Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #4 on: December 10, 2007, 03:26:01 PM »

Hello,

on our addons page. Did you look there?

http://addons.websitebaker.org/pages/modules/core-module-replacements.php

Matthias
Logged
Lotus

Offline Offline

Posts: 184


« Reply #5 on: December 12, 2007, 07:28:30 AM »

Hello,

on our addons page. Did you look there?

http://addons.websitebaker.org/pages/modules/core-module-replacements.php

Matthias

Quote
. For all other versions starting from WB 2.6.5 and higher this step is not required because the needed changes are already included in the corefiles of this versions.

Yes but as I was reading the text above it made me believe I already had the them installed as I work with WB 2.6.7. But then I checked the version of my form module and it was 2.6 so I guess I dont have them then...

Thanks for the help Matthias!
« Last Edit: December 12, 2007, 09:06:19 AM by Lotus » Logged
Lotus

Offline Offline

Posts: 184


« Reply #6 on: December 12, 2007, 12:00:58 PM »

Installed both News and Form. Great new posibilities.


/Lotus
« Last Edit: December 12, 2007, 01:01:18 PM by Lotus » Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!