Forum Replies Created
-
Author
-
hughmParticipant
I am using the above code to try and redirect first time log-ins to the change-avatar page. I tried the following code but it did not work. Am I making a syntax mistake?
return ‘/USERNAME/profile/change-avatar/’;
I used some code in my functions.php file to change the path of member profiles to get rid of “members” and display at the root of the url.
hughmParticipantHello,
Just wondering when the new version of Sweet Date will be released?
Looking forward to it. Thanks!hughmParticipantI tested this out and all works well except after you have photos in both albums, when you click the My Work or My Photos tabs in a user profile, all of the photos from both RTMedia and BP Album display on top of each other.
hughmParticipantLooks like the following addition gets rid of the home page image”
remove_action(‘wp_head’, ‘kleo_home_page_image’, 9);
hughmParticipantThanks for the code. It works, except my home page image still appears in miniature up in the header. I am not using the slider but instead am using an image. Although I may use the slider down the road. Could you help me with adding a line to remove the image. Thanks!
hughmParticipantI think the header is ok as is. The problem is that my homepage uses the Front Page Template which has the header embedded into the search and image content along with the footer. So the entire homepage comes in as one big image.
I probably need to figure out how to reconstruct the homepage apart from this front page template so that the header, content, and footer are called separately. That way my verification link will be able to pull just the header and then put the message beneath it without getting the entire home page.hughmParticipantThanks for the link. I already looked at the tutorial and it doesn’t actually help. But nice idea.
The problem is that the SweetDate Front Page Template when you look at it in Firebug or any inspector, does not have a separate header. They get the header and footer in the template file so it all becomes one image on the home page. So when Gravity Forms directs the new user verification email link to your site, it tries to call the header which normally is just the top header bar, and instead it gets your entire homepage. And the “Your Account is Now Active” message appears beneath this off the screen.
So I was trying to either redirect the gravity forms verification link to a separate page with a standard header or possibly reconstruct the home page so that a header does exist, so that the link works as intended.
hughmParticipantThanks for the link. I already looked at the tutorial and it doesn’t actually help. But nice idea.
The problem is that the SweetDate Front Page Template when you look at it in Firebug or any inspector, does not have a separate header. It is all one image. So when Gravity Forms directs the new user verification email link to your site, it tries to call the header which normally is just the top header bar, and instead it gets your entire homepage. And the “Your Account is Now Active” message appears beneath this off the screen.
So I was trying to either redirect the gravity forms verification link to a separate page with a standard header or possibly reconstruct the home page so that a header does exist, so that the link works as intended.
hughmParticipantThanks a lot. That works great!
Yes, lots of errors. I couldn’t get the code to show correctly so I ended up removing the apostrophes that were getting converted to the html values for some reason. In any case, all sorted. Thanks again for the great support and the great theme. Awesome!
hughmParticipantActually decided on a better way. I copied the function sweetdate_entry_meta from the Sweetdate functions.php file into the sweetdate-child/functions.php file. I rearranged the category list items to make the author display first before the date, category, and comments links. What makes sense to me is to have the author link go to the author/member profile (bridging the gap between wordpress and buddypress).
I found some code to accomplish this in the BP default theme but couldn’t get it to work. Mind taking a look?
COPY CODE$author = sprintf( <a href="%1$s" title="%2$s" rel="author">%3$s</a>, esc_url( bp_core_get_userlink( $post->post_author ) ), esc_attr( sprintf( __( View all posts by %s, kleo_framework ), get_the_author() ) ), get_the_author() );
hughmParticipantThe above code does work and displays the user avatar nicely but the link from the avatar image does not work. When you click it does not take you to the profile page. Any ideas why?
hughmParticipantI found the template file (sweetdate/content.php) and was able to copy it to my child theme and change the H2 tags to work for me. So this one is solved.
hughmParticipantA small issue. I have tried using the SweetDate shortcode to display blog posts in a column on a page but am unable to style the H2 and margins. I also tried dropping the Sweetdate shortcode into a widget and then using the Widget Shortcode plugin to insert it on a page. The styling above only seems to work if it is in a widget on a sidebar. Can you give me a hand in styling the blog posts on a page using either of the above options.
Thanks!hughmParticipantI’ve tried the above code and it isn’t working for me. In Firebug it looks like the function adds space to the div class=”item-desc” but I can’t make the excerpt appear with more than 2 lines. I can reduce it down to nothing with your code but cannot add to the excerpt.
Here is the site if you want to take a look: http://www.uberon.net/groupsIs it possible to edit the groups-loop.php to adjust the excerpt length?
<div class=”item-desc”><?php bp_group_description_excerpt(); ?></div>
hughmParticipantThanks. That works for me. I was able to put the short-code into a widget and then style it as you described above.
One curiosity, I notice that most themes do not include the author avatar in the blog post nor are they able to link back to the author profile from the author link on each blog post. Is this because WordPress is not integrating with Buddypress? The only theme that I have seen that shows the author avatar is the Buddypress default theme.
Any way to put the avatar into a blog post, perhaps in a future release?
Thanks again for the solution to the widget blog formatting!
hughmParticipantOops. Forgot to move the closing H2 tag to the end also. I think this works:
<h2 style=”display: inline;”><?php _e( ‘Groups Directory’, ‘buddypress’ ); ?><?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> “><?php _e( ‘Create a Group’, ‘buddypress’ ); ?><?php endif; ?></h2>
hughmParticipantI am trying to add length to the group excerpts on the Group Directory page. I tried the above code in my sweetdate-child/functions.php file and it did not work. Is this code still valid?
I am also modifying the group-loop.php file in my sweetdate-child/groups folder. Can I set the excerpt length here (around line 37)?
<div class=”item-desc”><?php bp_group_description_excerpt(); ?></div>
hughmParticipantAnd one follow up question related to above shortcode formatting:
Is it possible to format the blog post headers in the shortcode. I am using the blog shortcode in a few different sidebars throughout my site and I would like the header to display as H4 in the sidebar and then at the default H2 in the main blog.
Thanks!
hughmParticipantI am able to hide the profile tab but cannot get the Album tab to go away with the above code. Here is what I am using per above recommendations:
/**
* Hides the Profile tab in member profile pages
*/
function my_remove_profile_nav() {
global $bp;
if (!bp_is_my_profile()) {
bp_core_remove_nav_item( ‘profile’ );
}}
add_action( ‘bp_setup_nav’, ‘my_remove_profile_nav’ );// Remove album menu tab in member profile
function my_remove_album_nav() {
if (!bp_is_my_profile()) {
remove_action( ‘bp_setup_nav’, ‘bp_album_setup_nav’ );
}}
add_action( ‘bp_setup_nav’, ‘my_remove_album_nav’, 9 );Thanks for taking a look!
hughmParticipantSorry about that. I didn’t see the new code there. That works!!! The input[type=”text”] was the missing piece of the puzzle.
Looks great. Thanks a lot!!!hughmParticipantThanks for the feedback. I will test out the widget-shortcodes tomorrow. Any recommended Activity Feed plugins that work well with this theme? I currently am using Buddypress Sitewide Activity Widget.
Thanks again.hughmParticipantI tried the CSS with the addition you mentioned and the number still displays. Here is the code I am using.
.greenCircle {background: rgba(0, 0, 0, 0)!important;
border:none !important;
color:transparent;
}If I add “!important” to the “color:transparent” code it gets rid of the problem but also hides the match number that I want to display.
Thanks for your attention to this detail.
hughmParticipantThanks. I still can’t get this figured out. If I change the color then both the number that flashes to the left of “match” and the final match number change to that color. Without any CSS the first unwanted number that flashes appears in black non-bold and then the match meter calculates and the final same number appears in bold white. If I change the color in CSS to blue, both numbers appear non-bold blue.
I can give you a login to check it out if you are curious. I will keep messing with it today and test on another machine in different browsers to see if I can figure it out.
Thanks for the ongoing support!hughmParticipantThanks again for pointing me down the right path. The file I needed to edit was the general-login-modal.php file but it was in the folder that you led me to. For posterity here are the steps:
1. Copy the general-login-modal.php file from the sweetdate/page-parts folder into the same folder structure in the sweetdate-child folder.
2. On the same line, change the <a href=”#” to your new registration page. For example <a href=”http://mysite.com/registration-form”
4. Also remove the term: data-reveal-id=”register_panel” so that you go straight to your custom registration page.hughmParticipantThanks for pointing me in the right direction. I had to play around with it a bit but managed to get the Sign Up button to redirect. Here are my steps in case someone else is trying to do the same:
To redirect the Sign Up button on the home page to a custom registration page:
1.Copy the header.php file from the Sweetdate theme folder to the sweetdate-child folder
2.Search for the term “Sign Up” or find the code around line 138
3.On the same line, change the <a href=”#” to your new registration page. For example <a href=”http://mysite.com/registration-form”
4. Also remove the term: data-reveal-id=”register_panel” so that the login panel does not display and you go straight to your custom registration page.I am working on changing the Create a New Account button in the Login Panel to also redirect to the custom registration page. Could you point me to the php file with this code.
Thanks!hughmParticipantAlmost there. The modified code gets rid of the white box completely. Only the match number still appears in black for a brief moment directly to the left of the word “match” just before executing the matching percentage meter.
I will mess with this some more tomorrow but if you know a quick fix then I would appreciate it.
Thanks again!hughmParticipantI added the above code to the Quick css but it didn’t work. I don’t have any type of caching plugin working. Could that be the reason? The box doesn’t seem to appear on profiles that I have already visited.
hughmParticipantThanks a lot. Using CSS is much better than putting in empty png files into the sweetdate/assets/images folder. Much cleaner and will not need to be redone when updates to the theme are made. Thanks again!
hughmParticipantSorry for the confusion. The old heart image must have been cached in my browser.
So what I mentioned above worked. I replaced the heart image .png files (heartsbg@2x & hearts_bg) at Sweetdate/assets/images and the hearts no longer display.I am not sure if it is better to change the name of the files so that it simply doesn’t read the hearts image or to replace them with blank png files?
Also, best practice might be to create a folder structure in the childtheme (sweetdate-child/assets/images) and put the modified images there but when I tried this it didn’t work and the hearts still display above the match meter.hughmParticipantI have the same question as kendollmix above. The article that you references is great and I used the code in my child theme functions.php to modify my site. But I still have the same question regarding removing only the hearts graphic from the Match function on the member profiles, and not the entire matching function.
I found the graphics in Sweetdate/assets/images (heartsbg@2x & hearts_bg) but when I change the images to empty png files and uploaded them to the same location on the server the heart graphic still remains.
Am I missing something? Probably 🙂hughmParticipantThanks very much for this fix. It works great. I will remove it after the next theme upgrade.
Much obliged!!!!! -
AuthorPosts