Forum Replies Created
-
It might help if you were a bit more specific about what you want to actually do to or with group and profile templates.
<?php // hacks and mods will go here function abc() { $user = get_userdata( bbp_get_reply_author_id() ); if ( !empty( $user->user_nicename ) ) { $user_nicename = $user->user_nicename; echo '@'.$user_nicename; } } add_filter( 'bbp_theme_after_reply_author_details', 'abc' ); ?>
Without
?>
on line three. Would suggest putting?>
on it’s own line at the end…Edit : don’t know why it double posted…
n.b. This is presuming there is nothing else in the file. If you want to add other snippets they should go after the opening
<?php
tag or before the closing?>
and should not break up any other php snippets…I just noticed that you missed the
;
from the end of theadd_filter
line. This is important….double post
You need to put the php tags around the code, so
<?php
goes before the code danbp gave you.//
is used to tell php to ignore the current ( single ) line. Multi line comments start with/*
and end with*/
.Then
?>
needs to go at the end of the file.There should be nothing ( including spaces or blank lines ) before the opening
<?php
or after the closing?>
. Some php files don’t have / need a closing?>
.Also to note is that a text editor such as notepad ++ should be used, rather than a word-processor…
@timothylegg
Just a thought – have you got pretty permalinks set up?In WordPress settings > permalinks ( /wp-admin/options-permalink.php )
I haven’t tried the above code, but the location of bp-custom.php should be /wp-content/plugins/bp-custom.php not the buddypress plugin directory.
I don’t particularly recomend any specifically but I try to test stuff in the major browsers so they all come in useful.
If you use Internet explorer you can press F12 to open up ‘developer tools’ ( also on the tools dropdown )
You can also press F12 in google chrome: see https://developer.chrome.com/devtools
Mozilla Firefox doesn’t have a built in developer tools. I use firebug ( free ), which has to be installed separately. See https://www.getfirebug.com/
…
Do you get any javascript ( or other ) errors in the developer console?
Are you logged out when you try to register?
What actually doesn’t work? What happens / doesn’t happen?
your case https://buddypress.org/support/topic/buddypress-preventing-registration/ is different…
Using firefox on http://animalsfunnypictures.com/members/sanaa/ I can see
entry-content img {
which has awidth: 510px
if i disable it in firefox it becomes the ‘normal’ size.This is coming from Marla theme’s style.css on line 1464 – see for yourself…
That Line is in https://buddypress.trac.wordpress.org/browser/tags/2.0.2/buddypress.pot#L6005
Have a look at https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/ to customise.
What I do in Firefox is press f12 to start firebug which should open into the html tab, if not click on the html tab at the top.
On the left of the html tab is an icon of an arrow pointing to a box. Use this to select the item you are interested in.
In your example it should jump to the html in the left column:
<td class="label">Qualification</td>
If that line is selected then on the right are the relevant rules. In this case I looked down the rules until I found a
color:
. If you click on the color property you can select and deselect it to see what effect it has.Sometimes when you deselect it another css rule might then be used. This is part of the cascade.
If you click on the value you should be able to try different settings.
Once you have found a setting that works you need to transfer it to a child theme’s stylesheet. You should be able to highlight the whole rule and copy / paste. It’s a good idea to remove all the bits that stay the same to prevent duplication / complications / inefficiency…..
Is that any help?
Yes, I’ve just tried to go back through my forum replies and the second page always goes back to this site’s home page.
Hovering over the link for page two of my forum replies shows the address it points to is https://buddypress.org/page/2/ – when clicking on it one is shown the home page with that in the address bar.
If I change the address to https://buddypress.org/members/aces/forums/replies/page/2/ I can see the page 2…
Well looking with firebug on your test site i can see that the text colour comes from the .label or .badge rule on line 4941 of bootstrap.min.css
try putting something like
.label, .badge { color: #000; }
at the end of your child theme’s style.css…
It’s not clear from your post but are you logged out when you fill in the registration?
If not then that is normal behaviour when logged in already…..
You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.
is in the current pot file ( see https://buddypress.trac.wordpress.org/browser/tags/2.0.1/bp-languages/buddypress.pot#L6122 ) …..I often find that blank screen’s show a corresponding entry in the apache error.log ?
@gt-director
You wrote:(I’m using WordPress v3.4.4 and BuddyPress v2.0.1)
Buddypress v2.0.1 requires at least wordpress 3.6 – see https://codex.buddypress.org/developer/releases/
You could try putting the following in you child theme functions.php file
function bbg_enqueue_styles() { remove_theme_support( 'bp-default-responsive' ); } add_action( 'wp_enqueue_scripts', 'bbg_enqueue_styles', 5 );
For more info ( including important details ) see: https://buddypress.trac.wordpress.org/ticket/3881#comment:2
——————————————————————————————–
EDIT: I’ve just noticed that you have been told this answer before: https://buddypress.org/support/topic/upgraded-and-now-nav-and-sidebar-is-responsive/#post-150007
Please start your own Topic, rather than jump in on others, which can get confusing for those trying to fix a different problem.
In your New Topic please describe more thoroughly the actual problem you personally are having and what you have already tried, including links to the theme, plugin, snippet or tutorial etc., ( if possible, practical or appropriate )?
@pswanson22
https://codex.buddypress.org/getting-started/customizing/changing-internal-configuration-settings/ has the following:Set which blog ID BuddyPress will run on:
define ( ‘BP_ROOT_BLOG’, $blog_id );Where $blog_id is the actual blog id number…
You’re welcome
Buddypress is a plugin not a theme. It is still bundled with a theme but that isn’t necessary any more and is hidden on new installs – it can be activated with a snippet.
Most normal themes ( that follow official wordpress guidelines ) should be compatible now. For more info see theme compatibility articles in the bp documentation.