<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHPFusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_shouts-stat_include_var.php
| Author: PHPFusion Development Team
+--------------------------------------------------------+
| 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_ug'];
$user_field_desc = $locale['uf_ug_desc'];
$user_field_dbname = "user_groups_reg";
$user_field_group = 2;
$user_field_dbinfo = "TINYINT(1) NOT NULL DEFAULT '0'";
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHPFusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_shouts-stat_include.php
| Author: PHPFusion Development Team
+--------------------------------------------------------+
| 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" && !$field_value) {
if (iGUEST || iSUPERADMIN) {
static $recache = [];
$groups = fusion_get_groups();
// print_p($groups);
if (empty($recache) && !empty($groups)) {
foreach($groups as $group_id => $group) {
if ($group_id > 0) {
$recache[$group_id] = $group;
}
}
}
$options = [
'inline' => TRUE,
'placeholder' => $locale['uf_ug'],
'error_text' => $locale['uf_ug_error'],
'options' => $recache,
// 'tags' => TRUE,
'width' => '100%',
'inner_width' => '100%',
'delimiter' => '.',
] + $options;
$user_fields = form_select('user_groups', $locale['uf_ug'], $field_value, $options);
}
}
Category Forum
System Administration - 9Labels
None yet
Statistics
1 participant
Notifications
You are not receiving notifications from this thread.
Related Questions