Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to add images to content pleaaaaaase answer

  • 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

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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 XD

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar