Search Results for 'code'
-
AuthorSearch Results
-
April 28, 2010 at 2:28 pm #87296
In reply to: wordpress integration
Ashish Kumar (Ashfame)
ParticipantPlugins can cause that, timeout issue, memory limit but I would suggest that try this code for deep integration
/* Deep integration */
if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) {
define('WP_USE_THEMES', false);
include_once(dirname(__FILE__) . '/../wp-blog-header.php' );
header("HTTP/1.1 200 OK");
header("Status: 200 All rosy");
}and remove your line of code which includes
wp-load.phpApril 28, 2010 at 2:23 pm #87439kieranyo
MemberThanks everyone!
bforeste: it was very easy to do. Without sounding too technical, by default the forum includes an alternating “class” for each reply, all I did was use CSS to “float:right” instead of using the default “float:left” on each one. The existing html and css caters for this very well.
April 28, 2010 at 2:13 pm #87438bforeste
MemberBig fan of the alternating avatar ‘conversation’…great idea. Should be default format for any board IMO.
Is this mod easily done for a non-coder?
April 28, 2010 at 1:47 pm #85185In reply to: Guranteed Fix for WP/bbPress Integration!
Ashish Kumar (Ashfame)
Participantyeah buddy! was off track now back to the game

I will investigate by hard-coding cookiepath, cookiedomain and like stuff in bbPress too.
I understand your point completely, I would have done the same for production sites and kept the testing going on test site.
April 28, 2010 at 12:56 pm #85183In reply to: Guranteed Fix for WP/bbPress Integration!
kevinjohngallagher
MemberYo dudes,
I know matey, wasn’t meant in a bad way at all

In terms of backward compatability, there’s quite a bit of change to how constructs and classes are handled, and depending on when the code was written, could cause some hidden issues.
bbPress 0.7,0.8 & 0.9 weren’t major rewrites of any of the basic backend code. A huge chunk of them were written by Matt over a weekend some 7 years ago and the move to backPress was a definative leap (fully awesome OOPness – as much as its kinda useless ).
So what i meant wasn’t just the leap from PHP4final to PHP5; but also things that were not aimed for PHP4 but that PHP4 supported. i.e. The code that was still in bbPress0.9 that was written when PHP3 was still around.
Long time bro.
I know the problem of which you speak mate, and while not knowing exactly which bit of code makes it go away, I’ve not had it in ages.
Login in wordpress >>> check that i’m “logged in” on bbPress >>> access admin.
Yeah it all works. I’ll have to delve into the code when home, but I think the sites I’m testing on are using “super anne” code/plugin. I also doubt these are on the latest versions of bbpress/wordpress. Frankly I’ve accepted that installing bbpress means not upgrading wordpress.
As i recall from the long long long thread in 2008, the key thing was having:
in wordpress config:
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ‘/’);
in bbPress config:
$bb->authcookie = ‘wordpress_’;
$bb->cookiedomain = ”;
$bb->cookiepath = ‘/’;
$bb->sitecookiepath = ”;
The basic theory was that the bbPress admin, wasn’t reading the wordpress cooking properly or at all, something to do with when it was assigning/pulling data from the “$bb” global variable; so it wouldn’t let you access the admin panel of bbPress. But by setting this info in the config (loaded first) it solved it.
That may be pie in the sky my friend, but thats what my brain is telling me.
April 28, 2010 at 12:13 pm #87435kieranyo
MemberThanks!
Yeah I’m quite happy with how it turned out. It gives it more of a feeling that it’s a conversation
April 28, 2010 at 12:06 pm #87434Ashish Kumar (Ashfame)
ParticipantNice design! I like the way you show alternate avatar positions on topic page
April 28, 2010 at 11:28 am #34130kieranyo
MemberAfter the success with the Nissan Cube Owners Club forum (http://forum.cubeownersclub.co.uk/), when one of my clients asked about a forum I decided again to use BBPress.
I run the website for a UK TV Nature Presenter called Kate Humble and wanted to use a forum that could be integrated with the rest of the site (which is in WordPress) and have the same look and feel. I think it’s turned out pretty nicely and the new users are enjoying and participating.
The URL is http://katehumble.com/forum
It’s running a very customised theme obviously, a new homepage and I’ve also removed the tags feature.
I’ve installed a few plugins, modified a few too and I’ve also implemented the new Facebook “like” feature on the top of every topic. If I get time (and enough interest) maybe I’ll try and implement this as a BBPress plugin.
Because this time it lives in a sub folder instead of a sub domain, one of the technical hurdles I had to get round was the WordPress .htaccess file conflicting with it so all I had to do was put 1 line of code in the root .htaccess file telling it to ignore (and stop processing) everything in /forum.
Let me know what you think
April 28, 2010 at 9:26 am #85180In reply to: Guranteed Fix for WP/bbPress Integration!
kevinjohngallagher
MemberI absolutely agree that this is far from a “guarenteed” fix, but I’ve long found that the more things we can rule out when going through a bbPress to WordPress integration the easier life becomes.
For example, I still define the following in my WordPress config file:
define(‘AUTH_KEY’, ‘authkey’);
define(‘SECURE_AUTH_KEY’, ‘secureauthkey’);
define(‘SECURE_AUTH_SALT’, ‘secureauthsalt’);
define(‘LOGGED_IN_KEY’, ‘loggedinkey’);
define(‘LOGGED_IN_SALT’, ‘loggedinsalt’);
define(‘SECRET_KEY’, ‘secretkey’);
define(‘SECRET_SALT’, ‘secretsalt’);
define(‘NONCE_KEY’,’nonce_key’);
define(‘NONCE_SALT’, ‘nonce_salte’);
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ‘/’);
define(‘CUSTOM_USER_TABLE’, ‘wp_users’);
define(‘CUSTOM_USER_META_TABLE’, ‘wp_usermeta’);
And the following in my bbPress config file:
define(‘BB_AUTH_KEY’, ‘authkey’);
define(‘BB_SECURE_AUTH_KEY’, ‘secureauthkey’);
define(‘BB_SECURE_AUTH_SALT’, ‘secureauthsalt’);
define(‘BB_LOGGED_IN_KEY’, ‘loggedinkey’);
define(‘BB_LOGGED_IN_SALT’, ‘loggedinsalt’);
define(‘BB_SECRET_KEY’, ‘secretkey’);
define(‘BB_SECRET_SALT’, ‘secretsalt’);
define(‘BB_NONCE_KEY’,’nonce_key’);
define(‘BB_NONCE_SALT’, ‘nonce_salte’);
$bb->wp_siteurl = ‘http://www.mydomain.com/’;
$bb->wp_home = ‘http://www.mydomain.com/’;
$bb->wp_table_prefix = ‘wp_’;
$bb->user_bbdb_name = ‘XXXXX’;
$bb->user_bbdb_user = ‘XXXXX’;
$bb->user_bbdb_password = ‘XXXXX’;
$bb->user_bbdb_host = ‘localhost’;
$bb->custom_user_table = ”;
$bb->custom_user_meta_table = ”;
$bb->authcookie = ‘wordpress_’;
$bb->cookiedomain = ”;
$bb->cookiepath = ‘/’;
$bb->sitecookiepath = ”;
$bb->wp_table_prefix = ‘wp_’;
Now I know that most of that code is redundant, and left over from older integration methods; but by using this as a base that I know works for bbPress0.9/1.0.2 to WP2.5->2.9 I’ve found that I’ve not hit any real integration issues that weren’t procedural or human error in over a year.
Adding “AddHandler php5-script .php” to my .htaccess file wont cause any overhead (as i should be using PHP5 anyway), and will also help rule out that 1 out of 100 times that installation/integration hits an issue.
@Zaerl and Chris
PHP4 to 5 was a huge change, a leap into correctly written OOP.
bbPress1.0.2 (for all its faults) and specifically backPress are really brilliantly written OOP code; and while not 100% sure, i’m quietly confident that using backPress/bbPress1.0.2 on PHP4 would throw some inconsistances.
I doubt this fix is anywhere near “guarenteed” to solve anything, but if it works for 1 out of 100 people, it should go in the “win” column
April 28, 2010 at 8:47 am #84910In reply to: bbPress as a WordPress Plugin – Thoughts
kevinjohngallagher
MemberHi Transmutator,
Question – Why not simply make bbPress themes/templates function like WordPress themes?
They do.
The ease of theming bbPress is one of it’s real strong points.
The problem is that you’re confusing some of the phrases (its not your fault, its not brilliantly clear unless you’ve been here a while).
Integration = bbPress + WordPress using same cookies for log on.
Deep Integration = bbPress loading WordPress every time, allowing access to WordPress code.
So when you say “fully integrate” i’m guessing you mean “deep integration” which isn’t supported or intended. We can offer some advice on it, but its a by product, not a feature.
The realism is that copying large sections of your theme (mostly the ‘outer’ sections such as header and footer) and your current WP stylesheet will start to make a huge difference to how your bbPress theme looks. Just make sure to remove any “wordpress” specific code or plugin calls; they’re really superfluous to 99% of forums.
April 28, 2010 at 2:02 am #59931In reply to: Can’t get permalinks working
ioloman
Memberwhen i change the permalinks structure to name based, i get this message :
“Rewriting on webservers other than Apache using mod_rewrite is currently unsupported, but we won’t stop you from trying”
what does this mean ?!
April 27, 2010 at 8:55 pm #87294In reply to: wordpress integration
chrishajer
ParticipantIf it’s returning a blank page, I think that means you’re getting a Internal Server Error code 500. If you take that line out, can you use bbPress?
April 27, 2010 at 8:27 pm #33175Topic: Guranteed Fix for WP/bbPress Integration!
in forum Troubleshootingdriz
MemberMake sure you have this at the top of both WP and bbPress .htaccess files
AddHandler php5-script .phpApril 27, 2010 at 8:27 pm #87293In reply to: wordpress integration
zaerl
Participantwp-load.php is just a file that contains WordPress code and doesn’t echo anything.
April 27, 2010 at 8:20 pm #85392In reply to: cannot edit forums
hypeadmin
MemberI have the same problem, which I think is the result of some javascript somewhere in the bowels of bbpress changing the visibility of the view | edit | delete links on mouseover.
I haven’t a clue where in the bbpress code to look to fix this, but I do have a potential solution for you, steviemac: try a different browser. This problem exists for me only in IE. No problem with Firefox.
It would be great if someone could track down the code and fix it so that it works correctly in all browsers. I have no love for IE, but it would be nice if the admin page didn’t break with that browser.
April 27, 2010 at 7:26 pm #87422In reply to: Customisation work of bbPress and WP Hybrid theme
Ashish Kumar (Ashfame)
ParticipantApril 27, 2010 at 4:57 pm #87089In reply to: Compatibility ….
evilgeek23
Memberthats not a spam script ….. it has a verification thingy built in ….. u always have to put in the code …. and there is a 10 emails per day limit on an ip …..
btw ill post the error a bit later as im goin to sleep right now … “please”
April 27, 2010 at 4:18 pm #87215In reply to: Remove user website link from topic
April 27, 2010 at 4:14 pm #87214In reply to: Remove user website link from topic
zaerl
Participant<p>
<strong><?php post_author(); ?></strong><br />
<small><?php post_author_title_link(); ?></small>
</p>April 27, 2010 at 3:11 pm #87086In reply to: Compatibility ….
evilgeek23
Memberkevin , i said i will use that DOMAIN , not that website …. i use that website for testing any php scripts i code… my wordpress blog is local currently ….
and btw , signatures aint workin in 1.0.2
April 27, 2010 at 2:29 pm #87084In reply to: Compatibility ….
kevinjohngallagher
MemberEvilGeek,
With all due respect, what basic features we had working in 0.9 still work in 1.0. bbPress 1.0 didn’t take-away/change any of the basic features in the core; if anything it added to them slightly. Yes ther are basic forum features that bbPress doesn’t have, but then it’s never had them.
I doubt anyone will convert the plugins you need for free because 1) if they wanted to they would have done so already, 2) you’ve only been part of the project for 1 week and 3) You didn’t say please (manners count for alot)!
You could pay for someone to convert them for you, but that would be a separate request, and would be time consuming (and possibly/probably expensive).
Also, please don’t bump your thread, especially as you bumped it 2 minutes after you last posted, thats just stooopid – this forum aint that busy

