diff --git a/e107_plugins/featurebox/e_shortcode.php b/e107_plugins/featurebox/e_shortcode.php index 9107e57bf..9011f44d6 100644 --- a/e107_plugins/featurebox/e_shortcode.php +++ b/e107_plugins/featurebox/e_shortcode.php @@ -1,7 +1,7 @@ getTotal() > 0 && vartrue($tmpl[$base.'item'])) { - $total = ceil($tree->getTotal() / ($category->sc_featurebox_category_limit() ? intval($category->sc_featurebox_category_limit()) : $tree->getTotal()) ); + if(isset($parm['nolimit'])) $total = $tree->getTotal(); + else $total = ceil($tree->getTotal() / ($category->sc_featurebox_category_limit() ? intval($category->sc_featurebox_category_limit()) : $tree->getTotal()) ); $model = clone $category; $tmp = array(); for ($index = 1; $index <= $total; $index++) @@ -265,8 +267,7 @@ class featurebox_shortcodes // must match the plugin's folder name. ie. [PLUGIN_ $cols = intval(vartrue($parm['cols'], 1)); $limit = intval(varset($parm['limit'], $category->sc_featurebox_category_limit())); - $from = (intval(vartrue($parm['from'], 1)) - 1) * $cols; - + $from = (intval(vartrue($parm['from'], 1)) - 1) * $limit; $category->setParam('cols', $cols) ->setParam('no_fill_empty', isset($parm['no_fill_empty']) ? 1 : 0) ->setParam('limit', $limit)