Search Results for 'code'
-
AuthorSearch Results
-
July 29, 2010 at 2:59 pm #76655
In reply to: bbPress Admin Fonts Beautifier
邹 毅
ParticipantThe main purpose of the plug-in are those that will be finished bbPress background or other double-byte languages to Chinese users. It will back control in the smallest font size 12px, and the original text into a normal italic font. In this way, back in reality, when the Chinese had underestimated the font does not appear unclear phenomenon.
Now the plug-in made up of two ways. BbPress plug-in is a kind of normal form of release. Download plug-ins directory needs to be uploaded to the bbPress root directory my-plugins directory, and then plug in the background to enable management pages. Thus, even if the background for the English state, also appear in the background can be conducted in Chinese landscaping. Another is made with the language pack automatically starts. After the download, upload the php file to the language pack directory. This approach is only activated when the corresponding language pack to take effect.
As bbPress each update, it may involve changes to the CSS style sheet. Therefore, the plug-in certain targeted. That is not always backwards compatible. Therefore, the plug-in released time, corresponding to the bbPress version of the logo will come out. You can watch from the plug out of the version number. For example :1.0.1-1 logo for the bbPress version 1.0.1, and later, “-1” logo is the first revised version. After the release of “1.0.1-2”, “1.0.1-3”, etc. are the corresponding bbPress 1.0.1. Just plug made some changes. Only the previous version number changed, only that version of the corresponding change in bbPress.
it’s translated by Google.i’ll mod it later.
July 29, 2010 at 2:11 pm #91745In reply to: Facebook Connect Help
Ashish Kumar (Ashfame)
ParticipantI can’t say what may be causing the conflict as I am not a JS expert.
Regarding your another question you can do that, will require some editing in the plugin file and scold him not to do that

And I am not sure what’s going on where without myself taking a look.
And if you would like to donate, then you can do so at the footer of my blog – http://blog.ashfame.com
Also let me know if you would like to hire me for doing work on your projects
July 29, 2010 at 11:56 am #91945mr_pelle
ParticipantBlanking
.htaccessand re-setting permalinks is quicker and less error-prone, imho.July 29, 2010 at 11:31 am #91929In reply to: Password Protection Method – bbpress?
zaerl
ParticipantAh ok. Let’s backtrace:
bb_new_user
$wp_users_object->new_user
WP_users::_put_user
WP_Pass::hash_password
$wp_hasher->HashPassword
PasswordHash::crypt_privatefile
bb-include/backpress/class.passwordhash.phpline 113. The original comment:# We’re kind of forced to use MD5 here since it’s the only
# cryptographic primitive available in all versions of PHP
which is true.
July 29, 2010 at 11:14 am #91944zaerl
ParticipantThe annoying part is that despite the
RewriteBasedirective all rewrite rules in .htaccess are in the form:RewriteRule ^the-page/(something)/?$ /forum/index.php?the-page=$1 [L,QSA]
so you need to change all the rules. Or you can switch to numeric mode and then switch back to name-based permalink mode and maybe bbPress will auto-fix it for you.
July 29, 2010 at 5:43 am #91927In reply to: Password Protection Method – bbpress?
pedagog
MemberThanks zaerl. However, what I meant was where is the code that converts the ‘raw’ password into the md5 hash. I know where it stores the hased password.
Sorry for the confusion.
July 28, 2010 at 11:27 pm #91907zaerl
ParticipantWell you have the same user database so you can easily access the user email. You should write a plugin that override the gravatar display functions (through the
bb_get_avatarfilter) and catch the images in/avatars(if exist). Sort of “Add Local Avatar” counterpart for bbPress.This can be challenging without medium PHP knowledges.
July 28, 2010 at 7:16 pm #89119In reply to: s2member integration
SantaBarbaraSurfer
MemberHey drcoach, usually when I get a whitescreen in bbPress, PHP or WordPress, it usually has to do with the fact that I improperly nested code. Meaning there is some missing ), }, necessary character or a syntactical error in the code. Did you want to paste the whole code in somewhere here on PasteBin?
July 28, 2010 at 6:38 pm #91918In reply to: Drop-down list for Sub-Forums?
zaerl
ParticipantIt’s very easy to do if you know a little of jQuery. Check the template file
front-page.php.July 28, 2010 at 6:36 pm #91926In reply to: Password Protection Method – bbpress?
zaerl
Participantmd5 checksum stored in the
user_passcolumn of database tablebb_users. No salt.July 28, 2010 at 6:09 pm #34900Topic: Password Protection Method – bbpress?
in forum Troubleshootingpedagog
MemberHello all
Could you tell me which security type bbpress uses for password protection? Is it md5 and salt or something else. Also, in which file is the code located?
I’m working an integration with my own site – it’s not WP or any other. It is php that I have created.
Thanks in advance
July 28, 2010 at 5:16 pm #34893Topic: installation complete – but keeps returning to install.
in forum InstallationIAmediaworks
ParticipantHey folks.
Did a successful install – with one exception. It said that it couldn’t create the first forum.
I did get a confirmation mail.
But clicking on the link in the mail brings me to this:
Oh dear!
bbPress is already installed.
Perhaps you meant to run the upgrade script instead?
This happens whether I try to log into admin or visit the BBpress root.
This is installed on a fully functioning WP site.
Help?
Thanks!
M.
July 28, 2010 at 4:38 pm #91888In reply to: No default template?
entrepreneurchic
MemberNever mind! I’m just going to create a separate database
July 28, 2010 at 4:23 pm #91887In reply to: No default template?
entrepreneurchic
MemberYeah it happened to me earlier when I try to reinstall. However, I’m sharing this with my WordPress database. How to fix?

