mirror of
https://github.com/e107inc/e107.git
synced 2025-07-28 18:30:53 +02:00
Contact page visibility preference added. eg. Limit the contact form to members or a userclass if required.
This commit is contained in:
@@ -13,6 +13,12 @@
|
||||
require_once("class2.php");
|
||||
//define('e_HANDLER', "e107_handlers/");
|
||||
// security image may be disabled by removing the appropriate shortcodes from the template.
|
||||
$active = varset($pref['contact_visibility'], e_UC_PUBLIC);
|
||||
if(!check_class($active))
|
||||
{
|
||||
e107::getRedirect()->go(e_HTTP."index.php");
|
||||
}
|
||||
|
||||
require_once(e_HANDLER."secure_img_handler.php");
|
||||
$sec_img = new secure_image;
|
||||
|
||||
|
@@ -600,6 +600,13 @@ $text .= "<fieldset class='e-hideme' id='core-prefs-email'>
|
||||
<div class='smalltext field-help'>".PRFLAN_169."</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for='contact_visibility'>Contact Page Visibility</label></td>
|
||||
<td>
|
||||
".$e_userclass->uc_dropdown('contact_visibility', varset( $pref['contact_visibility'],e_UC_PUBLIC), 'public,nobody,main,admin,classes', "tabindex='".$frm->getNext()."'")."
|
||||
<div class='smalltext field-help'>Contact information and/or form will only be visible to this userclass group.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for='contact-emailcopy'>".PRFLAN_164."</label></td>
|
||||
<td>";
|
||||
|
@@ -30,6 +30,7 @@
|
||||
<core name="comments_sort">desc</core>
|
||||
<core name="compress_output">0</core>
|
||||
<core name="contact_emailcopy">0</core>
|
||||
<core name="contact_visibility">0</core>
|
||||
<core name="cookie_name">e107cookie</core>
|
||||
<core name="core-infopanel-default"><![CDATA[array (
|
||||
0 => 'e-administrator',
|
||||
|
Reference in New Issue
Block a user