Advertisement:

Author Topic: Syntax error in my code to adjust Carousel's plugin width ?  (Read 1815 times)

Kittin

  • Full Member
  • ***
  • Posts: 181
Syntax error in my code to adjust Carousel's plugin width ?
« on: January 04, 2013, 11:19:25 pm »
Well,

I ve just installed the Carousel plugin 2.5.1 thanks to the help of cartagena68 here.

Now I want to adjust the width of Carousel plugin, I looked at this topic :

http://forums.osclass.org/plugins/problem-plugin_carousel/15/

and I tried with your code $carouselWidth = "500px" in my index.php file of my plugin folder but it seems to have an syntax error or not?
Please look at my code:

function osc_carousel_width() {
        return(osc_get_preference('carousel_width', 'plugin-carousel_for_osclass')) ;
    }
   
   $carouselWidth = "500px"
   function osc_carousel_height() {
        return(osc_get_preference('carousel_height', 'plugin-carousel_for_osclass')) ;
    }

then when I uploaded index.php file , carousel's width doesn't change.

Please have you the right code or another solution?

Thanks :)

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Syntax error in my code to adjust Carousel's plugin width ?
« Reply #1 on: January 04, 2013, 11:43:50 pm »
Hi,
you can set the Width and Height of the carousell  in the plgin view setting, don't need to change index.php file.
Note that there are 2 setting options ( or pages ) in carousel plugin, one is the general setting, the other one is the view setting where you can change the number of ads you want to show in carousel or if you want to display it vertically and also the Width and Height of the carousell and of the pic

Kittin

  • Full Member
  • ***
  • Posts: 181
Re: Syntax error in my code to adjust Carousel's plugin width ?
« Reply #2 on: January 05, 2013, 01:36:26 am »
Yep cartagena68 it runs.

Thanks a lot  :)