Itemid Bug

This Extension is Freeware and is available in our Extensions directory.
BPFC
.
Posts: 32
Joined: Thu Oct 20, 2011 11:11 am

Itemid Bug

Postby BPFC » Thu Sep 06, 2012 11:35 am

Hello
The problem is as follows:
Basically my game is waters Itemid = 318 (http://gfliga.com/index.php?option=com_ ... Itemid=318), I have included certain modules (banners) to this Itemid.
The problem comes when I select any of the menus prediction game 'Ranking', 'Users', etc., then Itemid, change always on Itemid=310, which is quite a different menu that has nothing to do with the game and this way I disappear advertising banners.
Where can eliminate this problem??

Thank you!
Joomla 2.5.9
Joomleague Version: Last Version

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: Itemid Bug

Postby timoline » Fri Sep 07, 2012 1:26 pm

Joomla 1.5.x
Joomleague 1.5.....latest git version

BPFC
.
Posts: 32
Joined: Thu Oct 20, 2011 11:11 am

Re: Itemid Bug

Postby BPFC » Wed Sep 12, 2012 7:48 pm

Here is my solution, you do not know is true, but it works:
Change this line:

Code: Select all

$items   = $menus->getItems('componentid', $component->id);

With this:

Code: Select all

$items   = $menus->getItems('Itemid', $item->id);


And Itemid will always be whatever is your main menu!
Joomla 2.5.9
Joomleague Version: Last Version


Return to “Predictiongame / Tipspiel”

Who is online

Users browsing this forum: No registered users and 1 guest