Jump to content

JQuery Pisces Slider Modification


Recommended Posts

Hello! :)

We have a site at www.FuturePhones.dk. As you can see, there is a giant slider at the top of the page. It is a module called JQuery Pisces Slider, which was a part of a theme we bought from a template company. We have tried asking them, but they said we should ask a tuning company to help us.

 

We want to be able to specify different slideimages for each language the visitor chooses for this site. I searched this forum and found that a user had succesfully modified this specific module and made it work. Sadly the user does not respond. I hope you can help me - I will supply the information you need of course - please do ask :)

 

Prestashop version 1.4.6.2

The module is attached to this post: piscesslider.zip :)

 

Thanks!

Link to comment
Share on other sites

Hi

 

i have a simple way But not good enough

 

i changed php file and attach it to this post

please go to folder of this module and replace it

 

it enables you to have different slides for different languages but not from backoffice.

 

foreach language such as ( en ,fr , etc) in folder of this module create a file with name language_code+links.xml (eg : for english : enlinks.xml -- for french: frlinks.xml)

 

upload your photo to slides folder of this module

 

for any language

 

put this code in its xml file

 

 

<?xml version='1.0' encoding='utf-8' ?>

<links>

<link>

<url>URL</url>

<img>slides/slidename.extension</img>

</link>

// for any slide put <link> tag and its content

</links>

when URL is url of your image when a people click on it

and slidename is name of slide file and extension is extension of file (eg: jpg ,png , etc)

 

 

 

this is not user friendly way but its enable you to have different slide for different languages

 

 

-------------------------------------------------------------------------------------------

i work to change the php file that enable you have this feature from back office As soon as possible

-------------------------------------------------------------------------------------------

piscesslider.php

Link to comment
Share on other sites

hello again

 

i update php file and attach it again to this post

 

replace it

 

now you enable to have this feature from backoffice of the module

 

for any language that you have to add slide for it

 

1- foreach language such as ( en ,fr , etc) in folder of this module create a file with name language_code+links.xml (eg : for english : enlinks.xml -- for french: frlinks.xml)

 

2-From my prefrences in backoffice change your language to language that have add slide for it

3- go to configure of module and add slide

 

if you have any problem say here or email me at [email protected]

piscesslider.php

Link to comment
Share on other sites

  • 2 weeks later...

hello again

 

i update php file and attach it again to this post

 

replace it

 

now you enable to have this feature from backoffice of the module

 

for any language that you have to add slide for it

 

1- foreach language such as ( en ,fr , etc) in folder of this module create a file with name language_code+links.xml (eg : for english : enlinks.xml -- for french: frlinks.xml)

 

2-From my prefrences in backoffice change your language to language that have add slide for it

3- go to configure of module and add slide

 

if you have any problem say here or email me at [email protected]

I have installed the module, but not see on front office. How to put on page one (frontoffice)?

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...

Hi, Soheil. I'm trying to use your technique, but somehow I'm experiencing some glitches. I'm using PS 1.4.7.

 

1) I created eslinks.xml, enlinks.xml, frlinks.xml files.

 

2) They seem to work fine, I can see different text in differnt languages.

 

3) Also, once I click Save I don't get "Settings updated" message.

 

I found out that module (in the admin panel) referrers to the default links.xml file. Is there a way to point it to the appropriate file? The main issue, that the module does not load content of the corresponding file in the admin panel.

 

I'll be really thankfull if you check my file to see what went wrong.

 

Thanks in advance and best regards.

mynivoslider.php

Link to comment
Share on other sites

for any language you want to choose pic for it you must change your langugae of admin panel from my preferences sectiobn

 

Yes, I got this point. Can you please review this short movie to see what the problem is?

 

Somehow I was unable to attach it to this post, so please use this link:

 

https://www.yousendit.com/download/M3BrblRpOC85NVVPd3NUQw

 

Thanks in advance!

 

Best regards.

Link to comment
Share on other sites

replace :

static private function getXmlFilename()

{

$isoUser = Language::getIsoById(intval($cookie->id_lang));

return ''.$isoUser.'links.xml';

}

 

with :

 

static private function getXmlFilename()

{

global $cookie;

$isoUser = Language::getIsoById(intval($cookie->id_lang));

return ''.$isoUser.'links.xml';

}

 

to work with frlinks.xml, eslinks.xml

 

and replace all slide_0'.$i.'.jpg' with slide_'.$isoUser.'_0'.$i.'.jpg'

piscesslider.php

Link to comment
Share on other sites

Hallo,

 

Thank you very much for all your efforts so far!

I replaced piscesslider.php with the provided one (second from bottom) and transplanted the module to Hompage content, between the Home editor and Home featured products. But, the slider appears only as a slim stripe and images are not shown in their full size (see image attached). What can I do to fix this?

 

(version 1.4.7.0, on localhost)

post-333513-0-36714200-1333683435_thumb.jpg

Link to comment
Share on other sites

blocktopmenu.zip

HELLO

thank you for this great theme

 

however i can't install the top menu bar

 

as you can see on my serveur i install this theme http://korporel.com but i also installed login jquery panel

 

and since i have installed this module my top menu bar don' want to appear

 

and i can not put this medule on top menu hook

 

can you help me

post-270320-0-00284900-1334011844_thumb.png

HELLO

thank you for this great theme

 

however i can't install the top menu bar

 

as you can see on my serveur i install this theme http://korporel.com but i also installed login jquery panel

 

and since i have installed this module my top menu bar don' want to appear

 

and i can not put this medule on top menu hook

 

can you help me

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 3 weeks later...
  • 4 weeks later...
  • 2 months later...

Dear

Hi, I am newbie. I installed JQuery Pisces Slider in my Prestarshop Project (1.4.9) on original theme of Prestarshop. But when runtime, slider became so small on top, can't be seen (in attach image). How I can replace it below header??? Oringinal Code : hook on "top", is it right?

Thank you so much!

Tuyen

slider.gif

Edited by Tuyen Nguyen (see edit history)
Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...
  • 1 month later...
  • 4 weeks later...

Change speed of slider: modules/piscesslider. piscesslider.tpl. edit value under "pausetime"

 

<script type="text/javascript">
$(window).load(function() {
   $('#slider').nivoSlider({
       effect:'fold', //Specify sets like: 'fold,fade,sliceDown'
       slices:15,
       animSpeed:500, //Slide transition speed
     [color=#ff0000]  pauseTime:10000,[/color]
       startSlide:0, //Set starting Slide (0 index)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...