Closed (won't fix)
Project:
Internationalization
Version:
4.7.x-1.x-dev
Component:
Module i18nblocks
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2006 at 16:58 UTC
Updated:
2 Apr 2007 at 21:16 UTC
Jump to comment: Most recent file
Comments
Comment #1
asiafan commentededit: multilang. taxonomy blocks doesnt appear but more simple blocks seem to work but still having that error code (above) and with no delete link and no possibility to delete them... any idea about this? I'm afraid to use them like this...
Comment #2
asiafan commentedthat 79. line is: foreach($module_blocks as $delta => $block) {
any idea?
Comment #3
ica commentedi get the same error
/modules/i18n/contrib/i18nblocks.module on line 79
when i try to >add multilingual block
and i have no idea - just to point that you are not the only one asiafan
Comment #4
asiafan commentedthanks.. and have you tried to used them? for me some of them work, I'm just worried about the error message..
Comment #5
trantt commentedI'm having the same problem as well. I wish I know php so I can fix it myself.
Comment #6
trantt commentedI was able to get rid of this problem by adding the below syxtax:
if (count($module_blocks) > 0) { //--> check to make sure $module_blocks is not emptied
foreach($module_blocks as $delta => $block) {
...
...
}
}
this should do it.
Also, to get rid of the unwanted i18n blocks, I have to do the followings:
1. removed all i18n records from the blocks and the variables table
2. unchecked all of your theme default and pick an new one. Save it and then go back to your original one
If someone knows a better method please let us know.
Thanks
Comment #7
asiafan commentedtrantt, where did you add this syntax? and then is the module fully functional?
Comment #8
trantt commentedasiafan,
The file that you need to change is i18nblocks.module. It located under your modules\i18n\contrib\ folder
Is the module fully functional? I was able to do everything I needed and it is not much different from the privious version (4.6). Regarding to removing an existing i18n block, unless you go behind the scene, I don't think this feature was provided on this release nor the previous release. Let me know if you run into any problem
Comment #9
trantt commentedAsiafan,
According to my previous post, you need to do the followings:
1. open the i18nblocks.module
2. Locate foreach($module_blocks as $delta => $block) { --> this is on line 79
3. Add if (count($module_blocks) > 0) { right above of line 79
4. Add the } bracket after the } (few lines down)
This should do it.
Comment #10
asiafan commentedthanks, now i got rid of the error message...
deleting unwanted blocks also works by deleting from the sql tables but i think its not a nice way to do that and still indicates that something is wrong
and even after this fix, taxonomy blocks cannot be used in multil. blocks module, they dont display. maybe its an unrelated bug.
Comment #11
asiafan commentedComment #12
trantt commented"taxonomy blocks cannot be used in multil. blocks module" what do you mean by this asiafan? Can you show me how to create a baxonomy blocks (menu I'm assumed) I would like to try it on the older version (4.68). I think this might have been a different issues
Comment #13
asiafan commentedi open a new one for the taxonomy problem
Comment #14
trantt commentedAsiafan,
I was able to create taxonomy i18nblocks. Here's what I did:
1. Create a menu
2. Attach those taxonomy menu items to the new menu
3. Now include the new menu on your i18nblocks
Is this what you are looking for?
Comment #15
asiafan commentedim looking for these two modules to work properly and not to make complicated hacks..
but no, i wasnt looking for a "menu". first, i dont have taxonomy menu module, but nevermind. taxonomy block is not a menu block. it has teaser texts and links to new content within a given category.
Comment #16
asiafan commentedand please stop renaming this topic from its original issue. as i told, i opened a separate issue for the taxonomy problem: http://drupal.org/node/72784
Comment #17
trantt commentedCan someone please review it? This will fix the 'line 79' problem and as well as http://drupal.org/node/72784
Comment #18
asiafan commentedit works, thank you!
now the only question remained is why the block deletion links are missing.
Comment #19
trantt commentedwhy the deletion links are missing? this because it was never implemented in the first place. I don't know much about php or i18nblock module but I think this should be an easy task. I'll try to look at it when I have some time. Anyway Asiafan, can you help me on my problem http://drupal.org/node/65182#comment-136373 ?
Thanks
Comment #20
jose reyero commentedIt is implemented in latest Drupal 5 version...