echo osc_logged_user_name();
?>
</h5>
                                    <h6 style="color:#ffffff; text-align:center; padding-bottom:20px; border-bottom:1px solid #404040;">Member Since <?php 
echo nc_osc_get_logged_user_ref_date();
?>
</h6>
                                    <?php 
echo osc_private_user_menu();
?>
                                </div>                   
                            </div>
                            <div class="col-md-9 col-sm-12 col-xs-12">
                                <div class="col col-xs-4" >
                                    <img src="<?php 
echo nc_osc_get_public_picture_link(osc_user_id());
?>
" class="img-circle">
                                </div>
        
                                <div class="col col-xs-8">
                                    <h3><?php 
_e('Full name', 'classified');
?>
: <?php 
echo osc_user_name();
?>
</h3>
                                    <h6><?php 
_e('Address', 'classified');
?>
Example #2
0
                        <h2><?php 
        _e("Contact publisher", 'modern');
        ?>
</h2>
                        <ul id="error_list"></ul>
                        <?php 
        ContactForm::js_validation();
        ?>
                        <form action="<?php 
        echo osc_base_url(true);
        ?>
" method="post" name="contact_form" id="contact_form">
                            <input type="hidden" name="action" value="contact_post" />
                            <input type="hidden" name="page" value="user" />
                            <input type="hidden" name="id" value="<?php 
        echo osc_user_id();
        ?>
" />
                            <?php 
        osc_prepare_user_info();
        ?>
                            <fieldset>
                                <label for="yourName"><?php 
        _e('Your name', 'modern');
        ?>
:</label> <?php 
        ContactForm::your_name();
        ?>
                                <label for="yourEmail"><?php 
        _e('Your e-mail address', 'modern');
        ?>
Example #3
0
/**
 * Gets user's profile url
 *
 * @return string
 */
function osc_user_public_profile_url($id = null)
{
    if ($id == null) {
        $id = osc_user_id();
    }
    if ($id != '') {
        if (osc_rewrite_enabled()) {
            $user = User::newInstance()->findByPrimaryKey($id);
            $path = osc_base_url() . osc_get_preference('rewrite_user_profile') . "/" . $user['s_username'];
        } else {
            $path = sprintf(osc_base_url(true) . '?page=user&action=pub_profile&id=%d', $id);
        }
    } else {
        $path = '';
    }
    return $path;
}
    function user_info_js()
    {
        $location = Rewrite::newInstance()->get_location();
        $section = Rewrite::newInstance()->get_section();
        if ($location === 'user' && in_array($section, array('dashboard', 'profile', 'alerts', 'change_email', 'change_username', 'change_password', 'items'))) {
            $user = User::newInstance()->findByPrimaryKey(Session::newInstance()->_get('userId'));
            View::newInstance()->_exportVariableToView('user', $user);
            ?>
            <script type="text/javascript">
                var pop = window.pop || {};
                pop.user = {};
                pop.user.id = '<?php 
            echo osc_user_id();
            ?>
';
                pop.user.secret = '<?php 
            echo osc_user_field("s_secret");
            ?>
';
            </script>
            <?php 
        }
    }
Example #5
0
echo calculate_ratings(osc_item_user_id());
?>
;
    $("#act-rating").jRate({
        startColor: '#fff86d',
        endColor: '#fff200',
        shape: 'STAR',
        readOnly: true,
        rating: rate,
        count: 5
      });
  });
  </script>
