facebook twitter

Your Cart is currently empty.

joomla custom development

While asking a technical question on forums, please specify Your version of Joomla and JoomSport component.

Playerlist cache

Playerlist cache

Hi,

Im trying to set up a site with multiple divisions. As a result of this I want two or more menuitems which shows different "Player lists". I have linked a menuitem to two different divisions, but if I use the rolldown menu in playerlist to select different seasons, this setting is remembered. So next time I access "Player lists" trough my menu item it shows my earlier choice, not what I have defined in backend as parametre for this menu item. Sounds to me that this is due to som cache setting?
(I have btw turned off cache in joomla global configuration).

Edited By: joomla@bibk.no
Feb-13-12 11:07:34

joomla@bibk.no
Hey, I'm just a new one
ranks
useravatar
Offline
4 Posts
User info in posts
Administrator has disabled public posting

Re: Playerlist cache

Hello,

Thank you for contacting JoomSport support.

It's a bug it will be fixed in the next Pro version.
Or you can fix it yourselves.

Please go to the file: components\com_joomsport\models\default\playerlist.php
Find the lines:

Code:

        $this->s_id = $this->mainframe->getUserStateFromRequest( 'com_joomsport.sidsel', 'sidsel', -1, 'int' );

        if($this->s_id){
            $this->mainframe->setUserState('com_joomsport.sidsel',$this->s_id);
        }

And replace by:

Code:

$Itemid = JRequest::getInt('Itemid');

        $this->s_id = $this->mainframe->getUserStateFromRequest( 'com_joomsport.sidsel'.$Itemid, 'sidsel', -1, 'int' );
        if($this->s_id){
            $this->mainframe->setUserState('com_joomsport.sidsel'.$Itemid,$this->s_id);
        }

Let me know if there are any difficulties, I'll be glad to help you.

Kind Regards,
Irene
The BearDev Support Team

Irene
Administrator
useravatar
Offline
2198 Posts
User info in posts
Administrator has disabled public posting

Re: Playerlist cache

No, this does not fix the problem fully.

After your fixed code is applyed it works in the following way:

First time I access my menu link to Playerlist i get an empty list with the selection "All" in combobox at upper right. However no players are visible. After making a choice in combobox the menuitem connected to the player list always shows my preavious choice.

When I access one of my other menuitems linked to another pleyerlist it altso shows an empty list, however my two different menuitems does not show exactly the same anymore, I can have different chioces. So so far so good, an improvement!

But Im expecting that when I initially enters my player list from my menuitem it will show players that corresponds to my choice in backend.

joomla@bibk.no
Hey, I'm just a new one
ranks
useravatar
Offline
4 Posts
User info in posts
Administrator has disabled public posting

Re: Playerlist cache

Hello,

Apologies for the delayed answer.

Could you please provide us with link to the problem page?

Looking forward to your reply.

Kind Regards,
Irene
The BearDev Support Team

Irene
Administrator
useravatar
Offline
2198 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
2752
Total Polls:
0
Total Posts:
16786139
Total Posts Today:
1
User Info:
 
Total Users:
10605
Newest User:
paul_9rx5
Members Online:
3
Guests Online:
1305


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked
top

JoomSport.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries