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.
Using xtemplate (i dont know if this is the same with all) I have noticed that when the navigation block is disabled the login block also disappears. I cant see a valid reason for it working this way.
I have 4 permissions set up, super admin, moderator, auth user and anonymous.
On a fresh install of 4.2.0 at Contrast I modified the style and .xtmpl files a bit, nothing that should cause any problems..On loading I get all sorts of errors like
user notice: [XTemplate] parse: blockname [header.IF_has_slogan] does not exist in /home/contrast/public_html/themes/XTemplate_Tableless/xtpl/xtemplate.inc on line 415.
Thought I would share my small amount of insite into that which is drupal. To use a single instance of the drupal framework and db for multiple sites I did the following:
conf.php
∙ Changed "$base_url" to "$base_url = "http://".$_SERVER['HTTP_HOST'];"
∙ Added 2 new lines:
$base_url = "http://".$_SERVER['HTTP_HOST'];
$strHost = explode(".", $_SERVER['HTTP_HOST']);
$base_host = strtolower($strHost[1]);
common.inc
∙ Removed all instances of '$base_url' from function url()
∙ Added 1 line directly after 'include_once "includes/database.inc";'
variable_set("theme_default",$base_host);
At this point I simply created themes with the corresponding HOSTNAME. For example:
I have an idea for a site which sounds simple in concept but I need some help to get going.
- the site will be a multi user journal with some news/articles content inserted by an editor
- each year will use a different theme
- the home page should be simple, with just links to choose which years journal you want to read
- the default year would be the current year
Obviously the two basic issues are: forcing which theme to use depending on the year variable, and selecting nodes/comments that were created in the selected year.