Forum Replies Created
-
Author
-
webmaster-swParticipant
My apologies, I can confirm I was using 3.0.7
I have disabled all plugins excluding PMPro, and as well the buddypress privacy code that I added to my child theme functions.php has stopped working as well, as follows:
There’s something new in the system that is blocking my paywall code.
COPY CODE/* Private Groups, Forums, Forum Posts */ function bp_guest_redirect() { global $bp; if ( bp_is_activity_component() || bp_is_groups_component() || bbp_is_single_forum() || bp_is_forums_component() /*|| bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG )*/ ) { // enter the slug or component conditional here if(!is_user_logged_in()) { // not logged in user wp_redirect( get_option(‘siteurl’) . ‘/membership-account/membership-levels/’ ); } // user will be redirect to any link to want } }
July 20, 2015 at 23:45 in reply to: Posts Page – Display Type: Standard – Php to make images links #69170webmaster-swParticipantIf anyone is looking for the solution, here it is. I just copied the php from the text link above the image to the image.
The changes are made to the content.php file, which can be placed directly into the /Kleo-Child directory.
Original code (lines 38-40) :
COPY CODE<div class="article-media"> <?php echo kleo_get_post_thumbnail( null, 'kleo-full-width' );?> </div>
New code:
COPY CODE<div class="article-media"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'kleo_framework' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo kleo_get_post_thumbnail( null, 'kleo-full-width' );?></a> </div>
webmaster-swParticipant@sharmstr Upgraded to KLEO v2.4.3 and author avatars are gonzo.
Any info on what happened?
VC is at 4.3.5, WordPress is 4.2.
Post meta included “Author Avatar”
Here’s my html for blog page, posts page, and archives:
COPY CODE<div class="article-meta"> <span class="post-meta"> <small class="meta-links"> <a href="http://www.temp.com/members/kyle/"> <i class="icon-user-1 hover-tip" data-placement="top" data-toggle="tooltip" data-original-title="View profile"></i> </a> <a href="http://www.temp.com/members/me/messages/compose/?r=kyle&_wpnonce=61c36a22fd"> <i class="icon-mail hover-tip" data-placement="top" data-toggle="tooltip" data-original-title="Contact Kyle"></i> </a> <a href="http://www.temp.com/author/kyle-the-photographer/"> <i class="icon-docs hover-tip" data-placement="top" data-toggle="tooltip" data-original-title="View all posts by Kyle"></i> </a> </small> , <small> <a class="post-time" rel="bookmark" href="http://www.temp.com/2015/04/post-32915/"> <time class="entry-date" datetime="2015-04-24T15:56:01+00:00">April 24, 2015</time> <time class="modify-date hide hidden updated" datetime="2015-04-24T15:56:01+00:00">April 24, 2015</time> </a> </small> , <small class="meta-category"> <a rel="category tag" href="http://www.temp.com/category/gallery/">Gallery</a> </small> , <small class="meta-comment-count"> <a href="http://www.temp.com/2015/04/post-32915/#comments"> </small> </span> <span class="edit-link"> </div>
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' );
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 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 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.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; ?>
-
AuthorPosts