форум vBSupport.ru > Форумные движки и CMS (Порталы) > CMS (Portals) > vBadvanced CMPS
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
inso
Знаток
 
inso's Avatar
Default Не могу понять где ошибка
0

Подскажите пожалуйста в чем мои ошибки. После того как взялся привести шаблон adv_portal в более менее правильный вид (лучше б не трогал), по всему форуму (на интегрированных страницах) повылазили открытые или не закрытые теги таблиц (td, tr, table). Я не очень понимаю как работает портал и все условия шаблона. Вроде же закрыто все... Вот код между футером и хедером шаблона adv_portal:

HTML Code:
<if condition="$show['customizepagelink']">
	<div align="$stylevar[right]" style="padding-top: $stylevar[cellpadding]px; padding-bottom: $stylevar[cellpadding]px">
		<if condition="$show['customizepage']">
			[<a href="javascript: reset_cmps_layout($pages[pageid])">$vbphrase[reset_layout]</a>]
			[<a href="$show[customizepagelink]">$vbphrase[exit_customization_mode]</a>]
		<else />
			[<a href="$show[customizepagelink]">$vbphrase[customize_this_page]</a>]
		</if>
	</div>
</if>

<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
	<tr valign="top">
		<if condition="$show['left_column']">
			<td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-$stylevar[right]: $vba_style[portal_colspacing]px"</if>>
				$home[leftblocks]
			</td>
		</if>
		<if condition="$show['center_column']">
			<td valign="top">
				$home[centerblocks]
			</td>
		</if>



<if condition="$show['centermain_column']">
			<td valign="top" width="50%">
				$home[centermainblocks]
			</td>
		</if>


		<if condition="$show['right_column']">
			<td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-$stylevar[left]: $vba_style[portal_colspacing]px"</if>>
				$home[rightblocks]
			</td>
		</if>

<if condition="$show['sidebar_column']">
			<td valign="top" class="side_bar">
				$home[sidebarblocks]
			</td>
		</if>
	</tr>

<if condition="THIS_SCRIPT=='adv_index'">
<tr>

<if condition="$show['left_column']">
			<td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-$stylevar[right]: $vba_style[portal_colspacing]px"</if>>
				$home[left2blocks]
			</td>
		</if>

		<if condition="$show['center_column']">
			<td>
			
			</td>
		</if>

<if condition="$show['centermain_column']">
			<td valign="top">
				$home[center2blocks]
			</td>
		</if>

<if condition="$show['right_column']">
			<td valign="top">

				$home[right2blocks]
			</td>
</if>
		

</tr>
</if>

</table>

<if condition="$show['main_middle_column']">
$home[main_middleblocks]
</if>
inso добавил 26.05.2015 в 16:56
Модули с главной не повторяются на страницах форума. Т.е. причина в самой структуре

inso добавил 26.05.2015 в 18:06
Нашел наконец. Косяк оказался в навбаре, условие закрыл раньше и конец таблицы из него выпал.
Думал на портал потому что на некоторых страницах незакрытые теги были аж в самом низу почти в футере. Но оказалось это из-за навбара

Last edited by inso : 05-26-2015 at 07:06 PM. Reason: Добавлено сообщение
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 04:31 PM.


Powered by vBulletin® Version zEdition
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...