-
Henry replied to the topic Turn avatar into link to profile in an author box in the forum How-to & Troubleshooting 11 years, 1 month ago
Just wrap a
<a href...>
around that statement. That will turn the avatar into a link. -
Henry replied to the topic [Resolved] Extra Info in members list. in the forum How-to & Troubleshooting 11 years, 1 month ago
@pelaso as bphelp said, it actually explains how to do that in the members-loop.php template.
-
Henry replied to the topic Using BuddyPress as a Professional Social Network in the forum Installing BuddyPress 11 years, 1 month ago
-
Henry replied to the topic Adding bp-default's ajax.js and global.js to your theme in the forum How-to & Troubleshooting 11 years, 1 month ago
As you say both approaches are valid which makes the choice difficult. A Codex guide on the advantages and disadvantages of each approach would be V useful. I find the attraction with bp-default is it is tried and tested. That said, the template hierarchy allows me to ‘get my house in order’ – everything in my theme that is BP is filed…[Read more]
-
Henry replied to the topic Applying Default Buddypress Theme to Another Theme in the forum Creating & Extending 11 years, 1 month ago
This can only be explained as a huge job. You would need to know both CSS and HTML to achieve that. I’d suggest reading up on those two technologies if you’re just getting started. Some knowledge of PHP, JS and Ajax would be helpful too although you’d just need to know what parts of the templates are best to avoid messing with.
-
Henry replied to the topic Adding bp-default's ajax.js and global.js to your theme in the forum How-to & Troubleshooting 11 years, 1 month ago
Yes definitely agree with that! especially in this case where loading the theme compat stuff unnecessarily will cause a little extra overhead.
Can I ask – would you take this approach? e.g. still use a child of bp-default? or would you opt to use the new template hierarchy? I have always been an admirer of the bp-default theme (not so much the…[Read more]
-
Henry replied to the topic Adding bp-default's ajax.js and global.js to your theme in the forum How-to & Troubleshooting 11 years, 1 month ago
@hnla apologies should have explained that a bit better – i’m not assuming, I think BP does the assuming. Take a look at the last line of Boone’s post:
BP Theme Authors: make sure your theme registers 'buddypress' support
-
Henry replied to the topic Adding bp-default's ajax.js and global.js to your theme in the forum How-to & Troubleshooting 11 years, 1 month ago
@modemlooper Thanks, I’ll give that a shot but then I may decide not to edit them altogether as they work well already. I could add my own .js elsewhere
@hnla the site I’m working on was built pre BP 1.7 so uses a child theme of bp-default. I thought that BP assumes add_theme_support for bp-default child themes?
-
Henry started the topic Adding bp-default's ajax.js and global.js to your theme in the forum How-to & Troubleshooting 11 years, 1 month ago
When using a child theme of bp-default, i copy the files I need to edit from bp-default to my child theme
e.g
bp-default/members/single/home.php
goes to
my-theme/members/single/home.php
My question is can bp-default/_inc/global.js and bp-default/_inc/ajax.js be copied to my theme in the same way?
When i do that it doesn’t seem to recognise…[Read more]
-
Henry replied to the topic Tag Cloud – set number of tags in the forum How-to & Troubleshooting 11 years, 1 month ago
This snippet is what you need to paste into your file:
<?php
wp_tag_cloud( array( 'number' => '8' ) );
?>If you are already using a tag cloud then find it and remove it. A basic tag cloud will look something like this:
wp_tag_cloud()
-
Henry replied to the topic Tag Cloud – set number of tags in the forum How-to & Troubleshooting 11 years, 1 month ago
Do you mean a WordPress tag cloud as in
wp_tag_cloud()
?<?php
wp_tag_cloud( array( 'number' => '8' ) );
?> -
Henry replied to the topic [Resolved] Buddypress xprofile author "bio" in post footer. in the forum How-to & Troubleshooting 11 years, 1 month ago
You have to give the field a title when you add new profile fields via WP Admin > Users > Profile Fields. Whatever you’ve chosen as your field title is what you should use
-
Henry replied to the topic [Resolved] Buddypress xprofile author "bio" in post footer. in the forum How-to & Troubleshooting 11 years, 1 month ago
you’re right, I just tested myself and it doesn’t do the job. This will work – I just tested it out on my dev install:
<?php
if ( $string = xprofile_get_field_data( 'BIO', get_the_author_meta('ID') ) ) {
echo $string;
}
?>Note: Replace BIO with your field name.
-
Henry replied to the topic [Resolved] Buddypress xprofile author "bio" in post footer. in the forum How-to & Troubleshooting 11 years, 1 month ago
@3rdaxis did you change the field name to the name of your bio field?
-
Henry replied to the topic [Resolved] Buddypress xprofile author "bio" in post footer. in the forum How-to & Troubleshooting 11 years, 1 month ago
It all very much depends on where exactly you want to display the bio info.
$user_id
is the key variable you need, but obtaining this value is done differently depending on where you are on your website.If you want to display bio info in a member’s blog post footer then add this to your theme’s single.php file:
<?php
[Read more]
$user_id =… -
Henry replied to the topic One plugin not using the same template as the rest. in the forum Third Party Plugins 11 years, 1 month ago
rtMedia has a templating system where you can override the default templates by copying files to your theme. Also, are you sure itit using page.php? Check it isn’t using plugins.php as many plugins tend to do.
-
Henry replied to the topic Including jQuery causes some BuddyPress functionality to stop working in the forum How-to & Troubleshooting 11 years, 1 month ago
@cambridge15 Run your website through http://tools.pingdom.com to see which resources are being loaded. That should show you which scripts you need to focus on.
-
Henry updated the Template Tag Reference page, on the BuddyPress Codex 11 years, 1 month ago
(Work in Progress)
General Template Tags
bp_get_loggedin_user_nav()Uses the $bp->bp_nav global to render out the navigation within a BuddyPress install.
Each component adds to this navigation array within its […] -
Henry replied to the topic Including jQuery causes some BuddyPress functionality to stop working in the forum How-to & Troubleshooting 11 years, 1 month ago
@eossipov I think the jQuery being enqueued was v1.10? I’m using BP 1.8.1 and WP 3.6.1
-
Henry replied to the topic Including jQuery causes some BuddyPress functionality to stop working in the forum How-to & Troubleshooting 11 years, 1 month ago
@eossipov thanks for the help. My problem was resolved with the code I just posted. Just had to dequeue jQuery and use Google’s latest copy instead.
- Load More
@henrywright-1
Active 9 years, 10 months ago