Thread subject: pHpFusion Nederlands (BE|NL) » Ondersteuning, Themas, Infusies, Modificaties en Installatie :: Fout in extra uservelden

Posted by Bullcat on 01 november 2013, 14:21
#5

Hallo Dank je zover, onderstaand zijn de 2 bestandjes die schijnbaar bij elkaar horen, ik als superbeheerder zie alle velden wel de eigenaar van het profiel ziet ze ook, maar andere leden dus niet.

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_txt_include.php
| Author: Smokeman
| Email: smokeman@esenet.dk
| http://www.phpfusion-tips.dk/
+--------------------------------------------------------+
| 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"); }

if ($profile_method == "input") {
require_once INCLUDES."bbcode_include.php";
echo "\n";
echo "".$locale['uf_txt'].":\n";
echo "
\n";
echo display_bbcodes("300px", "user_txt", "inputform", "smiley|b|i|u||center|small|url|mail|img|color")."\n";
echo "\n";
} elseif ($profile_method == "display") {
if ($user_data['user_txt'] = ($user_data['user_txt'])) {
echo "";
echo "
";
echo "";
echo "\n";
echo "\n";
echo "";
echo "\n";
echo "\n";
}
} elseif ($profile_method == "validate_insert") {
$db_fields .= ", user_txt";
$db_values .= ", '".(isset($_POST['user_txt']) ? $_POST['user_txt'] : "")."'";
} elseif ($profile_method == "validate_update") {
$db_values .= ", user_txt='".(isset($_POST['user_txt']) ? $_POST['user_txt'] : "")."'";
}
?>

En het 2 de bestandje:

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_txt_include_var.php
| Author: Smokeman
| Email: smokeman@esenet.dk
| http://www.phpfusion-tips.dk/
+--------------------------------------------------------+
| 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"); }

$user_field_name = $locale['uf_txt'];
$user_field_desc = $locale['uf_txt_desc'];
$user_field_dbname = "user_txt";
$user_field_group = 2;
$user_field_dbinfo = "LONGTEXT NOT NULL default ''";
?>

Hans
".$locale['uf_txt']."
".nl2br(parseubb(parsesmileys($user_data['user_txt'])))."