ВопросPopup логин на jquery.ui.dialog на (Omega/subtheme)

Здравствуйте! Работаю с темой .
Создал свою подтему(subtheme). Делаю все как написано, но получаю такие ошибки:
Warning: include(../sites/all/themes/MYSUBTHEME/templates/page.tpl.php): failed to open stream: Permission denied in theme_render_template() (line 1258 of ../includes/theme.inc).
Warning: include(): Failed opening '/sites/all/themes/MYSUBTHEME/templates/page.tpl.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in theme_render_template() (line 1258 of ../includes/theme.inc).
Вопрос: Как сделать 'Popup login' в подтеме(subtheme)?
Если есть возможность проверте, буду блогадарен.

Комментарии

Аватар пользователя Experiment
Experiment написал:

Тема Омега http://drupal.org/project/omega

21.11.2011 17:04
Аватар пользователя Experiment
Experiment написал:

Да забыл написат ето всё на Друпал 7.9

21.11.2011 17:08
Аватар пользователя Spleshka
Spleshka написал:

По какому мануалу вы это делаете?

21.11.2011 20:00
Аватар пользователя Experiment
Experiment написал:

http://drupalace.ru/lesson/delaem-popup-login-na-jqueryuidialog

21.11.2011 20:38
Аватар пользователя Spleshka
Spleshka написал:

Покажите info файл сабтемы

21.11.2011 20:42
Аватар пользователя Experiment
Experiment написал:

Он очень болшой. 352 строчки

21.11.2011 21:30
Аватар пользователя Spleshka
Spleshka написал:

Откуда там столько О_О ? Тем более показывайте.

21.11.2011 21:31
Аватар пользователя Experiment
Experiment написал:

name = 'bandymas'
description = ''
core = '7.x'
engine = 'phptemplate'
screenshot = 'screenshot.png'
base theme = 'omega'
regions[page_top] = 'Page Top'
regions[page_bottom] = 'Page Bottom'
regions[content] = 'Content'
regions[user_first] = 'User Bar First'
regions[user_second] = 'User Bar Second'
regions[branding] = 'Branding'
regions[menu] = 'Menu'
regions[sidebar_first] = 'Sidebar First'
regions[sidebar_second] = 'Sidebar Second'
regions[header_first] = 'Header First'
regions[header_second] = 'Header Second'
regions[preface_first] = 'Preface First'
regions[preface_second] = 'Preface Second'
regions[preface_third] = 'Preface Third'
regions[postscript_first] = 'Postscript First'
regions[postscript_second] = 'Postscript Second'
regions[postscript_third] = 'Postscript Third'
regions[postscript_fourth] = 'Postscript Fourth'
regions[footer_first] = 'Footer First'
regions[footer_second] = 'Footer Second'
zones[header] = 'Header'
zones[content] = 'Content'
zones[footer] = 'Footer'
zones[user] = 'User'
zones[branding] = 'Branding'
zones[menu] = 'Menu'
zones[preface] = 'Preface'
zones[postscript] = 'Postscript'
scripts[] = theme.js
css[global.css][name] = 'Your custom global styles'
css[global.css][description] = 'This file holds all the globally active custom CSS of your theme.'
css[global.css][options][weight] = '10'
settings[alpha_grid] = 'alpha_default'
settings[alpha_primary_alpha_default] = 'normal'
settings[alpha_responsive] = '1'
settings[alpha_layouts_alpha_fluid_primary] = 'normal'
settings[alpha_layouts_alpha_fluid_normal_responsive] = '0'
settings[alpha_layouts_alpha_fluid_normal_media] = 'all and (min-width: 740px) and (min-device-width: 740px), (max-device-width: 800px) and (min-width: 740px) and (orientation:landscape)'
settings[alpha_layouts_alpha_default_primary] = 'normal'
settings[alpha_layouts_alpha_default_fluid_responsive] = '0'
settings[alpha_layouts_alpha_default_fluid_media] = 'all and (min-width: 740px) and (min-device-width: 740px), (max-device-width: 800px) and (min-width: 740px) and (orientation:landscape)'
settings[alpha_layouts_alpha_default_fluid_weight] = '0'
settings[alpha_layouts_alpha_default_narrow_responsive] = '1'
settings[alpha_layouts_alpha_default_narrow_media] = 'all and (min-width: 740px) and (min-device-width: 740px), (max-device-width: 800px) and (min-width: 740px) and (orientation:landscape)'
settings[alpha_layouts_alpha_default_narrow_weight] = '1'
settings[alpha_layouts_alpha_default_normal_responsive] = '1'
settings[alpha_layouts_alpha_default_normal_media] = 'all and (min-width: 980px) and (min-device-width: 980px), all and (max-device-width: 1024px) and (min-width: 1024px) and (orientation:landscape)'
settings[alpha_layouts_alpha_default_normal_weight] = '2'
settings[alpha_layouts_alpha_default_wide_responsive] = '1'
settings[alpha_layouts_alpha_default_wide_media] = 'all and (min-width: 1220px)'
settings[alpha_layouts_alpha_default_wide_weight] = '3'
settings[alpha_viewport] = '1'
settings[alpha_viewport_initial_scale] = '1'
settings[alpha_viewport_min_scale] = '1'
settings[alpha_viewport_max_scale] = '1'
settings[alpha_viewport_user_scaleable] = ''
settings[alpha_libraries][omega_formalize] = 'omega_formalize'
settings[alpha_libraries][omega_equalheights] = ''
settings[alpha_libraries][omega_mediaqueries] = 'omega_mediaqueries'
settings[alpha_css][alpha-reset.css] = 'alpha-reset.css'
settings[alpha_css][alpha-mobile.css] = 'alpha-mobile.css'
settings[alpha_css][alpha-alpha.css] = 'alpha-alpha.css'
settings[alpha_css][omega-text.css] = 'omega-text.css'
settings[alpha_css][omega-branding.css] = 'omega-branding.css'
settings[alpha_css][omega-menu.css] = 'omega-menu.css'
settings[alpha_css][omega-forms.css] = 'omega-forms.css'
settings[alpha_css][omega-visuals.css] = 'omega-visuals.css'
settings[alpha_css][global.css] = 'global.css'
settings[alpha_debug_block_toggle] = '1'
settings[alpha_debug_block_active] = '1'
settings[alpha_debug_grid_toggle] = '1'
settings[alpha_debug_grid_active] = '1'
settings[alpha_debug_grid_roles][] = '1'
settings[alpha_debug_grid_roles][] = '2'
settings[alpha_debug_grid_roles][] = '3'
settings[alpha_toggle_messages] = '1'
settings[alpha_toggle_action_links] = '1'
settings[alpha_toggle_tabs] = '1'
settings[alpha_toggle_breadcrumb] = '1'
settings[alpha_toggle_page_title] = '1'
settings[alpha_toggle_feed_icons] = '1'
settings[alpha_hidden_title] = ''
settings[alpha_hidden_site_name] = ''
settings[alpha_hidden_site_slogan] = ''
settings[alpha_zone_user_equal_height_container] = ''
settings[alpha_zone_user_wrapper] = '1'
settings[alpha_zone_user_force] = ''
settings[alpha_zone_user_section] = 'header'
settings[alpha_zone_user_weight] = '1'
settings[alpha_zone_user_columns] = '12'
settings[alpha_zone_user_primary] = ''
settings[alpha_zone_user_css] = ''
settings[alpha_zone_user_wrapper_css] = ''
settings[alpha_zone_branding_equal_height_container] = ''
settings[alpha_zone_branding_wrapper] = '1'
settings[alpha_zone_branding_force] = ''
settings[alpha_zone_branding_section] = 'header'
settings[alpha_zone_branding_weight] = '2'
settings[alpha_zone_branding_columns] = '12'
settings[alpha_zone_branding_primary] = ''
settings[alpha_zone_branding_css] = ''
settings[alpha_zone_branding_wrapper_css] = ''
settings[alpha_zone_menu_equal_height_container] = ''
settings[alpha_zone_menu_wrapper] = '1'
settings[alpha_zone_menu_force] = ''
settings[alpha_zone_menu_section] = 'header'
settings[alpha_zone_menu_weight] = '3'
settings[alpha_zone_menu_columns] = '12'
settings[alpha_zone_menu_primary] = ''
settings[alpha_zone_menu_css] = ''
settings[alpha_zone_menu_wrapper_css] = ''
settings[alpha_zone_header_equal_height_container] = ''
settings[alpha_zone_header_wrapper] = '1'
settings[alpha_zone_header_force] = ''
settings[alpha_zone_header_section] = 'header'
settings[alpha_zone_header_weight] = '4'
settings[alpha_zone_header_columns] = '12'
settings[alpha_zone_header_primary] = ''
settings[alpha_zone_header_css] = ''
settings[alpha_zone_header_wrapper_css] = ''
settings[alpha_zone_preface_equal_height_container] = ''
settings[alpha_zone_preface_wrapper] = '1'
settings[alpha_zone_preface_force] = ''
settings[alpha_zone_preface_section] = 'content'
settings[alpha_zone_preface_weight] = '1'
settings[alpha_zone_preface_columns] = '12'
settings[alpha_zone_preface_primary] = ''
settings[alpha_zone_preface_css] = ''
settings[alpha_zone_preface_wrapper_css] = ''
settings[alpha_zone_content_equal_height_container] = ''
settings[alpha_zone_content_wrapper] = '1'
settings[alpha_zone_content_force] = '1'
settings[alpha_zone_content_section] = 'content'
settings[alpha_zone_content_weight] = '2'
settings[alpha_zone_content_columns] = '12'
settings[alpha_zone_content_primary] = 'content'
settings[alpha_zone_content_css] = ''
settings[alpha_zone_content_wrapper_css] = ''
settings[alpha_zone_postscript_equal_height_container] = ''
settings[alpha_zone_postscript_wrapper] = '1'
settings[alpha_zone_postscript_force] = ''
settings[alpha_zone_postscript_section] = 'content'
settings[alpha_zone_postscript_weight] = '3'
settings[alpha_zone_postscript_columns] = '12'
settings[alpha_zone_postscript_primary] = ''
settings[alpha_zone_postscript_css] = ''
settings[alpha_zone_postscript_wrapper_css] = ''
settings[alpha_zone_footer_equal_height_container] = ''
settings[alpha_zone_footer_wrapper] = '1'
settings[alpha_zone_footer_force] = ''
settings[alpha_zone_footer_section] = 'footer'
settings[alpha_zone_footer_weight] = '1'
settings[alpha_zone_footer_columns] = '12'
settings[alpha_zone_footer_primary] = ''
settings[alpha_zone_footer_css] = ''
settings[alpha_zone_footer_wrapper_css] = ''
settings[alpha_region_dashboard_sidebar_equal_height_container] = ''
settings[alpha_region_dashboard_sidebar_equal_height_element] = ''
settings[alpha_region_dashboard_sidebar_force] = ''
settings[alpha_region_dashboard_sidebar_zone] = ''
settings[alpha_region_dashboard_sidebar_prefix] = ''
settings[alpha_region_dashboard_sidebar_columns] = '1'
settings[alpha_region_dashboard_sidebar_suffix] = ''
settings[alpha_region_dashboard_sidebar_weight] = '-50'
settings[alpha_region_dashboard_sidebar_css] = ''
settings[alpha_region_dashboard_inactive_equal_height_container] = ''
settings[alpha_region_dashboard_inactive_equal_height_element] = ''
settings[alpha_region_dashboard_inactive_force] = ''
settings[alpha_region_dashboard_inactive_zone] = ''
settings[alpha_region_dashboard_inactive_prefix] = ''
settings[alpha_region_dashboard_inactive_columns] = '1'
settings[alpha_region_dashboard_inactive_suffix] = ''
settings[alpha_region_dashboard_inactive_weight] = '-50'
settings[alpha_region_dashboard_inactive_css] = ''
settings[alpha_region_dashboard_main_equal_height_container] = ''
settings[alpha_region_dashboard_main_equal_height_element] = ''
settings[alpha_region_dashboard_main_force] = ''
settings[alpha_region_dashboard_main_zone] = ''
settings[alpha_region_dashboard_main_prefix] = ''
settings[alpha_region_dashboard_main_columns] = '1'
settings[alpha_region_dashboard_main_suffix] = ''
settings[alpha_region_dashboard_main_weight] = '-50'
settings[alpha_region_dashboard_main_css] = ''
settings[alpha_region_user_first_equal_height_container] = ''
settings[alpha_region_user_first_equal_height_element] = ''
settings[alpha_region_user_first_force] = ''
settings[alpha_region_user_first_zone] = 'user'
settings[alpha_region_user_first_prefix] = ''
settings[alpha_region_user_first_columns] = '8'
settings[alpha_region_user_first_suffix] = ''
settings[alpha_region_user_first_weight] = '1'
settings[alpha_region_user_first_css] = ''
settings[alpha_region_user_second_equal_height_container] = ''
settings[alpha_region_user_second_equal_height_element] = ''
settings[alpha_region_user_second_force] = ''
settings[alpha_region_user_second_zone] = 'user'
settings[alpha_region_user_second_prefix] = ''
settings[alpha_region_user_second_columns] = '4'
settings[alpha_region_user_second_suffix] = ''
settings[alpha_region_user_second_weight] = '2'
settings[alpha_region_user_second_css] = ''
settings[alpha_region_branding_equal_height_container] = ''
settings[alpha_region_branding_equal_height_element] = ''
settings[alpha_region_branding_force] = '1'
settings[alpha_region_branding_zone] = 'branding'
settings[alpha_region_branding_prefix] = ''
settings[alpha_region_branding_columns] = '12'
settings[alpha_region_branding_suffix] = ''
settings[alpha_region_branding_weight] = '1'
settings[alpha_region_branding_css] = ''
settings[alpha_region_menu_equal_height_container] = ''
settings[alpha_region_menu_equal_height_element] = ''
settings[alpha_region_menu_force] = '1'
settings[alpha_region_menu_zone] = 'menu'
settings[alpha_region_menu_prefix] = ''
settings[alpha_region_menu_columns] = '12'
settings[alpha_region_menu_suffix] = ''
settings[alpha_region_menu_weight] = '1'
settings[alpha_region_menu_css] = ''
settings[alpha_region_header_first_equal_height_container] = ''
settings[alpha_region_header_first_equal_height_element] = ''
settings[alpha_region_header_first_force] = ''
settings[alpha_region_header_first_zone] = 'header'
settings[alpha_region_header_first_prefix] = ''
settings[alpha_region_header_first_columns] = '6'
settings[alpha_region_header_first_suffix] = ''
settings[alpha_region_header_first_weight] = '1'
settings[alpha_region_header_first_css] = ''
settings[alpha_region_header_second_equal_height_container] = ''
settings[alpha_region_header_second_equal_height_element] = ''
settings[alpha_region_header_second_force] = ''
settings[alpha_region_header_second_zone] = 'header'
settings[alpha_region_header_second_prefix] = ''
settings[alpha_region_header_second_columns] = '6'
settings[alpha_region_header_second_suffix] = ''
settings[alpha_region_header_second_weight] = '2'
settings[alpha_region_header_second_css] = ''
settings[alpha_region_preface_first_equal_height_container] = ''
settings[alpha_region_preface_first_equal_height_element] = ''
settings[alpha_region_preface_first_force] = ''
settings[alpha_region_preface_first_zone] = 'preface'
settings[alpha_region_preface_first_prefix] = ''
settings[alpha_region_preface_first_columns] = '4'
settings[alpha_region_preface_first_suffix] = ''
settings[alpha_region_preface_first_weight] = '1'
settings[alpha_region_preface_first_css] = ''
settings[alpha_region_preface_second_equal_height_container] = ''
settings[alpha_region_preface_second_equal_height_element] = ''
settings[alpha_region_preface_second_force] = ''
settings[alpha_region_preface_second_zone] = 'preface'
settings[alpha_region_preface_second_prefix] = ''
settings[alpha_region_preface_second_columns] = '4'
settings[alpha_region_preface_second_suffix] = ''
settings[alpha_region_preface_second_weight] = '2'
settings[alpha_region_preface_second_css] = ''
settings[alpha_region_preface_third_equal_height_container] = ''
settings[alpha_region_preface_third_equal_height_element] = ''
settings[alpha_region_preface_third_force] = ''
settings[alpha_region_preface_third_zone] = 'preface'
settings[alpha_region_preface_third_prefix] = ''
settings[alpha_region_preface_third_columns] = '4'
settings[alpha_region_preface_third_suffix] = ''
settings[alpha_region_preface_third_weight] = '3'
settings[alpha_region_preface_third_css] = ''
settings[alpha_region_content_equal_height_container] = ''
settings[alpha_region_content_equal_height_element] = ''
settings[alpha_region_content_force] = ''
settings[alpha_region_content_zone] = 'content'
settings[alpha_region_content_prefix] = ''
settings[alpha_region_content_columns] = '6'
settings[alpha_region_content_suffix] = ''
settings[alpha_region_content_weight] = '2'
settings[alpha_region_content_css] = ''
settings[alpha_region_sidebar_first_equal_height_container] = ''
settings[alpha_region_sidebar_first_equal_height_element] = ''
settings[alpha_region_sidebar_first_force] = ''
settings[alpha_region_sidebar_first_zone] = 'content'
settings[alpha_region_sidebar_first_prefix] = ''
settings[alpha_region_sidebar_first_columns] = '3'
settings[alpha_region_sidebar_first_suffix] = ''
settings[alpha_region_sidebar_first_weight] = '1'
settings[alpha_region_sidebar_first_css] = ''
settings[alpha_region_sidebar_second_equal_height_container] = ''
settings[alpha_region_sidebar_second_equal_height_element] = ''
settings[alpha_region_sidebar_second_force] = ''
settings[alpha_region_sidebar_second_zone] = 'content'
settings[alpha_region_sidebar_second_prefix] = ''
settings[alpha_region_sidebar_second_columns] = '3'
settings[alpha_region_sidebar_second_suffix] = ''
settings[alpha_region_sidebar_second_weight] = '3'
settings[alpha_region_sidebar_second_css] = ''
settings[alpha_region_postscript_first_equal_height_container] = ''
settings[alpha_region_postscript_first_equal_height_element] = ''
settings[alpha_region_postscript_first_force] = ''
settings[alpha_region_postscript_first_zone] = 'postscript'
settings[alpha_region_postscript_first_prefix] = ''
settings[alpha_region_postscript_first_columns] = '3'
settings[alpha_region_postscript_first_suffix] = ''
settings[alpha_region_postscript_first_weight] = '1'
settings[alpha_region_postscript_first_css] = ''
settings[alpha_region_postscript_second_equal_height_container] = ''
settings[alpha_region_postscript_second_equal_height_element] = ''
settings[alpha_region_postscript_second_force] = ''
settings[alpha_region_postscript_second_zone] = 'postscript'
settings[alpha_region_postscript_second_prefix] = ''
settings[alpha_region_postscript_second_columns] = '3'
settings[alpha_region_postscript_second_suffix] = ''
settings[alpha_region_postscript_second_weight] = '2'
settings[alpha_region_postscript_second_css] = ''
settings[alpha_region_postscript_third_equal_height_container] = ''
settings[alpha_region_postscript_third_equal_height_element] = ''
settings[alpha_region_postscript_third_force] = ''
settings[alpha_region_postscript_third_zone] = 'postscript'
settings[alpha_region_postscript_third_prefix] = ''
settings[alpha_region_postscript_third_columns] = '3'
settings[alpha_region_postscript_third_suffix] = ''
settings[alpha_region_postscript_third_weight] = '3'
settings[alpha_region_postscript_third_css] = ''
settings[alpha_region_postscript_fourth_equal_height_container] = ''
settings[alpha_region_postscript_fourth_equal_height_element] = ''
settings[alpha_region_postscript_fourth_force] = ''
settings[alpha_region_postscript_fourth_zone] = 'postscript'
settings[alpha_region_postscript_fourth_prefix] = ''
settings[alpha_region_postscript_fourth_columns] = '3'
settings[alpha_region_postscript_fourth_suffix] = ''
settings[alpha_region_postscript_fourth_weight] = '4'
settings[alpha_region_postscript_fourth_css] = ''
settings[alpha_region_footer_first_equal_height_container] = ''
settings[alpha_region_footer_first_equal_height_element] = ''
settings[alpha_region_footer_first_force] = ''
settings[alpha_region_footer_first_zone] = 'footer'
settings[alpha_region_footer_first_prefix] = ''
settings[alpha_region_footer_first_columns] = '12'
settings[alpha_region_footer_first_suffix] = ''
settings[alpha_region_footer_first_weight] = '1'
settings[alpha_region_footer_first_css] = ''
settings[alpha_region_footer_second_equal_height_container] = ''
settings[alpha_region_footer_second_equal_height_element] = ''
settings[alpha_region_footer_second_force] = ''
settings[alpha_region_footer_second_zone] = 'footer'
settings[alpha_region_footer_second_prefix] = ''
settings[alpha_region_footer_second_columns] = '12'
settings[alpha_region_footer_second_suffix] = ''
settings[alpha_region_footer_second_weight] = '2'
settings[alpha_region_footer_second_css] = ''
version = '1.x'

