Hello

Right now I installed the drupal core version 7.4
The first thing I've done is create a sub-theme Bartik

0. Enable default "Garland" theme.
1. Duplicate Bartik to sites/Bartick2
2. Move Bartik2 to Folder sites/all/themes/Bartik2

3. Rename Bartik2 to alextheme
4. Rename file Bartik.info to alextheme.info
5. Edit file alextheme.info [Name: alextheme]

After that, I turned my new sub-theme alextheme and the following error appears:

Notice: Undefined variable: in hide_site_name include () (line 98 of / homepages/17/d288064568/htdocs/misite.es/sites/all/themes/alektheme/templates/page.tpl.php).
Notice: Undefined variable: in hide_site_name include () (line 102 of / homepages/17/d288064568/htdocs/misite.es/sites/all/themes/alektheme/templates/page.tpl.php)

****************************

solution :

http://drupal.org/node/922984
....replaing function bartik_* with function mysubtheme_*

BUT.......The same errors continue to appear.....

another question:

I want to show SOME tabs [Bartik main menu] only for registered user . Is that possible ?

please helpme !!!

Alex

Comments

mray’s picture

Same here, even following your link to the "solution" changes nothing.

UPDATE
I was confused and edited page.tpl.php instead of themplate.php
After editing template.php and changing "bartik" to my theme name it works.

p5systems’s picture

You need to change template.php
Replace bartik (previous theme name which you copied) with the new theme name
e.g.
bartik_preprocess_html should look like [new_theme_name]_preprocess_html
and then clear the Drupal cache (must).
Calling menu tabs for registered user can be done in many ways-
If you want to do it from theme check with this condition on your page.tpl

      if ($user->uid != 0) {
	

yourtabscode

}

and if you dont want to go in codes then you can integrate Menu per role module.
By this module you can restrict anonymous user to see the tab menu or certain elements of tab menu.