262 lines
10 KiB
Smarty
262 lines
10 KiB
Smarty
{include file='header.tpl'}
|
|
|
|
{* $Id: user_account_privacy.tpl 8 2009-01-11 06:02:53Z john $ *}
|
|
|
|
<ul class="nav nav-tabs hidden-xs hidden-sm visible-md visible-lg form-tabs" style="border-bottom:2px solid black;">
|
|
<li role="presentation"><a href="user_account.php" class="jquerycss">Settings</a></li>
|
|
<li role="presentation" class="active"><a href="user_account_privacy.php" class="jquerycss">Privacy</a></li>
|
|
<li role="presentation" ><a href="user_account_pass.php" class="jquerycss">Change Password</a></li>
|
|
<li role="presentation" ><a href="user_account_delete.php" class="jquerycss">Deactivate Account</a></li>
|
|
|
|
</ul>
|
|
|
|
<div class="visible-xs visible-sm hidden-md hidden-lg">Select Tab:<br>
|
|
<select class="mb10 form-control form-custom visible-xs visible-sm hidden-md hidden-lg tabdropdown" id="tab_selector" onchange="window.location.href=this.value">
|
|
<option value="user_account.php">Settings</option>
|
|
<option value="user_account_privacy.php" selected="selected">Privacy</option>
|
|
<option value="user_account_pass.php">Change Password</option>
|
|
<option value="user_account_delete.php" >Deactivate Account</option>
|
|
|
|
</select>
|
|
</div>
|
|
<br>
|
|
<!--<img src='./images/icons/settings48.gif' border='0' class='icon_big'>-->
|
|
<div class='page_header'><span style="font-size:20pt; font-weight:bold;text-transform:uppercase;">{lang_print id=1056}</span></div>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
{* SHOW SUCCESS MESSAGES *}
|
|
{if $result != 0}
|
|
<table cellpadding='0' cellspacing='0'><tr><td class='success red' style="color:red;">
|
|
<img src='./images/success.gif' border='0' class='icon'>{lang_print id=191}
|
|
</td></tr></table>
|
|
{/if}
|
|
|
|
|
|
{* JAVASCRIPT FOR CREATING SUGGESTION BOX *}
|
|
{literal}
|
|
<script type="text/javascript">
|
|
<!--
|
|
window.addEvent('domready', function(){
|
|
|
|
|
|
jQuery("#block_user").keyup(function(){
|
|
jQuery.ajax({
|
|
type: "POST",
|
|
|
|
url: "misc_js.php?task=find_users_to_tag&input="+jQuery(this).val(),
|
|
data:'input='+jQuery(this).val(),
|
|
beforeSend: function(){
|
|
//jQuery("#usersuggestions").css("background","#FFF url(LoaderIcon.gif) no-repeat 165px");
|
|
},
|
|
success: function(data){
|
|
//alert(jQuery(this).parent(".tagscontainer").);
|
|
|
|
jQuery(".usersuggestions").show();
|
|
jQuery(".usersuggestions").html(data);
|
|
//jQuery("tag").css("background","#FFF");
|
|
}
|
|
});
|
|
});
|
|
});
|
|
|
|
function selectUsertotag(val) {
|
|
|
|
who=jQuery(".tags").val();
|
|
|
|
whoarray=who.split(",");
|
|
alreadyin=0;
|
|
for(var i = 0; i < whoarray.length; i++){
|
|
if(val==whoarray[i]){alreadyin=1;}
|
|
}
|
|
|
|
if(alreadyin==0){
|
|
if(who==""){
|
|
jQuery(".tags").val(val);
|
|
}else{
|
|
|
|
|
|
jQuery(".tags").val(who+","+val);
|
|
}
|
|
jQuery(".toshowusers").append("<div style='margin-left:5px;'><input type='hidden' name='user_blocklist[]' value='"+val+"' /><a href='profile.php?user="+val+"'>"+val+"</a></div>");
|
|
}
|
|
who=jQuery(".tags").val();
|
|
whoarray1=who.split(",");
|
|
|
|
|
|
jQuery(".usersuggestions").hide();
|
|
|
|
|
|
jQuery("#block_user").val("");
|
|
|
|
}
|
|
//-->
|
|
</script>
|
|
{/literal}
|
|
|
|
<form action='user_account_privacy.php' method='post' name='info'>
|
|
|
|
{* SHOW BLOCKLIST *}
|
|
{if $user->level_info.level_profile_block != 0}
|
|
|
|
<div>{lang_print id=813}:</div>
|
|
<div id="blocks">
|
|
<div style='padding: 3px 0px 5px 0px;'>{lang_print id=814}</div>
|
|
{section name=block_loop loop=$blocked_users}
|
|
<div id='block_{$blocked_users[block_loop]->user_info.user_id}'>
|
|
<div style='float: left;'><img src='./images/icons/action_delete2.gif' class='icon' style='cursor: pointer; margin-left: 5px;' onClick="$('block_{$blocked_users[block_loop]->user_info.user_id}').getParent().removeChild($('block_{$blocked_users[block_loop]->user_info.user_id}'))" border='0'><input type='hidden' name='user_blocklist[]' value='{$blocked_users[block_loop]->user_info.user_id}' /></div>
|
|
<div><a href='{$url->url_create('profile', $blocked_users[block_loop]->user_info.user_username)}'>{$blocked_users[block_loop]->user_displayname}</a> <a href="javascript:void(0);" onclick="jQuery('#block_{$blocked_users[block_loop]->user_info.user_id}').remove();">X</a></div>
|
|
<div style='clear: both;'></div>
|
|
</div>
|
|
{/section}
|
|
|
|
<div id='block_user_link' style='padding: 5px 0px 0px 2px; font-weight: bold;'><a href='javascript:void(0);' onClick="$('block_user_link').style.display='none';$('block_user').style.display='block';$('block_user_div').style.display='block';$('block_user').focus();">{lang_print id=815}</a></div>
|
|
|
|
<div id="block_user_div" style="display:none;">Enter a name and then select the user you wish to block</div>
|
|
<div class="toshowusers"></div>
|
|
<input type='text' class='text' id='block_user' size='30' maxlength='50' value='' style='margin-top: 3px; display: none;' autocomplete=off />
|
|
<div class="usersuggestions"></div>
|
|
|
|
<div class="tagscontainer">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<input type='hidden' name='tags' id='tags' class="tags" value=''>
|
|
<input type='hidden' name='task' id='task' class="tags" value='updatemedia'>
|
|
|
|
</div><br>
|
|
|
|
{/if}
|
|
|
|
{* SHOW INVISIBILITY SETTING *}
|
|
{if $user->user_info.user_level_id == 2}
|
|
<div>{lang_print id=1058}:</div>
|
|
|
|
|
|
|
|
<div>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td><input type='checkbox' name='user_invisible' id='invisible' value='1'{if $user->profile_info.profilevalue_22==1} checked='checked'{/if}> </td>
|
|
<td><label for='invisible'>{lang_print id=1059}</label></td>
|
|
</tr>
|
|
</table>
|
|
</div><br>
|
|
|
|
{/if}
|
|
|
|
{* SHOW PROFILE VIEWS SETTING *}
|
|
{if $user->level_info.level_profile_views == 1}
|
|
<div>{lang_print id=1060}:</div>
|
|
<div>
|
|
|
|
|
|
{* SHOW NUMBER OF TIMES PROFILE HAS BEEN VIEWED *}<div>{lang_sprintf id=740 1=$profile_views}{if $profile_views !=0}[ <a href='user_account_privacy.php?task=resetviews' onclick="return confirm('Are you sure?');">{lang_print id=741}</a>]{/if}<br/>{* WHO VIEWED MY PROFILE LINK *}{if $user->user_info.user_saveviews==1}{if $profile_viewers|@count !=0}<div style='margin-top: 10px;'> <a href='javascript:void(0);' onClick="$('profile_viewers').style.display='block';this.style.display='none';">{lang_print id=1064}</a> <div id='profile_viewers' style='display: none; max-height: 400px; overflow: auto;'>{lang_print id=1182}<br/>{section name=viewer_loop loop=$profile_viewers}<a href='{$url->url_create("profile", $profile_viewers[viewer_loop]->user_info.user_username)}'>{$profile_viewers[viewer_loop]->user_displayname}</a>{if $smarty.section.viewer_loop.last !==TRUE}, {/if}{/section}</div></div>{else}{lang_print id=1063}{/if}{/if}</div><br>
|
|
|
|
|
|
|
|
|
|
<div class='form_desc'>{lang_print id=1062}</div>
|
|
</div><br>
|
|
|
|
{/if}
|
|
|
|
{* SHOW PROFILE PRIVACY OPTIONS *}
|
|
{if $privacy_options|@count > 1}
|
|
<div>{lang_print id=967}:</div>
|
|
<div>
|
|
<div style='padding: 3px 0px 5px 0px;'>{lang_print id=968}</div>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
{* LIST PRIVACY OPTIONS *}
|
|
{foreach from=$privacy_options key=k item=v}
|
|
<tr>
|
|
<td><input type='radio' name='privacy_profile' id='privacy_{$k}' value='{$k}'{if $user->user_info.user_privacy == $k} checked='checked'{/if}></td>
|
|
<td><label for='privacy_{$k}'>{lang_print id=$v}</label></td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
</div><br>
|
|
|
|
{/if}
|
|
|
|
{* SHOW PROFILE COMMENT OPTIONS *}
|
|
{if $comment_options|@count > 1}
|
|
<div>{lang_print id=969}:</div>
|
|
<div>
|
|
<div style='padding: 3px 0px 5px 0px;'>{lang_print id=970}</div>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
{* LIST COMMENT OPTIONS *}
|
|
{foreach from=$comment_options key=k item=v}
|
|
<tr>
|
|
<td><input type='radio' name='comments_profile' id='comments_{$k}' value='{$k}'{if $user->user_info.user_comments == $k} checked='checked'{/if}></td>
|
|
<td><label for='comments_{$k}'>{lang_print id=$v}</label></td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
</div><br>
|
|
|
|
{/if}
|
|
|
|
{* SHOW PROFILE SEARCH OPTIONS *}
|
|
{if $user->level_info.level_profile_search == 1}
|
|
<div>{lang_print id=971}:</div>
|
|
<div>
|
|
<div style='padding: 3px 0px 5px 0px;'>{lang_print id=972}</div>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr><td><input type='radio' name='search_profile' id='search_profile1' value='1'{if $user->user_info.user_search == 1} checked='checked'{/if}></td><td><label for='search_profile1'>{lang_print id=973}</label></td></tr>
|
|
<tr><td><input type='radio' name='search_profile' id='search_profile0' value='0'{if $user->user_info.user_search == 0} checked='checked'{/if}></td><td><label for='search_profile0'>{lang_print id=974}</label></td></tr>
|
|
</table>
|
|
</div><br>
|
|
|
|
{/if}
|
|
|
|
{* SHOW ACTION PRIVACY SETTING *}
|
|
{if $setting.setting_actions_privacy == 1}
|
|
<div>{lang_print id=811}:</div>
|
|
<div>
|
|
<div style='padding: 3px 0px 5px 0px;'>{lang_print id=812}</div>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
{section name=actiontypes_loop loop=$actiontypes}
|
|
<tr>
|
|
<td><input type='checkbox' name='actiontype[]' id='actiontype_id_{$actiontypes[actiontypes_loop].actiontype_id}' value='{$actiontypes[actiontypes_loop].actiontype_id}'{if $actiontypes[actiontypes_loop].actiontype_selected == 1} checked='checked'='checked'{/if}></td>
|
|
<td><label for='actiontype_id_{$actiontypes[actiontypes_loop].actiontype_id}'>{lang_print id=$actiontypes[actiontypes_loop].actiontype_desc}</label></td>
|
|
</tr>
|
|
{/section}
|
|
</table>
|
|
</div><br>
|
|
|
|
{/if}
|
|
|
|
<div>Disable Chat?:</div>
|
|
<div><label>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td><input type='checkbox' name='chatbar' id='chatbar' value='1'{if $user->user_info.hidechat == 1} checked='checked'{/if}> </td>
|
|
<td>Check this box if you wish to disable the chatbar.</td>
|
|
</tr>
|
|
</table></label>
|
|
|
|
</div><br>
|
|
|
|
<div>What's Hot Listings?:</div>
|
|
<div><label>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td><input type='checkbox' name='wh_privacy' id='wh_privacy' value='Y' {if $user->user_info.user_wh_privacy == "Y"} checked='checked'{/if}> </td>
|
|
<td>Check this box if you wish to have your media excluded from Photo/Video of the Day</td>
|
|
</tr>
|
|
</table></label>
|
|
|
|
</div><br>
|
|
|
|
|
|
|
|
<input type='submit' class='button' value='{lang_print id=173}'>
|
|
|
|
<input type='hidden' name='task' value='dosave'>
|
|
</form>
|
|
|
|
{include file='footer.tpl'} |