And finally, its not for me to be anyone else’s moral voice, but man, thats a poor assed website; with the sole purpose of sending spam email.
April 27, 2010 at 12:41 pm #87209In reply to: Remove user website link from topic
April 27, 2010 at 7:00 am #87129In reply to: WordPress 2.9.2 and bbpress cookies integration.
jakshi
MemberCheck wp-config.php and bb-config.php closely. May be you forget something to do.
Did you cut to 32 chars BB_AUTH_KEY = AUTH_KEY, BB_SECURE_AUTH_KEY=SECURE_AUTH_KEY in wp-config.php and bb-config.php?
I have working cookie integration now.
My wp-config.php (without comments and passwords)
<?php
define( ‘COOKIEPATH’, ‘/’ );
define(‘DB_NAME’, ‘wordpress’);
define(‘DB_USER’, ‘wpuser’);
define(‘DB_PASSWORD’, ‘StrongPassword’);
define(‘DB_HOST’, ‘localhost’);
define(‘DB_CHARSET’, ‘utf8’);
define(‘DB_COLLATE’, ‘utf8_general_ci’);
define(‘AUTH_KEY’, ’32charsalphanumerickeys’);
define(‘SECURE_AUTH_KEY’, ’32charsalphanumerickeys’);
define(‘LOGGED_IN_KEY’, ’32charsalphanumerickeys’);
define(‘NONCE_KEY’, ’32charsalphanumerickeys’);
$table_prefix = ‘wp_’;
define (‘WPLANG’, ‘ru_RU’);
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(__FILE__) . ‘/’);
require_once(ABSPATH . ‘wp-settings.php’);
?>
My bb-config.php (without comments and passwords)
<?php
define( ‘COOKIEPATH’, ‘/’ );
define( ‘BBDB_NAME’, ‘wordpress’ );
define( ‘BBDB_USER’, ‘wpuser’ );
define( ‘BBDB_PASSWORD’, ‘StrongPassword’ );
define( ‘BBDB_HOST’, ‘localhost’ );
define( ‘BBDB_CHARSET’, ‘utf8’ );
define( ‘BBDB_COLLATE’, ‘utf8_general_ci’ );
define( ‘BB_AUTH_KEY’, ’32charsalphanumerickeys’ );
define( ‘BB_SECURE_AUTH_KEY’, ’32charsalphanumerickeys’ );
define( ‘BB_LOGGED_IN_KEY’, ’32charsalphanumerickeys’ );
define( ‘BB_NONCE_KEY’, ’32charsalphanumerickeys’ );
$bb_table_prefix = ‘bb_’;
define( ‘BB_LANG’, ‘ru_RU’ );
?>
There are a lot mention about problem with cookie integration wordpress 2.9.2 and bbpress 1.0.2 .
So you are one of the many
April 27, 2010 at 6:16 am #87409In reply to: Download Issues for you to resolve
chrishajer
ParticipantWordPress mentions creating the database first, in (2) here:
https://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install
Their docs are a lot more comprehensive than those for bbPress.
April 26, 2010 at 9:44 pm #87398In reply to: Link paste limitation – after 10 posts
pagal
Participantmail sent
-
AuthorSearch Results