is <img sRc=”www.liuso.com/logo.jpg”> change scr to src….
Where do you want to put this image? in post try [img]www.liuso.com/logo.jpg[/img] use… bbcode lite and bbcode buttons plugins… search here https://bbpress.org/plugins/
if not… I don’t know
I don’t speak english ok …
create a file in your my-plugins directory called my images or something like that.
add the following code
<?php
/*
Plugin Name: My Images
Plugin URI: https://bbpress.org/
Description: Allows <img /> tags to be used in forums.
*/
add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );
function allow_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array(), 'class' => array()); return $tags; }
add_filter( 'get_profile_info_keys','bb_member_id_in_profile',255);
function bb_member_id_in_profile($keys) {
global $self;
if (empty($self)==true && isset($_GET['tab'])==false && bb_get_location()=="profile-page") {
(array) $keys=array_merge(array_slice((array) $keys, 0 , 1), array('ID' => array(0, __('Member #'))), array_slice((array) $keys, 1));
}
return (array) $keys;
}
?>
Activate the plug in & all should work as long as you use
<img src="" alt="" title="" class="" />
I tried it, not working, I got this error:
Fatal error: Cannot redeclare allow_images_allowed_tags() (previously declared in /home/onlin196/public_html/forums/bb-plugins/allow-images.php:12) in /home/onlin196/public_html/forums/my-plugins/plaatjes.php on line 9
I created a file called “plaatjes.php”
sorry, sounds like you have a plugin enabled that uses the allow_images_allowed_tags function & looking at my above post, there is also some unneeded code.
try:
<?php
/*
Plugin Name: My Images
Plugin URI: https://bbpress.org/
Description: Allows <img /> tags to be used in forums.
*/
add_filter( 'bb_allowed_tags', 'my_images_allowed_tags' );
function my_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array(), 'class' => array()); return $tags; }
?>
tianye, <img src="http://www.liuso.com/logo.jpg">
don’t forget the http://
Thinks for everyone I had solve this question
Actually use bblite and bbcode button and allow images plugin can be easily to post images in your fourm
ON need input any code ,
I don’t speak english