Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • in reply to: improvements of the messaging feature #7469
     aztlanla
    Participant

    I am running Sweetdate v2.2. I checked developer mode on IE 10, FF and the latest Chrome. I don’t see any errors.

    I did an inspect on the Private message button. I pasted it below.

    COPY CODE
    
    <a href="#TB_inline?width=300&height=310&inlineId=create-private-message-ux" title="Send a private message to mrodriguez">Private Message</a>
    
    <div id="create-private-message-ux" style="display:none"><form action="" name="private-message-form-ux" id="private-message-form-ux" method="post" class="standard-form"><label for="private_message_subject">Subject</label> <input type="text" size="41" maxlength="50" name="private_message_subject" id="private_message_subject"><br><br><label for="private_message_content">Message</label><br><textarea name="private_message_content" id="private_message_content" rows="10" cols="52"></textarea><br><br><input type="hidden" name="private-message-hidden" value="1"><input name="private_message_send" id="private_message_send" type="submit" class="button button-primary" value="Send Message"><input type="hidden" id="_wpnonce" name="_wpnonce" value="4b60108083"><input type="hidden" name="_wp_http_referer" value="/members/mrodriguez/"></form></div>
    
    
    in reply to: Show Online Status #6560
     aztlanla
    Participant

    Those are the same quotes I have throughout the members-header.php.
    I deleted the single quotes and typed them in again, they look exactly the same.

    Here is the whole line

    COPY CODE
    
    <?php if (kleo_is_user_online(bp_displayed_user_id())) { echo '<button type="button" onclick="javascript:jqcc.cometchat.chatWith('<?php echo bp_displayed_user_id() ?>');">Instant Message</button>'; } else { echo "Offline"; } ?>
    

    Here is the error that comes up on the page.

    COPY CODE
    
    Parse error: syntax error, unexpected '?' in /wp-content/themes/sweetdate-child/members/single/member-header.php on line 51
    
    in reply to: Show Online Status #6473
     aztlanla
    Participant

    I had tried that before, maybe I’m not escaping it correctly.

    Here’s the code I used.

    COPY CODE
    
    echo '<button type="button" onclick="javascript:jqcc.cometchat.chatWith('<?php echo bp_displayed_user_id() ?>');">Instant Message</button>';
    

    I had it placed in place of echo-ing the online status, but it does not work. I get the page to error out.

    in reply to: Site on mobile phone squished #6468
     aztlanla
    Participant

    I got it to work using the code below, now the banners resize when on mobile site.

    COPY CODE
    
    <center>
    <style type="text/css">
    .adslot_1 { width: 320px; height: 50px; }
    @media (min-width:500px) { .adslot_1 { width: 468px; height: 60px; } }
    @media (min-width:800px) { .adslot_1 { width: 728px; height: 90px; } }
    </style>
    
    <script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <ins class="adsbygoogle adslot_1" style="display:inline-block;" data-ad-client="ca-pub-123456" data-ad-slot="123456"></ins>
    <script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
    </center>
    

    Don’t forget to change the ca-pub and ad-slot.

    in reply to: Show Online Status #6374
     aztlanla
    Participant

    Thanks I was able to get the Online status to work under profile.

    I edited this file

    /wp-content/themes/sweetdate-child/members/single/members-header.php

    and added

    COPY CODE
    
    <?php if (kleo_is_user_online(bp_displayed_user_id())) { echo '<FONT COLOR="black"><b>Online</b></FONT>'; } else { echo "Offline"; } ?>
    

    right above

    COPY CODE
    
    <div class="row">
    

    But still can’t get the chat button to appear if online and disappear if offline.

    in reply to: Cometchat chat link in profile #5304
     aztlanla
    Participant

    I got these both to work.

    Text Link

    COPY CODE
    
    <a href="void(0)">');">Chat with me</a>
    

    Button Link

    COPY CODE
    
    <button type="button" onclick="javascript:jqcc.cometchat.chatWith('<?php echo bp_displayed_user_id() ?>');">Chat with me</button>
    

    Thanks

Viewing 6 posts - 1 through 6 (of 6 total)

Log in with your credentials

Forgot your details?