Jump to content

TCH-Don

Members
  • Posts

    11,643
  • Joined

  • Last visited

Everything posted by TCH-Don

  1. Bus
  2. If I remember right, you need some of the things in the test form. I would modify it and see how that goes.
  3. Pair
  4. Did you try the included test form to make sure its configured right? Then modify it for your own use or use it as a template.
  5. Friends
  6. Welcome to the forum, orcanta
  7. Ship
  8. Yep good eyes.
  9. Try > function CheckName($name) { if(!preg_match("/[^a-zA-Z0-9\.\-\Ä\ä\Ö\ö\Ü\ü\]+$/s",$name)) { return TRUE; } else { return FALSE; } } function CheckPhone($areaCode, $phonePrefix, $phoneSufix, $phone) { if(!preg_match("/[^0-9\-\]+$/",$phone)) { return TRUE; } elseif(strlen($areaCode) == 3) { return TRUE; } elseif(strlen($phonePrefix) == 3) { return TRUE; } elseif(strlen($phoneSuffix) == 4) { return TRUE; } else { return FALSE; } }
  10. Speed
  11. Glad its working. Thats why we say we are family here.
  12. Here is your code with the spaces between the strings and the period. ># Send out admin mail if ($ac_notify && is_email($ac_notify_email) ) { $query1 = ("SELECT title FROM #__content WHERE id='$contentid'"); $database->setQuery( $query1 ); $rowTitle = $database->loadResult(); $articlelink = sefRelToAbs($mosConfig_live_site.'/index.php?option=com_content&task=view&id='. $contentid . '&Itemid=' . $acitemid); $acmailtext = _AKOCOMMENT_ADMINMAIL; $acmailtext .= _AKOCOMMENT_ENTERNAME . $acname . "\n"; if ($email != '') $acmailtext .= _AKOCOMMENT_ENTERMAIL . $email . "\n"; if ($web != '') $acmailtext .= $web . "\n"; $acmailtext .= _AKOCOMMENT_ENTERTITLE . $title . "\n"; $acmailtext .= _AKOCOMMENT_ENTERTEXT . $comment . "\n"; $acmailtext .= $rowTitle . "\n"; $acmailtext .= $articlelink . "\n"; $acmailtext .= _AKOCOMMENT_ADMINMAILFOOTER; $headers .= 'From: ' . $ac_notify_email; mail($ac_notify_email,_AKOCOMMENT_ADMINMAILHEADER,strip_tags($acmailtext),$headers); } The period "." is used to add two strings together, or more technically, the period is the concatenation operator for strings. The spaces are not always needed but its good coding and can prevent mistakes. A good web site to learn a little about PHP is Tizag.com
  13. change if ($email != '') $acmailtext .= _AKOCOMMENT_ENTERMAIL $email. "\n"; to if ($email != '') $acmailtext .= _AKOCOMMENT_ENTERMAIL . $email. "\n"; yes you need a space between the strings and the period think of it as $string plus $string or $string . $string Sorry, I am at work and can't seem to concentrate. Have to go good luck.
  14. $acmailtext .= _AKOCOMMENT_ENTERNAME $acname. "\n"; try $acmailtext .= _AKOCOMMENT_ENTERNAME . $acname . "\n";
  15. $acmailtext .= .$rowTitle. "\n"; $acmailtext .= .$articlelink. "\n"; Yep, I did not look at those lines I am not going to say the script wll work, but those are errors.
  16. leave the .= as is you had period . just before $web, remove it original if ($web != '') $acmailtext .= .$web. "\n"; new if ($web != '') $acmailtext .= $web . "\n";
  17. I think the problem is you have a period before $web that should not be there. try >if ($web != '') $acmailtext .= $web . "\n"; the .= means add to the contents of the string $acmailtext and the period after means add together as in $web plus "\n"
  18. Tour
  19. Driver
  20. Glad you are happy, let us know if you need anything, we love to help.
  21. Bar
  22. Mine is at 8 but then my default email is set to :fail: so I do not get much spam.
  23. 2.1.3 is is now in fantastico I don't have WP installed so I can't see if it would upgrade for me. But here is a guide on How to Upgrade in Five Steps Be sure you read all the steps first.
  24. Anchor
  25. Did you create the database in cpanel > mysql first? Be sure that in MySql you 1 - created the database 2 - created a user 3 -added the user to the database (go back to MySql and find the Add user select the user and database, and then Add user to database) Then to connect to the database in a script use: host: localhost database: yourCpanelName_databaseName user: yourCpanelName_databaseUser password: mypassword * Note password is just as the password, do not add the CpanelName to it.
×
×
  • Create New...