Show olark for all authenticated users.
parent
3431d70083
commit
fa9f266bb6
|
@ -469,7 +469,7 @@
|
|||
}
|
||||
})();
|
||||
</script>
|
||||
{% if request.user.profile.get_account_age <= 7 or request.user.profile.is_pro %}
|
||||
{% if request.user.is_authenticated %}
|
||||
{% block olark %}
|
||||
<!-- begin olark code -->
|
||||
<script data-cfasync="false" type='text/javascript'>/*<![CDATA[*/window.olark||(function(c){var f=window,d=document,l=f.location.protocol=="https:"?"https:":"http:",z=c.name,r="load";var nt=function(){
|
||||
|
@ -491,7 +491,6 @@
|
|||
/* custom configuration goes here (www.olark.com/documentation) */
|
||||
olark.identify('9104-133-10-2665');/*]]>*/</script><noscript><a href="https://www.olark.com/site/9104-133-10-2665/contact" title="Contact us" target="_blank">Questions? Feedback?</a> powered by <a href="http://www.olark.com?welcome" title="Olark live chat software">Olark live chat software</a></noscript>
|
||||
<!-- end olark code -->
|
||||
{% if request.user.is_authenticated %}
|
||||
<script type="text/javascript">
|
||||
olark('api.visitor.updateEmailAddress', { emailAddress: '{{ request.user.email }}' });
|
||||
olark('api.visitor.updateFullName', { fullName: '{{ request.user.username }}' });
|
||||
|
@ -504,7 +503,6 @@
|
|||
proDate: '{% firstof request.user.profile.pro_date 'null' %}'
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue