1
scasmar
problems in the slide of XDScheme theme "using images"
  • 2012/5/23 14:41

  • scasmar

  • Just popping in

  • Posts: 78

  • Since: 2009/7/29


Good afternoon:

I set up a website with xoops 2.5 and with the theme Xdscheme and I find that using modules such as "portfolio, extgallery etc etc, the top slider is broken and all pictures are followed on the same page.
Someone has something happened? know how I can fix it?

this is the error.

http://web2000.es/modules/extgallery/public-album.php?id=1

I would also like to know if there is any chance of making the slider only appears on the home page and not the rest, since it seems rather more comfortable.

Thank you very much for your help

2
Alanbax
Re: problems in the slide of XDScheme theme "using images"
  • 2012/5/23 20:57

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


I would try turning off the Jquery options in extgallery - likely they are clashing and causing the problem. As the theme loads jquery you don't want the modules loading it as well.

To make the slider appear only on the home page wrap the slider in the following:
<{if $smarty.server.PHP_SELF=='/index.php'}>

<{/if}>


Hope this helps

Alan

3
scasmar
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/17 16:10

  • scasmar

  • Just popping in

  • Posts: 78

  • Since: 2009/7/29


many thanks, I've done everything you told me and it worked perfectly.

Thank you.

4
Anonymous
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/19 16:00

  • Anonymous

  • Posts: 0

  • Since:


Quote:
I set up a website with xoops 2.5 and with the theme Xdscheme and I find that using modules such as "portfolio, extgallery etc etc, the top slider is broken and all pictures are followed on the same page.


I'm using this theme as well for a site and have seen this behaviour once in a while, refreshing the page helps in most cases. Disturbing is I've seen this also when loading the plain index page and without any module connected.

5
Alanbax
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/20 22:37

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


There also appears to be an issue with the slider and jgrowl redirect.
Sometimes it looks like with jgrowl active the slider 'breaks'. Turning jgrowl off stopped this behaviour.

I'll look at this but I'm not a jquery expert so may take a while.

6
Anonymous
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/21 8:49

  • Anonymous

  • Posts: 0

  • Since:


Great Alan, thanks!

7
Alanbax
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/27 20:24

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


Well some good news on this (sort of!)

I tweaked the file core.php located in \modules\system\preloads.

By commenting out this line:
$GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/jquery.js');

found under the following 2 functions:-
function eventCoreHeaderAddmeta($args)
function eventSystemClassGuiHeader($args)

This stopped the Jgrowl reloading Jquery and overwriting the theme Jquery for the slider.

Not pretty but seems to work.
I'm sure there is a guru who can do a much better job than I can.

Alan

EDIT: doing this also affects the admin side - no jgrowl messages
still a little more work to do.......

8
Mamba
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/27 20:45

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I am not a guru in this area, but it seems to me that the other way around would be better, i.e. to adjust the theme so it would use the XOOPS jQuery, instead of the one from slider.

The issue is that if another module is requiring jQuery, XOOPS will not be able to provide it, because you shut it down.

Maybe one of our jQuery gurus could provide an advise on this?

BTW - in extGallery, you can turn-off the theme jQuery in Preferences, so there is no clash.

Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

9
Alanbax
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/27 20:55

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


@Mamba

Quote:
I am not a guru in this area, but it seems to me that the other way around would be better, i.e. to adjust the theme so it would use the XOOPS jQuery, instead of the one from slider.

Totally agree. This is very much a 'quick fix' at the moment as I'm being pushed to get a site launched ASAP.
I am looking at 'fixing' the theme side - this 'breaking' of the jquery actually lets the site run in the meantime.

Already have turned Jquery off in Extgallery.

10
Alanbax
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/29 19:04

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


OK - I think the Jgrowl redirect is overwriting the theme Jquery.

I get this error with Jgrowl enabled
Quote:
$("#slider").jcarousel is not a function
onAfterAnimation: function(c, o, i, s)
functions.js (line 21)

As #slider IS a function (that works with Jgrowl off) there must be something overwriting the theme Jquery or the theme Jquery is using the same Id as Jgrowl for something.

Anyone have any ideas on a solution or how to check the Id's and change them - my Jquery knowledge is very limited.

I will 'muck about' with this but any help would be greatly appreciated.

Thanks
Alan

Login

Who's Online

275 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 275


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits