When switching themes in blocks, theme stays the same
Solutions
Ended up using hefox's (from Drupal comments) fix
<?php
function realname_user($op, &$edit, &$account, $category = NULL) {
global $theme;
if (!$theme) return; // prevent realname from overiding theme on block pages
?>
I did add in my own code as a safeguard, in the if statement, the condition that we were on the blocks page.
Redirect to mobile page (not theme switching)
I'm looking for a way to redirect mobile users to a mobile landing page (and I'm not looking for a theme switcher). I have a specific page that I'd like to redirect mobile users to: www.mysite.com/m/ Is there a way to utilize Mobile_Detect.php and specify a single page as the redirect target?
Switching to mobile theme while cache is enabled
I have a Drupal7 website using a modified Zen subtheme that looks ugly on mobile devices and i want some kind of utility to create a separate mobile theme . I tried to use differents modules like Mobile Switch,Mobile Detect ,Mobile Tools & Theme Key but unfortunatley they don't support Drupal Default Cache . Is there any way or method or anothe...
Drupal 7 Theme switching and content relevence
I'm building a Drupal site, which has 4 different themes with different theme templates. I need to use the same Drupal database to control all the content for all 4 themes. I setup taxonomy for each theme, so when I create content I can apply it to one of the four different themes. The Urls need to look something like mysite.com/theme1/node/21 And ...
How to avoid rendering of same node in two different view blocks on same page ?
One of my page shows two different view blocks. Suppose View-block-1 and view-block-2. Both renders and display nodes from same content type, say products. Node display Limit is set to 1 in both view and ordered by random. Products: Product 1 Product 2 Case 1 View-block-1 | View-block-2 Product 1 | Product 2 Case 2 View-block-1 | View-block-2 Produ...
How to copy blocks placement and settings between themes?
How can I copy blocks placement and settings between themes? I've found this module: https://drupal.org/project/blockregion and this code to do it in the database. But both are for D6. How can I do this for D7 First, clear the existing block information for the new theme: Now, copy all the block information from the old theme: Also found this, but ...