323 posts
  • Has sold $40,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
PersianArt
says
hi, I need list of all the Alias Names and created slider and needed code is this?
$slider = new RevSlider();
$arrSliders = $slider->getArrSliders();

but I have this error “Catchable fatal error: Object of class RevSlider could not be converted to string in …”

rev author said “you must doing something wrong, or you are doing it before the revolutio slider files are included”

I did not understand what I must do. have you any suggestion

thanks

323 posts
  • Has sold $40,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
PersianArt
says

no any suggestion?

1352 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
Smartik
says
Yes I know, the author told me the same and is not working. Here is how I did:
function all_rev_sliders_in_array(){
    if (class_exists('RevSlider')) {
        $theslider     = new RevSlider();
        $arrSliders = $theslider->getArrSliders();
        $arrA     = array();
        $arrT     = array();
        foreach($arrSliders as $slider){
            $arrA[]     = $slider->getAlias();
            $arrT[]     = $slider->getTitle();
        }
        if($arrA && $arrT){
            $result = array_combine($arrA, $arrT);
        }
        else
        {
            $result = false;
        }
        return $result;
    }
}

all_rev_sliders_in_array() will return and array alias=>Title

323 posts
  • Has sold $40,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
PersianArt
says

Yes I know, the author told me the same and is not working. Here is how I did:
function all_rev_sliders_in_array(){
    if (class_exists('RevSlider')) {
        $theslider     = new RevSlider();
        $arrSliders = $theslider->getArrSliders();
        $arrA     = array();
        $arrT     = array();
        foreach($arrSliders as $slider){
            $arrA[]     = $slider->getAlias();
            $arrT[]     = $slider->getTitle();
        }
        if($arrA && $arrT){
            $result = array_combine($arrA, $arrT);
        }
        else
        {
            $result = false;
        }
        return $result;
    }
}

all_rev_sliders_in_array() will return and array alias=>Title

thank you so much, it works correctly :)

by
by
by
by
by
by