702 lines
30 KiB
HTML
702 lines
30 KiB
HTML
{% extends "settings.html" %}
|
|
|
|
{% block pagetitle %}Profile Settings - {{SITE_NAME}}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<style>
|
|
.bg-image {
|
|
padding: 0.25rem;
|
|
width: 15rem;
|
|
height: 10rem;
|
|
object-fit: cover;
|
|
}
|
|
.bg-button {
|
|
margin: 0.25rem;
|
|
padding: 0;
|
|
}
|
|
</style>
|
|
|
|
<div id="posts" class="row">
|
|
<div class="col col-lg-10">
|
|
<div class="settings">
|
|
{% if FEATURES['HOUSES'] %}
|
|
<h5 name="referral">House</h5>
|
|
<div class="settings-section rounded">
|
|
<div class="d-lg-flex border-bottom">
|
|
<div class="title w-lg-25">
|
|
<label for="theme">House</label>
|
|
</div>
|
|
<div class="body w-lg-100">
|
|
{% if v.house %}
|
|
{% set cost = HOUSE_SWITCH_COST %}
|
|
<p>Change your house (cost: {{cost}} coins or marseybux).</p>
|
|
{% if ' Founder' in v.house %}
|
|
<p>Warning: you'll lose your founder status if you join a different house</p>
|
|
{% endif %}
|
|
{% else %}
|
|
{% set cost = HOUSE_JOIN_COST %}
|
|
<p>Join a house (cost: {{cost}} coins or marseybux).</p>
|
|
{% endif %}
|
|
<div class="input-group mb2">
|
|
<select {% if v.coins < cost and v.procoins < cost or v.bite %}disabled{% endif %} autocomplete="off" id='house' class="form-control" form="profile-settings" name="house" onchange="postToastReload(this,'/settings/profile?house='+document.getElementById('house').value)">
|
|
{% for entry in ("None","Furry","Femboy","Vampire","Racist") %}
|
|
<option value="{{entry}}" {% if v.house == entry %} selected {% endif %}>
|
|
{{entry}}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<h5 name="referral">Theme</h5>
|
|
<div class="settings-section rounded">
|
|
<div class="d-lg-flex border-bottom">
|
|
<div class="title w-lg-25">
|
|
<label for="cardview">Card View</label>
|
|
</div>
|
|
<div class="body w-lg-100">
|
|
<div class="custom-control custom-switch">
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="cardview" name="cardview"{% if v.cardview %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?cardview='+document.getElementById('cardview').checked);">
|
|
<label class="custom-control-label" for="cardview"></label>
|
|
</div>
|
|
<span class="text-small text-muted">Enable if you would like to display images and videos in full size on the frontpage.</span>
|
|
</div>
|
|
</div>
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
<label for="highlightcomments">Highlight New Comments</label>
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<div class="custom-control custom-switch">
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="highlightcomments" name="highlightcomments"{% if v.highlightcomments %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?highlightcomments='+document.getElementById('highlightcomments').checked);">
|
|
<label class="custom-control-label" for="highlightcomments"></label>
|
|
</div>
|
|
|
|
<span class="text-small text-muted">Enable if you would like to highlight comments made after the last time you visited a thread.</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
<div class="title w-lg-25">
|
|
<label for="theme">Website Theme</label>
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
<p>Change the theme for the website.</p>
|
|
<div class="input-group mb2">
|
|
<select autocomplete="off" id='theme' class="form-control" form="profile-settings" name="theme" onchange="postToastReload(this,'/settings/profile?theme='+document.getElementById('theme').value)">
|
|
|
|
{% set themes = ["4chan","classic","classic_dark","coffee","dark","dramblr","light","midnight","transparent","tron","win98"] %}
|
|
|
|
{% for entry in themes %}
|
|
<option value="{{entry}}" {% if v.theme==entry %} selected {% endif %}>
|
|
{{entry}}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<label class="text-black w-lg-25">Theme Color</label>
|
|
|
|
<div class="d-flex">
|
|
|
|
<form action="/settings/themecolor" id="themecolor-form" method="post" class="color-picker" style="line-height: 0">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
|
|
{% for themecolor in COLORS %}
|
|
<input autocomplete="off" type="radio" name="themecolor" id="themecolor-{{themecolor}}" value="{{themecolor}}" {% if v.themecolor == themecolor %}checked{% endif %} onclick="document.getElementById('themecolor-form').submit()">
|
|
<label class="color-radio" for="themecolor-{{themecolor}}">
|
|
<span style="background-color: #{{themecolor}}">
|
|
{% if v.themecolor.lower() == themecolor %}
|
|
<i class="fas fa-check text-white"></i>
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
</span>
|
|
</label>
|
|
{% endfor %}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<p class="text-small mb-2">Or type a color hex code:</p>
|
|
<div class="d-flex">
|
|
<form action="/settings/themecolor" id="color-code-form" method="post">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
|
|
<input class="form-control" type="text" name="themecolor" id="color-code" minlength="6" maxlength="6" value="{% if v.themecolor %}{{v.themecolor}}{% endif %}">
|
|
<label class="btn btn-secondary text-capitalize mr-2 mt-2 mb-0">Update<input type="text" for="color-code" onclick="form.submit()" hidden=""></label>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="d-lg-flex border-bottom">
|
|
<div class="title w-lg-25">
|
|
<label for="theme">Website Backgrounds</label>
|
|
</div>
|
|
<div class="body w-lg-100">
|
|
<p>Change the background for the website.</p>
|
|
<div class="input-group mb2">
|
|
<select autocomplete="off" id='backgroundSelector' class="form-control" form="profile-settings" name="background" onchange="updatebgselection();">
|
|
{% for entry in ["anime", "fantasy", "solarpunk", "pixelart"] %}
|
|
<option value="{{entry}}" {% if v.background and v.background.startswith(entry) %}selected{% endif %}>
|
|
{{entry}}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
{% if v.background %}
|
|
<div class="d-flex mt-2">
|
|
<button type="button" class="btn btn-primary ml-auto mb-1" onclick="postToastReload(this,'/settings/removebackground')">Remove Background</button>
|
|
</div>
|
|
{% endif %}
|
|
<div id="bgcontainer"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<h5>Profile Picture</h5>
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
<div class="d-flex">
|
|
|
|
<div class="title w-lg-25 text-md-center">
|
|
<img loading="lazy" alt="your profile picture" src="{{v.profile_url}}" class="profile-pic-75">
|
|
</div>
|
|
|
|
<div class="body w-lg-100 my-auto">
|
|
|
|
<div class="d-flex">
|
|
|
|
<div>
|
|
<form action="/settings/images/profile" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
|
|
Update<input autocomplete="off" type="file" accept="image/*" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} hidden name="profile" onchange="form.submit()">
|
|
</label>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="text-small text-muted mt-3">All image files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% if FEATURES['USERS_PROFILE_BANNER'] -%}
|
|
<h5>Profile Banner</h5>
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
<div class="d-flex">
|
|
|
|
<div class="title w-lg-75 text-md-center">
|
|
<img loading="lazy" alt="your banner" src="{{v.banner_url}}" class="banner-pic-135">
|
|
</div>
|
|
|
|
<div class="body w-lg-100 my-auto">
|
|
|
|
<div class="d-flex">
|
|
|
|
<div>
|
|
<form action="/settings/images/banner" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
|
|
Update<input autocomplete="off" type="file" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} accept="image/*" hidden name="banner" onchange="form.submit()">
|
|
</label>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="text-small text-muted mt-3">All image files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
{%- endif %}
|
|
|
|
<h5 id="referral" name="referral">Referrals</h5>
|
|
|
|
<p class="text-small text-muted">Invite a friend.</p>
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
<div class="d-lg-flex">
|
|
|
|
<div class="title w-lg-25">
|
|
<label for="referral_code">Referral code</label>
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<div class="input-group">
|
|
|
|
<input autocomplete="off" type="text" readonly="" class="form-control copy-link" id="referral_code" value="{{SITE_FULL}}/signup?ref={{v.username}}" data-clipboard-text="{{SITE_FULL}}/signup?ref={{v.username}}">
|
|
|
|
<span class="input-group-append" data-bs-toggle="tooltip" data-bs-placement="top" title="You have referred {{v.referral_count}} user{{'s' if v.referral_count != 1 else ''}} so far. {% if v.referral_count==0 %}¯\_(ツ)_/¯{% elif v.referral_count>10%}Wow!{% endif %}">
|
|
<span class="input-group-text text-primary border-0">
|
|
<i class="far fa-user mr-1" aria-hidden="true"></i>{{v.referral_count}}</span>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="text-small text-muted mt-3">Share this link with a friend. {% if v.referral_count==0 %} When they sign up, you'll get the bronze recruitment badge. <a href="/badges">Learn more.</a>{% elif v.referral_count<10 %} When you refer 10 friends, you'll receive the silver recruitment badge. <a href="/badges">Learn more.</a>{% elif v.referral_count<100 %} When you refer 100 friends, you'll receive the gold recruitment badge. <a href="/badges">Learn more</a>.{% endif %}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h5 name="referral">RSS Feed</h5>
|
|
|
|
<p class="text-small text-muted">Subscribe to the {{SITE_NAME}} RSS feed.</p>
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
<div class="d-lg-flex">
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<input autocomplete="off" type="text" readonly="" class="form-control copy-link" value="{{SITE_FULL}}/rss/hot/all" data-clipboard-text="{{SITE_FULL}}/rss/hot/all">
|
|
|
|
<div class="text-small text-muted mt-3">You can change the feed by replacing "hot" with whatever sorting you want and "all" with whatever time filter you want.</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h5 id="bio" name="bio">Your Profile</h5>
|
|
|
|
<p class="text-small text-muted">Edit how others see you on {{SITE_NAME}}.</p>
|
|
|
|
<div class="settings-section rounded mb-0">
|
|
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<label class="text-black w-lg-25">Username</label>
|
|
|
|
<div class="w-lg-100">
|
|
<p>Your original username will always stay reserved for you: <code>{{v.original_username}}</code></p>
|
|
|
|
<form action="/settings/name_change" method="post">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<input autocomplete="off" type="text" name="name" class="form-control" value="{{v.username}}">
|
|
<small>3-25 characters, including letters, numbers, _ , and -</small>
|
|
<div class="d-flex mt-2">
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" onclick="disable(this)" value="Change Display Name">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% if FEATURES['USERS_PROFILE_SONG'] -%}
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<label class="text-black w-lg-25">Profile Anthem</label>
|
|
|
|
<div class="w-lg-100">
|
|
<p>You can use an MP3 file or a YouTube video.</p>
|
|
|
|
<form action="/settings/song_change_mp3" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<label class="btn btn-secondary format d-inline-block m-0 mb-3">
|
|
<div id="filename-show2"><i class="fas fa-file"></i>
|
|
{% if v.song and v.song|length in (1,2,3,4,5,17) %}
|
|
{{v.song}}.mp3
|
|
{% else %}
|
|
Use an MP3 file (Max size is 8MB)
|
|
{% endif %}
|
|
</div>
|
|
<input autocomplete="off" id="file-upload2" type="file" name="file" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} accept="audio/mp3" onchange="this.form.submit()" hidden>
|
|
</label>
|
|
</form>
|
|
|
|
<form action="/settings/song_change" method="post">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
|
|
<input class="form-control" style="display:inline;max-width:75%;font-size: min(3.5vw,16px)!important" autocomplete="off" type="text" name="song" class="form-control" value="{% if v.song and v.song|length not in (1,2,3,4,5,17) %}https://youtu.be/{{v.song}}{% endif %}" placeholder='Enter a YouTube video link here'>
|
|
|
|
<input class="btn btn-primary" style="font-size: min(3.5vw,16px)!important" autocomplete="off" class="btn btn-primary ml-auto" type="submit" onclick="disable(this)" value="Submit">
|
|
</form>
|
|
|
|
<br><small>In some browsers, users have to click at least once anywhere in the profile page for the anthem to play.</small>
|
|
</div>
|
|
|
|
</div>
|
|
{%- endif %}
|
|
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<label class="text-black w-lg-25">Name Color</label>
|
|
|
|
<div class="d-flex">
|
|
|
|
<form action="/settings/namecolor" id="color-form" method="post" class="color-picker" style="line-height: 0">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
|
|
{% for color in COLORS %}
|
|
<input autocomplete="off" type="radio" name="color" id="color-{{color}}" value="{{color}}" {% if v.name_color == color %}checked{% endif %} onclick="document.getElementById('color-form').submit()">
|
|
<label class="color-radio" for="color-{{color}}">
|
|
<span style="background-color: #{{color}}">
|
|
{% if v.name_color.lower() == color %}
|
|
<i class="fas fa-check text-white"></i>
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
</span>
|
|
</label>
|
|
{% endfor %}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<p class="text-small mb-2">Or type a color hex code:</p>
|
|
<div class="d-flex">
|
|
<form action="/settings/namecolor" id="color-code-form" method="post">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<input autocomplete="off" class="form-control" type="text" name="color" id="color-code" minlength="6" maxlength="6" value="{% if v.name_color %}{{v.name_color}}{% endif %}">
|
|
<label class="btn btn-secondary text-capitalize mr-2 mt-2 mb-0">Update<input autocomplete="off" type="text" for="color-code" onclick="form.submit()" hidden=""></label>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
{% if FEATURES['PRONOUNS'] %}
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<label class="text-black w-lg-25">Pronouns</label>
|
|
|
|
<div class="w-lg-100">
|
|
<form id="profile-settings" action="/settings/pronouns_change" method="post">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<input minlength=3 maxlength=11 pattern="([a-zA-Z]{1,5})/[a-zA-Z]{1,5}(/[a-zA-Z]{1,5})?" autocomplete="off" id="pronounbody" type="text" name="pronouns" class="form-control" placeholder='Enter pronouns here' value="{% if v.pronouns %}{{v.pronouns}}{% endif %}">
|
|
<div class="d-flex mt-2">
|
|
<small>{2-5 characters} / {2-5 characters}</small>
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" id="pronounsSave" type="submit" onclick="disable(this)" value="Change Pronouns">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<label class="text-black w-lg-25">Flair</label>
|
|
|
|
<div class="w-lg-100">
|
|
<form id="profile-settings" action="/settings/title_change" method="post">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<input maxlength=100 {% if v.flairchanged %}disabled{% endif %} autocomplete="off" id="customtitlebody" type="text" name="title" class="form-control" placeholder='Enter a flair here' value="{% if v.customtitleplain %}{{v.customtitleplain}}{% endif %}">
|
|
<div class="d-flex mt-2">
|
|
<div role="button"><i class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('customtitlebody')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></i></div>
|
|
<small class="ml-3">Limit of 100 characters</small>
|
|
<input {% if v.flairchanged %}disabled{% endif %} autocomplete="off" class="btn btn-primary ml-auto" id="titleSave" type="submit" onclick="disable(this)" value="Change Flair">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<label class="text-black w-lg-25">Flair Color</label>
|
|
|
|
<div class="d-flex">
|
|
|
|
<form action="/settings/titlecolor" id="titlecolor-form" method="post" class="color-picker" style="line-height: 0">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
|
|
{% for titlecolor in COLORS %}
|
|
<input autocomplete="off" type="radio" name="titlecolor" id="titlecolor-{{titlecolor}}" value="{{titlecolor}}" {% if v.titlecolor == titlecolor %}checked{% endif %} onclick="document.getElementById('titlecolor-form').submit()">
|
|
<label class="color-radio" for="titlecolor-{{titlecolor}}">
|
|
<span style="background-color: #{{titlecolor}}">
|
|
{% if v.titlecolor.lower() == titlecolor %}
|
|
<i class="fas fa-check text-white"></i>
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
</span>
|
|
</label>
|
|
{% endfor %}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="text-small mb-2">Or type a color hex code:</p>
|
|
<div class="d-flex">
|
|
<form action="/settings/titlecolor" id="color-code-form" method="post">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<input autocomplete="off" class="form-control" type="text" name="titlecolor" id="color-code" minlength="6" maxlength="6" value="{% if v.titlecolor %}{{v.titlecolor}}{% endif %}">
|
|
<label class="btn btn-secondary text-capitalize mr-2 mt-2 mb-0">Update<input autocomplete="off" type="text" for="color-code" onclick="form.submit()" hidden=""></label>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{% if v.verified %}
|
|
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<label class="text-black w-lg-25">Checkmark Color</label>
|
|
|
|
<div class="d-flex">
|
|
|
|
<form action="/settings/verifiedcolor" id="verifiedcolor-form" method="post" class="color-picker" style="line-height: 0">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
|
|
{% for verifiedcolor in COLORS %}
|
|
<input autocomplete="off" type="radio" name="verifiedcolor" id="verifiedcolor-{{verifiedcolor}}" value="{{verifiedcolor}}" {% if v.verifiedcolor == verifiedcolor %}checked{% endif %} onclick="document.getElementById('verifiedcolor-form').submit()">
|
|
<label class="color-radio" for="verifiedcolor-{{verifiedcolor}}">
|
|
<span style="background-color: #{{verifiedcolor}}">
|
|
{% if v.verifiedcolor and v.verifiedcolor.lower() == verifiedcolor %}
|
|
<i class="fas fa-check text-white"></i>
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
</span>
|
|
</label>
|
|
{% endfor %}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<p class="text-small mb-2">Or type a color hex code:</p>
|
|
<div class="d-flex">
|
|
<form action="/settings/verifiedcolor" id="color-code-form" method="post">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<input autocomplete="off" class="form-control" type="text" name="verifiedcolor" id="color-code" minlength="6" maxlength="6" value="{% if v.verifiedcolor %}{{v.verifiedcolor}}{% endif %}">
|
|
<label class="btn btn-secondary text-capitalize mr-2 mt-2 mb-0">Update<input autocomplete="off" type="text" for="color-code" onclick="form.submit()" hidden=""></label>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<label class="text-black w-lg-25">Checkmark Hover Text</label>
|
|
|
|
<div class="w-lg-100">
|
|
|
|
<form action="/settings/checkmark_text" method="post">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<input minlength=1 maxlength=100 autocomplete="off" id="checkmark_text" type="text" name="title" class="form-control" placeholder='Enter text here' value="{{v.verified}}">
|
|
<div class="d-flex mt-2">
|
|
<small>Limit of 100 characters</small>
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" id="titleSave" type="submit" onclick="disable(this)" value="Change Text">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
{% if FEATURES['USERS_PROFILE_BODYTEXT'] -%}
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<label class="text-black w-lg-25">Bio</label>
|
|
|
|
<div class="w-lg-100">
|
|
<form id="profile-bio" action="/settings/profile" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<textarea autocomplete="off" id="bio-text" class="form-control rounded" aria-label="With textarea" placeholder="Tell the community a bit about yourself." rows="3" name="bio" form="profile-bio" maxlength="1500">{% if v.bio %}{{v.bio}}{% endif %}</textarea>
|
|
<div class="d-flex">
|
|
<pre style="padding-top:0.7rem;line-height:1" class="btn btn-secondary format d-inline-block m-0 font-weight-bolder text-uppercase" onclick="commentForm('bio-text');getGif()" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#gifModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add GIF">GIF</pre>
|
|
|
|
<pre style="padding-top:0.7rem" class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('bio-text')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></pre>
|
|
|
|
<label class="btn btn-secondary format d-inline-block m-0">
|
|
<div id="filename-show"><i class="fas fa-file"></i></div>
|
|
<input autocomplete="off" id="file-upload" accept="image/*, video/*, audio/*" type="file" name="file" multiple="multiple" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} onchange="changename('filename-show','file-upload')" hidden>
|
|
</label>
|
|
</div>
|
|
<div class="d-flex mt-1">
|
|
<small>Limit of 1500 characters</small>
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" id="bioSave" type="submit" onclick="disable(this)" value="Save Changes">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<label class="text-black w-lg-25">Friends</label>
|
|
|
|
<div class="w-lg-100">
|
|
<form id="profile-friends" action="/settings/profile" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<textarea autocomplete="off" id="friends-text" class="form-control rounded" aria-label="With textarea" placeholder="Enter your friends on the site..." rows="3" name="friends" form="profile-friends" maxlength="1500">{% if v.friends %}{{v.friends}}{% endif %}</textarea>
|
|
<div class="d-flex mt-1">
|
|
<small>Limit of 500 characters</small>
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" id="friendsSave" type="submit" onclick="disable(this)" value="Save Changes">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="body d-lg-flex border-bottom">
|
|
|
|
<label class="text-black w-lg-25">Enemies</label>
|
|
|
|
<div class="w-lg-100">
|
|
<form id="profile-enemies" action="/settings/profile" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<textarea autocomplete="off" id="enemies-text" class="form-control rounded" aria-label="With textarea" placeholder="Enter your enemies on the site..." rows="3" name="enemies" form="profile-enemies" maxlength="1500">{% if v.enemies %}{{v.enemies}}{% endif %}</textarea>
|
|
<div class="d-flex mt-1">
|
|
<small>Limit of 500 characters</small>
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" id="enemiesSave" type="submit" onclick="disable(this)" value="Save Changes">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
{%- endif %}
|
|
|
|
|
|
{% if v.sig or v.patron %}
|
|
<div class="body d-lg-flex border-bottom">
|
|
<label class="text-black w-lg-25">Signature</label>
|
|
|
|
<div class="w-lg-100">
|
|
<form id="profile-sig" action="/settings/profile" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
<textarea autocomplete="off" id="sig-text" class="form-control rounded" aria-label="With textarea" placeholder="Enter a signature..." rows="3" name="sig" form="profile-sig" maxlength="200">{% if v.sig %}{{v.sig}}{% endif %}</textarea>
|
|
<div class="d-flex">
|
|
<pre style="padding-top:0.7rem;line-height:1" class="btn btn-secondary format d-inline-block m-0 font-weight-bolder text-uppercase" onclick="commentForm('sig-text');getGif()" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#gifModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add GIF">GIF</pre>
|
|
|
|
<pre style="padding-top:0.7rem" class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('sig-text')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></pre>
|
|
</div>
|
|
<div class="d-flex mt-1">
|
|
<small>Limit of 200 characters</small>
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" id="sigSave" type="submit" onclick="disable(this)" value="Save Changes">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
<label for="privateswitch">Private Mode</label>
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<div class="custom-control custom-switch">
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="privateswitch" name="private"{% if v.is_private%} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?private='+document.getElementById('privateswitch').checked)">
|
|
<label class="custom-control-label" for="privateswitch"></label>
|
|
</div>
|
|
|
|
<span class="text-small text-muted">This will hide your post and comment history from others. We will also ask search engines to not index your profile page. (Your content will still be accessible via direct link.)</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
<label for="nofollowswitch">Disable Subscriptions</label>
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<div class="custom-control custom-switch">
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="nofollowswitch" name="nofollow"{% if v.is_nofollow%} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?nofollow='+document.getElementById('nofollowswitch').checked)">
|
|
<label class="custom-control-label" for="nofollowswitch"></label>
|
|
</div>
|
|
|
|
<span class="text-small text-muted">Prevent other users from following you.</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<div class="d-lg-flex border-bottom">
|
|
<div class="title w-lg-25">
|
|
<label for="spiderswitch">Spider</label>
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<div class="custom-control custom-switch">
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="spiderswitch" name="spider" {% if v.spider%}checked{% endif %} {% if v.spider and v.spider > 1 %}disabled{% endif %} onchange="postToastSwitch(this,'/settings/profile?spider='+document.getElementById('spiderswitch').checked)">
|
|
<label class="custom-control-label" for="spiderswitch"></label>
|
|
</div>
|
|
|
|
<span class="text-small text-muted">Have a spider friend accompany you during your journey on the site.</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
{% include "emoji_modal.html" %}
|
|
{% include "gif_modal.html" %}
|
|
|
|
{% if v.flairchanged %}
|
|
<script>
|
|
const date = new Date({{v.flairchanged}}*1000).toString();
|
|
const text = ` - Your flair has been locked until ${date}`
|
|
document.getElementById('customtitlebody').value += text;
|
|
</script>
|
|
{% endif %}
|
|
|
|
<script defer src="{{'js/settings_profile.js' | asset}}"></script>
|
|
|
|
{% endblock %}
|