Search Results for 'theme'
-
AuthorSearch Results
-
May 9, 2009 at 12:58 am #44851
In reply to: Members Directory
Burt Adsit
ParticipantThe last time i fooled around with the member theme at the sidebar/widget level I couldn’t use dynamic sidebars. It was just flatly impossible. Seems things have changed. I’ve gotten them running in the member theme but have only been able to select sidebars that are defined in whatever theme I have defined for the wp blog id 1 theme.
Like I say it’s been quite awhile since I looked at this problem and to my surprise it actually works now. Sort of, with restrictions, kinda. Perhaps I’m just doing it the wrong way. I’ll tell you how I got it done.
The problem really is that the member theme isn’t a real registered theme. You only get one theme per blog with wp. That one is the one activated for that particular blog. I currently have the bp home theme registered for blog id 1. It registers 3 sidebars and those are the ones that are available for the theme.
The bp member theme doesn’t register any sidebars by default and doesn’t include the default sidebar template file either. I suggested above that you use the sidebar template from the home theme. That alone was not enough to get widgets into the member theme. I stuck the normal code for using dynamic sidebars into the sidebar template like this:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<?php endif; ?>That got me exactly nothing. So I included sidebar registration code in the member theme’s functions.php file where it normally gets put.
register_sidebars( 1,
array(
'name' => 'member-sidebar',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>'
)
);I named my new sidebar ‘member-sidebar’ thinking that it would show up in the back end of wp where I could then register some widgets for my ‘member-sidebar’. Nope. The ‘member-sidebar’ doesn’t show up.
I did get the first sidebar to display in the member theme though. Whatever was defined in the wp theme as the first registered sidebar, showed in the member theme. Well this is progress ‘eh? Something is showing in the member theme. I had to mod the member theme css to have it appear though. The #sidebar div isn’t in the base.css for the member theme. I modified the #content div in base.css and included the new #sidebar div.
Still with me? Now I have *a* sidebar with widgets in the member theme. Well I don’t want just any widgets, I want to specify what specific widgets get displayed right? Anyway I finally figured out that I have to register *all* the same sidebars that the wp theme on blog id 1 register. I copied all the function.php sidebar registration calls from the home theme’s function.php and stuffed them into the member theme’s function.php.
Works like a charm. Now in my member theme template file plugin-sidebar.php I can specify which sidebar I want to display.
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('blog-sidebar') ) : ?>That above just happens to be the one I chose to test that I could have any sidebar I wanted in that template. Works. Well, I didn’t want one of those sidebars at all. I wanted a separate sidebar for my member theme. ‘member-sidebar’. That would not show up until I included the registration function in both the home theme and the member theme. Then I get to change the code above to be ‘member-sidebar’.
Like I said I may be doing this all wrong and hope that someone comes up with a better solution but this is the one that works for me.
1) Add another register sidebar call to the wp theme running on blog id 1. Like this in your blog id 1 functions.php file:
register_sidebars( 1,
array(
'name' => 'member-sidebar',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>'
)
);I stuck that under the other 3 calls in the default home theme.
2) Copy *all* the register_sidebars() calls from the home theme functions.php file to the member theme’s functions.php file. They should look the same now when it comes to sidebar registration calls.
3) Copy the sidebar template file that is distributed with the home theme plugin-sidebar.php to the member theme dir.
4) Modify the plugin-template.php file in the member theme to load the new sidebar template also.
<?php get_header() ?>
<div class="content-header">
<?php do_action('bp_template_content_header') ?>
</div>
<div id="content">
<h2><?php do_action('bp_template_title') ?></h2>
<?php do_action('bp_template_content') ?>
</div>
<?php bp_get_plugin_sidebar(); ?>
<?php get_footer() ?>That’s my plugin-template.php file that lives in my member theme.
5) Modify the plugin-sidebar.php template in the member theme to look like this:
<div id="sidebar">
<?php do_action('bp_template_sidebar') ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('member-sidebar') ) : ?>
<?php endif; ?>
</div>6) Modify the member theme css to include the new #sidebar div that didn’t exist before. I just did it this way for the content and sidebar divs:
#main #sidebar{
margin-left:70%;
margin-right:20px;
}
#main #content {
float: left;
width: 65%;
position: relative;
padding: 2em 3em;
}Use whatever is appropriate for your member theme.
7) Fire up the back end of wp and add widgets to the ‘member-sidebar’. Enjoy your new member theme sidebar.
May 9, 2009 at 12:39 am #44849In reply to: Problems adding a friend
alunsina
Participanti am using facebuddy done by sgrunt. also not working even with default theme.
May 8, 2009 at 11:22 pm #44845Andrea Rennick
Participant“Member blogs come up, but each new member would have to configure their own widgets.
I’d like members to be able to join and have everything set up for them. “
this comes up under basic WPMU blog defaults, and is covered extensively over in that forum. there’s even 2 plugins available to set blog defaults.
with widgets it’s a little different – if you don’t want them to change anything, don’t use widgets. hardcode it in the theme sidebar.
May 8, 2009 at 11:07 pm #44843In reply to: The page you were looking for was not found.
Jeff Sayre
ParticipantAfter disabling bphome and just running on the classic wordpress theme whenever I visit any of the pages that involve BP scripts I get the error.
A classic WordPress theme will not work with BuddyPress. There is BP-specific code within BP themes and BP theme folders. The question is, what happens when you use the standard BP themes that come with BuddyPress?
Also, after switching to the standard BP themes, and if you’re still having issues, then you should set PHP to run on version 5 instead of 4 and see what happens.
May 8, 2009 at 9:00 pm #44838In reply to: The page you were looking for was not found.
Will White
ParticipantI’ve redownloaded everything back to the original server, and even made sure to upload (specifically) the bp-themes folder from here. After disabling bphome and just running on the classic wordpress theme whenever I visit any of the pages that involve BP scripts I get the error.
You do not have any BuddyPress themes installed.
Please move “/wp-content/plugins/buddypress/bp-themes/” to “/wp-content/bp-themes/” and refresh this page. You can download more themes here.
The files are in the right place and when I go to BuddyPress settings as a site administrator both the bpmember and skeleton member themes are available. I’ve tried the click it method I’ve seen in other posts but its not working. Do you have another tactic at fixing that situation? I think that is whats causing the majority of these 404’s.
May 8, 2009 at 7:53 pm #44833Ezd
ParticipantWhat im interested in is actually 2 things:
– Understanding how these 3 pages works in general. Do they belong to the bp-member or bp-home theme or both.
– Figuring out how I create a copy of lets say the Member page, then give that page an entire new name/slug.
May 8, 2009 at 7:52 pm #44832In reply to: 404 errors – fresh install
Will White
ParticipantI’ve been having the same problems. All the theme files were placed in the right spots and now a few of the pages on the front end work, but most of the user specific stuff is still popping 404s. I have a post in the how-to section that died about about this topic. Looks like we’re S.O.L. for a bit until someone has a eureka moment.
May 8, 2009 at 6:48 pm #44826In reply to: Members Directory
Burt Adsit
ParticipantThe 1.0 member theme plugin-template.php doesn’t include the sidebar. You’ll have to copy the plugin-sidebar.php template over to the member theme dir. Also the plugin-template.php file doesn’t include the call to launch it. If you look at the home theme’s plugin-template.php file you’ll see the difference. It has a diff set of divs and a call to bp_template_sidebar() which you’ll have to include in the member theme’s plugin-template.php.
You do know that this doesn’t really setup a normal wp sidebar were you can install widgets from the back end of wp right? All the sidebar does is trigger an action that you have to trap in your code.
Burt Adsit
ParticipantWarning: bp_show_register_page(BP_PLUGIN_DIR/bp-core/bp-core-signup.php) [function.bp-show-register-page]: failed to open stream: No such file or directory in /home/www/missionaries.net/wp-content/themes/buddypress-home/functions.php on line 70
Did you deactivate the bp plugin? It doesn’t seem to be running. If it’s not available for selection then check the /wp-content/plugin dir for it’s existence. If it doesn’t exist reinstall it.
Finding out why it got deactivated or it doesn’t exist anymore would be the next step.
May 8, 2009 at 3:27 pm #44809In reply to: 404 /blog /members etc… RC2 WPMU 2.7.1
Jeff Sayre
ParticipantOkay, I’ve reread this thread for the second time. You state that:
The problem must be with the data; since a fresh install works perfectly and after the data gets imported, I get the nasty 404 bug.
Andy’s answer is:
This is normal with WPMU, you are not going to be able to transfer over blog tables as there are all sorts of URL settings in the DB.
I have a few questions based on this interchange:
- Which version of MySQL are you (is your host) running?
- Have you tried repairing the DB tables before reimport?
- Are you moving your data between different domains?
Since WPMU 2.7.1 + BuddyPress 1.0 + standard themes work fine with a new, empty MySQL DB, the issue is, as you state, with the data. Either you have data corruption, indices that need reindexing, or hardcoded links within the tables that are causing the 404s.
If the domain mapping is not identical to the hardcoded links in your WPMU tables, you will have issues.
So, here’s what I’d suggest:
- Backup your data again
- Then, repair/reindex
- Then, if your domain mapping is not identical, follow these instructions keeping in mind that these articles are for WP and not WPMU. You’ll have to adjust accordingly:
May 8, 2009 at 3:26 pm #44808In reply to: Buddypress theme for bbPress ?
rrijke
ParticipantIlya,
I’m working on a project where i must integrate WPMU, buddypress and bbpress all together.
http://terafriu.com/forum/ is the forum page. I have modified the kakumei theme that came with bbpress. Changing the header and footer will go a long way. But it ultimatly depends on what you are trying to acheive. For the time being you’ll either have to create/modify your own.
Keep in mind that Buddypress is a fairly new application and we should be gratefull to get such an application for free! When the important stuff like bug fixes etc are resolved we will see tons of themes, just like WordPress.
May 8, 2009 at 2:32 pm #44799In reply to: How to add pages to the navigation?
alunsina
Participanthere’s something i have lying around. i’m not sure where i got it. not very good at records:

