Exactly I have this problem:
http://drupal.org/node/626936#comment-2241718
Just it look that this module is totally not working if using phpcode to Show block on specific pages, it is possible?
How I can solve my problem?

CommentFileSizeAuthor
#4 domain_blocks.sql_.zip1.57 KBmatteoraggi

Comments

nonsie’s picture

Status: Active » Postponed (maintainer needs more info)

Most of my own blocks use php for visibility so I don't think the issue lies there.

First I need a bit more information. What information is stored for this block in domain_blocks table? The record should be something like:
module | delta | realm | domain_id
---------------------------------
block | 47 | domain_id | 119

Depending on how many domains you have enabled this block on there might be more than one entry.

matteoraggi’s picture

the block is enabled into www.gmsedie.com and www.forniture-alberghiere.net only, the block content body is:

<?php
print l(t('Chiedi informazioni'),'webform/chiedi-maggiori-informazioni');
?>

content of domain_blocks table is:
module delta realm domain_id
---------------------------------
locale 0 domain_id 13

Totally are 14 lines on this table, som are of civicrm and gallerix tha I'm not using, so maybe I could delete them?

nonsie’s picture

If your block is enabled on two domains there should be two records for this block.
However the record you posted cannot be related to the block content body posted since the block (module = locale) is created by locale module.

What is the url when you go to edit this block? Since you have custom content in it I'm assuming it's something like admin/build/block/configure/block/block_id. Now look up the record(s) in your domain_blocks table that have module set to block and delta to your block id.

When you go to edit this block are both domains checked?

matteoraggi’s picture

StatusFileSize
new1.57 KB

block editing url:
http://www.forniture-alberghiere.net/admin/build/block/configure/block/13
I founded only on rcord with 13 number in it.
(sorry for mistake, this block was enabled also on a third site: www.egioiellerie.com now I have disabled it to meke for us more simple to find the problem)
I can'find number 13 into delta columns, so to be sure I atach here all the table.

nonsie’s picture

Actually you have it on two domains, the default domain and domain ID 11
('block', '13', 'domain_id', 0),
('block', '13', 'domain_id', 11)

When you go to edit the block how many domains are *actually* checked? It should be just those two domains.

matteoraggi’s picture

YEs only 2: www.forniture-alberghiere.net and www.gmsedie.com both in italian language, because link in block is in italian language.

nonsie’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

From Domain Blocks point of view everything is correct. Please verify that your php visibility snippet is indeed correct, that the domain block is on actually uses the language you have chosen and is accessible for the user roles you have chosen.

matteoraggi’s picture

It is accessible for all languages, and I have added it also on the thirs domain, because I founded the problem!
It is totally not in yor nice perfec moule, but it was coming from my little experience with domain access module, and missing a guide about domain block too maybe.
I was in bad way for guilty of my old php snippet, because it was forcing the block to be visible on all themes and this was confusing me, making me to think that one time applyed on a theme the module doman block it was workingon all themes, butin real it isn't and with right script I need to add block not onl per domain, but also pon the right theme. I suggest you to write also a little documentation about it, to not mak other people confused from the domain access commands: it' easy to think that block will appear on anothe site when checked also if it has a different theme, so or in UI or into documentation, I suggest to write an alert about it.
Thanks a lot for patience, problem solved! I hope you will confirm that it is.