Thanks Chris!
July 28, 2010 at 3:57 pm #77023In reply to: can admin execute php code in post?
pagal
ParticipantJuly 28, 2010 at 3:52 pm #77022In reply to: can admin execute php code in post?
zaerl
ParticipantAlways wrap PHP code inside script tags
<script language="PHP">echo phpversion()</script>also remember to make the change explained here: https://bbpress.org/forums/topic/admin-can-paste-php-code-in-post?replies=28#post-71965
Can you please explain what do you mean about production environment?
A public site. The code isn’t tested at all.
July 28, 2010 at 3:41 pm #77021In reply to: can admin execute php code in post?
pagal
ParticipantWoW That Works
example to execute code
<script language="PHP">
echo
php code here without <?php and ?>
</script>
Thanks zaerl, you are really a smart person,
Keep in mind that this code isn’t suitable for production environment.
Can you please explain what do you mean about production environment?
Thanks Again,
Cheers
July 28, 2010 at 2:55 pm #77020In reply to: can admin execute php code in post?
pagal
ParticipantReally thanks zaerl,
please also give an example how to write complete php code to execute with this plugin
Parse error: syntax error, unexpected '>' in /my-site-path/my-plugins/zaerl-Eval-PHP.php(37) : eval()'d code on line 1
July 28, 2010 at 2:52 pm #77019In reply to: can admin execute php code in post?
zaerl
ParticipantOps, substitute
za_ep_filterwith:function za_ep_filter($text)
{
$eval_text = "?>$text";
ob_start();
eval($eval_text);
$ret = ob_get_contents();
ob_end_clean();
return $ret;
}July 28, 2010 at 1:54 pm #77018In reply to: can admin execute php code in post?
zaerl
Participant<?php
/*
Plugin Name: zaerl Eval PHP
Plugin URI: http://www.zaerl.com
Description: execute PHP code posted by admins
Author: zaerl
Author URI: http://www.zaerl.com
Version: 0.1
zaerl Eval PHP: execute PHP code posted by admins
Copyright (C) 2010 Francesco Bigiarini
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
define('ZA_EP_VERSION', '0.1');
define('ZA_EP_ID', 'za-eval-php');
define('ZA_EP_NAME', 'zaerl Eval PHP');
function za_ep_filter($text)
{
$eval_text = "?>$text";
eval($eval_text);
}
function za_ep_allow_tag($tags)
{
$tags['script'] = array('language' => array());
return $tags;
}
function za_ep_initialize()
{
global $bb_current_user;
if($bb_current_user && $bb_current_user->has_cap('administrate'))
{
add_filter('bb_allowed_tags', 'za_ep_allow_tag');
add_filter('post_text', 'za_ep_filter');
}
}
add_action('bb_init', 'za_ep_initialize');
?>example:
I'm running PHP <script language="PHP">echo phpversion()</script>Keep in mind that this code isn’t suitable for production environment.
July 28, 2010 at 12:10 pm #77017In reply to: can admin execute php code in post?
pagal
ParticipantTitle should be “Can Admin execute php code in post?”, apologize.
July 28, 2010 at 11:46 am #91874In reply to: Matching my WordPress Theme
kevinjohngallagher
MemberHi John,
I don’t know why after all these years that there is a refusal to put a clear and defining sentace saying that this isn’t part of the default bbPress package. It casues so much confusion for new users.
bbPress is a totally separate standalone forum, that can integrate user sessions (login/log-out) with WordPress. Nothing more. Its important to keep that in mind because it’ll save alot of thinking from a wordpress point of view.
That said, theming bbPress is quite simple as long as you know 1 thing: bbPress won’t run WordPress commands/functions/API calls.
Copy your default bbPress theme (the rather lacking Kakumei), rename it both in folder and in the template information held in the style.css file contained within.
You now have your own bbPress theme. Congrats.
The next step is simply to copy/paste the HTML you want to replicate from your WordPress theme into your bbPress theme. If you’re not doing any special processing, I strongly suggest copy/pasting the loaded/outputed HTML from when you load your WordPress homepage in a browser.
If you want to copy/paste from your header.php file in your WordPress theme, remember and take out all of those pesky WordPress functions, and replace them with bbPress equivalent or hardcoded information.
If you’ve ever made your own WordPress theme, you’ll find bbPress follows a very similar path/structure.
Good Luck
July 28, 2010 at 11:11 am #77016In reply to: can admin execute php code in post?
zaerl
Participantcan be VERY dangerous and should be avoided when possible.
Indeed but the title is Admin can paste PHP code in post.
July 28, 2010 at 10:58 am #77015In reply to: can admin execute php code in post?
kevinjohngallagher
MemberI’m going to go no record an suggest thats the best bit of spam i’ve read in a while. Reading via RSS I thought, why is _ck_ repeating herself?
July 28, 2010 at 10:36 am #83010In reply to: Login Integration Issues – bbpress and wordpress mu
thomas.joy
Memberhow can the wordpress admin username/password be used in bbpress login and log in successfully (globally)
also how can the bbpress (if necessary) be used to successfully log in to wordpress and have the global admin?
same for users, which i haven’t tried yet
i’ve setup these (codes removed)
wp-config.php:
define(‘AUTH_KEY’, ”);
define(‘SECURE_AUTH_KEY’, ”);
define(‘LOGGED_IN_KEY’, ”);
define(‘NONCE_KEY’, ”);
define(‘AUTH_SALT’, ”);
define(‘LOGGED_IN_SALT’, ”);
define(‘SECURE_AUTH_SALT’, ”);
bb-config.php:
define( ‘BB_AUTH_KEY’, ” );
define( ‘BB_SECURE_AUTH_KEY’, ” );
define( ‘BB_LOGGED_IN_KEY’, ” );
define( ‘BB_NONCE_KEY’, ” );
i copied the corresponding ones to the bb-config.php one
when i log out of bbpress wordpress is still logged in..
-
AuthorSearch Results