Hello,
I'm having a problem with a theme I'm using, and I'm at a loss as to how to troubleshoot the problem. The problem is, for menus I create, they should be wrapped like this: <ul> <li></li> <li></li> </ul>
But, my theme wraps them like this: <li></li>
I have absolutely no idea why it would leave out the <ul> tags. So, needless to say, it breaks validation and doesn't honor the stylesheet.
Any ideas on how I can troubleshoot this problem?
- jody
Link to theme?
2006/9/22, Jody Cleveland Cleveland@winnefox.org:
Hello,
I'm having a problem with a theme I'm using, and I'm at a loss as to how to troubleshoot the problem. The problem is, for menus I create, they should be wrapped like this:
<ul> <li></li> <li></li> </ul>
But, my theme wraps them like this:
<li></li>
I have absolutely no idea why it would leave out the <ul> tags. So, needless to say, it breaks validation and doesn't honor the stylesheet.
Any ideas on how I can troubleshoot this problem?
- jody
themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
Hello,
Link to theme?
Oops... Sorry about that. Here it is: http://drupal.org/project/multiflex
- jody
Try to change this in block.tpl.php
elseif ($block->module == 'user' and $block->delta == '1') { ?>
to:
elseif (($block->module == 'user' and $block->delta == '1') || $block->module = 'menu') { ?>
I haven't tested it, but it could (should) work.
2006/9/22, Jody Cleveland Cleveland@winnefox.org:
Hello,
Link to theme?
Oops... Sorry about that. Here it is: http://drupal.org/project/multiflex
- jody
themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
Thanks for getting back to me so quickly!
Try to change this in block.tpl.php
elseif ($block->module == 'user' and $block->delta == '1') { ?> to:
elseif (($block->module == 'user' and $block->delta == '1') || $block->module = 'menu') { ?>
I replaced that with exactly what you put, refreshed the page, and now all I get is a blank page.
- jody
Hello again,
I replaced that with exactly what you put, refreshed the page, and now all I get is a blank page.
As an extra note, this is what my log file says:
PHP Parse error: parse error, unexpected '}' in /var/www/html/drupal/themes/multiflex-cvs/block.tpl.php on line 27, referer: http://beta.menashalibrary.org/admin/themes
- jody
Hm, try this, if this gives you an error it's probably a typo or an error from my side.
2006/9/22, Jody Cleveland Cleveland@winnefox.org:
Hello again,
I replaced that with exactly what you put, refreshed the page, and now all I get is a blank page.
As an extra note, this is what my log file says:
PHP Parse error: parse error, unexpected '}' in /var/www/html/drupal/themes/multiflex-cvs/block.tpl.php on line 27, referer: http://beta.menashalibrary.org/admin/themes
- jody
themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
On 9/22/06, Jody Cleveland Cleveland@winnefox.org wrote:
I replaced that with exactly what you put, refreshed the page, and now all I get is a blank page.
The dreaded blank page of death: http://devbee.com/dreaded_blank_page_of_death
Easiest solution (if you have access) is to look in the various error logs. In the drupal interface check admin/logs
If you can, check the apache/php error logs.
These will almost certainly tell you the source of the problem, but you can also use the tips on that debee link above to tweak settings if you don't have access to the error logs.
Greg
Try to change this in block.tpl.php
elseif ($block->module == 'user' and $block->delta == '1') { ?> to:
elseif (($block->module == 'user' and $block->delta == '1') || $block->module = 'menu') { ?>
I haven't tested it, but it could (should) work.
Ok, got it. I had commented the original line, and added the one you mentioned. Once I deleted that line, rather than commenting it, it works fine.
Thank you very much!! I've been banging my head against the keyboard for over a week with this.
- jody
Aah, glad I could help.
2006/9/22, Jody Cleveland Cleveland@winnefox.org:
Try to change this in block.tpl.php
elseif ($block->module == 'user' and $block->delta == '1') { ?> to:
elseif (($block->module == 'user' and $block->delta == '1') || $block->module = 'menu') { ?>
I haven't tested it, but it could (should) work.
Ok, got it. I had commented the original line, and added the one you mentioned. Once I deleted that line, rather than commenting it, it works fine.
Thank you very much!! I've been banging my head against the keyboard for over a week with this.
- jody
themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes