Search Results for 'theme'
-
AuthorSearch Results
-
August 29, 2016 at 5:03 pm #258170
In reply to: Edit profil page
Corke420
ParticipantI have trying to overload
home.php in buddypress\bp-templates\bp-legacy\buddypress\members\single\
I use avada Child theme so I should create my new file home.php in : Avada child/buddypress/members/single/home.php
This what I try but not working.
August 28, 2016 at 5:15 pm #258141In reply to: Modifying Activity Page
lil_bugga
ParticipantI copied the entire directory with all of it’s components, with the intention of deleting any file that remained unchanged. My thinking was this way I was not messing with the core files but a copy of them so I could always revert back should I need to.
In order to change the Site-Wide Activity title on a page where would I start if not the core files? I searched for each file that contained the phrase “Site-Wide Activity” and those were the instances I’d found.
I can’t modify page.php in my theme when BuddyPress seems to insert it’s own content during the page load.
When I installed BuddyPress I was expecting unique pages that could be duplicated and modified to include/exclude the elements wanted within the page and to style those pages with ease, a bit more like a standard theme I guess.
What do I do now, my guess is start of by deleting my duplicated directory.
August 28, 2016 at 4:57 pm #258140In reply to: Edit profil page
shanebp
ModeratorYou will find all those templates in the BP plugin in this directory:
buddypress\bp-templates\bp-legacy\buddypress\members\single\If you want to change a file, you should create a template overload.
August 28, 2016 at 12:49 pm #258137danbp
ParticipantPerhaps a CSS adjustment to do ?
But first, revert to a twenty theme as it work’s now.
If you see the button with Twenty, you have a theme issue.Reactivate your theme and check the page source code in your browser and verify that the button exist in the code.
(../members/USRNAME/profile/change-cover-image/)This button is in a drag’n’drop area inside a script.
If you see the code but don’t see the button displayed, you have to work your CSS to get it.
Meanwhile you can try to add a picture by drag’n’drop even if you don’t see the button (it is only usefull in case drag’n’drop doesn’t work – ie when JS is deactivated).Can’t say more…
Codex reference (in case of)
August 28, 2016 at 8:28 am #258135danbp
ParticipantYou can download the modified js file (trunk:10207) here:
https://buddypress.trac.wordpress.org/browser/trunk/src/bp-core/js/bp-plupload.js?rev=10207If it doesn’t work, revert back to original plupload.js and debug elsewhere.
Youl’ll probably have to ask your theme support in that case.
Activate also wp_debug in wp-config to eventl. get some other error msg.August 27, 2016 at 7:04 pm #258128In reply to: Modifying Activity Page
danbp
ParticipantI can’t read the codex at your place but if you really did this:
I’ve copied the entire BuddyPress plugin directory into my theme
you started on the wrong side.
BP Plugin directory ? Really ? Or bp-templates/bp-legacy/buddypress/ directory ?
Also you already hacked core files. This is not recommended at all anyway, and on a CMS, the form (template) is separated from the content (core)….August 27, 2016 at 6:55 pm #258127danbp
ParticipantSorry but we can’t bring assistance for premium themes.
that said it may be a JS conflict generated by BP in some exotic JS situation…
Read here: https://buddypress.trac.wordpress.org/ticket/6574August 27, 2016 at 6:43 pm #258125In reply to: tinymce in activity replies and comments
danbp
ParticipantThe ultimate tutorial to add wp_editor to What’s New textarea (on Site, Members and Group Activities pages).
Warning
The What’s New feature was never intended to publish posts or formatted text. It was imagined for brief announcement or instant conversation. That’s why this textarea is texturized and doesn’t allow much HTML tags. It is also ajaxified and need the original BP ID to work.
You will use it at your own risk.The following trick will let you remove the existing textarea from the template and replace it with a custom wp_editor. And it will be very customized ! For example, you will not have the visual tab, but only his HTML version, similar to the one you see on this forum for example.
Required:
BuddyPress activated
a working child theme
some understanding of HTML and php grammarThis trick was succesfully tested on a single install with WP 4.6, BP 2.6.2 and a Twenty Sixteen child theme.
Start !
Read from here how to remove the textarea in post-form.phpThe code to remove is line 40 and looks like this:
<textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10" <?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?> ><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>You replace it by:
<?php $content = ''; $editor_id = 'whats-new'; wp_editor( $content, $editor_id ); ?>As the visual edit tab doesn’t work, you must deactivate it. In your child-theme functions.php, add this:
add_filter( 'user_can_richedit' , '__return_false', 50 );And that’s it !
If you want also rich edit for activity comments, which i didn’t recommand for sites who have many comments, you can use the same technique as above, with some more settings. Note that each comment has is own ID and that each comment editor should also have an unique ID.
First, you need to remove the textarea from (child-theme/buddypress/)activity/entry.php
You remove this:
<textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input bp-suggestions" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
and replace it by<?php $id = bp_get_activity_id(); $content = ''; $editor_id = 'ac-input-'. $id; $settings = array( 'textarea_name' => 'ac_input_'. $id, 'editor_class' => 'ac-input bp-suggestions' ); wp_editor( $content, $editor_id, $settings ); ?>With Twenty Sixteen, i first couldn’t see the Post Update button and the option selector. I got it with this little CSS adjustment (in child-theme/style.css).
div#whats-new-options { display: block!important;}Function reference: wp_editor.
August 27, 2016 at 4:11 pm #258124dekoningalex
ParticipantHi,
Users can’t upload cover/profile pictures for their profile. If one clicks on the button to select a picture to upload, you can select a file, but when you choose a file nothing happens. The following error shows up: Uncaught TypeError: Cannot read property ‘add’ of undefined bp-plupload.min.js?ver=2.6.2:1
When i use a buddypress compatible theme (e.g. twentyeleven) the issue doesn’t occur so it is a custom theme issue. I have asked my theme developer for help but that has gotten me nowhere…
1. Which version of WordPress are you running? 4.6
2. Did you install WordPress as a directory or subdomain install? root
3. If a directory install, is it in root or in a subdirectory? root
4. Did you upgrade from a previous version of WordPress? If so, from which version? The one before 4.6
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes
6. Which version of BP are you running? 2.6.2
7. Did you upgraded from a previous version of BP? If so, from which version? Yes, the one before
8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? Yes, but none of these plugins cause issues as i turned them all off, and the problem still persisted.
9. Are you using the standard WordPress theme or customized theme? Customized theme (Bronx by Fuelthemes)
10. Have you modified the core files in any way? No
11. Do you have any custom functions in bp-custom.php? No
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? 2.5.10
13. Please provide a list of any errors in your server’s log files. Don’t know how
14. Which company provides your hosting? Transip
15. Is your server running Windows, or if Linux; Apache, nginx or something else? Linux (Ubuntu)
Thank you so much in advance, any help is very much appreciated.
August 27, 2016 at 8:03 am #258112In reply to: Registration Form Issue…
danbp
ParticipantAdd the snippet to your child-theme functions.php
If it doesn’t work from there, remove it and put it into bp-custom.phpYou may also give details about the theme you use and what you did “exactly” on a template.
August 25, 2016 at 4:34 pm #258054In reply to: Notification won’t go away
psenechal
ParticipantYes…I loaded the Twenty Sixteen theme and the notification still appears.
When I logged in this morning, the notification had disappeared finally, so I tried updating my profile again and the notification is appearing and not going away again.
If I logout of my account and view my profile as a user who is not logged in, I STILL see the notification.
If I access the website from a different browser, however, the notification is not present. If I login with that different browser, the notification is also not present. If I modify my profile on that browser and save the changes, the notification becomes stuck on that browser as well.
Emptying the browser cache doesn’t appear to have any affect. If I look at the cookies, there is a bp-message entry that is set to “Changes+saved.” and one named bp-message-type that is set to “success”. If I delete both of those from the cookie, the message disappears. Looks like this is a cookie issue.
Since this is occurring in 2 different themes, does it look it might be a BP issue, or is there possibly something going on with my installation where cookies aren’t getting expired properly?
August 25, 2016 at 12:54 pm #258047idichoo
ParticipantHi,
I have another problem, i tried to save the changes to style.css in child nothing happend.
.label {
display: inline-block;
font-family: “Helvetica Neue”,Helvetica,Roboto,Arial,sans-serif;
font-weight: normal;
line-height: 1;
margin-bottom: auto;
position: relative;
text-align: center;
text-decoration: none;
white-space: nowrap;
padding: 0.25rem 0.5rem 0.25rem;
font-size: 0.9rem;
background-color: #ececec;
color: #000;
}This was paste into sytle.css file, i see no changes to the child theme.
I changes front size and color but background-color remain, i guess cannot be changed.Can some help me thanks.
August 25, 2016 at 12:32 pm #258046danbp
ParticipantThat’s a Firebug question, but not important anyway. Also, there is no need to use all rules, as they are handled by the original CSS. You declare only the part you want to modify for
.labelOpen /child-theme/style.css and add only this: (#xyz123 is the color hex you want to use)
#buddypress table.profile-fields tr td.label,{ background-color: #xyz123!important; color: #xyz123!important; }August 25, 2016 at 8:35 am #258042In reply to: Notification won’t go away
danbp
ParticipantDo you get the same behave while using another theme ?
August 25, 2016 at 8:32 am #258040In reply to: Redirect does not work
Paul Wong-Gibbs
KeymasterI think you need to disable all your plugins (and any other code tweaks), while running a default WP theme, until you figure out what’s causing the behaviour.
August 25, 2016 at 8:06 am #258035In reply to: Redirect does not work
fail2reap
Participant@djpaul – Thanks for getting back to me with these additional steps. I have tested this now with removing the plugin iThemes Security and Welcome Pack. I also set a default WordPress theme.
Unfortunately it did not resolve the issue as the user still get’s directed back to the home screen after the submit the register page.
Any other ideas?
August 24, 2016 at 4:08 pm #258018In reply to: Fatal Error
danbp
ParticipantPlease don’t double post on this forum.
You activated BuddyPress Custom Profile Menu plugin and got a fatal error. Remove it or rename his folder via FTP, so you can access your dashboard again.
Then contact the plugin author.
Since 2.6, BP use a new navigation API. Maybe the plugin isn’t updated for that or there is another conflict with your theme.August 24, 2016 at 8:22 am #257452In reply to: Changing adminbar site-name url
mrjarbenne
ParticipantYou could completely customize the Admin-bar. This snippet should help, put in either the functions.php file of your theme, or in the bp-custom.php file. It should give you a good idea of what is possible. I’m hiding the W menu. You could probably hide the Site dropdown altogether and then craft your own dropdown with links to different items. Particularly if this is a single install of BP, and not a Network/Multisite install, there really isn’t any reason for your users to see the Site dropdown:
/** * Adds custom "Home" menu to WP Adminbar. * * Also removes the "WP logo" menu. * * @param object $wp_admin_bar The WP Admin Bar object */ public function add_custom_parent_menu( $wp_admin_bar ) { /** * Removing the "W" menu */ $wp_admin_bar->remove_menu( 'wp-logo' ); /** * Create a "Home" menu. * * First, just create the parent menu item. */ $wp_admin_bar->add_menu( array( 'id' => 'commonlinks', 'parent' => '0', //puts it on the left-hand side 'title' => 'Home', 'href' => ('http://domain.com/activity') ) ); /** * Add submenu items to "Home" menu. */ // Only show the following for logged-in users if ( current_user_can( 'read' ) ) { // Support link $wp_admin_bar->add_menu( array( 'id' => 'support', 'parent' => 'commonlinks', 'title' => 'Support', 'href' => ('http://domain.com/support') ) ); // Blog request form $wp_admin_bar->add_menu( array( 'id' => 'blogrequest', 'parent' => 'commonlinks', 'title' => 'Feedback', 'href' => ('http://domain.com/feedback' ) ) ); // Developers blog $wp_admin_bar->add_menu( array( 'id' => 'developments', 'parent' => 'commonlinks', 'title' => 'Developments', 'href' => ('http://domain.com/developments' ) ) ); } }August 23, 2016 at 3:23 pm #257938In reply to: Free Theme almost ready
inzerat
ParticipantHello look on https://github.com/buddycore/surface-theme/issues/1 thank you 🙂
August 23, 2016 at 8:56 am #257917In reply to: Free Theme almost ready
Henry Wright
ModeratorHi buddycore,
I think the theme is looking good! Will you be accepting pull requests on GitHub?
danbp
ParticipantTo restrict the usage of the What’s New form to only admins and editors…
Copy post-form.php from (bp-templates/bp-legacy/buddypress/activity/ ) to (/your-child-theme/buddypress/activity/).
In the copy, add
if ( bp_current_user_can( 'editor' ) ) :above the form tab and addendif;right after the closing form tag, at the end of the file and you’re done.
Note to take care of the existing php tags.August 22, 2016 at 6:32 pm #257895danbp
ParticipantOn WPBeginner:
http://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/and as always, WP Codex is your friend.
August 22, 2016 at 6:12 pm #257893idichoo
ParticipantHi,
As there a video on how to set a child theme.
Best Regards
August 22, 2016 at 5:25 pm #257890idichoo
ParticipantHi,
WEll.. i have the same problem as this person posted.
i have a similar problem as the above link.
i tired to understand install child theme but it does not work.
Thru this link
But i have quite complicated is there any video you can provide me.
Btw I am not using FTP, I am using cloudways to bulid the site.August 22, 2016 at 4:46 pm #257888In reply to: Activity tab title text change
danbp
ParticipantAnnoying to work on a site where you’re not allowed to access the child-theme!
As you can see in index.php, there is no action hook for these buttons.The only other way i know is a dirty trick using directly gettext.
Add this to bp-custom.phpfunction abcd_gettext( $translated, $original_text, $domain ) { if ( 'buddypress' !== $domain ) return $translated; switch ( $original_text ) { case 'All Members %s': return 'All Buddies %s'; case 'My Friends %s': return 'My Amigos %s'; default: return $translated; } } add_filter( 'gettext', 'abcd_gettext', 10, 3 );More about that trick here:
https://buddypress.org/support/topic/how-do-i-change-the-title-of-the-create-an-account-page/#post-254772 -
AuthorSearch Results