Get ready for BLACK FRIDAY shopping starting in

DMXzone Uniform Support Product Page

Nothing happens on insert and is it possible to style an existing form?

Reported 22 Mar 2013 16:22:55
1
has this problem
22 Mar 2013 16:22:55 Neil Martin posted:
Apart from the fact that nothing happens when I create an empty div, select it and insert > dmxzone > uniform nothing happens, I'm also a bit concerned that it's not possible to style existing forms - do you have to create a form from scratch with this, rendering dreamweavers standard insert/update forms unusable with it?

I've deleted dreamweaver cs6 cache, uninstalled and re-installed the extension - nothing happens.

Is this my first 'dud' from DMXZone?

Replies

Replied 22 Mar 2013 16:50:34
22 Mar 2013 16:50:34 Teodor Kuduschiev replied:
Hello Neil,

You aren't using the Insert top menu, are you?
You need to click on the DMxzone Uniform icon in the Insert bar > DMxzone.
You can style an already built form.
Replied 22 Mar 2013 16:56:04
22 Mar 2013 16:56:04 Neil Martin replied:
Thanks Teodor - odd that the top menu doesn't work, I never have the insert menu displayed, but that's fine.

One question, and it's a real annoyance with many of your jquery extensions - it adds jquery to the page even when I've already included jquery, and then if I delete the call to jquery created by your script, when I reopen the file, it re-inserts it and uploads to the server - this breaks my sites - is there no way around this? Even if it's a high end tweak I need to make to the extension script, I use the cdn for the very latest jquery, and of course including it twice breaks all scripts...

How do you apply uniform to an existing form - there is nothing in the documentation?
Replied 22 Mar 2013 17:13:46
22 Mar 2013 17:13:46 Teodor Kuduschiev replied:
Hello,

WE recommend using the jquery our extensions include. The re-inserting of jquery cannot be disabled.

You can apply uniform to an existing form by selecting the form (<form> tag) and clicking the Uniform icon.
Replied 22 Mar 2013 17:18:09
22 Mar 2013 17:18:09 Neil Martin replied:
When I do that, I get an alert "Forms Cannot Be Nested!"
Replied 22 Mar 2013 17:23:10
22 Mar 2013 17:23:10 Teodor Kuduschiev replied:
Can you please provide a link to your page?
Replied 22 Mar 2013 17:29:00
22 Mar 2013 17:29:00 Neil Martin replied:
It's not online yet - but the page is simply a default dreamweaver update form with a recordset calling the form data to edit. Nothing clever going on at all... I select the form tag in the window status bar, click the Uniform button, the scripts are placed, and then the error reported...
Replied 22 Mar 2013 17:37:02
22 Mar 2013 17:37:02 Teodor Kuduschiev replied:
Please paste everything between <form> and </form> tags including them here.
Replied 22 Mar 2013 17:49:33
22 Mar 2013 17:49:33 Neil Martin replied:
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="right">Companyname:</td>
<td><input type="text" name="companyname" value="<?php echo htmlentities($row_edit['companyname'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right" valign="top">Address:</td>
<td><textarea name="address" cols="50" rows="5"><?php echo htmlentities($row_edit['address'], ENT_COMPAT, 'UTF-8'); ?></textarea></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Phone:</td>
<td><input type="text" name="phone" value="<?php echo htmlentities($row_edit['phone'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Email:</td>
<td><input type="text" name="email" value="<?php echo htmlentities($row_edit['email'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Footertext:</td>
<td><input type="text" name="footertext" value="<?php echo htmlentities($row_edit['footertext'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Social_linkedin:</td>
<td><input type="text" name="social_linkedin" value="<?php echo htmlentities($row_edit['social_linkedin'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Social_facebook:</td>
<td><input type="text" name="social_facebook" value="<?php echo htmlentities($row_edit['social_facebook'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Social_twitter:</td>
<td><input type="text" name="social_twitter" value="<?php echo htmlentities($row_edit['social_twitter'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Social_pinterest:</td>
<td><input type="text" name="social_pinterest" value="<?php echo htmlentities($row_edit['social_pinterest'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Social_youtube:</td>
<td><input type="text" name="social_youtube" value="<?php echo htmlentities($row_edit['social_youtube'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Default_keywords:</td>
<td><input type="text" name="default_keywords" value="<?php echo htmlentities($row_edit['default_keywords'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Default_description:</td>
<td><input type="text" name="default_description" value="<?php echo htmlentities($row_edit['default_description'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">&nbsp;</td>
<td><input type="submit" value="Save Changes" /><a class="button" href="javascriptarent.jQuery.fancybox.close();">CANCEL</a></td>
</tr>
<tr><td>select</td><td><select><option value="one">One</option><option value="one">One</option><option value="one">One</option><option value="one">One</option></select></td></tr>
</table>
<input type="hidden" name="MM_update" value="form1" />
<input type="hidden" name="id" value="<?php echo $row_edit['id']; ?>" />
</form>
And thanks for this fast response, it's very appreciated!
Replied 22 Mar 2013 17:51:28
22 Mar 2013 17:51:28 Neil Martin replied:
Infact, here's the entire page code:


<?php session_start(); if($_SESSION['isAuth'] == 'true'){ ?>
<?php require_once('Connections/data.php'); ?>
<?php
if (!function_exists("GetSQLValueString") {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = ""
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string" ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "" ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "" ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "" ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if (!isset($mm_abort_edit) || !$mm_abort_edit) {
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1") {
$updateSQL = sprintf("UPDATE settings SET companyname=%s, address=%s, phone=%s, email=%s, footertext=%s, social_linkedin=%s, social_facebook=%s, social_twitter=%s, social_pinterest=%s, social_youtube=%s, default_keywords=%s, default_description=%s WHERE id=%s",
GetSQLValueString($_POST['companyname'], "text",
GetSQLValueString($_POST['address'], "text",
GetSQLValueString($_POST['phone'], "text",
GetSQLValueString($_POST['email'], "text",
GetSQLValueString($_POST['footertext'], "text",
GetSQLValueString($_POST['social_linkedin'], "text",
GetSQLValueString($_POST['social_facebook'], "text",
GetSQLValueString($_POST['social_twitter'], "text",
GetSQLValueString($_POST['social_pinterest'], "text",
GetSQLValueString($_POST['social_youtube'], "text",
GetSQLValueString($_POST['default_keywords'], "text",
GetSQLValueString($_POST['default_description'], "text",
GetSQLValueString($_POST['id'], "int");

mysql_select_db($database_data, $data);
$Result1 = mysql_query($updateSQL, $data) or die(mysql_error());

$updateGoTo = "admin_settings.php?message=success";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));
}}

mysql_select_db($database_data, $data);
$query_settings = "SELECT * FROM settings WHERE id = 1";
$settings = mysql_query($query_settings, $data) or die(mysql_error());
$row_settings = mysql_fetch_assoc($settings);
$totalRows_settings = mysql_num_rows($settings);

mysql_select_db($database_data, $data);
$query_edit = "SELECT * FROM settings WHERE id = 1";
$edit = mysql_query($query_edit, $data) or die(mysql_error());
$row_edit = mysql_fetch_assoc($edit);
$totalRows_edit = mysql_num_rows($edit);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $row_settings['companyname']; ?></title>
<?php include('global_seo.php');?>
<link rel="stylesheet" href="_css/blueprint/screen.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="_css/blueprint/print.css" type="text/css" media="print" />
<!--[if lt IE 8]>
<link rel="stylesheet" href="_css/blueprint/ie.css" type="text/css" media="screen, projection">
<![endif]-->
<link type="text/css" href="_scripts/css/smoothness/jquery-ui-1.10.1.custom.min.css" rel="Stylesheet" />
<script type="text/javascript" src="_scripts/js/jquery-ui-1.10.1.custom.min.js"></script>
<?php include('global_scriptcalls.php'); ?>
<?php include('global_fonts.php'); ?>
</head>
<body>
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="right">Companyname:</td>
<td><input type="text" name="companyname" value="<?php echo htmlentities($row_edit['companyname'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right" valign="top">Address:</td>
<td><textarea name="address" cols="50" rows="5"><?php echo htmlentities($row_edit['address'], ENT_COMPAT, 'UTF-8'); ?></textarea></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Phone:</td>
<td><input type="text" name="phone" value="<?php echo htmlentities($row_edit['phone'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Email:</td>
<td><input type="text" name="email" value="<?php echo htmlentities($row_edit['email'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Footertext:</td>
<td><input type="text" name="footertext" value="<?php echo htmlentities($row_edit['footertext'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Social_linkedin:</td>
<td><input type="text" name="social_linkedin" value="<?php echo htmlentities($row_edit['social_linkedin'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Social_facebook:</td>
<td><input type="text" name="social_facebook" value="<?php echo htmlentities($row_edit['social_facebook'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Social_twitter:</td>
<td><input type="text" name="social_twitter" value="<?php echo htmlentities($row_edit['social_twitter'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Social_pinterest:</td>
<td><input type="text" name="social_pinterest" value="<?php echo htmlentities($row_edit['social_pinterest'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Social_youtube:</td>
<td><input type="text" name="social_youtube" value="<?php echo htmlentities($row_edit['social_youtube'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Default_keywords:</td>
<td><input type="text" name="default_keywords" value="<?php echo htmlentities($row_edit['default_keywords'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Default_description:</td>
<td><input type="text" name="default_description" value="<?php echo htmlentities($row_edit['default_description'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">&nbsp;</td>
<td><input type="submit" value="Save Changes" /><a class="button" href="javascriptarent.jQuery.fancybox.close();">CANCEL</a></td>
</tr>
<tr><td>select</td><td><select><option value="one">One</option><option value="one">One</option><option value="one">One</option><option value="one">One</option></select></td></tr>
</table>
<input type="hidden" name="MM_update" value="form1" />
<input type="hidden" name="id" value="<?php echo $row_edit['id']; ?>" />
</form>

<?php if ((isset($_GET['message'])) AND ($_GET['message']=="success") { ?>
<?php // Success notification ?>
<div class="notify fademe">
<h3 style="color:#FFF;">Success.</h1>
<h4 style="color:#FFF;">The Changes were successfully saved and are now published to the site...</h3></div>
<?php // EOF Success notication ?>
<?php } ?>
</body>
</html>
<?php
mysql_free_result($settings);

mysql_free_result($edit);
?>
<?php } else { include_once ('admin_notAuth.php'); } ?>
Replied 26 Mar 2013 11:57:06
26 Mar 2013 11:57:06 Neil Martin replied:
Still no response on this issue... Unless I can use this extension to easily style existing forms, I'm going to need a refund... A first from DMXZone :/

Reply to this topic