Advertisement:

Author Topic: carousel osclass  (Read 879 times)

ZonaEu

  • Full Member
  • ***
  • Posts: 137
carousel osclass
« on: September 04, 2014, 12:01:29 am »
Hello:

It is possible to install 2 carousel in osclass? wanted to use 1st in some pages in vertical and the 2nd in other pages in horizontal ...
is it possible?

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: carousel osclass
« Reply #1 on: September 04, 2014, 05:32:10 am »
Hi, the way you want to present (vertical and horizontal), or you do clone files and functions so that the same plugin presents both positions. Or you can choose the path easier (for me, if it was in my case) ... clone the plugin, rename the plugin folder, rename the sql tables, rename the all functions (with same name of the folder plugin renamed), and call the new carousel function for the file you need .

This results because I've done it in other plugins.
Sure, it's another plugin installed in your system and it stay more heavier, but this you already know.
I'm no expert, this is a tip, probably someone more experienced can advise the best in your situation.

Regards

[portuguese]:

Oi, da maneira que você quer apresentar (vertical e horizontal), ou você faz clone de ficheiros e funções de forma que o mesmo plugin apresente as duas posições. Ou você pode optar pela via mais fácil (para mim se fosse no meu caso)... clonar o plugin, mudar o nome da pasta plugin, mudar o nome das tabelas sql, mudar o nome das funções, e chamar a nova função carousel.

Isto resulta, porque já fiz isso em outros plugins.
Claro, é mais um plugin instalado e o seu sistema fica mais pesado, mas isso já se sabe.
Eu não sou "expert", provavelmente alguém mais experiente pode aconselhar o melhor na sua situação.

Saudações

ZonaEu

  • Full Member
  • ***
  • Posts: 137
Re: carousel osclass
« Reply #2 on: September 04, 2014, 04:40:27 pm »
Ok I'll try ... thanks







Ok vou experimentar... obrigado

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: carousel osclass
« Reply #3 on: September 04, 2014, 09:00:13 pm »
Okay, any questions post here again. Start with clone plugin (rename folder of plugin)... rename tables sql firstly. Then, rename de main function, for call it in your file you want be appear the new carousel (dont forget the change the hook name on the index.php (in the end of the document). You need find the default value of position carousel, and change that value for "vertical". (I not test this, I just pass you the steps to do)... this is basic, after you need rename other parameters around the code (this depend what you rename before, and you need think how certain parameters depend of other names, for everything works fine).
Greetings