Search Results for 'code'
-
AuthorSearch Results
-
June 3, 2007 at 7:23 pm #57960
In reply to: Integration won’t work??
gjaw88
MemberHere is the site. NO I’m not using this for my site, this is just a test and is what domain name my friend offered haha. Nothing is inappropiate on this site, it is just for testing purposes before I buy my own domain.
http://www.saladtossers.org/wp/bbpress/
‘code'<?php
// ** MySQL settings ** //
define(‘BBDB_NAME’, ‘mike_i126wor’); // The name of the database
define(‘BBDB_USER’, ‘mike_i126wor’); // Your MySQL username
define(‘BBDB_PASSWORD’, passwordhere’); // …and password
define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
// Change the prefix if you want to have multiple forums in a single database.
$bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!
// If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.
// Adjust the domain and path to suit your actual URL.
// Just the domain name; no directories or path. There should be no trailing slash here.
$bb->domain = ‘http://saladtossers.org’; // Example: ‘http://bbpress.example.com’
// There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.
$bb->path = ‘/bbpress/’; // Example: ‘/forums/’
// What are you going to call me?
$bb->name = ‘test site’;
// This must be set before running the install script.
$bb->admin_email = ’email@gmail.com’;
// Set to true if you want pretty permalinks.
$bb->mod_rewrite = false;
// The number of topics that show on each page.
$bb->page_topics = 30;
// A user can edit a post for this many minutes after submitting.
$bb->edit_lock = 60;
// Your timezone offset. Example: -7 for Pacific Daylight Time.
$bb->gmt_offset = 0;
// Change this to localize bbPress. A corresponding MO file for the
// chosen language must be installed to bb-includes/languages.
// For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’
// to enable German language support.
define(‘BBLANG’, ”);
// Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage
// of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at
// http://wordpress.com/api-keys/
$bb->akismet_key = ”; // Example: ‘0123456789ab’
// The rest is only useful if you are integrating bbPress with WordPress.
// If you’re not, just leave the rest as it is.
$bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;
$bb->wp_home = ‘http://www.saladtossers.org/wp’; // WordPress – Options->General: Blog address (URL) // No trailing slash. Example: ‘http://example.com’
$bb->wp_siteurl = ‘http://www.saladtossers.org/wp’; // WordPress – Options->General: WordPress address (URL) // No trailing slash. Example: ‘http://example.com’
/* Stop editing */
if ( !defined(‘BBPATH’) )
define(‘BBPATH’, dirname(__FILE__) . ‘/’ );
require_once( BBPATH . ‘bb-settings.php’ );
?> ‘code’
June 3, 2007 at 5:12 pm #1923Topic: Integration Problem – Including WP Functions
in forum Troubleshootingbavardage
Member<?php
require_once( '../wp-blog-header.php' );
$bb->WP_BB = true;
define('WP_BB', true);Start of config is as per above, but get the following error:
Fatal error: Call to a member function on a non-object in /home/jefferss/public_html/blog/forum/bb-includes/functions.php on line 503
Any ideas?
June 3, 2007 at 1:01 am #57959In reply to: Integration won’t work??
Trent Adams
MemberPut up a copy of your config.php with the integration portions in it. Tell us what your wordpress database prefix is and we can try and work this out. Just saying it doesn’t work will not help us help you. We need details of what you have tried and what your have entered. Just make sure you don’t put any password or other information in.
For reference, my WP integrated config.php has these entries:
$bb->wp_table_prefix = 'wp_'; // WordPress table prefix. Example: 'wp_';
$bb->wp_home = 'http://trentadams.com'; // WordPress - Options->General: Blog address (URL) // No trailing slash. Example: 'http://example.com'
$bb->wp_siteurl = 'http://trentadams.com'; // WordPress - Options->General: WordPress address (URL) // No trailing slash. Example: 'http://example.com'It is important to have bbPress in the same database as wordpress. As well, give us your URL to check this out for ourselves and try and see if we can help.
Trent
June 3, 2007 at 12:57 am #57957In reply to: Integration won’t work??
gjaw88
MemberI just tried that and it does the same thing…
June 3, 2007 at 12:41 am #57956In reply to: Integration won’t work??
Trent Adams
MemberIt would be your database prefix:
$bb->wp_table_prefix = 'wp_';Trent
June 2, 2007 at 10:42 pm #57361In reply to: Plugin: Move It
fel64
MemberTo get it to be for Key Masters only instead of Admins (and above) only, use
'use_keys'instead of'administrate'.
June 2, 2007 at 10:35 pm #57360In reply to: Plugin: Move It
Trent Adams
MemberYou can put up a conditional like I use in the YouTube plugin:
if (bb_current_user_can('administrate')) :Put that after the main plugin function and then the following before the closing of that function:
endif;Trent
June 2, 2007 at 9:54 pm #57906In reply to: what are the issues with wpmu & bbpress?
drmike
MemberHmm, I tried code (well teh backticks) in there when I noticed that the blockquotes didn’t work. In Netscape they looked teh same so I went back to just using the blockquote.
Moderators have backend access, right Trent? You should change that.
June 2, 2007 at 9:53 pm #57950In reply to: Private/member forums
drmike
MemberNot a problem
June 2, 2007 at 3:59 am #57904In reply to: what are the issues with wpmu & bbpress?
Trent Adams
MemberDarn it, I forgot that blockquote is not styled in this forum…..that is a problem that I will have dealt with! I changed your post drmike to the code tag for now as it didn’t read right without a formatting of some kind!
Trent
Trent Adams
MemberI didn’t mention it when it was brought up, but I knew that when that was brought up drmike!

