<?php echo osc_user_public_profile_url(osc_item_user_id()); ?>
if (osc_is_web_user_logged_in() && ($userId = osc_logged_user_id())) {
osc_get_osclass_location();osc_get_osclass_section();
@siken:here you go Code: [Select] if (osc_is_web_user_logged_in() && ($userId = osc_logged_user_id())) {
@sikenIn some cases, it may be useful to use instead functions:Code: [Select]osc_get_osclass_location();osc_get_osclass_section();
if(osc_get_osclass_location() == 'user' && osc_get_osclass_section() == 'profile') { ... }
<script> $('input[name="sPhone"]').keyup(function(e) { if (/\D/g.test(this.value)) { // Filter non-digits from input value. this.value = this.value.replace(/\D/g, ''); }});</script>
Can someone tell me what is the advantage of loading the script in the footer besides the fact that you don't have to change 3 files every time after an update and only have to update the footer...Anyway, the script only loads when the user_profile page is opened and that page can only be viewed by the user himself....I am confused Code: [Select]<script> $('input[name="sPhone"]').keyup(function(e) { if (/\D/g.test(this.value)) { // Filter non-digits from input value. this.value = this.value.replace(/\D/g, ''); }});</script>