Search Results for 'theme'
-
AuthorSearch Results
-
May 10, 2018 at 8:48 am #272889
In reply to: Visual Composer in BuddyPress / BBpress
Joseph G.
ParticipantThere is something wrong with either of your theme or your shortcode syntax. We’ve been using both Visual Composer +bbPress+BuddyPress for several years and we have no issues so far.
Take note that the theme must support buddypress or bbpress, atleast from the a simple stylesheet.
Check out this theme: http://flocks.dunhakdis.com/community-forums/ . The homepage uses bbpress shortcodes formatted inside a VC block.
Cheers
May 6, 2018 at 4:41 pm #272795steeley1
ParticipantHi and thank you for your reply. I will try that plugins.
Regarding the cover, my theme support says they can’t support me since they don’t feel the issue is theme related, I’m at a loss. Uh
May 6, 2018 at 4:34 pm #272794wbcomdesigns
Participant@steeley1 You can change the notice string via translating them. You can use loco translate plugin.
For Group Cover, check with your theme supportMay 6, 2018 at 4:34 pm #272793In reply to: sitewide notice
Venutius
ModeratorWell the function that is probably being used is
messages_send_notice, but that’s not guaranteed, you’d need to search for that in your plugins and theme directories files, that’s where the function you are looking for are likely to reside.May 6, 2018 at 11:16 am #272777In reply to: sitewide notice
sugar7
ParticipantThe first file;
<?php
/**
* @package Boss Child Theme
* The parent theme functions are located at /boss/buddyboss-inc/theme-functions.php
* Add your own functions in this file.
*//**
* Sets up theme defaults
*
* @since Boss Child Theme 1.0.0
*/
function boss_child_theme_setup()
{
/**
* Makes child theme available for translation.
* Translations can be added into the /languages/ directory.
* Read more at: http://www.buddyboss.com/tutorials/language-translations/
*/// Translate text from the PARENT theme.
load_theme_textdomain( ‘boss’, get_stylesheet_directory() . ‘/languages’ );// Translate text from the CHILD theme only.
// Change ‘boss’ instances in all child theme files to ‘boss_child_theme’.
// load_theme_textdomain( ‘boss_child_theme’, get_stylesheet_directory() . ‘/languages’ );}
add_action( ‘after_setup_theme’, ‘boss_child_theme_setup’ );/**
* Enqueues scripts and styles for child theme front-end.
*
* @since Boss Child Theme 1.0.0
*/
function boss_child_theme_scripts_styles()
{
/**
* Scripts and Styles loaded by the parent theme can be unloaded if needed
* using wp_deregister_script or wp_deregister_style.
*
* See the WordPress Codex for more information about those functions:
* https://codex.wordpress.org/Function_Reference/wp_deregister_script
* https://codex.wordpress.org/Function_Reference/wp_deregister_style
**//*
* Styles
*/
wp_enqueue_style( ‘boss-child-custom’, get_stylesheet_directory_uri().’/css/custom.css’ );
}
add_action( ‘wp_enqueue_scripts’, ‘boss_child_theme_scripts_styles’, 9999 );/****************************** CUSTOM FUNCTIONS ******************************/
// Add your own custom functions here
?>
The second contains:
<?php
if ( !defined( ‘BP_AVATAR_THUMB_WIDTH’ ) )
define( ‘BP_AVATAR_THUMB_WIDTH’, 35 ); //change this with your desired thumb widthif ( !defined( ‘BP_AVATAR_THUMB_HEIGHT’ ) )
define( ‘BP_AVATAR_THUMB_HEIGHT’, 35 ); //change this with your desired thumb height?>
May 6, 2018 at 11:04 am #272776In reply to: sitewide notice
Venutius
Moderatorfunctions.php or bp-custom.php is possibly where an additional function has been setup to create the notice:
wp-content/themes/your child theme/functions.phpor
wp-content/plugins/bp-custom.phpMay 6, 2018 at 6:53 am #272769In reply to: Setting up new tab in member profile
ttremain
ParticipantThought I had an additional issue. ‘screen_function’ wasn’t getting reached. The theme was ALSO creating a menu item with the same slug.
Solved.
May 5, 2018 at 3:07 am #272735Varun Dubey
Participant@madwester You can use Theme My Login plugin, it will define all endpoints including forgot password as well.
May 4, 2018 at 4:35 am #272684In reply to: Shortcode to create Edit Profile Page
jameskoo
ParticipantOh I see, but this is a good solution too.
May I know where do you apply these shortcodes?
1) For the main member page (activity) use the following shortcode:
[bp_user_profile_link text=”Profile” ]2) For the View Profile page
[bp_user_profile_link text=”View My Profile” target=”profile”]3) For the Edit Profile page
[bp_user_profile_link text=”Edit My Profile” target=”edit_profile”]As for now, I just created a functions.php in my child theme. And pasted the codes into the functions.php.
May 3, 2018 at 10:11 pm #272679In reply to: Shortcode to create Edit Profile Page
ma3ry
ParticipantMy coder gave me the following information. It works for me. If it doesn’t work for you, I’m sorry but I don’t know what to tell you. I’m not a coder.
CUSTOM MENU SHORTCODES
Create a simple shortcode by adding the following in child-theme’s functions.php file
add_shortcode( 'bp_user_profile_link', 'bp_user_profile_link_shortcode'); function bp_user_profile_link_shortcode( $atts ){ $atts = shortcode_atts( array( 'text' => 'Profile', 'target' => '' ), $atts ); if( !is_user_logged_in() ) return ''; $target_link = bp_loggedin_user_domain(); switch( $atts['target'] ){ case 'settings' : $target_link .= 'settings/'; break; case 'profile' : $target_link .= 'profile/'; break; case 'edit_profile' : $target_link .= 'profile/edit/'; break; } return "<a href='" . $target_link . "'>" . $atts['text'] . "</a>"; }Now this gives you the chance to choose which profile link you want to target. So
1) For the main member page (activity) use the following shortcode:
[bp_user_profile_link text=”Profile” ]2) For the View Profile page
[bp_user_profile_link text=”View My Profile” target=”profile”]3) For the Edit Profile page
[bp_user_profile_link text=”Edit My Profile” target=”edit_profile”]CUSTOM MENU URL (this may be very specific to my website. I don’t know.
Edit Profile: https://yourwebsite.com/members/–sububsername–/profile/edit/group/1/
Hope this helps.
May 3, 2018 at 8:37 pm #272676In reply to: Members Masonry List keeps disappearing
Venutius
ModeratorYep BP does not come with those features, they must be provided by your theme. You’ll need to ask them for support since we’ll not be able to replicate your setup.
May 3, 2018 at 8:35 pm #272675In reply to: Members Masonry List keeps disappearing
jimbonorth
ParticipantI have double checked and the Theme I am using is the KLEO Template by By SeventhQueen.
May 3, 2018 at 8:33 pm #272674In reply to: Members Masonry List keeps disappearing
Venutius
ModeratorIn that case I don’t think that page is part of your BuddyPress install, I’m thinking it must have come with your theme, unless you renamed an existing bp page to that. there’s quite a few ways of getting the members page in masonry view, but unless you set it up specifically then it’s not part of the standard bp install I don’t think.
May 3, 2018 at 8:30 pm #272672In reply to: Members Masonry List keeps disappearing
jimbonorth
ParticipantI’m using Divi Theme alongside a Visual Composer plugin for page editing. I dont think there is anything related to BP-Nouveau. I might be wrong though.
May 3, 2018 at 8:29 pm #272671In reply to: Members Masonry List keeps disappearing
Venutius
ModeratorMembers Masonry Page? Are you running BP-Nouveau or is that something supplied by your theme?
May 3, 2018 at 8:16 pm #272665In reply to: WordPress Broken During BP Activate
ChuxMark
ParticipantWordPress 4.9.5 running Twenty Seventeen theme. The only change to WP is that I deactivated Hello Dolly and installed Jet Pack. There are no other files in public_HTML. If you have no other thoughts, I am going to try terming this cPanel user and starting with a fresh domain, then I will install BP on WP
- without
Jet Pack.
THANKS for getting me this far.
May 3, 2018 at 8:07 pm #272664In reply to: WordPress Broken During BP Activate
Venutius
ModeratorEither something went badly wrong with your install, wich is unlikelu or there’s something running on your site that is seriously messing with BuddyPress. Now you know how to recover from this, you could disable all other plugins, switch to the 2017 theme and then re-enable BuddyPress, to see if it works on it’s own.
May 3, 2018 at 9:35 am #272639mubiesam
Participant@vapvarun did change to activate BuddyPress at the network level, but only https://lt.johocen.com/ will not display the toolbar, the other 2 sites are OK.
Will it be conflict with the theme used? where should i look into?
Your suggestion is highly appreciated.
SamApril 30, 2018 at 10:16 am #272523In reply to: Fields on single line
yodam
ParticipantThank you for your answer.
I’ve tryed many themes and I had the same result
April 30, 2018 at 8:08 am #272521In reply to: WordPress asking for login
Varun Dubey
Participant@galador WordPress login is same as BuddyPress login; you can create a themed login page as well.
IF you are concern about WordPress.com login options, it might be possible you have enabled it inside Jetpack plugin setting, you can disable from Jetpack option https://jetpack.com/support/sso/
April 30, 2018 at 7:14 am #272519In reply to: Fields on single line
Varun Dubey
Participant@yodam it’s theme css specific issue. You can inline fields with CSS.
April 30, 2018 at 6:55 am #272517In reply to: Email notification default settings
Varun Dubey
Participant@demiano You can try following codes inside your child theme functions.php or use code snippet plugin
add_action( 'bp_core_activated_user', 'wb_set_email_notifications_preference'); function wp_set_email_notifications_preference( $user_id ) { //I am putting all the notifications to no by default //you can set the value to 'yes' if you want that notification to be enabled. $settings_keys = array( 'notification_activity_new_mention' => 'no', 'notification_activity_new_reply' => 'no', 'notification_friends_friendship_request' => 'no', 'notification_friends_friendship_accepted' => 'no', 'notification_groups_invite' => 'no', 'notification_groups_group_updated' => 'no', 'notification_groups_admin_promotion' => 'no', 'notification_groups_membership_request' => 'no', 'notification_messages_new_message' => 'no', ); foreach( $settings_keys as $setting => $preference ) { bp_update_user_meta( $user_id, $setting, $preference ); } }April 28, 2018 at 10:45 pm #272493In reply to: Problem Activating Features
Galador
ParticipantYes so I got it to work, it just decided to randomly work when I showed my husband why I was so angry haha
I turned off every plugin, and went into jetpack debugging and turned it off completely and then swapped the theme back to 17, once I did that it saved. I was able to re-add all my other plugins and themes and they continued to work after that. Hopefully this helps anyone else with this problem. I dont know why it worked that time but it did.
April 28, 2018 at 9:57 pm #272488In reply to: Setting up new tab in member profile
Venutius
ModeratorThe bp_core_template_plugin function is loading
plugins.phpfrom thebp-templatesdirectory, which can be overloaded by placing your own template file inthemes/child-theme/buddypress/members/single/plugins.phpthat’s one way of doing it. another way is to register your own template directory (inside plugin for example) and tell bp to load that.April 28, 2018 at 9:53 pm #272487kwavewd
ParticipantI believe the user is is already pulled because we show username, links to profile pages in email template already.
There is a notification file but I already called USER_PHONE AND WORKER_PHONE. Correctly into this file.
$replacement = array( '/\bSITE_NAME\b/U' => wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), '/\bCLIENT\b/U' => $args['user'], '/\bCUSTOMER_USERNAME\b/U'=> $args['customer_username'], '/\bARTIST_USERNAME\b/U' => $args['artist_username'], '/\bSERVICE_PROVIDER\b/U' => $args['worker'], '/\bSERVICE\b/U' => preg_replace( '/\$(\d)/', '\\\$$1', $args['service'] ), '/\bDATE_TIME\b/U' => mysql2date( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $args['datetime'] ), '/\bORDER_ID\b/U' => $args['ID'], '/\bTRAVEL_TYPE\b/U' => $args['travel_type'], '/\bUSER_PHONE\b/U' => $args['user_phone'], '/\bWORKER_PHONE\b/U' => $args['worker_phone'],This basically sets the SHORTCODE for use in admin notification email template section.
I think I also need to add some code to the functions.php file of my theme. I see some other coding in functions.php from my past developer but it may not be related to the notification parts.
$profile_name=xprofile_get_field_data( 'Profile Name' , $user_id ); if($profile_name!=""){ global $wpdb; $query="select * from {$wpdb->prefix}bp_xprofile_data"; $phone=$wpdb->get_results($query); if(count($phone)>0){ $arr=array(); foreach($phone as $service){ $arr[]= $service->ID; $arr2=array( 'service_id' => $service->ID, 'provider_id' => $user_id, 'additional_price' => 0 ); $wpdb->insert( "{$wpdb->prefix}app_service_additional_price", $arr2); }I don’t understand how we can change this to bp_xprofile_data all I need to call at this point is the phone data id 206 and 7 the field title is Phone.
This is what I have in my confirmation template but not working error line user phone and worker phone
$User_phone = get_userdata($r->phoneuser); $Worker_phone = get_userdata($r->phoneworker); $args = array( 'user' => $r->name, 'customer_username'=>$customerUser->user_login, 'artist_username'=>$artistUser->user_login, 'service' => $appointments->get_service_name( $r->service ), 'worker' => appointments_get_worker_name( $r->worker ), 'datetime' => $r->start, 'price' => $r->price, 'deposit' => $appointments->get_deposit( $r->price ), 'phone' => $r->phone, 'user_phone' => $User_phone->user_login, 'worker_phone' => $Worker_phone->user_login, 'phoneuser' => $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 206 AND user_id = $user_id"); 'phoneworker' => $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 7 AND user_id = $user_id"); 'note' => $r->note, 'address' => $address, 'email' => $email, 'city' => $r->city, 'number_of_guest'=>$r->number_of_guest, 'travel_type'=>$travel_type, 'ID'=>$r->ID );I also tried this which did not show errors but just didn’t work
$User_phone = $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 206 AND user_id = $user_id"); $Worker_phone = $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 7 AND user_id = $user_id"); $args = array( 'user' => $r->name, 'customer_username'=>$customerUser->user_login, 'artist_username'=>$artistUser->user_login, 'service' => $appointments->get_service_name( $r->service ), 'worker' => appointments_get_worker_name( $r->worker ), 'datetime' => $r->start, 'price' => $r->price, 'deposit' => $appointments->get_deposit( $r->price ), 'phone' => $r->phone, 'user_phone' => $User_phone->user_login, 'worker_phone' => $Worker_phone->user_login, 'note' => $r->note, 'address' => $address, 'email' => $email, 'city' => $r->city, 'number_of_guest'=>$r->number_of_guest, 'travel_type'=>$travel_type, 'ID'=>$r->ID ); -
AuthorSearch Results