an
groups-icon

display cv along with message sent.

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    fred jones
    0 points
    Beginner

    when a person sends a message I want a link to their cv to be included as well.

    just like when you submit a proposal.

    I am guessing as of now and so far I have done this:

    [code title=”class.core.php”]
    // GET AUTHOR
    if($post->post_author == 0){
    $author = ”;
    $user_info = “”;
    }else{
    $user_info = get_userdata($post->post_author);
    $author = ‘<p style=”font-size:11px;”>’.$user_info->display_name.’ ‘.$CORE->_e(array(‘author’,’26’)).’;</p>’;

    $mycv = get_user_meta($user->ID,’mycv’,true);
    if(is_array($mycv) && !empty($mycv)){
    if($userdata->ID && ($userdata->ID == $post->post_author || $userdata->ID == $user->ID ))
    $link = $mycv[‘url’];
    }else{
    $link = “javascript:void(0)\” onclick=’alert(\””.$CORE->_e(array(‘author’,’26’)).”.\”);'”;
    }

    $STRIN1G .= ‘ pdf file ‘.$mycv[‘name’].’‘;
    }

    // NEW MEMBERSHIP FEATURE
    $msgLink = ‘onclick=”WLTChangeMsgStatus(\”.str_replace(“https://&#8221;,””,get_home_url()).’\’, \”.$post->ID.’\’, \’msgAjax\’);” href=”#my’.$post->ID.'” id=”#my’.$post->ID.’_link” data-toggle=”modal” style=”text-decoration:underline;”‘;

    if($GLOBALS[‘current_membership’] != “” && is_numeric($GLOBALS[‘current_membership’]) && is_array($membershipfields) ){

    // DOES THIS MEMBERSHIP ALLOW READ ACCESS?
    if($membershipfields[$GLOBALS[‘current_membership’]][‘can_read’] == “no”){
    $msgLink = “”;
    $msgLink = ‘onclick=”alert(\”.$CORE->_e(array(‘account’,’80’)).’\’);” href=”javascript:void(0);” style=”text-decoration:underline;”‘;
    }

    }
    $STRING .= ‘<tr>
    <td style=”text-align:center”><span class=”label ‘.$bc.'”>’.$txt.'</span></td>
    <td>
    ‘.stripslashes($post->post_title).’
    ID.’;messageDel.submit();” style=”font-size:11px; float:right;”><i class=”glyphicon glyphicon-trash”></i> ‘.$CORE->_e(array(‘button’,’3′)).’‘;

    $STRING .= ‘<div id=”my’.$post->ID.'” class=”modal fade” tabindex=”-1″ role=”dialog” aria-labelledby=”myModalLabel” aria-hidden=”true”>
    <div class=”modal-dialog”><div class=”modal-content”>
    <div class=”modal-header”>
    <button type=”button” class=”close” data-dismiss=”modal” aria-hidden=”true”>×</button>
    <h3><b>’.stripslashes($post->post_title).'</b></h3>
    </div>
    <div class=”modal-body”>
    ‘.$author.’
    ‘.$STRIN1G.’
    <p>’.wpautop(stripslashes($post->post_content)).'</p>
    <textarea id=”msg_content_’.$post->ID.'” style=”display:none;”>

    ————- ‘.hook_date($post->post_date).’ ——————[/code]

    all this does is display the pdf icon in the messages but no link.

    I am a learning soul so I am sure its something obvious.

    December 17, 2014 at 1:16 am
  • John Farrell
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    January 9, 2015 at 5:11 pm
  • fred jones
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    January 9, 2015 at 7:36 pm
  • John Farrell
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    January 10, 2015 at 12:55 pm

351

Views

3

Replies