Forum Replies Created
-
Author
-
webmaster-swParticipant
@sharmstr Can you be more specific?
All I see is the following options:
Display Meta Fields
What fields do you want displayed? Link fields will only work if BuddyPress is active.
Default: D, C, T, CDate
Categories
Tags
CommentsDisplay post meta on archive listing
If you want to show meta info in Blog posts listing like Author, Date, Category
Default: OnOnOff
Display post meta in Single post page*
If enabled it will show post info like author, categoriesOnOff
Display media on post page
If you want to show image/gallery/video/audio before the post on single page
Default: OnOnOff
Get Featured image from content
If you have not set a Featured image allow the system to show the first image from post content on archive pages
Default: OnOnOff
Default Featured Image Placeholder
If your post does not have a Featured image set then show a default image on archive pages.Upload
Enable related posts*
Display related posts in single blog entryOnOff
Enable custom posts related
Display related posts in custom post type single entryFebruary 21, 2015 at 00:39 in reply to: how to display social networks to buddypress member profile #46935webmaster-swParticipant@sharmstr I can confirm that it’s the “profile-cover-inner” class that interferes will all links in the buddypress profile meta.
February 21, 2015 at 00:31 in reply to: how to display social networks to buddypress member profile #46934webmaster-swParticipant@sharmstr The Buddypress cover photo knocks out the social icons on Buddypress profiles, and I haven’t been able to solve it using z-index
I am still using my original verbose code.
Let me know if you have the same problem.
webmaster-swParticipantHello @sharmstr
I have updated the Kleo theme to v2.4, which states this:
– NEW FEATURE: Added avatar and links to author meta with the ability to control display using theme optionsHow do we access and enable this feature? I can’t find any references to it in any of the update documentation.
webmaster-swParticipantIn this next chapter, resource usage has been around 50% for most of the day, but has now climbed to 150%.
I’ve enabled http:BL plugin in order to automatically block all IPs profiled as dangerous in Project Honey Pot. This way I won’t have to manually update the htaccess file.
Will this final tool keep me from having to upgrade to VPS?
Find out tomorrow.
webmaster-swParticipantOkay, I did some web searches and found this child theme function that seems to have knocked out all the spam IP calls, without breaking the Activity stream, update posting, or login form:
COPY CODEfunction my_deregister_heartbeat() { global $pagenow; if ( 'post.php' != $pagenow && 'post-new.php' != $pagenow ) { wp_deregister_script('heartbeat'); wp_register_script('heartbeat', false); } } add_action( 'admin_enqueue_scripts', 'my_deregister_heartbeat' );
webmaster-swParticipantOkay it turned out the ZB Block was causing the admin-ajax 503 errors and blocking my access to the dashboard. I deleted ZB Block and eliminated the php to get access back to my site.
I reinstalled and renabled heartbeat at 60 seconds, disabled on the dashboard.
CPanel’s Last Visitor logs is showing I have lots of admin-ajax.php calls, and P3 Plugin Profiler has finished scanning and shows all my resource consumption is Buddypress Media – admin-ajax.php calls.
My IP isn’t showing up on the Last Visitors list calling admin-ajax.php which means the Heartbeat Control plugin set to Disable Dashboard is working, but the interval specified (60 seconds) is not.
Talked to the host and because the wp-login form uses admin-ajax.php to let our users login, the recommendation was to monitor IPs and blacklist them. BRUTAL
webmaster-swParticipantOkay some new developments.
My front page is back up, but access to wp-admin and wp-login result in 503 errors.
So I used the menu login, and the Firebug error count just started going up rapidly. It was admin-ajax.php calls, 4 times per second. In cpanel, my visitor log showed me the same type of long list of admin-ajax.php calls that I had previously seen with the Googlebot call.
I still have ftp access so I used it to delete Heartbeat Control, but it’s not helping.
I’m working with the webhost, but I’m lost.
webmaster-swParticipantI took your advice and dumped Cloudflare, and installed ZB Block. Once the Cloudflare IP masking was removed, I was able to determine that the majority of calls were from Googlebots, so I used Webmaster Tools to make the crawl rate the lowest possible. Turns out it wasn’t being logged into the dashboard that was overdriving the admin-ajax.php, it was robots.
Now I’m looking at the logs and I’m seeing single IP addresses scraping massive numbers of featured images in a short time period. At first I thought I just had the Related Articles set to show 100 on posts, but now I see it’s something more devious.
This is all very new to me.
I also doublechecked my WP Super Cache and it says I have 7 cached pages. So obviously I don’t have the settings very aggressive.
webmaster-swParticipant@gigidesign You know what, you actually have given me something to think about.
I am using BP Security Check, Limit Login Attempts, and WangGuard. I have a feeling it might be WangGuard. The WangGuard specifically eliminated spam signups, but may have accelerated the server calls.
I’m also looking through the logs and the majority of the last 1000 records are a Cloudflare Europe address repeatedly calling admin-ajax.php, so we have a Heartbeat issue. I just counted and it’s over 40 calls in a single minute. That means Heartbeat Control isn’t doing what it’s supposed to be doing.
webmaster-swParticipantMy bandwidth usage is minimal. It’s something in the frequency of server calls and how much processing is done by the server that is causing the suspensions.
So here are some explicit questions:
1. What are your recommended heartbeat settings?
2. What are your recommended W3 Total / WP Super Cache settings?
3. What is the shortest list of cached pages to exempt in order to ensure the social networking features are still useable?
4. Is this theme only viable for VPS users?
webmaster-swParticipant@Sharmstr Noooooooo I can’t wait that long!
Okay fine, what’s the timeline on the next update?
webmaster-swParticipant@sharmstr Your author avatar / messaging / more posts presentation looks awesome!
I saw code for just the author in the post your linked.
Do you have code finished for the above attachment? I have figured out why my child theme wasn’t working previously and am excited to make php improvements now.
January 11, 2015 at 16:53 in reply to: how to display social networks to buddypress member profile #41688webmaster-swParticipantHere is my final code, inserted on line 23.
The field=name is the name of the Profile Field, and can be customized. The icon name cannot.COPY CODE<?php if ( $data = bp_get_profile_field_data( 'field=facebook' ) ) : ?> <a href="<?php bp_profile_field_data('field=facebook');?>" target="_blank"> <i class="icon-facebook"></i></a> <?php endif; ?> <?php if ( $data = bp_get_profile_field_data( 'field=twitter' ) ) : ?> <a href="<?php bp_profile_field_data('field=twitter');?>" target="_blank"> <i class="icon-twitter"></i></a> <?php endif; ?> <?php if ( $data = bp_get_profile_field_data( 'field=instagram' ) ) : ?> <a href="<?php bp_profile_field_data('field=instagram');?>" target="_blank"> <i class="icon-instagramm"></i></a> <?php endif; ?> <?php if ( $data = bp_get_profile_field_data( 'field=tumblr' ) ) : ?> <a href="<?php bp_profile_field_data('field=tumblr');?>" target="_blank"> <i class="icon-tumblr"></i></a> <?php endif; ?> <?php if ( $data = bp_get_profile_field_data( 'field=youtube' ) ) : ?> <a href="<?php bp_profile_field_data('field=youtube');?>" target="_blank"> <i class="icon-youtube"></i></a> <?php endif; ?> <?php if ( $data = bp_get_profile_field_data( 'field=flickr' ) ) : ?> <a href="<?php bp_profile_field_data('field=flickr');?>" target="_blank"> <i class="icon-flickr"></i></a> <?php endif; ?> <?php if ( $data = bp_get_profile_field_data( 'field=pinterest' ) ) : ?> <a href="<?php bp_profile_field_data('field=pinterest');?>" target="_blank"> <i class="icon-pinterest-circled"></i></a> <?php endif; ?> <?php if ( $data = bp_get_profile_field_data( 'field=vimeo' ) ) : ?> <a href="<?php bp_profile_field_data('field=vimeo');?>" target="_blank"> <i class="icon-vimeo"></i></a> <?php endif; ?> <?php if ( $data = bp_get_profile_field_data( 'field=googleplus' ) ) : ?> <a href="<?php bp_profile_field_data('field=googleplus');?>" target="_blank"> <i class="icon-gplus"></i></a> <?php endif; ?>
January 11, 2015 at 16:26 in reply to: how to display social networks to buddypress member profile #41683webmaster-swParticipantJanuary 11, 2015 at 00:33 in reply to: how to display social networks to buddypress member profile #41619webmaster-swParticipant@sharmstr Your response was half-way to the solution.
Similar to having the users only enter their facebook name, the original @giannisff code only works if the Field Type is set to Text Box, NOT to URL.
This is the key component that was missing from this thread.
January 10, 2015 at 23:02 in reply to: how to display social networks to buddypress member profile #41613webmaster-swParticipantHere’s the HTML generated by the original php provided by giannisff
COPY CODE<a rel="nofollow" sitename"="" www.facebook.com="" http:="" href="<a href=">www.facebook.com/username</a> " target="_blank"> <img alt="***name" src="http://yoursite.com/wp-content/images/icons/***nameimage.png">
and here’s the result posted by the html:
http://www.facebook.com/username ” target=”_blank”>
The first string is linked to “a href” and the second is pure text.
January 10, 2015 at 22:48 in reply to: how to display social networks to buddypress member profile #41611webmaster-swParticipant@sharmstr Thank you sir, I will give that a shot.
Okay, I have confirmed that the code posted by @giannisff does not work, and not just because of the quotation marks.
The issue is that the <?php bp_profile_field_data(‘field=***name’);?> appears to already carry with it the a href attribute, meaning that typing a href=”<?php bp_profile_field_data(‘field=***name’);?>” target=”_blank” gives you a fully functioning link ( a link to path/a href), plus a target=”_blank” text string at the end. And then of course the img or icon tag are not at all tied to the link.
For example, it is necessary to remove the a href and /a sections of the code, as below, to eliminate the text strings:
COPY CODE<?php if ( $data = bp_get_profile_field_data( 'field=facebook' ) ) : ?> <?php bp_profile_field_data('field=facebook');?><img src="your-image.png"> <?php endif; ?>
This gives me a fully functioning link sitting beside the icon. Unfortunately based on my limited familiarity with php, I have no idea how to style the link or apply any sort of target attribute.
January 10, 2015 at 21:44 in reply to: how to display social networks to buddypress member profile #41606webmaster-swParticipant@sharmstr I have begun working on integrating the social icons onto member profiles.
I have coded the member-header.php file appropriately.
Are you able to list the specific procedures required to replace the existing member-header.php file using the child theme? Simply copying member-header.php into the /kleo-child directory has no effect, nor into kleo-child/buddypress/members/single/
January 8, 2015 at 18:14 in reply to: how to display social networks to buddypress member profile #41339webmaster-swParticipantAs an added bonus, I’ve also hidden the entire text link area on profiles using
COPY CODE.bp-widget.name-of-the-profile-group { display: none; }
@sharmstr I haven’t been able to get any of the child theme php files to be read, so I’ve had to deprioritize the task for now. When I complete work on that, then I will update this thread with my results.webmaster-swParticipantBuddyPress Profile Link as Author
Here’s another quick feature which would make a lot of sense:
Option to redirect Author link away from “See more posts by this author” to “/Buddypress Profile/Author”, and author thumbnail
Right now, then only way to message or friend an author is to copy their name off the article, copy it into Search, wait for the AJAX “Members” drop down to load their profile, and then click to their profile. Or to paste it into Members Directory.
There should be a direct link on articles.
January 7, 2015 at 06:43 in reply to: how to display social networks to buddypress member profile #41149webmaster-swParticipantLet’s try that again:
COPY CODE<?php if ( $data = bp_get_profile_field_data( ‘field=facebook’ ) ) : ?> <a href=”http://facebook.com/<?php bp_profile_field_data(‘field=facebook’);?>” target=”_blank”> <i class="icon-facebook"> </a> <?php endif; ?>
January 7, 2015 at 06:41 in reply to: how to display social networks to buddypress member profile #41148webmaster-swParticipantHi there @giannisff
I modded your code to use usernames instead of full html URLs and to use the existing CSS from the top menu, but I don’t know enough about php to get the syntax correct. Can you comment with the correct syntax?
<?php if ( $data = bp_get_profile_field_data( ‘field=facebook’ ) ) : ?>
” target=”_blank”>
<i class=”icon-facebook”>
<?php endif; ?>webmaster-swParticipantSocial Icon Links on BuddyPress profile pages
It’s weird that there aren’t social networks baked in to the Profile Fields.
I am making them myself, but they are very clunky.For example, the only available format is:
Social Network socialnetwork.com/username
Additionally, the link titles aren’t editable to eliminate the ‘socialnetwork.com/’, and there’s no control to keep users from entering a link to the incorrect social network into each field.
I am going to have to hide the labels & reassign all links to one line using CSS, and replace the links with javascript to prevent loss of code on theme updates. This will not protect each link from going to the wrong network, but it is a start.
-
AuthorPosts