<a href="#rate_this" class="" data-toggle="modal"><div id="act-rating"></div></a>
<?php 
if (osc_logged_user_id() != osc_user_id()) {
    ?>
<div id="rate_this" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h4 class="modal-title">Rate this Seller</h4>
      </div>
      <form name="ratings" id="ratings" method="post" action="">
        <input type="hidden" name="seller_rating" value="submit_it" />
        <div class="modal-body" style="background-color:#ccc;">
          <div id="ratings" style="padding:15px;">
             <div id="jRate"></div><div id="rating-onchange-value">Your Rating: </div>
             <input type="hidden" name="rating_data" id="rating_data"/>
             <input type="hidden" name="rating_user" id="rating_user" value="<?php 
Example #6
0
                            <?php 
UserForm::name_text(osc_user());
?>
                        </div>
                        <div class="row">
                            <label for="email"><?php 
_e('Username', 'modern');
?>
</label>
                            <span class="update">
                                <?php 
echo osc_user_username();
?>
<br />
                                <?php 
if (osc_user_username() == osc_user_id()) {
    ?>
                                    <a href="<?php 
    echo osc_change_user_username_url();
    ?>
"><?php 
    _e('Modify username', 'modern');
    ?>
</a>
                                <?php 
}
?>
                            </span>
                        </div>
                        <div class="row">
                            <label for="email"><?php 
                <?php 
_e('User profile', 'osclasswizards');
?>
            </h1>
        </div>
        <div class="user-card">

            <figure><img class="img-responsive" src="http://www.gravatar.com/avatar/<?php 
echo md5(strtolower(trim(osc_user_email())));
?>
?s=400&d=<?php 
echo osc_current_web_theme_url('images/default.gif');
?>
" /></figure>
            <?php 
voting_item_detail_user(osc_user_id());
?>
            <ul id="user_data">
                <li class="name">
                    <h3><?php 
echo osc_user_name();
?>
</h3>
                </li>
                <?php 
if (osc_user_website() !== '') {
    ?>
                <li class="website"><a href="<?php 
    echo osc_user_website();
    ?>
"><?php 
Example #8
0
/**
 * Gets user's profile url
 *
 * @return string
 */
function osc_user_public_profile_url($id = null)
{
    if ($id == null) {
        $id = osc_user_id();
    }
    if ($id != '') {
        if (osc_rewrite_enabled()) {
            $path = osc_base_url() . 'user/profile/' . $id;
        } else {
            $path = sprintf(osc_base_url(true) . '?page=user&action=pub_profile&id=%d', $id);
        }
    } else {
        $path = '';
    }
    return $path;
}
Example #9
0
function profile_picture_show()
{
    // Configuration - Your Options ///////////////////////////////////////////////////////
    // Specify display width of picture (height will be automatically calculated proprotionally)
    $maxwidth = '120';
    ////// ***** No modifications below here should be needed ***** /////////////////////
    // First, check to see if user has existing profile picture...
    $user_id = osc_user_id();
    // the user id of the user profile we're at
    $conn = getConnection();
    $result = $conn->osc_dbFetchResult("SELECT user_id, pic_ext FROM %st_profile_picture WHERE user_id = '%d' ", DB_TABLE_PREFIX, $user_id);
    if ($result > 0) {
        $upload_path = osc_plugins_path() . 'profile_picture/images/';
        list($width, $height, $type, $attr) = getimagesize($upload_path . 'profile' . $user_id . $result['pic_ext']);
        // Calculate display heigh/width based on max size specified
        $width = '100';
        $height = '';
        // height is optional. If you use a height, *MAKE SURE* it's proportional to the WIDTH
        $modtime = filemtime($upload_path . 'profile' . $user_id . $result['pic_ext']);
        //ensures browser cache is refreshed if newer version of picture exists
        // This is the picture HTML code displayed on page
        echo '<img src="' . osc_base_url() . 'oc-content/plugins/profile_picture/images/profile' . $user_id . $result['pic_ext'] . '?' . $modtime . '">';
        //  width="'.$maxwidth.'" height="'.$height.'"display picture
    } else {
        echo '<img src="' . osc_base_url() . 'oc-content/plugins/profile_picture/no_picture.jpg">';
        // width="'.$width.'" height="'.$height.'"
    }
}
Example #10
0
function cover_photo_show()
{
    // Configuration - Your Options ///////////////////////////////////////////////////////
    $width = '1200';
    $height = '140';
    // height is optional. If you use a height, *MAKE SURE* it's proportional to the WIDTH
    ////// ***** No modifications below here should be needed ***** /////////////////////
    // First, check to see if user has existing profile picture...
    $user_id = osc_user_id();
    // the user id of the user profile we're at
    $conn = getConnection();
    $result = $conn->osc_dbFetchResult("SELECT user_id, pic_ext FROM %st_cover_photo WHERE user_id = '%d' AND status='approve' ", DB_TABLE_PREFIX, $user_id);
    if ($result > 0) {
        $upload_path = osc_plugins_path() . 'cover_photo/images/';
        $modtime = filemtime($upload_path . 'profile' . $user_id . $result['pic_ext']);
        //ensures browser cache is refreshed if newer version of picture exists
        // This is the picture HTML code displayed on page
        echo '<img class="img-thumbnail" src="' . osc_base_url() . 'oc-content/plugins/cover_photo/images/profile' . $user_id . $result['pic_ext'] . '?' . $modtime . '" width="' . $width . '" height="' . $height . '"/>';
        // display picture
    } else {
        echo '<img class="img-thumbnail" src="' . osc_base_url() . 'oc-content/plugins/cover_photo/no_picture.jpg" width="' . $width . '" height="' . $height . '"/>';
    }
}