Search Results for 'theme'
-
AuthorSearch Results
-
May 23, 2011 at 8:15 pm #112871
In reply to: integrate own theme to buddypress
omri.ts
Memberhey
my template was created with artisteer, thats why its written this way..i’ll try to get further with this walkthrough, thanks !
May 23, 2011 at 8:10 pm #112870In reply to: Navigation HELP
Andrea Rennick
ParticipantUse the custom menu option if the theme supports it. Otherwise, open up the theme files and hardcode the html in there to the various menu items.
May 23, 2011 at 7:30 pm #112863In reply to: Call to arms – Own your task
r-a-y
KeymasterEven the bbPress plugin comes with a small set of fallback template files (as a child theme of twentyten) to display forums.
I didn’t say we’d get rid of bp-default! bp-default can continue to be a parent theme. Even if we backport the simplest changes from bbPress for now like get_template_part() to BP (instead of locate_template() like Bowe mentions above), this will make things very easy to build a plugin to serve BP template files without copying them over to the WP theme (as BP Template Pack does now).
In my unreleased plugin, I created a function similar to bbp_get_template_part(), copied bp-default BP-only template files to my plugin directory and swapped out locate_template() for this new function. The plugin served BP template files. Then, combined with this, all you’d need to is create a header-buddypress.php (or footer-buddypress.php, etc.) in your WP theme to make it gel with BuddyPress.
May 23, 2011 at 4:01 pm #112856In reply to: Theme Development on Trunk
@mercime
Participant== Never edit core! ==
Of course you’re right, DJPaul.
*mercime smacks palm on forehead*May 23, 2011 at 3:27 pm #112850In reply to: Call to arms – Own your task
@mercime
Participantre: default-home, default-member, bphome, bpmember, bp-sn-parent, and bp-default themes
Thank you.re: get_template vs locate_template
A great article on proper usage of get_template_part and locate_template can be found here: http://justintadlock.com/archives/2010/11/17/how-to-load-files-within-wordpress-themes.
locate_template – function searches in the STYLESHEETPATH before TEMPLATEPATH so that themes which inherit from a parent theme can just overload one file https://codex.wordpress.org/Function_Reference/locate_template.May 23, 2011 at 12:49 pm #112846In reply to: Call to arms – Own your task
Bowe
ParticipantThey way JJJ describes it would be the way to go imo.. Looking at the BBPress beta this seems to work well, and it would make things a lot easier (and more fun). I have another question about templating though;
1: Using get_template instead of locate template Is there a reason why locate template is used in BP-Default instead of get_template? Looking at TwentyTen and TwentyEleven they all handle it with get_template.. From what I understand from talking to MrMaz it also allows greater flexibility doing it like this. Because get_template can be filtered/hooked into while locate_template is very inflexible.
2: <get_template_part: This seems to be the way forward for new themes. It allows you to load specific template parts in your theme so you can reuse them. (https://codex.wordpress.org/Function_Reference/get_template_part)
I think both of these things could make the theme more flexible and easier to work with.
May 23, 2011 at 12:49 pm #112845In reply to: Theme Development on Trunk
Hugo Ashmore
Participant
still at a loss as to why you asked or what you asked in the first place but as long as you’ve found what you need alls wellMay 23, 2011 at 12:38 pm #112844In reply to: Call to arms – Own your task
Sven Lehnert
ParticipantHi @All,
I’m writing for themekraft.com, we are a young startup, making our lives with WordPress and 80% BuddyPress related development.
Buddypress has changed our lives and we want to count us in.
We have read the thread from bowe at bp-tricks.com and this thread here, and we want to help, too. It’s like bowe and this thread is bringing our thoughts to the public, and we feel it’s time to come together.We are 3 people, and we can give 2 hour every week to help out. That makes 6 hours – let’s say one day a week.
We are two developers and 1 theme designer.
There are many small and bigger problems we found in our daily work, we like to have changed. And we would immediately start helping.For example: bp-default:
We have developed a theme for BuddyPress. And in the theme you can change sidebars, also for BuddyPress components .
But it’s very difficult for us to provide a left sidebar only, because buddypress comes with a right sidebar in the default theme and the sidebar is included in the pages instead of in the header and the footer.Every component that extends BuddyPress, comes up with the right sidebar in the template files.
That means for us (and all theme devs with theme options like sidebars), we have to rework every template file from every plugin to support having just a left sidebar.
This is just one theme example, we would like to share all experiences to improve theme development with BuddyPress.
We know, there must be at least some templates files for buddypress to work. But they should integrate in different way as now.
We have read this thread, and there are quite a lot of people willing to get their hands on the bp-default.Wouldn’t it be a great thing to have the bp-default in github, so we can create a team to work together the git way?
There is also an issue tracker in github, and I feel it’s much easier as the trac…This way integration in a new bp-default team would be very easy.
Patches and all the BuddyPress stuff.
We have done some funny things with custom post types and groups, because it is so difficult to filter groups in a certain way.
Also if we use the custom post type api, we get a lot of benefits like revision backups and so on.To be honest, we believe that BuddyPress could handle groups more powerful, and we would like to work on this, too.
I have seen the conversation from the BuddyPress ninjas in the early days of 1.2 where JJJ started to think of groups in a API way.
Everything is a group. Like a group of people and so on. I really liked the idea and we would like to see groups become something more powerful.I will stop writing now, hoping we will just start working, as I guess everything has been discussed before.
Thanks for all, we love BuddyPress and see it us a powerful tool to build great websites, often without the need of a direct social network, using it to realize our customers needs.
We look forward to start helping. We always had the feeling before, that it’s not so easy to become a working part.
So just let us know where we can start, or what you need to be doneThanks,
svenl77, konradS and mahypeMay 23, 2011 at 12:34 pm #112843In reply to: Theme Development on Trunk
@mikey3d
Participant"? Do you mean what has been discussed in the posts in this thread?"Either, it’s relevant.
"Have a read of the WP codex, look at functions such as register_style, enqueue_style, enqueue_scripts and associated functions"Nah, just found this helpful How to disable scripts and styles.
Thanks @hnla
May 23, 2011 at 11:47 am #112842In reply to: Call to arms – Own your task
John James Jacoby
KeymasterThe problem with separating the theme completely from the core (right now) is without a fully functioning theme, there’s no way to actually use BuddyPress. Even the bbPress plugin comes with a small set of fallback template files (as a child theme of twentyten) to display forums. The core of this problem is there is no way to create new WordPress functionality without it logically needing new template files to display it. The approach I took with bbPress (which I’d like to port to BuddyPress) is to monitor query_vars and template_include, and replace the_content() with a template part inside an output buffer. With this in mind, bp-default would get turned into a bunch of template parts that don’t all require header, footer, and sidebar calls, and those parts would just drop into any existing WordPress theme whenever they need to, correctly, all the time.
May 23, 2011 at 11:16 am #112840In reply to: Theme Development on Trunk
Hugo Ashmore
Participant? Do you mean what has been discussed in the posts in this thread?
Have a read of the WP codex, look at functions such as register_style, enqueue_style, enqueue_scripts and associated functions
May 23, 2011 at 11:04 am #112839In reply to: Theme Development on Trunk
@mikey3d
ParticipantHow do I eliminate CSSs and JavaScripts so I can control what I want only one CSS and JavaScript?
May 23, 2011 at 10:09 am #112833In reply to: Call to arms – Own your task
Hugo Ashmore
ParticipantI don’t believe it should be the job of the core devs to maintain a blogging theme. BP should only worry about the templating aspects of BP only and should support any WP theme thrown at it.
Exactly and as has been mentioned many times over, it cuts to the core issue of trying to develop themes which is still simply too difficult. Core needs to concentrate on templating and then handing over to themes to do the frontend rendering. Dying to see what JJJ has done with bbPress as it’s starting to sound quite interesting but haven’t had a moment to test it
May 23, 2011 at 9:57 am #112832In reply to: Theme Development on Trunk
Hugo Ashmore
ParticipantHmm slightly frustrated to find this enqueue change as had been unaware and working to what I thought was a relatively current bleeding edge on the test install for a theme.
Have had to try and work out how things are now pulling together and get rid of the styles as they crashed my layout.remove_action doesn’t work and I had to track down the means of deregistering enqueued styles (please correct me if remove_action does work?)
This will de-register the styles (adminbar works differently and checks for a file in theme folder so can be overridden if you place copy of file in _inc/css/ in your child theme.
`
add_action( ‘wp_print_styles’, ‘deregister_bp_dtheme_styles’, 100 );
function deregister_bp_dtheme_styles() {
wp_deregister_style( ‘bp-default-reset’, ‘bp-default-main’);
}
`It feels a little confusing BP’s approach to these style file enqueing and adminbar, not sure it’s 100% right?
May 23, 2011 at 8:16 am #112827r-a-y
KeymasterApply a filter to “bp_get_group_description_excerpt” (located in bp-groups/bp-groups-templatetags.php).
The default is 20 words.
Try something like this in your theme’s functions.php:
function my_group_excerpt() { global $groups_template; $group = $groups_template->group; return bp_create_excerpt( $group->description, 40 ); // change 40 to anything you want } add_filter( 'bp_get_group_description_excerpt', 'my_group_excerpt' );Code hasn’t been tested.
May 23, 2011 at 8:01 am #112824In reply to: Call to arms – Own your task
r-a-y
KeymasterA little late to this thread, anyway, I’m in total agreement with MrMaz; while there’s some nice work going on in bp-default to make it blog and theme-review compatible, I don’t believe it should be the job of the core devs to maintain a blogging theme. BP should only worry about the templating aspects of BP only and should support any WP theme thrown at it.
With that being said, JJJ has done some awesome, awesome work on this same issue with the bbPress plugin. I’d like to help and see this backported to BuddyPress as soon as possible, but I’m not sure if that is considered too big a change for v1.3. (I did write a similar plugin that attempted to add BP functionality to any WP theme, but I didn’t release it.)
May 23, 2011 at 6:38 am #112814In reply to: Theme Development on Trunk
Paul Wong-Gibbs
KeymasterNever edit core!
If you want to totally stop bp-default parent loading its default.css etc, use this in your child’s functions.php:
`
remove_action( ‘wp_print_styles’, ‘bp_dtheme_enqueue_styles’, 11 );
`May 23, 2011 at 4:45 am #112813In reply to: Theme Development on Trunk
@mercime
ParticipantIn the meantime, as of BP 1.3 trunk-4414
1. open up https://buddypress.trac.wordpress.org/browser/trunk/bp-themes/bp-default/functions.php
2. comment out line # 163 and lines #170 to #175
3. add to your child theme’s stylesheet
`@ import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/reset.css );
@ import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );
@ import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );`
delete space between `@` and `import`May 22, 2011 at 6:29 pm #112792In reply to: Tag ”valign” crashed in BuddyPress Default theme
Hugo Ashmore
ParticipantYou won’t find anything it’s not a BP or author style it’s a header cell so has default browser styles applied ‘font-weight: bolder; text-align: center;’ if you don’t want those then you will need to override them in your author styles.
May 22, 2011 at 6:24 pm #112790Hugo Ashmore
ParticipantIt’s not a hack just sounds like you haven’t added ‘buddypress’ into the list of tags in the style.css head meta? without buddypress in that tag list the warning is displayed.
May 22, 2011 at 6:21 pm #112789aces
ParticipantIf you are referring to the buddypress default theme ( /wp-content/plugins/buddypress/bp-themes/bp-default/ ) it already has the necessary `Tags: buddypress` near the top of the style.css file……
https://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/#Final
https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/
May 22, 2011 at 4:57 pm #112787In reply to: Tag ”valign” crashed in BuddyPress Default theme
kshengelia
Participant1 more thing please:
Which part of CSS is responsible for `
` tag? I am insterested with it, because I have used this tag and the text, which is between these tags `
Talking about this text ` is bold, but I haven’t found anything which makes it bold.
Thank you in advance.
May 22, 2011 at 12:05 pm #112785In reply to: Tag ”valign” crashed in BuddyPress Default theme
kshengelia
ParticipantThank you very much! I’ll edit it in default.css
Appreciate your help
May 22, 2011 at 10:57 am #112784In reply to: Tag ”valign” crashed in BuddyPress Default theme
Hugo Ashmore
ParticipantYou shouldn’t really be using ‘valign’ it’s a deprecated attribute, presentation is handled by CSS.
The reason that valign isn’t working for you is precisely because CSS has been used to apply a vertical-align: middle; to that cell.
You need to use a debugging tool such as Firebug for FireFox to allow you to examine the applied style/ rulesets for elements then you would be able to see what was affecting what.
BP default.css states that all table cells should be vertical-align: middle, you will need to adjust that specifically for that cell either by adding a class to style on or using descendant selectors.
May 22, 2011 at 9:59 am #112783In reply to: Tag ”valign” crashed in BuddyPress Default theme
kshengelia
ParticipantOf course I can – http://eblog.ge/
Site is in Georgian language and you may be confused, so I have created another page, with only table – http://eblog.ge/valign-test/
* I have not made any changes in my .css files, only change was when I changed background color, but it couldn’t make any affect on TABLEs, in addition I had same problem with TABLEs until I change this background color (I know that it isn’t in touch with each other, but just to make everything clear..).
—
This is HTML of code which I used on page above:
`
This text must be “valigned” to top This is simple text… `
-
AuthorSearch Results