Search Results for 'code'
-
AuthorSearch Results
-
July 13, 2011 at 6:20 pm #106047
In reply to: bbPress 2.0 – Theme Compatibility
Jon Breitenbucher
MemberAlso, is there an easy way from within a theme (say in functions.php or via style.css) to change the default size of gravatars in the topic reply dialog? I’m assuming it would require a function as bbPress is setting it via a function, from what I was able to glean peeking at the bbPress code. Thanks.
July 13, 2011 at 12:21 pm #106457In reply to: [bbPress Plugin] Translation
alsur
MemberWe have done a bit of testing with this as it’s a major issue for us.
We’ve got the translators to work on beta1 and understand the logic as follows (based on function load_textdomain()):
1.- translated po (mo) files have to be named bbpress-xx_XX.mo with the xx being the language/country combination as on standart WordPress Codex (ie es_ES) for spanish / Spain
2.- function will look for the file under the plugin directory//bbp-languages and if it’s not there will look for it at the standart WP language dir, normally wp-include/languages but this may vary.
Hope this helps anyone with this issue. Perhaps a TXT file with this info could be included under the bbp-languages folder of the plugin.
July 13, 2011 at 12:15 pm #39147alsur
MemberJusta a comment but I feel it would make sense to split the “old” forums regarding bbPress with the plugin related ones having so many differences in the code.
July 13, 2011 at 2:36 am #107237In reply to: Post toolbar plugin for bbpress 2
master5o1
ParticipantGood ideas anointed. I’ll make the auto-insertion optional.
m-jay: The code button just adds the HTML
<code>tag. I haven’t done anything to prevent HTML inside the code block from being parsed or from being blocked by WordPress/bbPress. I also don’t really have any intention to do so.Allowing
<iframe>to be posted would pose a potential security risk, and the safest would perhaps use a shortcode. See if there are any plugins that give a bandcamp shortcode, there is bound to be one.July 12, 2011 at 11:17 pm #107304In reply to: BBpress Sitemap & WordPress Sitemap Integration?
Anointed
ParticipantI use the SEO plugin via Yoast which also supports sitemaps for custom post-types.
This is one of those MUST HAVE plugins on every site
July 12, 2011 at 11:09 pm #107296Anointed
ParticipantAdd the following code to your theme functions.php file
function wptumble_feed_request($vars) {
if (isset($vars['feed']) && !isset($vars['post_type']))
$vars['post_type'] = array('post', 'topic', 'reply');
return $vars;
}
add_filter('request', 'wptumble_feed_request');July 12, 2011 at 9:21 pm #95606In reply to: bbPress 2.0 – Updates
tofugu
Memberpage in question → http://textfugu.com/bb/
On my forum page index, the pages for the next topics page aren’t going to the right page for the next page.
They go to http://www.textfugu.com/page/2/ instead of http://www.textfugu.com/bb/page/2/
I saw something about this that I think is fixed by changing forums → forum, or vice versa, but looks like my code for this was right, plus I have the most updated version (actually, this stopped working after I updated, it seems).
Anything else I should check / change?
Thanks much!
July 12, 2011 at 5:49 pm #106046In reply to: bbPress 2.0 – Theme Compatibility
Jon Breitenbucher
MemberDoes [bbp-forum-index] take a parameter or is there a variation of this shortcode that displays all forums and not just the root ones?
July 12, 2011 at 1:30 pm #107235In reply to: Post toolbar plugin for bbpress 2
m-jay
MemberWhat is the purpose of the CODE button ?
I’m asking this beacause,
I need to allow people to post their Bandcamp players in our forums … Bandcamp offers iframe AND shortcode for wordpress.com … but those shortcodes are not compatible with my wordpress install …
Here you can see an example (clic on SHARE then WORDPRESS):
http://beatmakit.bandcamp.com/track/amnezic-demande-de-featuring
or here http://beatmakit.bandcamp.com/album/hip-hop-beatz
Is there a way I could use your toolbar to get bandcamp players work in bbpress Forums ?
PS. I tried to install the WP Bandcamp plugin, but it handles yet another shortcode ; not compatible with the SHARE option of the players …
July 12, 2011 at 12:34 pm #106045In reply to: bbPress 2.0 – Theme Compatibility
dobralog
MemberJuly 12, 2011 at 10:35 am #95604In reply to: bbPress 2.0 – Updates
pimarts
Participanthttps://bbpress.org/forums/topic/bbpress-20-theme-compatibility
And there’s more in the bbp-core-shortcodes.php file.
July 12, 2011 at 10:22 am #95603In reply to: bbPress 2.0 – Updates
July 11, 2011 at 10:32 pm #106658In reply to: bbPress 2.0: designed for scale?
John James Jacoby
KeymasterIt’s a concern for sure, and bbPress will scale no differently than WordPress does with that many entries.
Comparatively, bbPress 1.0’s schema was purpose built for exactly what it was designed to do, and using the WordPress posts table is a bit of square peg in a round hole. bbPress 2.0 is the compromise of maximum efficiency for ease of integration. If you must have maximum efficiency and are not using deep integration already, then bbPress 1.0 is the safest bet for now. bbPress 2.0 is only going to get better as more devs use it and more people interact with the code.
Ideally I’ll get it running on a few of our sites in the .org sphere and we’ll be able to stress test it a bit more. That will be happening in the next few weeks, but isn’t as much of a priority as releasing the first 2.0 version and getting BuddyPress 1.3 out as well.
July 11, 2011 at 8:36 pm #75145In reply to: How can I disable HTML in posts?
jonich0n
MemberThe function you’re looking for is bb_allowed_tags in functions.bb-formatting.php, and the allowed tags are stored in an array called $tags.
Create your own plugin file in /my-plugins/, activate it, and apply code to remove (unset) the desired HTML tags from the array. Or just empty the array completely (although I haven’t tested this). Below is an example where I removed anchor/hyperlink functionality in posts:
function remove_a_in_allowed_tags( $tags ) {
unset($tags);
return $tags;
}
add_filter( 'bb_allowed_tags', 'remove_a_in_allowed_tags' );
You can quickly test this by inspecting the $tags array with the following code:
// test allowed tags
$tags = bb_allowed_tags();
print_r($tags);
July 11, 2011 at 3:00 pm #107211In reply to: Buddypress + bbpress plugin – MEmbers PROFILES
pimarts
ParticipantYes the plugin can handle that.
I have this for example:
Source URL:
/forums/users/(.*)/
Target URL:
domain/members/$1/
Works great for me.
July 11, 2011 at 12:07 pm #107232In reply to: Post toolbar plugin for bbpress 2
master5o1
ParticipantI’m not sure. But it’s really just a collection of images, and a PHP array that binds a particular smiley code (e.g. ‘
‘) to a specific image file, (e.g. ‘smile.png’).So it’s really quite easy to piece together your own smiley package. I might be interested in hosting some on my website as a central and related place for distribution.
The array is practically an overwrite of the array that handles the WordPress’ default smilies.
PS. I’m about to update the plugin to allow this fallback to plugin’s smiley dir, among a few other things that I’ve thought of over the last hour.
July 11, 2011 at 10:40 am #107229In reply to: Post toolbar plugin for bbpress 2
master5o1
ParticipantHi. In the plugin directory I have included a folder named
smilies. Copy this directory and its contents into the./wp-content/directory.Essentially:
mv ./wp-content/plugins/bbpress-post-toolbar/smilies ./wp-content/ -rIf you want to change the smilies, take a look at the
package-config.phpfile inside the smilies directory mentioned above and you can probably work out how to switch the files, or add more to the set.—-
I think I’ll update my plugin so that instead of defaulting to WordPress’ smilies, it’ll defaults to the smilies folder in the plugin dir.
ie: Order of preference will become:
if option allows custom smilies:
./wp-content/smilies/
./wp-content/plugins/bbpress-post-toolbar/smilies/
else:
WordPress’ default set.
July 11, 2011 at 10:18 am #107200In reply to: All text is aligned centre
pimarts
ParticipantTry this:
.bbPress .hentry table td, .bbPress .hentry table th, .bbp-forum-info {
text-align: left;
}
July 11, 2011 at 9:45 am #107198In reply to: All text is aligned centre
pimarts
ParticipantTry this:
.bbPress .hentry table td, .bbPress .hentry table th {
text-align: left;
}
Maybe you’ll need an !important there, but try that first.
July 11, 2011 at 8:01 am #107202In reply to: Changing Margins in Forum Index
pimarts
ParticipantCSS is your friend
July 11, 2011 at 2:41 am #39109Topic: Changing Margins in Forum Index
in forum Showcasefreque.unce
MemberHi, I’m using a theme which has 2 widget sidebars, and my forum is looking mighty squished. Is there a way I can lessen the gap between the columns in the forum? I could use all the extra space I can get.
Any advice would be greatly appreciated.
July 10, 2011 at 10:24 pm #107195In reply to: All text is aligned centre
pimarts
ParticipantWithout seeing the actual site / code I’m afraid I can’t help you. (not promising I can help you (or have the time) when I see it either by the way)
You can target bbPress with
.bbPress
for instance
.bbPress #content {
width:903px;
}
July 10, 2011 at 10:04 pm #107194In reply to: All text is aligned centre
grt
MemberHi Pimarts,
I have found that code in one of my plugins and deactivated it but without luck.
I have also tried adding “body {text-align:left!important}” to my Custom CSS, but also without any joy.
Do you know of any CSS that I might be able to add to directly affect the bbPress pages?
Something along the lines of “.bbp-content {text-align:left}”
many thanks,
Glyn
July 10, 2011 at 9:48 pm #107190In reply to: User registration
pimarts
ParticipantThe plugin is not finished yet, documentation will be made (available) when the plugin is done. For now you’ll have to look into the files and search this forum. Because this question has been answered already.
See https://bbpress.org/forums/topic/bbpress-and-studiopress-genesis-can-someone-please-tell-me-if-this-works for instance.
In short: bbPress uses WordPress users, your users can register like they would normally for the WordPress installation. There are shortcodes for login / register pages though.
July 10, 2011 at 6:13 pm #107182In reply to: Breadacrumbs
grt
MemberThanks both,
I am using the plugin version 2.0.
The phrase “Cheap Benidorm hotels and apartments” is the title of the home page, but not the menu title, which is of course ‘home’.
Successfully disable with the code above… that will do for now!
many thanks,
Glyn
-
AuthorSearch Results