21.11.2011 21:33
Аватар пользователя Experiment
Experiment написал:

Одним словом пробую скопироват любой .tpl.php в свою подтему из папки Омега всегда та же ошибка, даже непрописывая ничего внутри .tpl.php

21.11.2011 21:40
Аватар пользователя Spleshka
Spleshka написал:

скажите, а зачем вам столько настроек ??? Вы их все используете?

21.11.2011 23:04
Аватар пользователя Гость
Гость написал:

Это стандартные настроики я их нетрогал :) просто буду делат много разных макетов для разных нод с помощью модулей Delta и Context, да и както недумал стирать что то из .инфо файла. Сейчас вроде всё работает но на свежем сайте в котором толко пару модулей, но никак неразберусь куда прописат print $login_button;, чтобы кнопка отображалась например в регионе user_first

21.11.2011 23:39
Аватар пользователя гостя
гостя написал:

Может в регионе user_list в Вашей page.tpl.php? Ваш К.О.

23.11.2011 12:28
Аватар пользователя Experiment
Experiment написал:

Всё работало вчера а сегодня неработает кидает ошибку Notice: Undefined variable: login_button in include() (line 4 of /sites/all/themes/test/templates/region--user_first.tpl.php)
Я немного поменял препроцес вместо страницы прописал регион, создал region--user_first.tpl.php
Как уже говорил вчера всё работало но ошибка показывалась постоянно (кеш чистил)