<?php
function add_about_to_main_menu() {
$class = (bp_is_page(‘about’)) ? ‘ class=”selected” ‘ : ”;
echo ‘<li ‘ . $class. ‘>‘ . __( ‘About’, ‘buddypress’ ) .’‘;
}
add_action(‘bp_nav_items’,’add_about_to_main_menu’);
?>
end here.
create this as something like aboutmenu.php then edit the link (href part). this way you wont have to muck around the theme files.
hope that helped!
May 8, 2009 at 1:59 pm #44795In reply to: BuddyPress Skeleton Component v1.2 RC-2
Jan M.
ParticipantYou’ll have to edit the css-file in your member-theme.
In the css/base.css file you’ll find something like this:
li a#user-settings, li a#my-settings {
background: url(../images/settings_bullet.gif) 88% 52% no-repeat;
}
Just copy that and change the “a#user-settings” to whatever fits your component, like “a#the-navigation-slug”. Don’t forget to put your image in the according folder and changing the name in the code to that name.
May 8, 2009 at 12:53 pm #44784In reply to: Problems adding a friend
Burt Adsit
ParticipantJust tested with 1.0 and works ok for me. Are you using a custom member theme?
May 8, 2009 at 4:11 am #44760In reply to: bpContents 0.1X Core Code – Dev Sneak Peek
Burt Adsit
ParticipantChanges 0.14
– Fixed terms coming in from blog posts with only ‘names’ and not ‘slugs’ also. Propagating that fact down to term creation in bpcontents.
– Added getting terms by array of ids in OCI_Term with one query like getting an array of items in OCI_Items
– Removed the method OCI_Container::get_containers() as containers should manage tags and items only. Makes things simpler. Use the tree functions for container management and info.
– Added OCI_Container::get() and get_by_meta() to allow quick path lookups of node id from node meta to eliminate mult queries when parsing the path
– Nobody reads this stuff. I like cats more than I like dogs. Cats fend for themselves and enjoy killing small animals. I do too.
– Added OCI_Item_User class. This allows users to be treated like content items. Bagged, tagged and categorized.
– Created bpContents as a member theme component. Add a crude component function to the member theme. Same functionality as the oci-test-template.php. Just dumps the /recent container.
– Testing the OCI_Item_User class by creating new user items, based on the content author, for each new content item created.
– Reverted back to the oci-content directory structure. Still distributing as bpcontents.zip
May 8, 2009 at 3:48 am #44756In reply to: Forum Integration: HELPING HINTS
John James Jacoby
KeymasterDantes, if you view the forum via the groups page, then yes it will show up integrated into the BuddyPress group area. Otherwise, bbPress is its own application with its own plugins and theme files. You would need to create a theme to mimic the style of the rest of your website.
May 8, 2009 at 3:30 am #44750In reply to: Static Front Page, Blog Link Doesn’t Work
John James Jacoby
KeymasterWell, you turn off the static front page for starters.
If what you’re saying is that you want your home page to be static, and have /blog be your blog, you can just customize home.php in your theme directory and have that be your home page?
Otherwise, you’ll need to rename or remove home.php, set your static front page, and create a page called “Blog” and set it to be your blog.
May 8, 2009 at 1:52 am #44743In reply to: Widgets only added to left-column
nickdunny
ParticipantI think I had the same or similar issue. My blog page was always showing on the main page, so I could only add widgets to the Blog-Sidebar. I messed around with the settings for a while and figured the problem should be stemming from the “bphome” theme. My solution; given that I hadn’t made any modifications in the back, was to just download the latest bphome theme and do a little switcheroo. Delete the faulty put the new in. Hope that helps.
-Dunn
May 7, 2009 at 10:48 pm #44731In reply to: How to add pages to the navigation?
John James Jacoby
KeymasterEasiest way is to edit the header.php files of your Home and Member themes.
May 7, 2009 at 8:22 pm #44724In reply to: Mobile Theme
belogical
Participantbump
May 7, 2009 at 5:22 pm #44718In reply to: first things first
David Lewis
ParticipantTry this to make the site always 800px wide in ALL browsers:
in core.css
1) remove the min-width from #main (so it will always be 100% of it’s parent)
2) remove min-width and max-width from body (since you want a fixed width and IE6 doesn’t understand min/max)
3) add “width: 800px;” (or whatever you want) to body (so the entire site will always be this wide)
in admin-bar.css
1) remove “left: 0;” from #wp-admin-bar (so this absolutely positioned element will center itself within the body)
The theme will be a little cramped at 800px… but this should work. Again, if this is just an IE6 issue, I use conditional comments to accomplish what you want (I’m still not 100% sure I understand what you’re trying to achieve).
May 7, 2009 at 1:13 pm #44698In reply to: Buddypress theme for bbPress ?
ilya-skorik
ParticipantI am understand all this. But the answer will be short – is not present? It is a pity that I cannot make a forum similar to a forum of this site.
I now try to understand, can I do migration from phpbb3 community on buddypress engine. While the answer one – I can not.
But the project very interesting. It is more than possibilities on moderation and to improve integration with popular forums…
May 7, 2009 at 1:09 pm #44697In reply to: BuddyPress Skeleton Component v1.2 RC-2
belogical
Participantyeah, I am on v1.2 of the component, i was just showing you what I thought was left out when we went to v1.2 from v1.1.
andy, you dirty dog. so it looks like the icon for a new component is no longer supported by the skeleton component v1.2?
hmmm, so how in the devil do I get this to work properly? it looks really odd on my site when all of the main components have an icon on the member theme, and mine doesn\’t.
I made all the changes you suggested, here is the copy of my code. Let me know if I made any mistakes.
http://pastebin.com/m57a2fc51 (v1.2 of my component file, bp-mystuff-cssjs.php)
http://pastebin.com/m69816adc (in my v1.2 file, bp-mystuff.php)
my plugin is now loaded into wp-content/plugins/bp-mystuff
i’m still not able to get an icon to show up.
May 7, 2009 at 12:41 pm #44694In reply to: Buddypress theme for bbPress ?
Jeff Sayre
ParticipantIlya-
If you are asking about bbPress themes in general, then Google and you’ll see that there are a number of themes available for bbPress.
If you’re asking about specially customized BuddyPress-friendly bbPress themes, then the answer is as jjj points out above. With v1.0 of BuddyPress just released, theme designers are more than likely working hard at creating new, custom themes.
Once bbPress is publicly released in a stable version, I would imagine that some theme designers will create BuddyPress-friendly bbPress themes as well.
Remember, these are open source projects. The vast majority of the human resources poured into the community are done so for free. WordPress, BuddyPress, and bbPress all come with themes by default. It is up to the community to take those basic themes and create more flexible, powerful designs.
May 7, 2009 at 10:59 am #44691In reply to: Buddypress theme for bbPress ?
ilya-skorik
ParticipantSo, themes by default for bbpress are not present till now?
-
AuthorSearch Results