Forum Replies Created
-
Author
-
aztlanlaParticipant
You are correct. After disabling every plugin, I finally found the culprit. It was “BuddyPress Friends On-line (FOL)” After disabling it, the search worked fine. I checked the plugin support site and it hasn’t been updated in a year. It was reported 6 months ago on the plugin support site.
Thanks
aztlanlaParticipant< ?php bp_head(); ?> was not there. I added it right before < ?php wp_head(); ?> and cleared the cache on my browsers. I tried the private message button, but it did not work.
aztlanlaParticipantI 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>
aztlanlaParticipantThey had me switch to the Twenty Thirteen theme and I tested the bp-profile-message-ux free and it worked fine. I then switched back to Sweetdate Child and I click on the private message button and nothing happens.
I’m running WP 3.6.1 BuddyPress 1.8.1
aztlanlaParticipantThat worked for me. It hides all the bottom navs for everyone, except for logged in user.
aztlanlaParticipantThose 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 CODEParse error: syntax error, unexpected '?' in /wp-content/themes/sweetdate-child/members/single/member-header.php on line 51
aztlanlaParticipantI had tried that before, maybe I’m not escaping it correctly.
Here’s the code I used.
COPY CODEecho '<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.
aztlanlaParticipantI 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.
aztlanlaParticipantGo to Users | Profile Fields | and edit the name field. Call it Nickname. Then add a new field and call it Name and make it required and field type text box. Set Default visibility Admins Only. Then adjust Per-Member Visibility to your liking. That should let you hide the Name.
aztlanlaParticipantThanks 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.
aztlanlaParticipantI couldn’t get the text link to come out using pre or code. I guess you can look at the button code and figure out the text code.
aztlanlaParticipantI 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
aztlanlaParticipantThis is where I got the code from
http://www.cometchat.com/answers/how-do-i-add-a-chat-link-in-profile-pages/I was not able to paste it in this post. Not sure what the escape codes are.
aztlanlaParticipantI was trying the paste the code and ran out of edits. Trying again in a reply.
[code language=”javascript”]
Chat with me
[/code]aztlanlaParticipantI was able to place the banner code near the bottom of the header.php file.
I put it right before this line.
“<div class=”row just-after-header”>”
October 25, 2013 at 20:44 in reply to: Show username in Members directory instead of full name #5133aztlanlaParticipantThe plugin worked, usernames only in members directory now.
Thanks gideon1210
October 24, 2013 at 23:50 in reply to: Show username in Members directory instead of full name #5072aztlanlaParticipantI tried the code and it didn’t work for me. The full name was still listed under the members directory.
-
AuthorPosts