245 posts
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 1-2 years
  • Exclusive Author
  • Bought between 1 and 9 items
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

245 posts
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 1-2 years
  • Exclusive Author
  • Bought between 1 and 9 items
PersianArt says

no any suggestion?

893 posts
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Has been a member for 3-4 years
  • Exclusive Author
  • Europe
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Sold between 10 000 and 50 000 dollars
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

245 posts
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 1-2 years
  • Exclusive Author
  • Bought between 1 and 9 items
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