Forum Replies Created
-
In reply to: Adding Images from a PC to a Topic.
I am not too sure of doing what you outlined above correctly myself. Make a directory like a folder you mean under my plugins? And is home and user name replaced by something? How do I chmod it?
Thanks.
In reply to: Adding Images from a PC to a Topic.It is what I want exactly. Just not working for me.
Thanks.
In reply to: Adding Images from a PC to a Topic.Yes. That is what I meant. Can a user if logged in, upload an image from their PC onto the forum server?
Thank you.
In reply to: Adding a new template with allow-images.I changed it to CrazyDark.
In reply to: Adding Images to a Topic.Also is it possible for a user to upload an image that resides on their computer rather than on a server? If so, how?
Thanks.
In reply to: Adding Images to a Topic.That code above did not work for me chandersbs. The one below did. Is it safe to use the one below?
<?php
/*
Plugin Name: Allow Images
Plugin URI: https://bbpress.org/#
Description: Allows <img /> tags to be posted in your forums. The image must be a png, gif or jpeg.
Author: Michael D Adams
Author URI: http://blogwaffe.com/
Version: 0.7.1
*/
// You can add more tags here
function allow_images_allowed_tags( $tags ) {
$tags = array(‘src’ => array(), ‘title’ => array(), ‘alt’ => array());
return $tags;
}
function allow_images( $text ) {
if ( preg_match_all(‘/<img(.+?)src=(“|’)(.+?)\2(.*?)>/i’, $text, $matches, PREG_SET_ORDER ) ){
foreach( $matches as $match ){
if (preg_match(‘/src=/i’, $match[4]) /* multiple src = someone’s trying to cheat */ || !in_array(substr($match[3], -4), array(‘.png’, ‘.jpg’, ‘.gif’)) /*only match .jpg, .gif, .png*/ && ‘.jpeg’ != substr($match[3], -5) /*and .jpeg*/){
$text = str_replace($match[0], ”, $text);
}
}
}
return $text;
}
add_filter( ‘pre_post’, ‘allow_images’, 52 );
add_filter( ‘bb_allowed_tags’, ‘allow_images_allowed_tags’ );
?>
In reply to: Adding Images to a Topic.Thanks. Will the above code posted by chandersbs work in 1.0?
Thanks.
In reply to: Link to Home Page.I am using the default K theme in bbPress.
Thank you.
In reply to: Changing Key Master name.I chose a Keymaster title during installation the very first time that I wanted to change. Is that possible?
Thanks.
In reply to: Google AnalyticsSo it works similar to WP but just that you cannot do it through Editor in WP, rather do it directly in the files on the server, correct? If I have GA code on my site already, will it help as the forum is just an extension of the domain? Or not, as it is a different page altogether?
Thanks.
In reply to: Link to Home Page.Thanks. Where exactly in the header.php do I add it and what is the code to add to it?
Thanks.
In reply to: DB Error: cannot selectThe error message was “DB Error: cannot find”. Figured out that for some reason the database name filled in during step1 was not caught by the bbpress-config.php file as you can see in the code above. The BBDB_NAME has been left “bbpress” as in default. Changed it in the file and it worked. Now onto Step2.
Thanks.
In reply to: Getting Error Message during install.Found it. Thanks.
In reply to: Installing bbPressThanks.
In reply to: DB Error: cannot selectBelow is the content of my config.php file. I have X out the important details.
<?php
/**
* The base configurations of bbPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys and bbPress Language. You can get the MySQL settings from your
* web host.
*
* This file is used by the installer during installation.
*
* @package bbPress
*/
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for bbPress */
define( ‘BBDB_NAME’, ‘bbPress’ );
/** MySQL database username */
define( ‘BBDB_USER’, ‘XXXXXXXX’ );
/** MySQL database password */
define( ‘BBDB_PASSWORD’, ‘XXXXXXXX’ );
/** MySQL hostname */
define( ‘BBDB_HOST’, ‘XXXXXXXX.db.4779279.hostedresource.com’ );
/** Database Charset to use in creating database tables. */
define( ‘BBDB_CHARSET’, ‘utf8’ );
/** The Database Collate type. Don’t change this if in doubt. */
define( ‘BBDB_COLLATE’, ” );
/**#@+
* Authentication Unique Keys.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wXXXXXXXX.org/secret-XXX/XXX/XXXXXXX/ WordPress.org secret-key service}
*
* @since 1.0
*/
define( ‘BB_AUTH_KEY’, ‘Vj-3}{i=juL$9u<4CG3S.V[XXXXXXX(]JYa>}b1PyZ$/s-|fs6b1b^HXXXXX186:’ );
define( ‘BB_SECURE_AUTH_KEY’, ‘;/ML=-Xx(}/:J@VNr.$|zXXXXXXXX)B>dGTr+3NETTQAQ/ S&T4e}{,&OOjA|bxj’ );
define( ‘BB_LOGGED_IN_KEY’, ‘V4L?XXXXXXXX$|#9E2`72+&?kMq(n~[3p54XzX+L|7r-6 w0{N-,QiWn[;Y$FUtN’ );
define( ‘BB_NONCE_KEY’, ‘c]rdQ[|fn$_S}z~RVX5fR6~Rg$0XXXXXXXX}6{$vDxC>WS~4/+Ft+Ea.|4:3l>JU’ );
/**#@-*/
/**
* bbPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$bb_table_prefix = ‘bb_’;
/**
* bbPress Localized Language, defaults to English.
*
* Change this to localize bbPress. A corresponding MO file for the chosen
* language must be installed to a directory called “my-languages” in the root
* directory of bbPress. For example, install de.mo to “my-languages” and set
* BB_LANG to ‘de’ to enable German language support.
*/
define( ‘BB_LANG’, ” );
?>
In reply to: Getting Error Message during install.Where do Ifind the WP-config.php file? Did not see it in the root directory.
In reply to: Getting Error Message during install.I created a new database for bbPress.
In reply to: Getting Error Message during install.Got through the first step and when I clicked on Step 2 I got an error message saying “DB Error:cannot select”. Any help?
Thank you.
In reply to: Getting Error Message during install.Ah. Do I put the database host name where the ‘localhost’ is in the config.php file?
Thanks.
In reply to: Getting Error Message during install.Also the bb-config.php has the ‘localhost’ in it already. So that issue does not seem to be it.
Thanks.
In reply to: Getting Error Message during install.I used the host name in the database name field and still am getting the same error message.
In reply to: Getting Error Message during install.Which config.php file is being referred to in the article? Will it be under the bbPress folder? Also where is the hostname required? bbPress installation only asks me for the username and password.
Thanks.
In reply to: Getting Error Message during install.It is installed in my WP hosting account, so I guess it is not stand alone.
In reply to: Getting Error Message during install.I just downloaded the zip file and uploaded the bbPress folder into the HTML directory and used <mydomain/bbpress> to set it up and am getting this message. I am using GoDaddy for hosting, yes.
Thanks.
In reply to: Installing bbPressDo I need to create a new database or use the existing WP database?
Thank you.