Forum Replies Created

Viewing 24 posts - 41 through 64 (of 64 total)
  • Author
  • in reply to: Display User Avatar in Post #46936
     webmaster-sw
    Participant

    @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, C

    Date
    Categories
    Tags
    Comments

    Display post meta on archive listing
    If you want to show meta info in Blog posts listing like Author, Date, Category
    Default: On

    OnOff
    Display post meta in Single post page*
    If enabled it will show post info like author, categories

    OnOff
    Display media on post page
    If you want to show image/gallery/video/audio before the post on single page
    Default: On

    OnOff
    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: On

    OnOff
    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 entry

    OnOff
    Enable custom posts related
    Display related posts in custom post type single entry

     webmaster-sw
    Participant

    @sharmstr I can confirm that it’s the “profile-cover-inner” class that interferes will all links in the buddypress profile meta.

     webmaster-sw
    Participant

    @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.

    in reply to: Display User Avatar in Post #46917
     webmaster-sw
    Participant

    Hello @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 options

    How do we access and enable this feature? I can’t find any references to it in any of the update documentation.

    in reply to: Excessive Resource Consumption – What's going on? #43527
     webmaster-sw
    Participant

    In 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.

    in reply to: Excessive Resource Consumption – What's going on? #43497
     webmaster-sw
    Participant

    Okay, 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 CODE
    function 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' );
    in reply to: Excessive Resource Consumption – What's going on? #43493
     webmaster-sw
    Participant

    Okay 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

    in reply to: Excessive Resource Consumption – What's going on? #43485
     webmaster-sw
    Participant

    @gigidesign

    Okay 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.

    in reply to: Excessive Resource Consumption – What's going on? #43341
     webmaster-sw
    Participant

    @gigidesign

    I 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.

    in reply to: Excessive Resource Consumption – What's going on? #43325
     webmaster-sw
    Participant

    @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.

    in reply to: Excessive Resource Consumption – What's going on? #43270
     webmaster-sw
    Participant

    My 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?

    in reply to: KLEO – Features Requests #42267
     webmaster-sw
    Participant

    @Sharmstr Noooooooo I can’t wait that long!

    Okay fine, what’s the timeline on the next update?

    in reply to: KLEO – Features Requests #42208
     webmaster-sw
    Participant

    @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.

     webmaster-sw
    Participant

    Here 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; ?>
     webmaster-sw
    Participant

    @sharmstr – New development

    Setting the field to URL automatically adds http:// to all links
    Setting the field to Text does not
    But the links don’t work without http://,
    So users must be notified to add http:// to the beginning of all links

     webmaster-sw
    Participant

    @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.

     webmaster-sw
    Participant

    Here’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.

     webmaster-sw
    Participant

    @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.

     webmaster-sw
    Participant

    @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/

     webmaster-sw
    Participant

    As 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.

    in reply to: KLEO – Features Requests #41225
     webmaster-sw
    Participant

    BuddyPress 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.

     webmaster-sw
    Participant

    Let’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; ?>
     webmaster-sw
    Participant

    Hi 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; ?>

    in reply to: KLEO – Features Requests #41119
     webmaster-sw
    Participant

    Social 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.

Viewing 24 posts - 41 through 64 (of 64 total)

Log in with your credentials

Forgot your details?