Info
- 8 posts
- 6 voices
- Started 2 years ago by tianye
- Latest reply from tianye
- This topic is not resolved
how to add images to content pleaaaaaase answer
-
- Posted 2 years ago #
I haev already download the "allow-images" plugin wish verson is 0.73 and activate in admin , when I input like this code "<img scr="www.liuso.com/logo.jpg" /> but can not workes, what's wrong wish my operation , my verson is 1.02
and my english is very poor if there somethings language wrong please don't to ridicule -
- Posted 2 years ago #
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 http://bbpress.org/plugins/
if not... I don't knowI don't speak english ok XD...
-
- Posted 2 years ago #
Have you tried this plugin?
http://bbpress.org/plugins/topic/bb-attachments/ -
- Posted 2 years ago #
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: http://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="" /> -
- Posted 2 years ago #
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"
-
- Posted 2 years ago #
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: http://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; } ?> -
- Posted 2 years ago #
tianye,
<img src="http://www.liuso.com/logo.jpg">don't forget the http:// -
- Posted 2 years ago #
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 -
You must log in to post.