Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I know that the side blue bars don't run down the entire page in FF, but I think I'm the only one using FF, so I'm not concerned. But if someone has a fix for that, I'd appreciate it.
So this is a little odd. I've got my theme set up to have a repeating image as a background (using CSS), and the background repeats as designed when I view the "Administer by task" page. But when I view "Administer by module" page, the image only displays once, then you see the page's background color until the bottom, where the footer image shows (exactly where it's supposed to).
I know it has something to do with the clear property in CSS. Looking at the page, I can see that "by task" has
So I want to make use of dynamic text replacement in my theme that I'm developing for a music artist website. Specifically, the version from http://joaomak.net/util/dtr/
The example inside their download package works fine on my dev server, but when I try to include it in my theme, I get this error:
warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /Users/superkev07/Sites/andrewjacob/themes/aj/dtr/dtr.php on line 145.
warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /Users/superkev07/Sites/andrewjacob/themes/aj/dtr/dtr.php on line 145.
warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /Users/superkev07/Sites/andrewjacob/themes/aj/dtr/dtr.php on line 145.
warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /Users/superkev07/Sites/andrewjacob/themes/aj/dtr/dtr.php on line 145.
I know my way around a PHP document, but I'm nowhere near fluent. I can't figure out what I'm doing wrong here. Should this be done as a module instead? Or is there already a module that does this?
For some reason, custom regions defined in template.php do not show up anymore in block admin area, although they still work in page templates. The blocks I have assigned to these regions are in correct place but I cannot assign new blocks to these regions. Only default regions are listed in dropdown menus.
I'm trying to write a theme function which causes the current menu item to be shown not as a link but as emphasised text.
The problem is that this function causes drupal to not display any menu items after the current item.
Here's my function:
function phptemplate_menu_item_link($item, $link_item) {
/***
* Overrides the HTML output for all links in block menus
* - no link tag is provided on the menu item for the current page
* - <strong> tags are added to the current page's menu item, to emphasise it as the current page.
*/
$this_page = menu_get_active_title();
$unlinked_item = "<strong>". $item['title'] ."</strong></li>\n"; // causes menu to stop at this p
oint.
$linked_item = l($item['title'], $link_item['path'], !empty($item['description']) ? array('title' => $item['description']) : array(), isset($item['query']) ? $item['query'] : NULL);
if ($item['title'] == $this_page || drupal_is_front_page() && $item['title'] == "Home" || $active) {
return $unlinked_item;
}
else {
return $linked_item;
}
}
Something in my $unlinked_item statement seems to be causing this problem - perhaps the 'l' function needs to be triggered in some way to keep the loop going to complete the menu list?