Search Results for 'code'
-
AuthorSearch Results
-
October 17, 2006 at 9:16 pm #49709
In reply to: Can’t Login!
Michael Adams (mdawaffe)
Membergarymill,
Login problem:
wp_homeandwp_siturlwill only work if the url for your forums is a “subdirectory” of the url for your WordPress blog. If that is not the case, you’ll need the more fine-grained control mentioned in the Cookie integration with WordPress DocumentationInstallation problem:
on Installation, bbPress looks to see if there are any keymasters in the User Tables already. You’ll need to go to your usermeta table and delete the entry:
meta_key = $bb_table_prefix . ‘capabilities’ (example: ‘bb_capablities’)
meta_value = a:1:{s:9:”keymaster”;b:1;}
This part of the installation will have to change in the next version for several reasons. The difficulties you’re seeing is one of them.
October 17, 2006 at 9:05 pm #49845In reply to: loading wordpress with bbpress
Michael Adams (mdawaffe)
MemberNo –
WP_BBonly tells bbPress that you will be loading WordPress so that it knows not to try to load thingsn which will conflict with WordPress.If bbPress is installed in a subdirectory of WordPress, put this in bbPress’
config,phprequire_once(dirname(dirname(__FILE__)) . '/wp-config.php');October 17, 2006 at 7:01 pm #49829In reply to: Comments in WordPress
mozey
Memberi would guess that we need to:
1: Add a little code snippit inside of wp-post.php that creates a new forum SOMEHOW identified by the post ID.
2: in your wp-single.php include that forum instead of your comments.
3: SOmehow replicate/redirect comments/forum for RSS reasons and other ones that i do not understand!
sloppy i know!
October 17, 2006 at 4:18 pm #49828In reply to: install sql script
Michael Adams (mdawaffe)
Memberevelardiez,
bbPress comes with such a script. Download the software, fill in the details of you database connection in
config.php, and when you first browse to your forum’s URL, you’ll be taken through the installation procedure.October 17, 2006 at 1:11 pm #49463In reply to: Are there any localization files?
plasticdreams
MemberYea, I agree with lstelie.
WP use subversion to manage each localized file:
https://codex.wordpress.org/WordPress_in_Your_Language
http://svn.automattic.com/wordpress-i18n/
How do bbPress’ developers think about managing localized file?
October 16, 2006 at 11:16 pm #49589In reply to: Emoticons For bbPress?
ttech
MemberI tried the same code as above but it did not work for me. I’m not sure if htere is a get_settings in BBpress but, you can use $_SERVER;
October 16, 2006 at 10:49 pm #49672In reply to: Changing the style.css file
bryanveloso
MemberAlso when bbPress has a true template system, I’ll be making the default skin sort of like Andy’s Sandbox theme, so you won’t have to try to get around my CSS if you don’t want to.
October 16, 2006 at 10:06 pm #690Topic: how to delete posts?
in forum Troubleshootingchanzero
Memberi saw in the “how to delete a forum?” thread that it has to be done from the backed db, is a post similar? i had expected to see this option in the admin, or an option on the post itself, but i’m not sure if this option isn’t available, or if something is wrong with my install
thanks
and let me just add i am so happy bbpress is ready to roll
October 16, 2006 at 9:21 pm #49703In reply to: Can’t Login!
astereo
MemberSolved my problem. It was coming from
#$bb->wp_table_prefix = false; // 'wp_'; // WordPress table prefix.
#
$bb->wp_home = false; // WordPress - Options->General: Blog address (URL) // No trailing slash
#
$bb->wp_siteurl = false; // WordPress - Options->General: WordPress address (URL) // No trailing slash
I had set the urls only to domain.com/directory, when I added the http and www it worked fine.
October 16, 2006 at 5:50 pm #49787In reply to: How do I delete a forum?
Michael Adams (mdawaffe)
MemberThere is currently no way to delete a forum without deleting it directly from the database (that is, using something like PHPMyAdmin).
Tags can be removed from a particular topic by clicking the little
xnext to the tag in question.Tags can be completely deleted from the entire site by clicking the tag name, scrolling down, and clicking
Destroy Tag. You must be an administrator or key master to destroy a tag.October 16, 2006 at 5:00 pm #49701In reply to: Can’t Login!
planetphillip
MemberThis is what it should look like:
$bb->wp_table_prefix = 'wp_'; // 'wp_'; // WordPress table prefix.I made the point about TRUE becasue it seems that you never set it to TRUE, you just add the correct prefix.
October 16, 2006 at 4:55 pm #49700In reply to: Can’t Login!
Aaron
ParticipantWhen I use this option
$bb->wp_table_prefix = false; // 'wp_'; // WordPress table prefix.Set it to true, and use my prefix, I am running into this error:
bbPress database error: [Table 'dbname.1users' doesn't exist]SELECT * FROM 1users WHERE user_login = 'ergate' AND SUBSTRING_INDEX( user_pass, '---', 1 ) = '*****[moderated]*****'
bbPress database error: [Table 'dbname.1users' doesn't exist]
SELECT * FROM 1users WHERE user_login = 'ergate'
Even if I intentionally put the wrong db prefix, it still gives this same error.
But as long as I use keep using the old integration code in the config file
// use the WP user table for your bbpress user listdefine('CUSTOM_USER_TABLE', 'wp_users');
the login works just fine.
October 16, 2006 at 4:38 pm #49774In reply to: Permalinks?
mozey
MemberOhhh,
hehehehe, thank you!
October 16, 2006 at 4:10 pm #49747In reply to: Using WP template tags
Michael Adams (mdawaffe)
MemberTry
require_once(dirname(dirname(__FILE__)) . '/wp-config.php');in bbPress’ config.php.
October 16, 2006 at 3:27 pm #49699In reply to: Can’t Login!
planetphillip
MemberI had the same problem, but after reading the Ulitmate bbPress Guide (http://www.devlounge.net/articles/the-ultimate-bbpress-guide/1/) I realised I had made mistakes on these lines of my config file:
#$bb->wp_table_prefix = false; // 'wp_'; // WordPress table prefix.
#
$bb->wp_home = false; // WordPress - Options->General: Blog address (URL) // No trailing slash
#
$bb->wp_siteurl = false; // WordPress - Options->General: WordPress address (URL) // No trailing slash
I replaced the FALSE with TRUE instead of adding the actual urls and the
'wp_'. Your problem might be completely different but maybe you made the same mistake as I did?As a side note it seemed obvious to me that if it wasn’t FALSE then I should set it to TRUE, but maybe not everybody agrees.
hth
October 16, 2006 at 2:56 pm #687Topic: Private forum?
in forum Requests & Feedbackremouk
MemberEverything is said in the title.
I don’t see this option in the current version. Is it a future feature, or must it be done via a plug-in?
October 16, 2006 at 1:15 pm #49719In reply to: email subscription
jaggs
MemberAh thanks. Better ask for a plug-in then.
October 16, 2006 at 9:34 am #682Topic: Profile Page Layout
in forum Requests & Feedbackjazzle
MemberI think it needs to use tables for the User Activity sections.
I say this because there’s a lot of redundant text:
You last replied:/User last replied:/Most recent reply:and it is confusing to look at.
October 16, 2006 at 9:23 am #681Topic: Plugin Requests
in forum Requests & Feedbackjazzle
MemberI’d like to see the following plugins:
Since HTML is long-winded to type:
- BBCode – http://en.wikipedia.org/wiki/BBcode
- Markdown – http://daringfireball.net/projects/markdown/
- Textile – http://textism.com/tools/textile/
Which could convert the posts’ content before DB storage, and ‘unconvert’ before editting. (in case the plugins are removed, or if users don’t like them)
- Emoticons
October 16, 2006 at 9:04 am #49755In reply to: Problems after installation
jazzle
MemberThis is probably because you have have
$bb->mod_rewrite = true;but no.htaccessfile.Have a look at https://bbpress.org/forums/topic/13
October 16, 2006 at 9:01 am #49461In reply to: Are there any localization files?
Elad Salomons
MemberPotter_System – your update did the trick – thanks
October 16, 2006 at 3:21 am #49585In reply to: Emoticons For bbPress?
gnawph
MemberI wanted that functionality as well so I ripped some WP code, played around, and finally got something I could use. This is a highly sloppy work as I am out of practice and not really a great PHP programmer anyway. The plugin is mostly a rip of the WordPress code with a filter. It is not elegant or tested completely but so far it has been getting the job done.
Note: This plugin will not work without a default install of WordPress.
You have to create a directory called /my-plugins/, copy this code into a file called whatever-you-want.php, upload and enjoy!
Feedback appreciated! Maybe I can improve on this and increase my PHP/*press skills.

<?php/*
Plugin Name: WordPress Smiley Integrator .0002
Plugin URI: none
Description: Gives WordPress Smiley Functionality to bbPress
Author: John Farrell
Version: 1.0
Author URI: none
*/
function convert_smilies($text) {
$wpsmiliestrans = array(
':mrgreen:' => 'icon_mrgreen.gif',
':neutral:' => 'icon_neutral.gif',
':twisted:' => 'icon_twisted.gif',
':arrow:' => 'icon_arrow.gif',
':shock:' => 'icon_eek.gif',
':smile:' => 'icon_smile.gif',
'
??:' => 'icon_confused.gif',':cool:' => 'icon_cool.gif',
':evil:' => 'icon_evil.gif',
':grin:' => 'icon_biggrin.gif',
':idea:' => 'icon_idea.gif',
':oops:' => 'icon_redface.gif',
':razz:' => 'icon_razz.gif',
':roll:' => 'icon_rolleyes.gif',
':wink:' => 'icon_wink.gif',
':cry:' => 'icon_cry.gif',
':eek:' => 'icon_surprised.gif',
':lol:' => 'icon_lol.gif',
':mad:' => 'icon_mad.gif',
':sad:' => 'icon_sad.gif',
'
' => 'icon_cool.gif','8-O' => 'icon_eek.gif',
'
' => 'icon_sad.gif','
' => 'icon_smile.gif','
' => 'icon_confused.gif','
' => 'icon_biggrin.gif','
' => 'icon_razz.gif',':-o' => 'icon_surprised.gif',
':-x' => 'icon_mad.gif',
'
' => 'icon_neutral.gif','
' => 'icon_wink.gif','
' => 'icon_cool.gif','8O' => 'icon_eek.gif',
'
' => 'icon_sad.gif','
' => 'icon_smile.gif','
' => 'icon_confused.gif','
' => 'icon_biggrin.gif','
' => 'icon_razz.gif',':o' => 'icon_surprised.gif',
':x' => 'icon_mad.gif',
'
' => 'icon_neutral.gif','
' => 'icon_wink.gif',':!:' => 'icon_exclaim.gif',
'
:' => 'icon_question.gif',);
// generates smilies' search & replace arrays
foreach($wpsmiliestrans as $smiley => $img) {
$wp_smiliessearch[] = $smiley;
$smiley_masked = htmlspecialchars( trim($smiley) , ENT_QUOTES);
$wp_smiliesreplace[] = " <img src='/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
}
$output = '';
// HTML loop taken from texturize function, could possible be consolidated
$textarr = preg_split("/(<.*>)/U", $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between
$stop = count($textarr);// loop stuff
for ($i = 0; $i < $stop; $i++) {
$content = $textarr[$i];
if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag
$content = str_replace($wp_smiliessearch, $wp_smiliesreplace, $content);
}
$output .= $content;
}
return $output;
}
//add the filter
add_filter('post_text', 'convert_smilies');
?>
October 16, 2006 at 2:37 am #49723In reply to: installing … error
chaaban
Memberno it cant be this because i used the same folder on both , 1 worked great but it was on root the other dident work because it wasnt on root …
is there any error in those 2 lines ?
$bb->domain = ‘http://www.thai-boxing.org’;
$bb->path = ‘/muay-thai-forum/’;
if i’m installing it on a folder called : muay-thai-forum ?
here is what i will make to make it easy on my self , i will take the exported .sql database of the bbpress that worked and install it and see what it will do … i’ll let u updated

thank’s
October 16, 2006 at 1:37 am #678Topic: Using WP template tags
in forum ThemesVicente Ruiz Gálvez
ParticipantCan I use my own WP template tags (or functions) into the bb templates?
I tried to add
require_once('http://www.mydomain.com/wp-config.php');into the config.php file, but don’t work.If I add
require_once('../wp-config.php');, it works, but crash the bb-admin panel.Can anyone help me?
October 16, 2006 at 12:24 am #49460In reply to: Are there any localization files?
potter_system
Memberlstelie: The Views links’ names are used in another place (view.php), so at this time it’s difficult. I think it’s possible to add another array value to make the names get-text-able, or even use the values the array currently have for next version
== Update ==
BTW, if you don’t want to wait, you can replace the
echo $viewin your front-page.php file withecho $title -
AuthorSearch Results