Search Results for '"wordpress'
-
AuthorSearch Results
-
December 17, 2008 at 8:50 am #70071
In reply to: PLEASE Create 2 Versions of bbpress!
John James Jacoby
KeymasterFirstly, while there’s two ways to skin a cat, david’s method kills the kitty in the process. My advice is not to do it that way. If you need to get the absolute path of a directory I made a quick file to do it…
Put this code in a php file, I named mine “abs.php”
<?php
$p = getcwd();
echo $p;
?>Then upload that file to the directory you want to find the path to, and visit it in a web browser. It will echo the absolute path for you. Copy the output. Delete the file. Done!
Duplicating the themes is really the best way to do this, and I promise that once you’ve included WordPress into bbPress properly, it’s a really straightforward and rewarding process.
Firstly, download Notepad++. It’s free, and it rules.
Firstly.5, make copies of your WordPress header.php/footer.php files, and save them someplace safe. We will be modifying these files and don’t want to ruin the actual working WordPress ones.
Secondly, open the header.php/footer.php files for both the stock bbPress theme, and the copied ones I just mentioned. In Notepad++ you should now have 4 files open.
We’re basically working from the outside in.
Thirdly, take all of the relevant bbPress PHP code from it’s header.php/footer.php files, and start copy and pasting them to the equivalent places in the WP copy header.php/footer.php files. Like in mine, I actually have:
<?php
bb_feed_head();
wp_get_archives('type=monthly&format=link');
wp_head();
bb_head();
?>Which loads all of the WP and BBP head related functions inside my BBP forums. Because I want links to my feeds and what-not…
Fourthly, once you’re done with this, then you start poking around the other BBP theme files, and modify all of those files to work within the same construct as your WP theme does, with the same DIV classes and names and what-not.
Because we’ve included the WordPress functions inside bbPress, and because we’re using the same original WP theme header.php file, all of the same style-sheets and JS from that theme are already coded and loaded, even though you’re looking at bbPress. The rest is just tweaking all of the files to look how you want them to.
This is the process I used at http://www.delsolownersclub.com, and I think it’s worked really super well.
December 17, 2008 at 5:06 am #70134In reply to: bbPress 1.0-alpha-4 released
Sam Bauers
ParticipantThere are a couple more things you have to do to integrate WPMU. It’s a different thing to the standard WordPress in a few ways, so requires some extra setup.
You need to set the SALTs as well as the KEYs in your wp-config.php for a start. You also need to set the cookie names individually or just set the COOKIEHASH as well.
One day I’ll document it all, but right now we are just trying to sort out standard installs first.
December 17, 2008 at 4:44 am #70070In reply to: PLEASE Create 2 Versions of bbpress!
lolos
MemberSam,
When I tried the “deep integration,” I kept getting several errors that I would rather keep them apart for now until the operation of integrating them together is more seamless and free of bugs.
As you can tell, I am a total newbie and there are ton of information to grasp! Can you point me to the right direction on how to make bbPress theme look like wordpress theme?
Here is the one I am using:
Thanks again!
December 17, 2008 at 4:14 am #70259In reply to: Integration with WordPress 2.7
Sam Bauers
ParticipantThe only forum solution that will actually reside in your WordPress installation is Simple:Press.
bbPress (the 1.0-alpha at least) uses different methods for sharing data with WordPress.
December 17, 2008 at 4:12 am #70068In reply to: PLEASE Create 2 Versions of bbpress!
Sam Bauers
ParticipantOK, so davidbaldwin opens a can of worms with his advice here.
I don’t recommend doing it this way, my advice is to create two separate themes for WordPress and bbPress that look alike and if you enable “deep” integration, then carefully pick the functions you want to use from WordPress and insert them into the bbPress template.
Throwing in the whole WordPress header is potentially problematic. It’s possible to do it cleanly with a lot of work, but most people won’t have the knowledge or the time to do that.
December 17, 2008 at 3:11 am #70067In reply to: PLEASE Create 2 Versions of bbpress!
davidbaldwin
Memberlolos,
first of all, if you are doing this with WordPress 2.6 or newer, you have to run 1.0-alpha. If you are running an older version of wordpress you can use the stable version. I attempted to roll back to an older version of wordpress, but i was unsuccessful, so this method is for 1.0-alpha users.
I found the intigration information at:
https://bbpress.org/documentation/integration-with-wordpress/
https://bbpress.org/forums/topic/first-pass-at-a-fix-for-deep-integration-in-trunk#post-21572
you need to add the following to the bb-config.php file, after <?php
if ( !defined( 'ABSPATH' ) ) {
include_once( '/Full/Path/To/wp-load.php' );
}
require_once('/Full/Path/To/wp-blog-header.php');the full paths have to be absolute paths on the servers, not the domain paths.
this will load wordpress when bbpress is loaded.
and then you need to add this line to the very top of every page that has this line: <?php bb_get_header(); ?>
<?php get_header(); ?>please note that the line above has to be line #1 in every page that already calls the bb header, if it does not call the bb header, do not add this, the final result should look like this:
<?php get_header(); ?>
<?php bb_get_header(); ?>this will load the wordpress header when the bbpress header is called. you can edit the bbpress header to remove all the unnecessary code. (like the title, etc.)
and then you need to add this line to the very bottom of every page that has this line: <?php bb_get_footer(); ?>
<?php get_footer(); ?>please note that the line above has to be the last line in every page that already calls the bb footer, if it does not call the bb footer, do not add this, the final result should look like this:
<?php bb_get_footer(); ?>
<?php get_footer(); ?>this will load the wordpress footer when the bbpress footer is called. you can edit the bbpress footer to remove all the unnecessary code. (like the title, etc.)
I hope this helps. if you have any questions, please feel free to ask!
david
December 17, 2008 at 2:12 am #70131In reply to: bbPress 1.0-alpha-4 released
Ipstenu (Mika Epstein)
Moderatortomwi – Two easy options.
1) Use the build in RSS sidebar widget in wordpress.
2) Add the PHP Widget plugin and then toss in something like this:
<?php require_once (ABSPATH . WPINC . '/rss-functions.php');
$today = current_time('mysql', 1);
// insert the feed URL here
$rss = @fetch_rss('http://domain.net/forums/rss');
if ( isset($rss->items) && 0 != count($rss->items) ) {
echo '<ul>';
// set the number of items from the feed to display (5)
$rss->items = array_slice($rss->items, 0, 5);
foreach ($rss->items as $item ) {
echo '<li><a href="';
echo wp_filter_kses($item['link']);
echo '">';
echo wp_specialchars($item['title']);
echo '</a></li>';
}
echo '</ul>';
}; ?>December 17, 2008 at 1:49 am #70130In reply to: bbPress 1.0-alpha-4 released
tomwi
Memberthis is great! i had downgraded to 2.5.1 for integration.
i am using bb latest discussions to show latest bbpress posts in wordpress which I could not get to work with alpha 2. i want to move back to 2.7 and alpha 4…… does anyone know of a plugin that works in bbpress alpha wp 2.7 to pull latest bbpress posts to wordpress/wordpress sidebar?
December 17, 2008 at 12:24 am #70066In reply to: PLEASE Create 2 Versions of bbpress!
lolos
Memberbut then wont they be two separate identical themes that is not connected in anyway? I want to be able to use my wordpress theme as the parent theme, in the same time I can access the bbpress forum within wordpress parent frame.
If I duplicate the theme, how will I make wordpress links work in bbpress lookalike theme?
December 17, 2008 at 12:12 am #70065In reply to: PLEASE Create 2 Versions of bbpress!
Ipstenu (Mika Epstein)
ModeratorIt may not be integrated. Duplicating a theme between bbPress and WordPress is pretty simple, since it uses similar templating styles.
December 16, 2008 at 11:18 pm #70064In reply to: PLEASE Create 2 Versions of bbpress!
lolos
Memberdavidbaldwin,
How did you change the font size and color of the bbpress in your wordpress theme? are you using two separate css style sheets or only one?
Can you give me some instructions on how did you make bbpress work within wordpress theme? i.e. when you click on forum it opens bbpress forum in the same page under word press header??
Please some one help me.. I spent over 4 days trying to understand how do just that!!
December 16, 2008 at 11:13 pm #70242Sam Bauers
ParticipantJust remembered, if WordPress is loaded then bbPress relies on the setting of WPLANG in WordPress to determine which language to use.
This will all probably require some more work.
December 16, 2008 at 11:09 pm #69590In reply to: WordPress and BBPress Theme
lolos
MemberImmeldoy, can you upload your theme and send me the link please?
I want to do the same thing and tried to do everything but I keep failing! I just want to have bbpress inside my word press theme! Is that a hard thing to accomplish?!!!
December 16, 2008 at 11:08 pm #70258In reply to: Integration with WordPress 2.7
lolos
MemberAnyone?
December 16, 2008 at 10:13 pm #70254In reply to: “Database failed to install”
jgk1013
MemberOK some more info. Background: I’m trying to install bbpress 1.oAlpha4 to integrate with WPMU and BuddyPress, following the instructions from here https://trac.buddypress.org/browser/trunk/bp-forums/installation-readme.txt
So. I’ve uploaded the bbpress files to forums.wearelabor.com. I’ve gone there in my browser and started the installation process. Got the bb-config.php created, good. On to WP integration. I’ve clicked yes I want to integrate and yes on cookie integration and here’s where my problems are.
WordPress “auth” cookie key
– have that, found in wp-config.php, entered
WordPress “auth” cookie salt
-supposed to be the value of auth_salt found on the wp-admin/options.php page but I don’t see anything like it there. (Help?)
WordPress “secure auth” cookie key
-found at wp-config.php, entered
WordPress “secure auth” cookie salt
-supposed to be found at wp-admin/options.php but its not there. BUT I did find it at wp-config.php. What should I do?
WordPress “logged in” cookie key
-found at wp-config.php, entered
WordPress “logged in” cookie salt
-supposed to be found at wp-admin/options.php but its not there. BUT I did find it at wp-config.php. What should I do?
Any and all help appreciated. This is quite frustrating.
December 16, 2008 at 9:54 pm #70239In reply to: WordPress required??
gogoplata
MemberThey are completely independent platforms, but can be integrated if needed.
December 16, 2008 at 9:43 pm #70237In reply to: Will a template engine be used (e.g. smarty)?
John James Jacoby
Keymaster@Sam:
You know, I think about this everyday, but between you and me (and everyone else reading) I’m convinced more and more that no one really has any idea how to code XHTML, or what kind of object should rightfully be used to encapsulate content.
For the first 20 years of the modern web, everything was done in tables. For the last 5 years of the modern web, everything is being done in lists, divs, and paragraphs. Half the time things are marked up as paragraphs even though they aren’t actually blocks of text. The other half things are marked up as lists even though they contain 1 link. (WordPress and bbPress both suffer from this type of issue, specifically in the pagination and previous/next functions.)
One thing that the Smarty engine does promote, is keeping ALL of the XHTML out of the source code, allowing “template designers” to focus ONLY on the mark-up and then inserting the Smarty tags where the dynamic content belongs.
I’ve noticed that Automattic products tend to really try to think ahead in terms of a typical layout and what their audiences want, and that’s not a bad idea usually… But when the audience changes their mind and wants to go from UL’s to DL’s, inserting a DT becomes impossible and the function is immediately flawed by design. A Smarty type of engine avoids this all together.
Smarty is way too big and fat to include in either WP or BBP in my opinion. We’d be better off with a slimmed down version that’s used in CHBB, which I would LOVE to see implemented personally…
December 16, 2008 at 9:04 pm #4447Topic: Integration with WordPress 2.7
in forum Installationrootf
MemberHi.
I want to create a forum on my WordPress 2.7 website and I decide to try bbPress, but I don’t know what integration method will be the best and I wonder wheter it is possible at all. I want fully integrated bbPress and WordPress (common header, footer, user database, etc., saying simply bbPress included in a WordPress page). Could you help me? Or maybe should I use an other script like Simple:Press Forum, punBB or phpBB? Thanks in advance.
Regards,
rootf.
December 16, 2008 at 8:56 pm #70238In reply to: WordPress required??
csseur3
Memberno, you can use only bbpress if you want. WordPress is not required

bye
December 16, 2008 at 8:35 pm #70253In reply to: “Database failed to install”
jgk1013
MemberHere were my errors:
>>> Fetching missing WordPress cookie salts.
>>>>>> WordPress “auth” cookie salt not set.
>>>>>> WordPress “secure auth” cookie salt not set.
>>>>>> WordPress “logged in” cookie salt not set.
This is clearly the issue. However, when I went to where I was told these things would be, http://wearelabor.com/wp-admin/options.php, I didnt see any reference to them.
What am I doing wrong?
December 16, 2008 at 8:30 pm #4443Topic: WordPress required??
in forum Troubleshootingcolegeis
MemberHello, I want to use bbPress but I am not using WordPress for my website at all. Do I need to have WordPress installed and setup on my domain for bbPress to work??
– Cole
December 16, 2008 at 7:43 pm #70126In reply to: bbPress 1.0-alpha-4 released
chrishajer
ParticipantbbSync doesn’t work with the latest version of anything. What version bbPress did you install, and what version WordPress?
December 16, 2008 at 4:49 pm #70124In reply to: bbPress 1.0-alpha-4 released
Ipstenu (Mika Epstein)
ModeratorYou want your WordPress posts to show up as topics in your bbPress forums?
This sounds like a job for BBSYNC!
December 16, 2008 at 3:09 pm #70122In reply to: bbPress 1.0-alpha-4 released
bebopcool
Memberi am try tu use forums in buddypress
i am suffering pb in wpmu 2.7 (trunk 1574) and bbpress (1.0 alpha 4) integration both in update or brand new installation.
wpmu install in root
bbpress in /forums
user integration is ok
log in integration not
this seems ok :
You will also have to manually ensure that the following constants are equivalent in WordPress’ and bbPress’ respective config files.
WordPress (wp-config.php) bbPress (bb-config.php)
AUTH_KEY BB_AUTH_KEY
SECURE_AUTH_KEY BB_SECURE_AUTH_KEY
LOGGED_IN_KEY BB_LOGGED_IN_KEY
the bb press integration plugin gives me this line to add in wp-config :
define(‘COOKIEPATH’, ‘/’);
nothing about cookie domain : is this a pb ?
i added the cookie salt information looking manually to wp-config because a have an issue somewhere :
in bbpress/settings/integration it tells that we have to got to the page :
http://domain/wp-admin/options.php
to get the information about cookie salts
on this page i have those errors (both on new and update install of wpmu 2.7)
Warning: array_search() [function.array-search]: Wrong datatype for second argument in /home/$$$/www/wp-admin/includes/plugin.php on line 1044
Warning: array_search() [function.array-search]: Wrong datatype for second argument in /home/$$$/www/wp-admin/includes/plugin.php on line 1044
Warning: array_search() [function.array-search]: Wrong datatype for second argument in /home/$$$/www/wp-admin/includes/plugin.php on line 1044
Warning: array_search() [function.array-search]: Wrong datatype for second argument in /home/$$$/www/wp-admin/includes/plugin.php on line 1044
do not know if there is a link …but is there anyone with an idea about this error ?
and about a solution for my wpmu+bbpress integration
December 16, 2008 at 2:40 pm #70240Sam Bauers
ParticipantIt should be possible to load both language files, in fact some changes were made to WordPress to address the problem specifically.
Can you link to the language files you were trying to use?
* Side note: We should probably move where languages are stored. A
my-languagesdirectory would probably be the way to go. -
AuthorSearch Results