Search Results for 'theme'
-
AuthorSearch Results
-
October 30, 2009 at 4:32 pm #55487
In reply to: IE broke my CSS
concrain
Participanthmm.. i cant seem to get this to work?? it shows up when I view the page source, but it dosent pull the link..
<html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes(); ?>>
<head profile=”http://gmpg.org/xfn/11″>
<!–[if IE6]>
<link rel= “stylesheet” type= “text/css” href=” http://hoopsjones.com/wp-content/themes/bp-sn-parent/IE_6_style.css” />
<![endif]–>
<!–[if IE7]>
<link rel= “stylesheet” type= “text/css” href=” http://hoopsjones.com/wp-content/themes/bp-sn-parent/IE_7_style.css” />
<![endif]–>
October 30, 2009 at 4:28 pm #55485In reply to: Easy Fixed Width Theme
gazouteast
ParticipantThanks Rocket – that’s less new code than the method I’d ended up using after 6 hours of hair pulling
well done that man.
Gaz
October 30, 2009 at 4:22 pm #55484In reply to: "Auto Group Join" plugin added
gazouteast
ParticipantOoh I so want this plugin for when I finally get group avatars to work
Westpointer, anyway you can add me to a notify list for once the bugs are ironed out? – maybe create a group here on BP.org that we could all join
Thinking about it – does BP.org allow group creation for individual plugin and theme authors to develop a “fan club”? Would be a good idea in my reckoning.
Gaz
October 30, 2009 at 8:54 am #55459In reply to: Removing default Avatars from Blog Listing View
John James Jacoby
KeymasterBecause blogs can have more than 1 user/author, there’s no way to really know which user avatar to use for a blog. Blog avatars are coming, and maybe sooner than later, but for the moment there’s nothing in the 1.1.2 core that makes it immediately easy to replace the blog avatars, other than a custom theme of some kind.
October 30, 2009 at 3:57 am #55453In reply to: Docs on buddypress.org?
John James Jacoby
KeymasterAndy has installed on the codex a very quick and simple way to modify the individual pages of the codex. It’s a customized setup of sorts, but it’s really just another WPMU blog that everyone has the ability to edit.
In future versions of WordPress (probably 3.0) posts will become more robust and be better suited for something like this. Until then the codex is basically just pages and sub pages with a theme that knows how to make sense of the hierarchy.
October 30, 2009 at 3:53 am #55452In reply to: Removing default Avatars from Blog Listing View
John James Jacoby
KeymasterThey are currently using a gravatar replacement image. In the future these avatars will be more robust, but at the moment if you really dislike them you can change your theme to use whatever you’d like.
October 29, 2009 at 10:19 pm #55439In reply to: Docs on buddypress.org?
Paul Wong-Gibbs
Keymastercodex.bp.org is a standalone installed themed to look the same.
October 29, 2009 at 7:09 pm #55435In reply to: Question about theme for forums directory, 1.1.
Tore
ParticipantI never solved this and others seem to have the same kind of problem. I’ll try to rework the whole website so that I don’t need a primary blog.
October 29, 2009 at 5:16 pm #55431In reply to: [Resolved] User Roles
Anonymous User 96400
InactiveThese functions should sort you out, garynagel:
function sv_check_current_users_blog( $active_signup )
{
if( ! is_user_logged_in() )
return $active_signup;
if( current_user_can( 'YOUR_CAPABILITY' ) )
return $active_signup;
else
return 'none';
}
add_filter( 'wpmu_active_signup', 'sv_check_current_users_blog' );
function sv_remove_create_blog()
{
if( ! current_user_can( 'YOUR_CAPABILITY' ) )
bp_core_remove_subnav_item( 'blogs', 'create-a-blog' );
}
add_action( 'wp', 'sv_remove_create_blog' );You need to place these functions in your themes functions.php and replace YOUR_CAPABILITY with whatever capability you want to check for. You also need to have blog creation enabled. I’m using a slightly modified version of this to restrict users to maximum 1 blog, so I didn’t test this code at all.
The first function uses a filter to set the variable $active_signup to ‘none’ if the current user does not have a certain capability and for that user blog creation will be disabled. If the user has that capability the variable is not changed.
The second function removes the blog creation tab from the submenu. You probably need to modify the registration page as well.
Hope this helps.
October 29, 2009 at 2:36 pm #55421In reply to: Trouble installing themes and making them work
Joe Affiliate Kennedy
ParticipantSite is at http://Partners4Housing.com
October 29, 2009 at 1:37 pm #55408Paul Wong-Gibbs
KeymasterAs long as you are doing this from within the bp_has_site_members() loop (and not the friends loop or something by accident), it should work. Have a look at the usage in theme/directories/members/index.php
October 29, 2009 at 1:10 pm #55401In reply to: Set a default template for blogs
Anonymous User 96400
Inactiveit’s the name of the folder holding all your theme files
October 29, 2009 at 11:14 am #55395In reply to: custom profile data not getting saved in BP 1.1.2
buzz2050
ParticipantSure, will refer the codex for adapting to the new theme way John, thanks!
These are the links that I’m referring to, great documentation available to help users with all the info they need to switch to the 1.1 theme architecture :
https://codex.buddypress.org/getting-started/upgrading-from-10x/
https://codex.buddypress.org/how-to-guides/upgrading-a-buddypress-1-0-theme-for-buddypress-1-1/
https://buddypress.org/blog/news/the-new-buddypress-theme-architecture/
https://buddypress.org/forums/topic/details-about-the-new-theme-architecture
https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/
https://buddypress.org/forums/topic/extending-wordpress-themes-post-experiences
Meanwhile, is there any alternative to bp_core_signup_do_signup() in BP 1.1.2?
Thanks,
Sib
October 29, 2009 at 7:13 am #55392In reply to: how to change in top menu bar "Member" to "Analyst"
Paul Wong-Gibbs
KeymasterI would recommend you create a child theme (see https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/), copy header.php into it and make your change there.
October 29, 2009 at 4:24 am #55387In reply to: custom profile data not getting saved in BP 1.1.2
John James Jacoby
KeymasterCheck the codex for how to upgrade your BP theme from the 1.0 method to the 1.1 method. It’s actually easy, but just takes care following the directions. I’m not replying from my dev machine so I can’t browse through the sources easy at the moment, but try upgrading your theme to the 1.1 architecture at least and see if that brings you any success.
Otherwise there might be some deprecation getting in the way somewhere…
October 29, 2009 at 3:41 am #55386In reply to: Existing blog doesn't show up in BuddyPress
still giving
ParticipantI have tried toggling on and off privacy and that does not make any difference.
Buddypress is 1.1.2 – Theme is default Buddypress theme.
However, if I make a new blog, that blog *IS* shown in the ‘user’s blog’ list.
Can anyone tell me where in the database this information is held and so, perhaps, I can hand edit for old blogs?
Thanks.
October 29, 2009 at 1:58 am #55384In reply to: Set a default template for blogs
deniscarr
ParticipantThanks Travel-Junkie!
Trying to implement this instead of making new users switch themes.
One silly question (sorry I’m a newbie):
– when replacing “YOUR_TEMPLATE_NAME” in the code, do I use the folder name for my member’s theme (in my case “bp-default_members”) or do I use what I’ve called it as “name” in the CSS
Thanks!
October 29, 2009 at 1:41 am #55382In reply to: custom profile data not getting saved in BP 1.1.2
buzz2050
ParticipantYup, that is the problem it seems – the old 2-theme structure.
I am using the premium ‘edu-clean’ home theme coupled with the BP default ‘bpmember’ theme which is no longer in existence after I have upgraded my BP to 1.1.2. I needed to customize my ‘register’ page. Instead of using WPMU wp-signup.php, I wanted my signup page similar to bphome’s.
To accomplish this, I simply created a page template(register.php) similar to bphome’s. Added a new page with the register slug, associated it with this template and made the user redirect from wp-signup.php to /register.
My problem is, on my register template I have used <?php bp_core_signup_do_signup() ?> to display the registration form in the left-column widget. Now, from what I understand, this function is deprecated in 1.1.2. Perhaps, this is the reason my profile fields aren’t getting saved? I still am not sure, but in any case, I would like to replace this function with its equivalent function in 1.1.2.
I want to retain this layout (i.e using edu-clean as the WPMU theme and bpmember as the BP theme) as of now. I still haven’t gotten the hang of the new single-theme architecture, but I’m working on it. Until I get that right, is there any way we can save our site users the trouble of having to save their profile fields twice?
Please advice!
-Sib
October 29, 2009 at 12:34 am #55380In reply to: Remove email confirmation
Brajesh Singh
Participantyou are most welcome

Well,just go to your current theme and edit registration/register.php,remove the line saying “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”.
you will see it somewhere written under
‘<?php if ( ‘completed-confirmation’ == bp_get_current_signup_step() ) : ?>’
Remove that.
Better I just suggest to remove the avatar uploading step,as the account gets already activated and the uploaded avatar(the second screen of registration)(which earlier were used at the time of activation will not work)
so,If you are using un modified default theme,you can remove the code from line 215(where the if starts) to 276,where the if ends safely.
Please note,The avatar uploading step at registration will not work,so just remove that step.that’s it.
Thanks
Brajesh
October 29, 2009 at 12:02 am #55377In reply to: Filter members by custom fields
buzz2050
ParticipantWell, I would be happy to share the solution, but I don’t really think my way is all that elegant, there’s got to be a better way and I’m waiting for someone to suggest it to me.
Meanwhile, I am still using the old 2-theme model. I made some customizations in my bpmember theme to achieve this and put in some code in plugins/bp-custom.php as well.
Firstly, we have a custom profile field called ‘Role’. And we wanted to have separate Role-tabs (as you can see on our site) to list all members for THAT role.
To achieve this, I completely changed the bpmember/directories/members/index.php code and put in my ‘Role’ tab-structure there. Then, instead of making the members index file call the members-loop, I wrote a modified version of the members-loop, made it as a function and put it in my bp-custom.php. Now I make a call to this function (which is basically the members-loop) from my bpmember/directories/members/index.php page.
To give you an eg of how we display all companies under the Company tab:
In my bpmember/directories/members/index.php, under the code section for ‘Company’ tab I make a call like:
display_members_by_role(‘Company’);
In my bp-custom.php, I have written a function display_members_by_role($role) which is nothing but a slightly modified version of the members-loop.
Here, in the ‘while’ for members-loop, I check for the Role field for that user-id. For this eg, if the Role is ‘Company’, print that member in the company-listing, else not.
This is the code I have put in the members-loop which checks the custom profile field (which is this case is ‘Role’) and it’s value for that user-id:
...
...
<?php while ( bp_site_members() ) : bp_the_site_member(); ?>
<?php
global $site_members_template ;
$arr = BP_XProfile_ProfileData::get_value_byfieldname(array('Role'), $site_members_template->member->id) ;
if( $arr['Role'] == $role) //$role is the role value received by the function, in this eg - Company
{
//do whatever
}
<?php endwhile; ?>
....
....Same logic is used for all other roles.
BTW, get_value_byfieldname() can return values for multiple fields too. In case you want to retrieve values of more than one profile fields, its easily possible. Say I want the ‘City’ custom field value too, then I would pass something like –
$arr = BP_XProfile_ProfileData::get_value_byfieldname(array(‘Role’,’City’)
and access the ‘City’ value using $arr[‘City’]
This function is pretty handy.
While I am able to print the members belonging to that corresponding role using this logic, what I can’t get into place is the pagination part. The pagination still takes into account ‘All’ members since the members-loop technically does retrieve all members.
All I have done is put a condition in order to just get the members for that role displayed. I was wondering if I should put in a separate pagination module, or if there is any other way of achieving this whole thing.
-Sib
October 28, 2009 at 11:56 pm #55375In reply to: Custom Group Avatars went *Poof*
kiwipearls
Participantfound the reason why it was not working, the new theme I uploaded to the wrong theme directory. Feel like a big noob now *embarrassed*
But I spose without asking for help here I woudn;t have been able to troubleshoot where I went wrong.
So thanks everyone
October 28, 2009 at 11:50 pm #55374In reply to: Status Feature Not Working
kiwipearls
ParticipantOk found out I had them in wrong directory. I was getitng the two theme directorys mixed up.
> NoobOctober 28, 2009 at 11:48 pm #55373In reply to: Status Feature Not Working
kiwipearls
ParticipantIn my Buddypress settings under: Select theme to use for BuddyPress generated pages:
In the pull down menu it only has buddypress defualt member theme 1.0.3
It does not show the updated themes at all.
October 28, 2009 at 11:41 pm #55372In reply to: Status Feature Not Working
kiwipearls
ParticipantI copied the updated themes over to the themes directory…so I don’t know what is going on.
Will go through everything this afternoon.
October 28, 2009 at 9:24 pm #55367In reply to: Status Feature Not Working
John James Jacoby
KeymasterPossible that you’re not using the updated themes?
bp-default and bp-sn-parent
-
AuthorSearch Results