Search Results for 'code'
-
AuthorSearch Results
-
May 15, 2008 at 6:01 pm #64949
In reply to: php_e() issue
bilibou
MemberYouhou I think I found a more simple solution than merging bbpress and wordpress language file:
– Download your bbpress language file (for me fr_FR) then rename it using another name than the language file you use for wordpress (in my case my wordpress language file is fr_FR and I renamed it in ru_RU) then put it inside your /wp-content/languages folder.
– duplicate wp-blog-header.php and rename the copy as wp-blog-header-bb.php
– duplicate wp-config.php and rename the copy wp-config-bb.php
– open wp-blog-header-bb.php and replace the two occurences of wp-config.php by wp-config-bb.php
-open wp-config-bb.php and replace the line define (‘WPLANG’, ‘yourlanguage’);
by define (‘WPLANG’, ‘newnameofyourbbpresslanguagefile’); (in my case I replaced define (‘WPLANG’, ‘fr_FR’); by define (‘WPLANG’, ‘ru_RU’)

-In your bb-config.php replace wp-blog-header.php by wp-blog-header-bb.php
You’re done now each time bbpress loads wordpress will load your bbpress language file instead of the wordpress one.
I hope my explainations were clear.
A++
May 15, 2008 at 5:47 pm #64983In reply to: Seemingly Irresolvable Problem
will-tomsett
MemberI’m pretty sure it was wp_user, although it may have been wp-user – I can’t remember exactly.
May 15, 2008 at 3:55 am #65008In reply to: bb-config & wp-config
gerikg
MemberChris you’re right. In BBpress I can use all the WP functions (ex. sidebar) but I can’t use any BBpress function (ex. Simple Online list code) in WordPress.
<?php login_form(); ?> <—BBpress code in wordpress will not work.
Thanks sambauers but I want the opposite/reverse. I want BBPress to load in full when people are in wordpress.
My theory is if this work I can put BBPress code in the WPsidebar .
require_once(‘path/to/wp-blog-header.php’); <– to put in BB-config
require_once(‘path/to/????????????.php’); <– to put in WP-config
May 15, 2008 at 3:25 am #65007In reply to: bb-config & wp-config
chrishajer
ParticipantSorry Sam

Sam, I read that page you linked, but I didn’t see instructions on loading bbPress functions inside WordPress which is what gerikg seems to be looking for (maybe call it reverse integration.) I see the instructions for accessing WordPress functions inside bbPress.
Do I just need to read it again?
May 14, 2008 at 9:50 pm #65015In reply to: need more than step by step intall instructions
bobbyh
MemberCopy the same values from your wp-config.php file in the root directory and try again.
May 14, 2008 at 7:51 pm #3377Topic: need more than step by step intall instructions
in forum Installationmysticalbatwoman
MemberI’m a really new website owner. I don’t know a lot about manipulating html code. I’ve read the step by step instructions for installing bbpress but It’s not enough …I need indepth instructions.
This much I have done. Downloaded bbPress to my PC. Unzipped the file.
I have WordPress already on my web host account.
Where do I put bbpress? I would like to have them integrated.
Do I put it under /wp-admin/?
May 14, 2008 at 6:10 pm #65003In reply to: Is this possible? (advanced templating)
bobbyh
MemberIf you want varying HTML depending on what the forum id is, you should probably just use a conditional if/inside of one template file like so:
<?php if ($forum_id == 1) {echo 'html1';} elseif ($forum_id == 2) {echo 'html2';?>Any other approach will probably lead to madness.
May 14, 2008 at 5:35 pm #64995In reply to: Error – Forum
chrishajer
ParticipantYou can create a file called info.php and put this into it:
<?php
phpinfo();
?>Then access that at http://www.example.com/bbpress/info.php and see if the getmypid function is disabled (just search that page for getmypid.) If it is, I imagine you can just remove that bit from class-phpass.php line 43.
$this->random_state = microtime() . getmypid();In this instance, getmypid() just returns the pid of the process that called it and that is concatenated with microtime to provide a random number. You can use something else there and be fine, I think. Or, ask your host to enable it if it’s disabled.
May 14, 2008 at 11:11 am #65000In reply to: Viewing topic results in 404.
bobbyh
MemberIt looks like your WordPress htaccess file is screwed up, as this link to a WordPress post doesn’t work:
* http://www.charitableorthodoxy.com/2008/05/13/hello-world/
Did you create an htaccess file for your WordPress install? Also, did you create one for your bbPress? If so, please paste in the contents of each htaccess file. If not, try creating one.
May 14, 2008 at 11:07 am #65001In reply to: Is this possible? (advanced templating)
bobbyh
MemberYeah, assuming the themes have consistent HTML, in the header, put something like this:
<link rel="stylesheet" href="<?php if ($forum_id == 1) bb_stylesheet_uri(); elseif ($forum_id == 2) echo '/my-templates/kakumei-blue/style.css'; ?>" type="text/css" />I didn’t test this, but I think that code should work.
May 13, 2008 at 7:15 pm #64947In reply to: php_e() issue
May 13, 2008 at 5:30 pm #3315Topic: Small bug in kakumei-blue theme
in forum ThemesNull
MemberWell the logo (page_header_bblogo.png) appears a bit darker then the background color of the header. You clearly see a grey square now. When overwriting the blue logo with the original green one, the same problem appears (thought perhaps the background color was made too dark).
Swithcing the theme back to the normal kakumei, the logo displays correct. Overwriting this with the blue logo gives no problems either.
So there is a bug in the blue kakumei theme, plz fix
May 13, 2008 at 3:45 pm #64721In reply to: bbPress 0.9.0.2 + WordPress 2.5.1 cookie conflict?
kineda
MemberI discovered for it to work that the secret keys cannot have spaces in them (as you could in version 2.5 of wordpress and 0.9.0.1 of bbpress). I generated a new secret key as one long string, and voila… users can pass through both programs without having to re-login.
May 13, 2008 at 3:13 pm #64959Georg Kevin Paquet
Member$bb->wp_table_prefix = 'wp__'; // your wordpress db prefix is
$bb->wp_home = 'http://yourwebsite.com/';
$bb->wp_siteurl = 'http://yourwebsite.com/';replace yourwebsite.com with the blog url.
if your blog url is for example
http://www.google.com then don’t forget to add the WWW to it, but if it doesn’t has WWW, the don’t use it.
May 13, 2008 at 3:08 pm #64925In reply to: Make BBPress a Page in WordPress???
gerikg
MemberOh forgot. In the header I put just
<li class="page_item"><a href="/forum/">Forum</a></li>after the page tag. It’s either going to be in front of all your pages or behind.
May 13, 2008 at 3:01 pm #64924In reply to: Make BBPress a Page in WordPress???
gerikg
MemberHow I did it… Please back up everything before starting.
You need to find a theme close to your WP to make it easier.
1. BBPress side,I renamed the style.css to styleold.css
2. Copied over the WPress style.css over to BBpress
3. Open both files at the same time. You want to copy over some of the codes from styleold.css to style.css. You might need to play with it. Do not copy “body”.
4. Open both header.php. On the BBpress header copy over from WP header everything after <body> tag. Replacing whatever is there.
5. Open both footer.php. This one is a little tricky.
You can just copy over the whole thing and make sure you have <?php do_action(‘bb_foot’, ”); ?> in the file. You will lose the designers info though OR You need to see on WP side if there is any closing tags. bring that over and delete any closing tags on the BBPress side.
6. Sidebars: depending where the <?php get_sidebar(); ?> tag. For example my <?php get_sidebar(); ?> tag is IN the footer.php Others the <?php get_sidebar(); ?> is in the other php files right before the get_footer tag or after get header tag.
that’s it.
make sure in your bb-config.php
there is
$bb->WP_BB = true;
if (file_exists(‘../wp-blog-header.php’))
require_once(‘../wp-blog-header.php’);
else
if (file_exists(‘../../wp-blog-header.php’))
require_once(‘../../wp-blog-header.php’);
after <?php tag.
Goodluck.
May 13, 2008 at 2:32 am #64720In reply to: bbPress 0.9.0.2 + WordPress 2.5.1 cookie conflict?
mrhoratio
MemberCan you post the lines you added to your wp-config.php and bb-config.php files?
The line defining the secret key in bb-config.php should look something like this:
define('BB_SECRET_KEY', 'My Secret Key');and in wp-config.php
define('SECRET_KEY', 'My Secret Key');Don’t forget the BB_ in fron of SECRET_KEY in the bb-config.php file.
May 12, 2008 at 10:53 pm #64875In reply to: tinyMCE losing <p> formatting on Edit
Sam Bauers
ParticipantbbPress turns < p > tags back into double line breaks and < code > back into backticks ( ` ).
You will need to somehow override this or force reconversion in TinyMCE or FCKeditor
May 12, 2008 at 10:52 pm #64942In reply to: Hide email addresses
leemon
MemberOops! You are right!
May 12, 2008 at 10:48 pm #64869In reply to: How to shorten a profile link?
mrhoratio
MemberBy the way, I made this hack cleaner by implementing it as a filter inside a plugin.
function my_get_user_profile_link_filter( $link , $user_id = 0 ) {
//check for rewrite
$rewrite = bb_get_option( 'mod_rewrite' );
if ( $rewrite ) {
//what kind of rewrite there is? slug use "forum_slug" column, else the column is "forum_id"
$column = ($rewrite === 'slugs')?('forum_slug')
'forum_id');
$link = str_replace('forums/profile/', 'people/', $link);
}
return $link; // Very important line!
}This was based on code suggested in another thread:
https://bbpress.org/forums/topic/nicer-slug-url-rewrite-plugin-done
May 12, 2008 at 10:40 pm #64856In reply to: Request: Plug-in Update
Sam Bauers
Participant@ _ck_
I’m not sure it works either…
May 12, 2008 at 10:37 pm #64957mrhoratio
MemberYou’re welcome. It’s included with 2.5.1, it’s just an optional entry, so I don’t think it would be in your default config file. But I think it is shown in the sample config file.
https://codex.wordpress.org/Editing_wp-config.php#Secret_Key_IMPORTANT
May 12, 2008 at 9:53 pm #64954mdata
MemberThe secret key is not mentioned period in the wp-config.php file, but is in the bb-config.php file. The WordPress secret is in the http://www.masterdata.com/forum//wp-admin/options.php file (yep, the double forward slash is accurate – cut & paste) and does match exactly (I used Excel to do the match).
If it is supposed to be in the wp-config.php file, please show me how the entire finished code should look (obviously my variables will differ but the structure will be the same). We might let the developer folks in on this too.
Awaiting your reply…. Thank you!
May 12, 2008 at 9:16 pm #64922In reply to: Make BBPress a Page in WordPress???
mrhoratio
MemberIPsource, to add a Forum button in the nav bar, you’ll need to edit your theme files in WordPress. And then do the same in the bbPress template files. Most likely, the files would be something called header.php. Every theme is different so it’ll depend on what you have. You might consider hiring a coder to do it, if you’re not comfortable with the html/php.
May 12, 2008 at 8:24 pm #52809In reply to: Plugin: Summon user
Null
MemberIs it possible to make it so that (when using the online plugin) you can summon a online person directly? So you summon a user who is online, he will recieve a pop-up (or something) . When he presses the link or button in the pop-up, he will go directly to the topic. Ofcourse the pop-up should heave 2 buttons. 1 to accept the summon and 1 to decline it. The summoner will recieve a pop-up when the summon is declined.
That would be so cool
-
AuthorSearch Results