Trent
June 2, 2007 at 3:52 am #57938In reply to: Style change request
Trent Adams
MemberI will pass this along Jeremy to mdawaffe in the bbdevlist! I know what you mean about the overflow! The only thing that fel64 has a point on is that if the text doesn’t show up, they are more likely to use the code tags.
Trent
June 2, 2007 at 3:37 am #57947In reply to: Old Version
Trent Adams
Membermdawaffe is working like crazy on 1.0, so the old versions won’t matter soon enough (well maybe not soon, but sometime!)

Trent
June 2, 2007 at 3:17 am #57357In reply to: Plugin: Move It
citizenkeith
ParticipantI keep getting this error:
Warning: Cannot modify header information – headers already sent by (output started at /forums/my-plugins/moveit.php:117) in /forums/bb-includes/pluggable.php on line 166
I removed the complete path for my security.
drmike
Memberheh heh heh
And we’ve been told that staff couldn’t see who made tags over in wp.com land.
June 2, 2007 at 1:03 am #57903In reply to: what are the issues with wpmu & bbpress?
drmike
MemberThere seems to be a bit of difficulty with integrating wpmu with bbpress.I disagree. You pretty much drop three lines into the config file for bbpress, use the same database and it’s set.
The two lines to share the cookies: Link
And this line to use the user table from wpmu.
define('CUSTOM_USER_TABLE', 'wp_users');And IIRC, that’s already in the config file, just commented out.
Hope this helps,
-drmike
June 1, 2007 at 12:13 pm #56702In reply to: Plugin: Avatar Upload
aranamarunda
MemberThank you very much. Such a polite reply! I’m amazed at the helpfulness on this forum. It is all working now
If you are dutch, come and join the forum
It is for dutch role playing only… Sorry :S(no intention or commercial interest, just see the above as a polite invitation, no spam intended.)
June 1, 2007 at 1:05 am #57873In reply to: Formating with wpmu theme
fel64
MemberThat’s right. A typical template file in your theme will be like this:
bb_get_header()loadsheader.phpfrom your theme’s folder or otherwise the default kakumei one (header.php should contain what is now in your second div calledheader), then there’s a bunch of content, and thenbb_get_footer()will get the sidebar and the footer elements infooter.php. You won’t need to modify this or add any files or anything like that to make your theme, at least in all probability.Because
header.phpandfooter.phpare always called, the unchanging HTML and php should all be in there.header.php
html
head
//some head stuff, links and meta etc
/head
body
wrap
header
//header HTML for your logo etc
/headerwhatevertemplate.php
.
content
//content HTML and php
/contentfooter.php
.
sidebar
//sidebar HTML and stuff
/sidebar
footer
//footer HTML and stuff
/footer
/wrap
/body
/htmlI hope that’s clear, it’s a little late so I might have some tired logic. This is pseudoHTML –
bodycorresponds to<body>, butwrapcorresponds to<div id="wrap">andsidebar=<div id="sidebar">etc. I hope that’s okay.So there are usually only three files that directly contribute to the output of the forum. Most of the HTML you’re messing about with should go in
header.phporfooter.php.bb_get_header()andbb_get_footer()deal with all the mucky stuff for you, you don’t need to ‘call’ them (if I’m understanding you right) from the main template individually. Just make sure they’re proper HTML insideheader.phpandfooter.php.June 1, 2007 at 12:35 am #57937In reply to: Style change request
JeremyVisser
MemberYes, but people frequently forget to use the code tags for the code in their posts, leading to why I would like the whole post to be
overflow: auto.May 31, 2007 at 11:54 pm #57872In reply to: Formating with wpmu theme
mfaxion
Memberok. Played around with the code a little bit. Have a few questions.
With this div tag structure this is referring to the overall structure spanning the multiple php files in the template folder?
Do I need to include the div ids for header, sidebar, content, footer whenever they are called in the templates php files?
I assume that the child element reference is that I should have all my div header, div sidebar and div footers closed when those sections end.
Since there are a handful of php files in the template can you explain how I know which to add?
If you couldn’t tell I’m pretty confused! Really appreciating the help.
May 31, 2007 at 9:10 pm #56700In reply to: Plugin: Avatar Upload
fel64
MemberYou need to change the permissions of the avatars folder I think.
http://faq.wordpress.net/view.php?p=54
The avatars cross the next poster’s names because they’re that’s how the CSS is set up. You could change the HTML and CSS structure, or if that’s perhaps too much you could open kakumei’s style.css, find
#thread li { ... }and add this to it:min-height: 120px;That should make sure the post box is big enough that the next post box doesn’t interfere with the avatar. Change the number if you want it differently.
May 31, 2007 at 5:06 pm #57884In reply to: Changing the header
LwEEs
MemberSam my friend,
Is this on the theme header or somewhere else, because my bbpress theme header is actually one line of code, everytime I try to change it messes up the installation. When I get home I’ll post the few letters my header has. Thanks.
May 31, 2007 at 4:08 pm #57883In reply to: Changing the header
Sam Bauers
ParticipantI meant the post the whole header file. Place the code between backticks to show it properly here.
May 31, 2007 at 11:41 am #1918Topic: Old Version
in forum Requests & Feedbackdaxeno
MemberDoes anyone here have any old version they can share?
my friend tod me that the older version works better than th new one.
May 31, 2007 at 11:35 am #57944In reply to: New Here + Login Problem
fel64
MemberI think the usual problem is because it sets a cookie for the wrong domain. Are you running a local copy on xampp or the like? You will need to add this to your
config.phpif you are.$bb->cookiedomain = '';
$bb->cookiepath = '/forums/';Cookiedomain should be blank, and cookiepath should obviously be the folder your forums are in (so you should change that value).
-
AuthorSearch Results