23.11.2011 13:37
Аватар пользователя Spleshka
Spleshka написал:

сделайте проверку в user_first.tpl.php на isset($login_button)

23.11.2011 13:58
Аватар пользователя Experiment
Experiment написал:

Проверил так var_dump($login_button);
ответ: Null

23.11.2011 14:35
Аватар пользователя Experiment
Experiment написал:

Проверил на isset($login_button)
ответ: OK но после входа ответ: НЕТ

23.11.2011 14:44
Аватар пользователя Experiment
Experiment написал:

И скрипт неработает нажав на логин просто переход на страницу логин

23.11.2011 14:54
Аватар пользователя Experiment
Experiment написал:

Всё заработало но ошибку после входа на сайт всё равно показывает Notice: Undefined variable: login_button in include()

23.11.2011 15:14
Аватар пользователя Spleshka
Spleshka написал:

Покажите код, которым вы это выводите.

23.11.2011 15:36
Аватар пользователя Experiment
Experiment написал:

Всё тоже самое как в вашем уроке http://drupalace.ru/lesson/delaem-popup-login-na-jqueryuidialog

23.11.2011 16:44
Аватар пользователя Experiment
Experiment написал:

хмм. А может ето из за того что я код который вы вводите в template.tpl.php я ввожу в фаил preprocess-region.inc Уже начинаю запутываться

23.11.2011 16:51
Аватар пользователя Spleshka
Spleshka написал:

Возможно что из-за этого. Попробуйте перенести перменную в template.php

23.11.2011 19:09

Комментировать