Search Results for 'code'
-
AuthorSearch Results
-
June 4, 2007 at 1:11 pm #57971
In reply to: “Add new” link in forum frontpage working wrong
ganzua
MemberThanks a lot fel64!
“Try it. If it works, come back and tell us please, because then we should probably make a trac ticket.”
It works! Code should be;
</div> <!– this div now is here –>
<?php endif; else : // $forums ?>
<h3 class=”bbcrumb”>“><?php bb_option(‘name’); ?></h3>
<?php post_form(); endif; ?>
<!– </div> and before was here –>
June 4, 2007 at 12:39 pm #56525In reply to: Strut Your bbPress!
fel64
MemberThat’s too bad. It’s a pretty nice site anyway.
Beige with green’s an interesting combination, but I think it works. The link colour when you hover over them clashes a bit, and I suggest making the brown you get when you hover over a thread title to be the same beige as that for the table headers, but I like it – especially the header.
June 4, 2007 at 12:32 pm #57970In reply to: “Add new” link in forum frontpage working wrong
fel64
MemberFront-page.php I believe is used to create the ?new=1 page.
Near the very bottom, look for a
<?php endif; else : ?>
line. Below this it should have code for<h3 class="bbcrumb"> ...
and then<?php post_form(); endif; ?>
The code between the
else :
and theendif;
are what executes to make the?new=1
page. Looking at my theme in comparison, I think that the</div>
underneath theelse : ... endif;
should actually be above it. Try it. If it works, come back and tell us please, because then we should probably make a trac ticket. Never noticed this before – I hacked up kakumei into my template straight away and assumed it to be a fault of mine in rewriting the horrible if : endif; method into nice braces.[Edit] Just tested it myself, and there are five
</div>
in the page source in kakumei and only four<div
. Pretty sure that’ll be your problem.June 4, 2007 at 1:08 am #49934In reply to: En español
ganzua
Member“Ahora mismo pienso que la solución real es incluir la traducción del foro en el archivo .mo de WordPress.”
-> Hola! ¿Como se configura bbpress para que lea el archivo .mo de wordpress?
Esto;
define(‘BBLANG’, ‘es_ES’);
en el config.php me da este error;
Fatal error: Cannot redeclare class CachedFileReader in
wampwwwwordpressbbpressbb-includesstreams.php on line 163
June 4, 2007 at 12:33 am #57963In reply to: Integration won’t work??
Trent Adams
MemberI would imagine it was this:
$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/'It needed the additional /wp/bbpress/ as the path.
Trent
June 3, 2007 at 10:36 pm #57966fel64
MemberPop this in at the top of your register.php file:
header("Location: http://www.example.com/"); /* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;In the long term it might be good to solve why bb users don’t work with WP, but I can’t think of anything off the top of my head.
June 3, 2007 at 8:59 pm #1924gjaw88
MemberI’m not a php coder yet and am learning. How would I go about making when I click “register” on bbpress to shoot it to my wordpress registration instead?
The reason why is because I have it setup so that WP users can also log on the forum, but bbpress signups don’t work with WP.
Thanks
June 3, 2007 at 7:24 pm #49933In reply to: En español
Covi
MemberTengo un problema con la integración con WordPress… por cierto, hola, creo que es la primera vez que escribo ^^
Pues eso, a ver si a alguién más le ha pasado, más que la integración el problema es sin intentamos usar las funciones de WordPress incluyendo
wp-blog-header
y además traducimos a cualquier idioma, por eso creo que la mayoría de la comunidad no se habrá dado cuenta ya que, quizás, no especifican un lenguaje (BBLANG).Lo que ocurre es:
Al especificar la variable BBLANG se activa la traducción incluyendo algunos archivos desde bb-settings.php:
if ( defined('BBLANG') && '' != constant('BBLANG') ) { // Covi:Don't include these when WP TRANSLATION is running: BBLANG defined
include_once(BBPATH . BBINC . 'streams.php');
include_once(BBPATH . BBINC . 'gettext.php');
}
if ( !( defined('DB_NAME') || defined('WP_BB') && WP_BB ) ) { // Don't include these when WP is running.
require( BBPATH . BBINC . 'kses.php');
require( BBPATH . BBINC . 'l10n.php');
}Estos archivos también los incluye WordPress y provoca un error (funciones repetidas).
La solución, como indica el archivo, aunque no en la traducción sobre BBLANG, es no incluirlos y lo soluciona en parte pero nos quedamos sin traducción porque usa el .mo de WordPress creo.
Ahora mismo pienso que la solución real es incluir la traducción del foro en el archivo .mo de WordPress.
Un saludo
June 3, 2007 at 7:23 pm #57960In 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.)
-
AuthorSearch Results