Forum Replies Created
-
Author
-
nusolutionsParticipant
The site shows different views for visitors and logged in users.
URL: http://beautyugly.com
URL: http://beautyugly.com/home-users/tia
nusolutionsParticipantAlso tried to add an image carousel using this code:
[kleo_restrict type="user"][vc_images_carousel onclick="custom_link" custom_links_target="_blank" speed="5000" autoplay="yes" hide_pagination_control="" hide_prev_next_buttons="" scroll_fx="scroll" css_animation="fade" min_items="1" max_items="1" img_size="468x90" custom_links="http://cancerbu.org,http://sexyryders.com,http://nuryders.com" images="2880,3457,3456"][/kleo_restrict]
I have it working on a page but can’t get it working in the header. Works here: http://beautyugly.com/home-users/
The other problem is that I specified the size for the images to be 468×90 and it shows the full width.Also can’t figure out why my pages are accessible How do I prevent my pages from being seen? Like the one above.
nusolutionsParticipantAhhh! I think that page demo is what reshaped my original idea which was to use a single image next to the registration form. Be nice to simply add a text layer to a revslider and paste the code used on that home page. When doing this all I get is a blank white page.
Maybe this should be a feature request as you already have the ability to display a video as a background. If you can select a slider and that slider is set to display multiple slides containing videos and images then it’s a wrap!
Either way I appreciate the response and will prolly use a slider in that area next to the form and see how it goes from there. This way I get half of what I want.thanks
nusolutionsParticipantSo if you look at this site:
http://beautyugly.comIn the main section where you see the registration form and that image I want that entire reddish area to be a rotating image.
Also it looks like next week on the release for the profile feature so thanks for the link.
nusolutionsParticipantMaybe not a big deal to many but just noticed that if you opt to disable to Page Title Location for Buddypress pages you loose site of the Create a group link. To show this link I have chose to enable the title to the Breadcrumb area. Since it’s a BP option not sure if it would be possible, or even worthwhile, to have an option to show certain items, say that create a group link while disabling page titles, without having to add extra code.
nusolutionsParticipantScreenshot of profile fields.
Attachments:
You must be logged in to view attached files.nusolutionsParticipantNope! Keeping it simple and only using About, Favorites, Photos. I’ve attached a screenshot of my profile fields and pasted code from child functions page below. Please tell me what specifically needs to be changed as I still can’t get this to work.
COPY CODE<?php /** * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <themesupport@seventhqueen.com> * @since Sweetdate 1.0 */ /** * Sweetdate Child Theme Functions * Add extra code or replace existing functions */ //Profile tabs add_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); $bp_tabs['About'] = array( 'type' => 'regular', 'name' => __('About', 'kleo_framework'), 'group' => 'About', 'class' => 'regulartab' ); $bp_tabs['Favorites'] = array( 'type' => 'cite', 'name' => __('Favorites', 'kleo_framework'), 'group' => 'Favorites', 'class' => 'citetab' ); /* rtMedia tab - only if plugin installed */ if (class_exists('RTMedia')) { $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('Photos', 'kleo_framework'), 'class' => 'mySlider' ); } /* Bp-Album tab - only if plugin installed */ elseif (function_exists('bpa_init')) { $bp_tabs['bp-album'] = array( 'type' => 'bp_album', 'name' => __('My photos', 'kleo_framework'), 'class' => 'mySlider' ); } } ?>
tia
January 2, 2015 at 03:28 in reply to: Displaying more groups with descriptions & space annoyance #40871nusolutionsParticipantAwesome!
Thanks
December 30, 2014 at 18:01 in reply to: Displaying more groups with descriptions & space annoyance #40724nusolutionsParticipantScratch the spacing issue as I chose a different layout.
Hoping my search criteria and that there’s already a reply to adding additional groups with descriptions.
nusolutionsParticipant1. Global option to hide the title on ALL pages? In case you prefer only to show the breadcrumbs. Not sure if this option already exists.
2. Social media login integration. Paid $3 for a plugin and am close to having it working with Kleo:
http://beautyugly.com/
http://cancerbu.org/
This one also includes an option for LinkedInThinking you’d be way ahead of the curve if, as someone mentioned, the homepage can house a register form which ties in with BuddyPress as you’d want to re-direct users to their profile page upon login. Or let one of the re-direct plugins handle it.
I tried and wasn’t successful at getting any of the register shortcodes I tested to display in the revslider. This is probably more of an issue with that plugin but the hope was/is to have a rotating slider sitting behind the registration form on the home page for visitors.
3. Option to “maybe” hide the header area to include logo and menu links for the home page leaving just the top bar, main area, and socket. With options for hiding them as well.
4. Option for customizing the look of groups without having to use CSS?
nusolutionsParticipantSince I hadn’t finished the upgrade I hadn’t thought to check. Apologies for not searching beforehand and thanks for the response.
nusolutionsParticipantSooo I went and created some additional profile groups each with their own set of questions:
About
Biker Profile
Features
Photos
SeekingSo instead of listing all of these I only want to display one additional tab: My photos. So here’s what I ended up with which works exactly as I want it:
COPY CODE/** * Sweetdate Child Theme Functions * Add extra code or replace existing functions */ //my changes to profile tabs add_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); $bp_tabs['base'] = array( 'type' => 'regular', 'name' => "About", 'group' => 'Base', 'class' => 'regulartab' ); /* rtMedia tab - only if plugin installed */ if (class_exists('RTMedia')) { $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('My photos', 'kleo_framework'), 'class' => 'mySlider' ); } /* Bp-Album tab - only if plugin installed */ elseif (function_exists('bpa_init')) { $bp_tabs['bp-album'] = array( 'type' => 'bp_album', 'name' => __('My photos', 'kleo_framework'), 'class' => 'mySlider' ); } } ?>
Again, awesome support!
nusolutionsParticipantLine 20 for me shows <head> and line 116 shows logo as so:
COPY CODE<!-- Logo --> <div class="four columns"> <h1 id="logo"><?php bloginfo('name'); ?> <img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a> </h1> </div> <!--end logo-->
And end up with the following:
COPY CODE<!-- Logo --> <div class="four columns"> <h1 id="logo"><?php if ( is_user_logged_in() ) { ?> <a href="http://singleryders.com/welcome/"><img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a> <?php } else { ?> <a href="<?php echo get_home_url(); ?>"><img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a> <?php }; ?></a> </h1> </div> <!--end logo-->
BAM!
BAM!
BAM! BAM! BAM!It works!!!
Awesome! Awesome Indeed!nusolutionsParticipantSo I’m looking at this code:
COPY CODE<!-- Logo --> <div class="four columns"> <h1 id="logo"><?php bloginfo('name'); ?> <img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a> </h1> </div> <!--end logo-->
I don’t see where to add this as I’m talking about the site logo and having it point to the correct page. So if clicked while logged in it points to the welcome page, which has a different layout, http://mysite.com/welcome. If not logged in when clicked the logo points to the Home page. The way I have it right now the image isn’t linked or clickable.
thanks
nusolutionsParticipantIn addition I create the following Field Groups
Base
Looking for
About me
My photos
SocialI have RTMedia installed and activated. Nothing.
I try the other suggestion:
1. Delete all profile fields/tabs except Base.
2. Create new Test & More profile fields.
3. Add this code to sweetdate-child/functions.phpCOPY CODE<?php /** * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <themesupport@seventhqueen.com> * @since Sweetdate 1.0 */ /** * Sweetdate Child Theme Functions * Add extra code or replace existing functions */ add_action(‘after_setup_theme’,’kleo_my_actions’); function kleo_my_actions() { global $bp_tabs; $bp_tabs['more'] = array( ‘type’ => ‘regular’, ‘name’ => __(‘More’, ‘kleo_framework’), ‘class’ => ‘regulartab’ ); $bp_tabs['test'] = array( ‘type’ => ‘regular’, ‘name’ => __(‘Test’, ‘kleo_framework’), ‘class’ => ‘regulartab’ ); } ?>
4. Add info to fields in each tab.
When viewing the profile I can see the fields below but nothing changes up top in the member profile area.
Not getting it!!!!
nusolutionsParticipantBack on this project and I’m still the one kid sitting in the back of the class with his hands up trying to figure it out.
After having to rebuild the site I’m back to the basics in customizing it. The results are the same for me in that I don’t see any changes or additions to the profile after adding this code to the child/functions.php file. Base is the name of the default profile.Again, what am I missing?
Any chance of this becoming an update added the a future release?Any responses appreciated.
nusolutionsParticipantRevisit. Revisit. I see where the ability to enable/disable Breadcrumbs was added so thanks for that! In regards to the logo image I see and locate this inside of header.php:
COPY CODE<!-- Logo --> <div class="four columns"> <h1 id="logo"><?php bloginfo('name'); ?> <a>"><img />" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a> </h1> </div> <!--end logo--> In my search I come across this: <?php if ( is_user_logged_in() ) { } else { <a href="http://yoursite.com">Sign Up</a> }; ?> What I find is that I can simply remove: <a>">
and the image is simply not clickable! Done!
What I’d like to know if it’s possible to have the image to link to a different URL depending on whether the user is logged in or not?
April 10, 2014 at 01:55 in reply to: How to get the wordpress profile page to look like the HTML one you offer #14775nusolutionsParticipantI tried it this way and the message went away but there was no change to the profile area:
<?php
/**
* @package WordPress
* @subpackage Sweetdate
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since Sweetdate 1.0
*//**
* Sweetdate Child Theme Functions
* Add extra code or replace existing functions
*/function kleo_show_member_details() {
global $kleo_config;
$output = array();if (get_member_age(bp_displayed_user_id())) {
$output[‘age’] = apply_filters(‘kleo_bp_meta_after_age’, get_member_age(bp_displayed_user_id()));
}
//fields to show
$fields_arr = $kleo_config[‘bp_members_loop_meta’];//user private fields
$private_fields = array();
if (function_exists(‘bp_xprofile_get_hidden_fields_for_user’)) {
$private_fields = bp_xprofile_get_hidden_fields_for_user(bp_displayed_user_id());
}
if (!empty($private_fields))
{
//get the fields ids that will be displayed on members list
if ( false === ( $fields_id_arr = get_transient( ‘kleo_bp_meta_fields’ ) ) ) {$fields_id_arr = array();
foreach ($fields_arr as $val)
{
if (get_profile_id_by_name($val))
{
$fields_id_arr[$val] = get_profile_id_by_name($val);
}
}set_transient( ‘kleo_bp_meta_fields’, $fields_id_arr, 60*60*12 );
}
if (!empty($fields_id_arr))
{
//fields that will actually display
$show_fields = array_diff($fields_id_arr, $private_fields);
if (!empty($show_fields))
{
$fields_arr_inv = array_flip($fields_id_arr);foreach ($show_fields as $key => $val):
if(bp_get_member_profile_data( ‘field=’.$fields_arr_inv[$val] )):
$output[] = bp_get_member_profile_data( ‘field=’.$fields_arr_inv[$val] );
endif;
endforeach;
}
}
}
else
{
foreach ($fields_arr as $key => $val):
if(bp_get_member_profile_data( ‘field=’.$val )):
$output[] = bp_get_member_profile_data( ‘field=’.$val );
endif;
endforeach;
}echo implode(‘ | ‘, $output);
}
add_action(‘bp_before_member_header_meta’, ‘kleo_show_member_details’);?>
April 10, 2014 at 01:51 in reply to: How to get the wordpress profile page to look like the HTML one you offer #14774nusolutionsParticipantI just gave this a try by adding the code above to the functions.php file located under the child theme and got the following information displayed at the top of the screen:
function kleo_show_member_details() { global $kleo_config; $output = array(); if (get_member_age(bp_displayed_user_id())) { $output[‘age’] = apply_filters(‘kleo_bp_meta_after_age’, get_member_age(bp_displayed_user_id())); } //fields to show $fields_arr = $kleo_config[‘bp_members_loop_meta’]; //user private fields $private_fields = array(); if (function_exists(‘bp_xprofile_get_hidden_fields_for_user’)) { $private_fields = bp_xprofile_get_hidden_fields_for_user(bp_displayed_user_id()); } if (!empty($private_fields)) { //get the fields ids that will be displayed on members list if ( false === ( $fields_id_arr = get_transient( ‘kleo_bp_meta_fields’ ) ) ) { $fields_id_arr = array(); foreach ($fields_arr as $val) { if (get_profile_id_by_name($val)) { $fields_id_arr[$val] = get_profile_id_by_name($val); } } set_transient( ‘kleo_bp_meta_fields’, $fields_id_arr, 60*60*12 ); } if (!empty($fields_id_arr)) { //fields that will actually display $show_fields = array_diff($fields_id_arr, $private_fields); if (!empty($show_fields)) { $fields_arr_inv = array_flip($fields_id_arr); foreach ($show_fields as $key => $val): if(bp_get_member_profile_data( ‘field=’.$fields_arr_inv[$val] )): $output[] = bp_get_member_profile_data( ‘field=’.$fields_arr_inv[$val] ); endif; endforeach; } } } else { foreach ($fields_arr as $key => $val): if(bp_get_member_profile_data( ‘field=’.$val )): $output[] = bp_get_member_profile_data( ‘field=’.$val ); endif; endforeach; } echo implode(‘ | ‘, $output); } add_action(‘bp_before_member_header_meta’, ‘kleo_show_member_details’);
I am using the child theme. Am I missing something?
nusolutionsParticipantI don’t need no stinkin’ developer! 🙂
I managed to figure it out by using the for guests shortcode, widget logic plugin, and another plugin called menu item visibility control to hide certain menu links. In addition I decided to keep the footer widgets. See here: http://singleryders.com
My one remaining challenge is this:
A user logs in and they’re re-directed to their profile. Instead of seeing Home they now see Welcome instead. The Welcome page provides the different experience I was seeking. All is well except if they click the logo it takes them back to the home page which at this point contains nothing. In addition the Home link dispays in the breadcrumb. So instead of trying to make the Home page look like the Welcome page I think I’d prefer to hide it completely for logged in users.
Is this possible or do you still recommend I hire a developer? 😐 :-/ 🙂thanks
nusolutionsParticipantREVISIT:
I’m back on this project and still no luck in hiding footers on the home page for non-registered users?
I tried the article and realize that I don’t want heavy coding for this particular need as there should be a way to create a page which doesn’t contain the footers. All this page needs is the slider, register/search form, and space for text if needed.nusolutionsParticipant1. I’ve decided to use the registration form which when complete takes me to /register.
3. In an older version of this theme I didn’t or don’t think I needed an extra plugin to see the extra profile group fields in the registration form. Right now while logged in as a user I simply don’t see the other profile groups. See here:
-
AuthorPosts