Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
mod_fblatest & mod_last_subject errors (1 viewing) (1) Guest
TOPIC: mod_fblatest & mod_last_subject errors
#29658
Re:mod_fblatest & mod_last_subject errors 1 Year, 2 Months ago  
Yep, same for me. In my case, the ItemID seems to be 8 behind the correct value. In the recent posts section included in the FB component, the itemID is missing et all
However, this bug seems to be related to the following lines:
[code:1]
// Select the appropriate message board component
$componentname = 'com_fireboard';

// Get menu item ID of the forum
$database->setQuery( "SELECT id FROM #__menu WHERE link LIKE '%".$componentname."%'" );
$rows = $database->loadObjectList();
$forumitemid = $rows[0]->id;
[/code:1]
I'm not familiar with Joomla, but this seems to be quite ugly code, as it takes the first ID that matches the component name (out of a list of whatever). Hmm, maybe I'm wrong with that - but if not, any idea what to change here?

Edit: Replaced that forumitemid and hardcoded my itemID for testing - and it worked. So this [b]is[/b] actually the problem.

Edit2: Just a guess ... maybe it is a problem to get the ItemID from some place. #__menu is eventually a reference to [i]tableprefix[/i]_menu, which contains all menu entries. If there is another link to the forum component in any other menu, the ID of the first occurrence that includes the componentname is used, although this might be the wrong one. Argl, how to solve this?
kazcor (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/10/31 22:34 By kazcor.
 
 
#29660
Re:mod_fblatest & mod_last_subject errors 1 Year, 2 Months ago  
Ok, for some of you the following might work:
[code:1]
$database->setQuery( "SELECT id FROM #__menu WHERE link='index.php?option=com_fireboard'" );
[/code:1]
This goes to modules/mod_fblatest.php line 61. Only do this if you know what you're doing and know how to undo it later on ;)

In my case I got the strange situation that I have actually [b]two[/b] entries for that component in my mainmenu, but the first of those entires is not visible (backend menu management, neither frontend) and has an access level of -2. Therefore in my case this solves nothing. But it raises another question - why it is possible to have menu entries that cannot be removed via the backend? What happens if I do so in the database manually? Currently I don't have time/patience to do backups and test this ...
kazcor (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/11/02 00:09 By kazcor.
 
 
#31679
Re:mod_fblatest & mod_last_subject errors 1 Year, 1 Month ago  
This is in regards to the mod_fblatest

seems to deprecate module parameters. Anyone else have this problem?

(Error warnings such as this surface: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file.)



Ani_Gurl
ANi_Gurl (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
Go to top