This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Error editing and saving CSS. Please respond!


  1. MvdL79
    Member

    I bought your program a hour or so back. Everything went fine during the installation. I even created my first form.

    But when I try to edit the form's CSS (or even trying to save it) gives me the following error:

    Warning: file_get_contents(): Unable to access ./data/form_3/css/view.css in /var/www/vhosts/domainname.info/httpdocs/machform/edit_css.php on line 54

    Warning: file_get_contents(./data/form_3/css/view.css): failed to open stream: No such file or directory in /var/www/vhosts/domainname.info/httpdocs/machform/edit_css.php on line 54

    How can I fix this?
    Cause the current CSS (default CSS I guess) does not really fit into my website.

    Please respond as soon as possible!

    Thanks in advance.

    Regards,
    Michel

    Posted 16 years ago #
  2. MvdL79
    Member

    I already tried the following:

    Uploaded a CSS template (one from your website) to give it a go. Changed rights to 777.
    But now it does not reflect (or use) the newly uploaded CSS.

    I already did a search on this forum and tried the following:

    Using PhpMyAdmin, browse to your ap_forms table and update the value of form_has_css field.
    Currently the value is 0, you need to update it to 1. That would set your form to use the new CSS.

    But still it refuses to use the new CSS :(

    //edit

    I am using the iframe option to use the form.
    Please advice.

    Posted 16 years ago #
  3. MvdL79
    Member

    Nevermind, I seem to have fixed it...

    However is it possible to change e.g. the color of the form itself (instead of being white)? Cause I am using a black / dark brown background.

    Posted 16 years ago #
  4. MvdL79
    Member

    Okay back again, seems I have figured out the colorcodings in the CSS for the big part.

    Except I have on final question; why does it show the text Section Break on my forum?
    It shows a horizontal ruler as well, but just below that it says "Section Break". Anyway to remove that?

    Also is it possible to change text on the form to my language (Dutch)? If yes, how?
    Cause stuff like "Street Address" "Postal / Zip code" does not look very professional if the rest is in Dutch.

    Please advice.

    Posted 16 years ago #
  5. MvdL79
    Member

    Okay you edit the Section Break text. Stupid me...

    Anyways, but how do I translate the things I mentioned before to Dutch?

    And how does one change the layout from the email in terms of fonttype and such? Cause I tried a few things, but I ended up in getting parsing errors!

    Posted 16 years ago #
  6. MvdL79
    Member

    Since I made several postings till now and some things I manage to fix myself, I still have a few items, which I cannot do myself and need your help to manage it:

    1. I want the IP address (of the one who submitted the form), along with the date and time, shows in the email.

    2. Is it possible to rename things like "Last", "First", "City" to their Dutch counterparts. If yes, where can I change this?

    3. Is there a way to remove not filled in parts? E.g. when a user does not fill in the "Adress Line 2" part, it will still be shown in your email as "Address Line 2" (with nothing behind that). Would be nice if it was possible.

    And last, but not least, let me congratulate on this magnificient piece of software! It's really nice and pretty easy to use.

    Posted 16 years ago #
  7. yuniar

    1 & 3) Edit includes/helper-functions.php file, search around line 422 - 428 for this code:

    $email_body = '';
    $i=1;
    foreach ($email_data as $data){
    
    	$email_body .= "{$i}) <b>{$data['label']}</b> {$data['value']} \n";
    	$i++;
    }


    Replace it with this one:

    $email_data[$i]['label'] = 'IP Address';
    $email_data[$i]['value'] = ' - '.$_SERVER['REMOTE_ADDR'];
    $i++;
    $email_data[$i]['label'] = 'Date Created';
    $email_data[$i]['value'] = ' - '.date("Y-m-d H:i:s");
    
    //prepare HTML body for email
    $email_body = '';
    $i=1;
    foreach ($email_data as $data){
    	if(empty($data['value'])){
    		continue;
    	}
    	$email_body .= "{$i}) <b>{$data['label']}</b> {$data['value']} \n";
    	$i++;
    }

    2) Edit your includes/view-functions.php file


    MachForm Founder

    Posted 16 years ago #
  8. MvdL79
    Member

    Thanks, that did it for me!
    Seems my form is finished now and ready to get to work!

    Thanks once again and keep up the good work!

    Posted 16 years ago #
  9. MvdL79
    Member

    I managed to get myself in problems again...

    It seems Firefox 3 Beta 4 breaks up (for example) multiple choice questions.

    Where it should read:

    * Ik wens niet te upgraden naar Plus.
    * Upgraden naar Premium Plus :: 5,- Euro meer per jaar
    * Upgraden naar Advanced Plus :: 7,50 Euro meer per jaar

    It breaks up like this:

    * Ik wens niet te upgraden naar Plus.
    * Upgraden naar Premium Plus :: 5,- Euro meer per jaar
    * Upgraden naar Advanced Plus :: 7,50 Euro meer per
    jaar

    (notice the last word at the 3rd option, it breaks it for some reason)

    I didn't notice having this problem earlier and it happens for several other things as well. I cannot understand why this happened, cause it was working properly (everything on one line) before.

    Also in Internet Explorer 7 it shows up just fine. :S

    //edit

    It doesn't matter what I do, even if I shorten the text it will still break it apart. Also if I ccreate a new multiple choice part, the same happens. Arrrrgh... :(

    Posted 16 years ago #
  10. MvdL79
    Member

    Seems I fixed it by changing:

    input.radio
    {
    display:block;
    height:13px;
    line-height:1.4em;
    margin:6px 0 0 3px;
    width:13px;
    }

    label.choice
    {
    color:#fff;
    display:block;
    font-size:100%;
    line-height:1.4em;
    margin:-1.55em 0 0 25px;
    padding:4px 0 5px;
    width:90%;
    }

    to width:100%;

    Weird, cause I didn't change that... Or at least I don't think so. I also downloaded a theme (unmodified) and the same thing happened.

    Posted 16 years ago #

RSS feed for this topic

Reply