Search Results for 'code'
-
Search Results
-
Topic: Arabic Translation
Hello bbPress Community Members,
This is the Arabic translation for bbPress, I’ve done it 5 months ago with 0.9.0.2
I was a little bit lazy about posting it here, dunno why

Till i checked out this post mintues ago , #thanks _ck_
http://bbpress.org/forums/topic/check-out-this-very-nice-r-t-l-arabic-bbpress
All that i do know that alot of people love it in Arabic and already using the Arabic version of bbPress.
Also, I’ve made a complete RTL version with heavy modifications on template files and a completely new Admin Page Design (CSS Edit).
This is the last version of Arabic Translation for 0.9.0.3 with slight modifications.
Hope that the moderator add this translation officially with other bbPress translations.
Arabic Support Forum: (part of my blog itkallem.com)
Project @ Google Code:
http://code.google.com/p/bbpressar/
Arabic Language Files ar_AR:
http://bbpressar.googlecode.com/files/ar_AR-0.9.0.3.zip
bbPress 0.9.0.3 Arabic Pack only (language files + RTl modifications,..etc)
http://bbpressar.googlecode.com/files/bbpress-arabicpack-0.9.0.3.zip
bbPress 0.9.0.3 Arabic Version (ready to use complete bbPress in Arabic version)
http://bbpressar.googlecode.com/files/bbpress-0.9.0.3-ar.zip
[+] Annoying Problems:
– unicode support for usernames

Thanks.
M.Abdel-Shakour.
A first attempt at getting WordPress 2.7 and bbPress 1.0 to play nice again is now in trunk [1862].
I’m specifically talking about “deep” integration, i.e. when you include WordPress inside bbPress to gain access to WordPress’ functions.
This will need a lot of testing, so please post any issues you have on the relevant Trac ticket, #972 (which will stay open until some more testing has occurred).
I recommend using the following code at the top of your bbPress bb-config.php file to include WordPress inside bbPress:
if ( !defined( 'ABSPATH' ) ) {
include_once( '/Full/Path/To/wp-load.php' );
}Note that this includes “wp-load.php” not “wp-config.php” or “wp-blog-header.php”. This avoids running WordPress’ template loader which presumably isn’t needed inside bbPress. Some implementations may want it though, so if you find you need it then give it a go and let us know how that goes.
Also note that all filters and actions set in WordPress whether default or added by plugins or themes are cleared out completely. That means that plugins and themes installed in WordPress cannot add filters or actions to bbPress at all. This may have some implications I’m not aware of yet.
Go nuts!
I wanted a little plugin to allow Force Login on bbPress forum when you have integration with buddypress. I altered mdawaffe’s plugin and thought I would share it with the community if you want privacy on forum and still work with buddypress.
<?php
/*
Plugin Name: Force Login
Description: No one can see your forums unless they are logged in.
Plugin URI: http://bbpress.org/forums/topic/117
Author: Michael D Adams *voodoo code from Trent Adams and Sam Bauers*
Author URI: http://blogwaffe.com/
Version: 0.8
*/
function force_login_init() {
if ( !bb_is_user_logged_in()
&& 0 !== strpos($_SERVER['REQUEST_URI'], bb_get_option( 'path' ) . 'bb-login.php')
&& 0 !== strpos($_SERVER['REQUEST_URI'], bb_get_option( 'path' ) . 'bb-reset-password.php')
&& 0 !== strpos($_SERVER['REQUEST_URI'], bb_get_option( 'path' ) . 'register.php')
&& 0 !== strpos($_SERVER['REQUEST_URI'], bb_get_option( 'path' ) . 'xmlrpc.php')
) {
nocache_headers();
header("HTTP/1.1 302 Moved Temporarily");
bb_safe_redirect( bb_get_uri( 'bb-login.php', null, BB_URI_CONTEXT_HEADER + BB_URI_CONTEXT_BB_USER_FORMS ) );
header("Status: 302 Moved Temporarily");
exit();
}
}
add_action( 'bb_init', 'force_login_init' );
?>Cheers,
Trent