Search Results for 'theme'
-
AuthorSearch Results
-
July 9, 2009 at 10:02 pm #48964
In reply to: Permission Denied in Content and Events plugin
Burt Adsit
ParticipantDid you move the plugin theme templates to your active theme?
July 9, 2009 at 7:39 pm #48956In reply to: BuddyBar for bbPress
Ipstenu (Mika Epstein)
ParticipantAdded this to my style’s css and it works:
/* Fixing Admin Buddy Bar */
#wp-admin-bar img#admin-bar-logo {
padding-top: 13px;
position: absolute !important;
top: 8px;
left: 10px;
}That 13px feels so weirdly random to me. Ah well. My pm to JJJ was #666, my fix for CSS was #13… There’s a theme going on here!
July 9, 2009 at 11:55 am #48913In reply to: How to code in new menu button
Burt Adsit
ParticipantI don’t really understand what all that above is at all. If you are trying to add a new nav item to the member and bp home themes then you need to do something similar to the following:
function oci_bpc_nav_item(){
?>
<li<?php if ( bp_is_page( OCI_CONTENTS_SLUG ) ) {?> class="selected"<?php } ?>>
<a href="<?php echo bp_core_get_root_domain() ?>/<?php echo OCI_CONTENTS_SLUG ?>
" title="<?php _e( 'Contents', 'bpcontents' ) ?>">
<?php _e( 'Contents', 'bpcontents' ) ?></a></li>
<?php
}
add_action('bp_nav_items', 'oci_bpc_nav_item');That’s the way bpc hooks the action ‘bp_nav_items’ that header.php generates after displaying the default nav items. Your ‘Event’ and ‘Content’ items are displayed that way. You need to define a function that responds to ‘bp_nav_items’ and generate the appropriate html for the button.
July 9, 2009 at 7:39 am #48906In reply to: BuddyPress Showoff: Post your links
Robert
Participantok, here’s my first buddypress powered site ready to go public.
As you can see my theme was very much inspired but the buddypress website.
Hope you like.
July 9, 2009 at 5:42 am #48901In reply to: Bug (?): private message to two members
Greg
ParticipantBumping this to see whether I am the only one who can see this fairly basic bug. I have repro’d on a site with no customization and standard themes, and on testbp.org.
July 8, 2009 at 11:34 pm #48882r-a-y
KeymasterCan you post your full <ul id=”header”>?
I have a feeling something is messing up there.
—
Actually you know what?
Use the default header from the original bpmember theme… and see if you get any weird bugs.
<ul id="header">
<li<?php if ( bp_is_page( 'home' ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a></li>
<li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php bp_home_blog_url() ?>" title="<?php _e( 'Blog', 'buddypress' ) ?>"><?php _e( 'Blog', 'buddypress' ) ?></a></li>
<li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_MEMBERS_SLUG ?>" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a></li>
<?php if ( function_exists( 'groups_install' ) ) { ?>
<li<?php if ( bp_is_page( BP_GROUPS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_GROUPS_SLUG ?>" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a></li>
<?php } ?>
<?php if ( function_exists( 'bp_blogs_install' ) ) { ?>
<li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_BLOGS_SLUG ?>" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a></li>
<?php } ?>
<?php do_action( 'bp_nav_items' ); ?>
</ul>July 8, 2009 at 11:14 pm #48875connorg
ParticipantWhat i did was go into the header.php file for the bp-home theme, and edited what was within the <ul id=”header”> tag. For example, this is what I have for the Games page I created through the Dashboard:
<li<?php if ( bp_is_page( games ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo games ?>" title="<?php _e( 'Games', 'buddypress' ) ?>"><?php _e( 'Games', 'buddypress' ) ?></a></li>. The only differences are those I felt were relative to the new page.such as where it says bp_is_page, I put games into the perenthesis instead of what was there before.July 8, 2009 at 10:14 pm #48863In reply to: Comments won't display on main blog
r-a-y
KeymasterYour code is missing the all-important add_action!
You had the function defined, but nothing is executing it! hehe
Yeah there’s at least three functions in the default bphome theme functions.php that you should copy over.
Just copy the whole functions.php file over from bphome and you should be good to go!
Remember to green light the thread and select “resolved”!
July 8, 2009 at 10:03 pm #48858In reply to: Add you blog search to the search
r-a-y
KeymasterThe BP search form is generated from the bp_search_form() function.
Short answer is you can’t modify that function.
But you can add this to your BP member theme:
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<label class="hidden" for="s"><?php _e('Search for:'); ?></label>
<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>Copied and pasted from default Kubrick WP theme.
That should work, but report back and let me know.
July 8, 2009 at 8:55 pm #48853In reply to: Comments won't display on main blog
r-a-y
KeymasterI think I’ve got it.
Do you have the same functions.php in your “buddypress-home” theme?
This is the code that does the magic:
function bp_show_home_blog() {
global $bp, $query_string;
if ( $bp->current_component == BP_HOME_BLOG_SLUG ) {
$pos = strpos( $query_string, 'pagename=' . BP_HOME_BLOG_SLUG );
if ( $pos !== false )
$query_string = preg_replace( '/pagename=' . BP_HOME_BLOG_SLUG . '/', '', $query_string );
query_posts($query_string);
if ( is_single() )
bp_core_load_template( 'single', true );
else if ( is_category() || is_search() || is_day() || is_month() || is_year() )
bp_core_load_template( 'archive', true );
else
bp_core_load_template( 'index', true );
}
}
add_action( 'wp', 'bp_show_home_blog', 2 );July 8, 2009 at 8:41 pm #48848In reply to: Comments won't display on main blog
r-a-y
KeymasterOkay I think I can safely say it’s a BP theme issue.
You need to make sure your code is exactly the same as the default wp-content/themes/bphome/comments.php (or wp-content/plugins/buddypress/bp-themes/bphome/comments.php)
Try that.
July 8, 2009 at 8:21 pm #48841In reply to: Comments won't display on main blog
3411446
InactiveI am actually using a custom theme I made myself by modifying the buddypress home theme. It is the only theme available on the website. I’ve disabled all others.
Here is the link to the website. http://entreprenuerinmaking.com
You will notice that viewing articles at http://entreprenuerinmaking.com/blog you do not see the comments section, but if you go to http://entreprenuerinmaking.com/twd the comments section is visible.
Placing echo statements in the theme files further shows that the /blog site is using index.php to serve a single article, while the /twd site is using single.php to serve a single article. They should both use the single.php file. In order to resolve my issue I have to figure out why.
July 8, 2009 at 8:08 pm #48838In reply to: Comments won't display on main blog
r-a-y
Keymastertwdsje, by the sound of it, I’m guessing you’re using the default WordPress MU home theme.
You can choose a different theme you know!
Do you even have BuddyPress installed?
If you do, select the BuddyPress home theme or some other WordPress theme in the WPMU admin area and you’ll see something entirely different.
That’s the beauty of themes!
July 8, 2009 at 7:56 pm #48836In reply to: Comments won't display on main blog
3411446
InactiveI guess my main question here is why does the main blog use the index.php part of the theme to display a single article, when all the other blogs using the same theme use single.php?
July 8, 2009 at 7:25 pm #48830In reply to: Comments won't display on main blog
r-a-y
KeymasterThis doesn’t sound like a BuddyPress issue.
It’s a WPMU issue; to be more specific, it’s a theme issue.
Do you want to show a link to comments or do you want to show actual comments?
There are number of ways to do this… theme hacking or adding a widget which displays the latest comments.
Adding a widget would be the simplest, but it depends on what you want to do.
July 8, 2009 at 7:22 pm #48829In reply to: Home Theme and Member Theme troubleshooting
r-a-y
Keymasterbtw, good luck with your conference in November

Oh and be sure to green light this thread… set the thread to “resolved” at the top!
July 8, 2009 at 7:01 pm #48827In reply to: Home Theme and Member Theme troubleshooting
malbatron
ParticipantThank R-A-Y! It works! I went ahead and also added that line to the style.css in the bphome theme.
Again, thanks so much!
July 8, 2009 at 6:47 pm #48824In reply to: Home Theme and Member Theme troubleshooting
r-a-y
KeymasterArghh… your server hates me! Way too slow!
This will work… in your bp-themes/bpmember/style.css, add this:
#header {height:112px;}Adjust the height to your liking… don’t ask me why I have to define the height… it’s what works the quickest at this time without me going into your CSS and debugging!
July 8, 2009 at 6:34 pm #48820In reply to: Home Theme and Member Theme troubleshooting
malbatron
ParticipantHi Ray,
Here’s the LINK. It’s on the member theme. I appreciate any help you offer!
July 8, 2009 at 6:27 pm #48817In reply to: Home Theme and Member Theme troubleshooting
r-a-y
KeymasterWhich one is the bad header? The home theme or the member theme?
Looks simple enough… the container holding the bad header needs a background CSS attribute. That’s what my guess would be.
I can’t do anything from here without a link though!
July 8, 2009 at 6:23 pm #48815r-a-y
KeymasterYes you need deep integration for the BuddyBar bbPress plugin.
Make sure you follow the instructions in the readme.txt.
Also for the forum look… unless you’re using the default BuddyPress look + Manoj’s bbPress theme (http://manojkumar.org/buddypress-theme-for-bbpress/), you’ll have to basically create a new theme that matches your WP/BuddyPress theme.
There’s no really good way around it I’m afraid.
July 8, 2009 at 6:21 pm #48814In reply to: Home Theme and Member Theme troubleshooting
malbatron
ParticipantI’m pretty sure it’s simply a CSS problem but I’m killing myself trying to figure out how to fix it! I took the advice of the FAQ and have been using Firebug (which is great!) but I’m still at a loss. Here are some shots of the good header (this includes the nav area):
and bad header:
Any CSS pros out there willing to help a newbie?
July 8, 2009 at 6:03 pm #48808In reply to: BuddyBar for bbPress
matthijsv
ParticipantI was adding these lines (from the readme.txt)
if ( !defined( 'ABSPATH' ) & !defined( 'XMLRPC_REQUEST' )) {
define( 'WP_USE_THEMES', false );
//
// You will need to get the ABSOLUTE path to this file |
// |/
//include_once( '/usr/home/dragons/domains/dragonsconnect.eu/public_html/preview/wp-blog-header.php' );
header( "HTTP/1.1 200 OK" );
header( "Status: 200 All rosy" );
}When I add the line you suggested I get the same result, no response at all from any bbpress page.
-edit-
Seems that wp-blog-header.php is causing the error, I’m expirimenting with commenting out some lines there atm.
July 8, 2009 at 4:55 pm #48800Jeff Sayre
Participantyairnazz-
You need to learn CSS and basic WordPress theming skills. Below you will find a few links to get you started.
Also, since your issue has nothing to do with the proper functioning of BuddyPress, I’m changing the topic indicator to “not a support question”.
- https://codex.wordpress.org/Blog_Design_and_Layout#Themes_and_Templates
- http://www.w3schools.com/Css/default.asp
- https://codex.buddypress.org/getting-started/using-the-buddypress-themes/
- You should use Firefox with the Firebug Add-on. It is a great tool that not only allows you to find out within which files certain CSS selectors are located, but also to temporarily change them and see what impact they have on the design.
July 8, 2009 at 3:50 pm #48795dainismichel
ParticipantThese two threads also contain relevant info:
https://buddypress.org/forums/topic/default-theme-issues
However, I’m still interested in distilling a procedure out of them. How should I proceed?
Best,
Dainis
-
AuthorSearch Results