Jump to content

Featured Replies

Posted
comment_72062

Если тут те, кто разбирается в валидации? 

__validator.w3.org/check?uri=http%3A%2F%2Fprigor.od.ua%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices

не понятно, что за name?

<meta name="identifier-url"
  • Author
comment_72066

Удали этот мета-тег из шаблона.

Я его найти не могу

 

Вот <head>

<head>
		<meta charset="{$this->settings['gb_char_set']}" />
		<title>{$header_items['title']}</title>
		<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge" /><![endif]-->
		<link rel="shortcut icon" href='<if test="$this->registry->output->isHTTPS">{$this->settings['board_url_https']}<else />{$this->settings['board_url']}</if>/favicon.ico' />
		<link rel="image_src" href='{$this->settings['meta_imagesrc']}' />
		<script type='text/javascript'>
		//<![CDATA[
			jsDebug			= {parse expression="intval($this->settings['_jsDebug'])"}; /* Must come before JS includes */
			DISABLE_AJAX	= parseInt({$this->settings['disable_text_ajax']}); /* Disables ajax requests where text is sent to the DB; helpful for charset issues */
			inACP			= false;
			var isRTL		= false;
			var rtlIe		= '';
			var rtlFull		= '';
		//]]>
		</script>
<link href='//fonts.googleapis.com/css?family=Lato:400,700' rel='stylesheet' type='text/css' />
		{parse template="includeCSS" group="global" params="$css"}
		<meta property="og:title" content="{$this->registry->output->encodeMetaTagContent( str_replace( ' - ' . $this->settings['board_name'], '', $header_items['title'] ) )}"/>
		<meta property="og:site_name" content="{$this->registry->output->encodeMetaTagContent( $this->settings['board_name'] )}"/>
		<meta property="og:type" content="article" />
		{parse template="includeMeta" group="global" params="$metaTags"}
		<if test="isLargeTouch:|:$this->registry->output->isLargeTouchDevice()">
		<!--<meta name="viewport" content="width=device-width;">-->
		</if>
		<if test="isSmallTouch:|:$this->registry->output->isSmallTouchDevice()">
		<meta name="viewport" content="width=1024px">
		</if>
{parse template="_ipbfsConfig" group="global" params=""}
<script type='text/javascript'>!window.jQuery && document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>')</script>
		<script type='text/javascript'>!window.jQuery && document.write('<script src="{style_images_url}/js/jquery.min.js"></script>')</script>
		<script type='text/javascript' src="{style_images_url}/js/cookie.js"></script>
		<script type='text/javascript' src="{style_images_url}/js/ipbforumskins.js"></script>
		{parse template="includeJS" group="global" params="$jsModules"}
		{parse template="includeFeeds" group="global" params="$documentHeadItems"}
		{parse template="includeRTL" group="global" params=""}		
		{parse template="includeVars" group="global" params="$header_items"}
	</head>

Edited by AlexBrtn

  • Author
comment_72068

Глобальные --> includeMeta

 

Закомментировал 

<if test="metatags:|:is_array( $metaTags ) AND count( $metaTags )">
	<foreach loop="metaTags:$metaTags as $tag => $id">
		<foreach loop="metaTagsInner:$metaTags[ $tag ] as $content">
		<if test="ogCaveman:|:stristr( $tag, 'og:' )">
			<meta property="{$tag}" content="{$content}" />
		<else />
			<!-- <meta name="{$tag}" content="{$content}" /> -->
		</if>
		<if test="hasIdentifier:|:$tag == 'identifier-url'">
			<meta property="og:url" content="{$content}" />
		</if>
		<if test="hasDescription:|:$tag == 'description'">
			<meta property="og:description" content="{$content}" />
		</if>
		</foreach>
	</foreach>
</if>
<meta property="og:image" content="{$this->settings['meta_imagesrc']}"/>

Замечен ещё в MetaEditor

<div class='ipsFloatingAction left' id='seoMetaTagEditor'>
<div class='ipsBox ipsPad'>
	
	<h2 class='ipsType_subtitle left'>{$this->lang->words['meta_editor_title']}</h2>
	
	<span class='right'><a href='{parse url="app=core&module=global&section=meta&do=end&url={parse expression="urlencode($url)"}" base="public"}'><img src="{$this->settings['img_url']}/close_popup.png" alt="X" /></a></span>
	
	<br class='clear' />
	
	<form action='{parse url="app=core&module=global&section=meta&do=save" base="public"}' method='post'>
		<input type='hidden' name='url' value='{$url}' />
		<table class='ipb_table'>
			<tr>
				<th>{$this->lang->words['meta_tag_title']}<br /><span class='desc ipsType_smallest'>{$this->lang->words['meta_tag_title_desc']}</span></th>
				<th>{$this->lang->words['meta_tag_content']}</th>
			</tr>
		</table>
		<div style='max-height: 150px' class='fixed_inner'>
		<table class='ipb_table'>
			<foreach loop="$tags as $k => $v">
				<if test="$k != 'identifier-url'">
					<tr>
						<td><input name='meta-tags-title[]' value='{$k}' class='input_text' /></td>
						<td><input name='meta-tags-content[]' value='{$v}' class='input_text' /></td>
					</tr>
					<php>$_metaTagId++;</php>
				</if>
			</foreach>
		</table>
		</div>
		<table class='ipb_table'>
			<tr>
				<td><input name='meta-tags-title[]'  class='input_text' /></td>
				<td><input name='meta-tags-content[]' class='input_text' /></td>
			</tr>
			<tr>
				<td colspan='2'>
					<input type='submit' class='ipsButton right clickable' value='{$this->lang->words['meta_save']}' />
				</td>
			</tr>
		</table>
	</form>
	
</div>
</div>

 

Ни как на целостность кода не повлияет?

comment_72084

Закомментировал 
Вы данным действием закомментировали почти все мета-теги.

не понятно, что за name?
Тег не понятен известен валидатору, т.к. в его базе нет такого. IPB его использует, если смотреть код 
		<if test="hasIdentifier:|:$tag == 'identifier-url'">
			<meta property="og:url" content="{$content}" />
		</if>
  • Author
comment_72100

IPB его использует, если смотреть код
Большое спасибо! В общем, как и многие рекомендуют, особо не обращать внимания на валидатор?  

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.