1
laden0868
Did xoops 2.5.4 fixed the cache and stylesheet problems???
  • 2011/11/21 10:46

  • laden0868

  • Just popping in

  • Posts: 8

  • Since: 2010/9/8 1


Did xoops 2.5.4 fixed these problems?

https://xoops.org/modules/newbb/viewtopic.php?start=10&topic_id=69960&viewmode=flat&order=ASC&type=&mode=0

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

And the developer please tell us.....
On the latest version of xoops, version 2.5.4 final,

1. how to add a script or stylesheet correctly using browse.php?

2. i have written some js, need to use difference version of jquery, where should i put them that can call from browse.php correctly...



2
trabis
Re: Did xoops 2.5.4 fixed the cache and stylesheet problems???
  • 2011/11/21 13:51

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:
Yes.

Quote:

And the developer please tell us.....
On the latest version of xoops, version 2.5.4 final,

1. how to add a script or stylesheet correctly using browse.php?

Same way you did on > 2.4.x
Use $xoTheme->addScript(); and Use $xoTheme->addStylesheet();

Quote:

2. i have written some js, need to use difference version of jquery, where should i put them that can call from browse.php correctly...


Don't use browse.php, it will be deprecated on xoops 2.6.0.
Just paste your js inside your module and load it using
$xoTheme->addScript('module/modulename/script.js');

3
laden0868
Re: Did xoops 2.5.4 fixed the cache and stylesheet problems???
  • 2011/11/22 6:17

  • laden0868

  • Just popping in

  • Posts: 8

  • Since: 2010/9/8 1


thx trabis!

because of lots of jquery plugin... easing, superfish, fancy box and else....
every module, each page have lots of js and css need to load...