WordPress.org

Ready to get started?Download WordPress

Forums

Flexo Slider
directory location not correct for images (2 posts)

  1. NPSites
    Member
    Posted 2 years ago #

    flexo-slider.php

    dirresult is returning the wrong result for people that have their wordpress in a sub folder...

    EX
    IMAGE LOCATION =
    domainroot/wplocation/wp-content/gallery/frontslider/image.jpg

    -----------------------------------------------------
    ~line7

    $dirresult = $wpdb->get_results($query);

    echo "

    ";print_r ($dirresult[0]);echo "
    ";

    RESULT =

    stdClass Object
    (
    [path] => wp-content/gallery/frontslider
    )

    ------------------------------------------------------

    Correct location of the image is
    wplocation/wp-content/gallery/frontslider

    dirresult should use wp_get(home) to find correct location in front of wp-content/

    http://wordpress.org/extend/plugins/flexo-slider/

  2. NPSites
    Member
    Posted 2 years ago #

    the quick fix for this

    If your blog is not in root
    and wp-contents is not /
    and your urls need the first directory added

    $sliderPicsHTML .= '<img src="/' . $dirresult[0]->path . '/'

    Find lines like that and change them to

    $sliderPicsHTML .= '<img src="/wplocation/' . $dirresult[0]->path . '/'

    where wplocation is the directory you have wordpress in

    I would also suggest that you do some editing of the css files but thats optional for your site. Mine needed some editing

    AND

    also if you want your slides to link to a Page or URL
    go into NextGen
    put the URL only into the DESCRIPTION box
    ex http://www.mysite.com/page1
    NOT
    <a href="blah">blah </a>

    Still working on getting it to look good

    Thank You for making this plugin ...
    Keep working on it .. it is good

    :o)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic