Quote
Field 'user_sig' doesn't have a default value
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_intro_include.php
| Author: Digitanium, Craig
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Display user field input
if ($profile_method == "input") {
add_to_head("<script language='javascript' type='text/javascript' src='".INCLUDES."user_fields/ckeditor/ckeditor.js'></script>\n
<script src='".INCLUDES."user_fields/ckeditor/adapters/jquery.js'></script>
<script type='text/javascript'>
$( document ).ready( function() {
$( '#user_intro' ).ckeditor();
} );</script>");
$user_intro = isset($user_data['user_intro']) ? $user_data['user_intro'] : "";
if ($this->isError()) { $user_intro = isset($_POST['user_intro']) ? addslash($_POST['user_intro']) : $user_intro; }
echo "<tr>\n";
echo "<td valign='top' class='tbl".$this->getErrorClass("user_intro")."'><label for='user_intro'>".$locale['uf_intro'].$required."</label></td>\n";
echo "<td class='tbl".$this->getErrorClass("user_intro")."'>";
echo "<textarea id='user_intro' name='user_intro' cols='120' rows='5' class='textbox' style='width:495px'>".$user_intro."</textarea><br />\n";
echo "</td>\n</tr>\n";
if ($required) { $this->setRequiredJavaScript("user_intro", $locale['uf_intro_error']); }
// Display in profile
} elseif ($profile_method == "display" && $user_data['user_intro'] !=="") {
echo "</table>";
echo "<div style='height:5px; font-size:0;'></div>";
echo "<table class='profile tbl-border center' cellspacing='1'>";
echo "<tr>\n";
echo "<td colspan='2' class='tbl2' ><strong>".$locale['uf_intro']."</strong></td>\n";
echo "</tr><tr>";
echo "<td colspan='2' class='tbl1'>".stripslashes($user_data['user_intro'])."</td>\n";
echo "</tr><tr>\n";
echo "<td colspan='2' class='tbl2' > </td></tr>\n";
// Insert and update
} elseif ($profile_method == "validate_insert" || $profile_method == "validate_update") {
// Get input data
if (isset($_POST['user_intro']) && ($_POST['user_intro'] != "" || $this->_isNotRequired("user_intro"))) {
// Set update or insert user data
$this->_setDBValue("user_intro", addslash(trim($_POST['user_intro'])));
} else {
$this->_setError("user_intro", $locale['uf_intro_error'], true);
}
}
?>
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_sig_include_var.php
| Author: Digitanium, Craig
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Version of the user fields api
$user_field_api_version = "1.01.00";
$user_field_name = $locale['uf_intro'];
$user_field_desc = $locale['uf_intro_desc'];
$user_field_dbname = "user_intro";
$user_field_group = 3;
$user_field_dbinfo = "TEXT NOT NULL DEFAULT''";
?>
Quote
Yep, can you test out using googlemail.com gmail.com also and admin and email activation please? This seems to be our conditions. Whether the email service is the issue or not since I think it does not matter about what email service you use can't be the issue unless php mailer sendemail has something annoying gmail?
Merged on Aug 25 2014 at 12:59:12:
Right!
Look at this user field of mine it's called user_intro....
See, I know how to code a little user field I mean I am not completely dumb that I can not code a simple user field according to the user field core api 1.01.00. I have been coding user fields for 7.02 since 7.02 was release years ago so how would all a sudden this error occur for this one user field which follows the exact same api methods as all the rest of them but this is the only user filed that produces this error. How gremlin is that? It is not possible!
So the user field core api 1.01.00. is bugged or?
Code Download source<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_intro_include.php
| Author: Digitanium, Craig
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Display user field input
if ($profile_method == "input") {
add_to_head("<script language='javascript' type='text/javascript' src='".INCLUDES."user_fields/ckeditor/ckeditor.js'></script>\n
<script src='".INCLUDES."user_fields/ckeditor/adapters/jquery.js'></script>
<script type='text/javascript'>
$( document ).ready( function() {
$( '#user_intro' ).ckeditor();
} );</script>");
$user_intro = isset($user_data['user_intro']) ? $user_data['user_intro'] : "";
if ($this->isError()) { $user_intro = isset($_POST['user_intro']) ? addslash($_POST['user_intro']) : $user_intro; }
echo "<tr>\n";
echo "<td valign='top' class='tbl".$this->getErrorClass("user_intro")."'><label for='user_intro'>".$locale['uf_intro'].$required."</label></td>\n";
echo "<td class='tbl".$this->getErrorClass("user_intro")."'>";
echo "<textarea id='user_intro' name='user_intro' cols='120' rows='5' class='textbox' style='width:495px'>".$user_intro."</textarea><br />\n";
echo "</td>\n</tr>\n";
if ($required) { $this->setRequiredJavaScript("user_intro", $locale['uf_intro_error']); }
// Display in profile
} elseif ($profile_method == "display" && $user_data['user_intro'] !=="") {
echo "</table>";
echo "<div style='height:5px; font-size:0;'></div>";
echo "<table class='profile tbl-border center' cellspacing='1'>";
echo "<tr>\n";
echo "<td colspan='2' class='tbl2' ><strong>".$locale['uf_intro']."</strong></td>\n";
echo "</tr><tr>";
echo "<td colspan='2' class='tbl1'>".stripslashes($user_data['user_intro'])."</td>\n";
echo "</tr><tr>\n";
echo "<td colspan='2' class='tbl2' > </td></tr>\n";
// Insert and update
} elseif ($profile_method == "validate_insert" || $profile_method == "validate_update") {
// Get input data
if (isset($_POST['user_intro']) && ($_POST['user_intro'] != "" || $this->_isNotRequired("user_intro"))) {
// Set update or insert user data
$this->_setDBValue("user_intro", addslash(trim($_POST['user_intro'])));
} else {
$this->_setError("user_intro", $locale['uf_intro_error'], true);
}
}
?>
Code Download source
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_sig_include_var.php
| Author: Digitanium, Craig
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Version of the user fields api
$user_field_api_version = "1.01.00";
$user_field_name = $locale['uf_intro'];
$user_field_desc = $locale['uf_intro_desc'];
$user_field_dbname = "user_intro";
$user_field_group = 3;
$user_field_dbinfo = "TEXT NOT NULL DEFAULT''";
?>
- by Craig