close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Home Page Menu & Contact Form

Thread began 7/26/2010 9:27 am by rob294118 | Last modified 7/27/2010 11:35 am by Jason Byrnes | 2614 views | 11 replies |

rob294118

Home Page Menu & Contact Form

The background images for the menu on the Home page are not showing up. It looks fine in Dreamweaver but not on the web.

My contact form looks like it works (I get the Thank You page) but I never get the email.

Can some take a look?

www.bodypaintingbytiffany.com/

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

in the menu.css, the paths ffor the background images use file system paths


ul#cssmw_home {
background-color: #1c1c1c;
background-image: url("file:///C|/Documents and Settings/Administrator/My Documents/Pyxels Design Studio/BodyPaintingByTiffany/CSSMenuWriter/cssmw_home_images/overlay_both.png");
background-repeat: repeat-x;
cursor: default;
height: 53px;
list-style-type: none;
margin: 0 0 0 0;
padding: 0 0 0 0;
}


the image path should be relative:
background-image: url("../cssmw_home_images/overlay_both.png");



For the contact form, make sure you have the correct SMTP server specified. make sure the From address is an address from your domein., Also, do not set the from display name.

If these things are set correctly, contact the host to have them look into the smtp server error logs to determine why the mail is not being relayed.

Sign in to reply to this post

rob294118

Fixed

Thanks Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it is working.

Sign in to reply to this post

rob294118

Actually the Contact Form still doesn't work. I'm using the CMS option but in the database table, there is no email options in the WA_SETTINGS table.

My wa_globals.php file is the following:

<?php
//need to run installation wizard
if(!file_exists('../Connections/installed.txt') && (!file_exists('Connections/installed.txt'))) {
if(file_exists('../install/index.php')) {
header('Location: ../install/index.php');
} else {
header('Location: install/index.php');
}
exit();
}
?>
<?php
function replaceTokens($encodedVal,$Arr) {
$tokens = preg_match("/\\[([^\\]]*)\\]/",$encodedVal,$subMatch);
$retVal = $encodedVal;
if (sizeof($subMatch)>0) {
$ArrIndex = $subMatch[1];
$ArrPos = explode(":",$ArrIndex);
if (isset($Arr[$ArrPos[0]])) {
for ($x=0; $x<sizeof($Arr[$ArrPos[0]]); $x++) {
if ($Arr[$ArrPos[0]][$x][0] == $ArrPos[1]) {
$retVal = str_replace($subMatch[0],$Arr[$ArrPos[0]][$x][1],$retVal);
}
}
}
}
return $retVal;
}
?>
<?php
$thisDir = realpath(dirname(__FILE__));
if(strpos($thisDir,"/") !== false) {
$thisDir = substr($thisDir,0,strrpos($thisDir,"/"));
} else {
$thisDir = substr($thisDir,0,strrpos($thisDir,"\\"));
}
require_once($thisDir."/Connections/PowerCMSConnection.php");

mysql_select_db($database_PowerStoreConnection, $PowerStoreConnection);
$query_WAGlobals = "SELECT * FROM wa_settings";
$WAGlobals = mysql_query($query_WAGlobals, $PowerStoreConnection);
$row_WAGlobals = mysql_fetch_assoc($WAGlobals);

$tabs = array();
while ($row_WAGlobals) {
if ($row_WAGlobals['grp'] != "None") {
if (!isset($tabs[$row_WAGlobals['grp']])) {
$tabs[$row_WAGlobals['grp']] = array();
}
$tabs[$row_WAGlobals['grp']][] = array($row_WAGlobals['name'],$row_WAGlobals['value'],$row_WAGlobals['type'],$row_WAGlobals['options'],$row_WAGlobals['variable']);
}
$row_WAGlobals = mysql_fetch_assoc($WAGlobals);
}


foreach ($tabs as $key => $value) {
for ($x=0; $x<sizeof($value); $x++) {
eval("\$WAGLOBAL_".$value[$x][4]."='".addslashes(replaceTokens($value[$x][1],$tabs))."';");
}
}

//root url
$WAGLOBAL_Root_URL = ((isset($_SERVER['SERVER_PROTOCOL']) && strpos($_SERVER['SERVER_PROTOCOL'], 'HTTPS') !== false) ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . $WAGLOBAL_localRoot;

mysql_free_result($WAGlobals);
?>

Sign in to reply to this post

Jason ByrnesWebAssist

you need to apply universal email to the contact page for it to function as a contact page.

Sign in to reply to this post

rob294118

Universal Email is applied to the page.

Sign in to reply to this post

Jason ByrnesWebAssist

please post a copy of the page and the webassist directory.

Sign in to reply to this post

rob294118

Formatting Issue

I got the form to submit properly but I have a formatting issue. Can you look at this form and let me know what the issue is?

There are bullets and the form is displaying after the Side column.

contact.php

Sign in to reply to this post

Jason ByrnesWebAssist

the bullets are being caused by the follwing style in your content.css:

#outerWrapper #contentWrapper ul {
list-style: circle;
margin: 0 0 0 20px; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
padding: 0 0 0 0; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
}

remove the list-style: circle; setting.

I don't see an issue with the forms positioning. It showing in the correct position for me.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...