Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
EvgenyK

Ошибка с Архивом статей

Recommended Posts

Здравствуйте,

 

когда в Контенте жму на "предыдушие статьи" выдает ошибку - [#10CCS19] У Вас нет прав на просмотр этой категории.

Не могу понять каких прав ему не хватает, пересмотрел все везде и всем права дал, из-за чего может возникать такая ошибка, именно на шаблоне Архива?

Share this post


Link to post
Share on other sites

В АЦП настройках контента Articles > Manage Categories на всех категориях все в порядке с правами?

 

Может шаблон где задели?

 

 

 

<php>
if( $this->request['do'] == 'search' ){
	$this->_search = "&do=search&search_value=" . $this->request['search_value']; 
}

//RSS
if( isset( $data['parent']['category_id'] ) ){
	$rss = array( 
		'enabled' => ( substr( $data['parent']['category_rss'], 0, 1 ) == 1 && $data['parent']['category_show_records'] ) ? 1 : 0,
		'type' => 'category',
		'id' => $data['database']['database_id'].'c'.$data['parent']['category_id'],
		'name' => $data['parent']['category_name']
	);
	$title = $data['parent']['category_name'];
	$this->settings['_active_cat'] = $data['parent']['category_id'];
}
</php>
<div class='archives'>
<if test="$rss['enabled']">
	<div class='utilities right'>
		<a href='{parse url="app=core&module=global&section=rss&type=ccs&id={$rss['id']}" seotitle="{$rss['name']}" template="section=rss2" base="public"}' class='right'><img src='{$this->settings['img_url']}/feed.png' alt='' /></a>
	</div>
</if>
<h2 class='section_title'>
	<if test="!$this->_search">
		{$data['parent']['category_name']} {$this->lang->words['archdt_archives']}
		<if test="$data['database']['_can_add']">
			<a href='{$data['database']['base_link']}do=add&category={$this->request['category']}' title='{$this->lang->words['add_record_button']}' accesskey='s' class='add_link'>{$this->lang->words['add_record_button']}</a>
		</if>
	<else />
		{$this->lang->words['archdt_searchresults']}
	</if>
</h2>
<div class='sort_bar'>
	{$this->lang->words['archdt_sortby']}
	<ul>
		<li <if test="$this->request['sort_col']=='record_saved'">class='active'</if>>
			<a href='{$data['parent']['category_link']}{$this->_search}&sort_col=record_saved&sort_order=desc'>{$this->lang->words['archdt_mostrecent']}</a>
		</li>
		<if test="$data['database']['database_rate']">
		<li <if test="$this->request['sort_col']=='rating_real'">class='active'</if>>
			<a href='{$data['parent']['category_link']}{$this->_search}&sort_col=rating_real&sort_order=desc'>{$this->lang->words['archdt_highrated']}</a>
		</li>
		</if>
		<li <if test="$this->request['sort_col']==$data['special']['title']">class='active'</if>>
			<a href='{$data['parent']['category_link']}{$this->_search}&sort_col={$data['special']['title']}&sort_order=desc'>{$this->lang->words['archdt_title']}</a>
		</li>
		<li <if test="$this->request['sort_col']=='record_views'">class='active'</if>>
			<a href='{$data['parent']['category_link']}{$this->_search}&sort_col=record_views&sort_order=desc'>{$this->lang->words['archdt_mostviewed']}</a>
		</li>
	</ul>
</div>
<div class='topic_controls'>
	{$data['pages']}
</div>
<br style='clear: both;' />
<if test="count($data['records'])">
	<foreach loop="$data['records'] as $record">
		<div class='block<if test="!$record['record_approved']"> moderated</if>'>
			<if test="$record['article_image']">
				<img src='{$record['article_image']}' class='photo' {parse resize_image="$record['article_image']" maxwidth="100"} alt='' />
			</if>
			<h3><a href='{$record['record_link']}'>{$record['article_title']}</a></h3>
			<span class='desc posted_info'>{$record['article_date']} | <a href='{parse url="showuser={$record['member_id']}" base="public" template="showuser" seotitle="{$record['members_seo_name']}"}'>{$record['members_display_name']}</a></span>
			<div class='excerpt'>
				{IPSText::truncate( $record['article_body'], 190 )}
				<br />
				<span class='links'>
					<a href='{$record['record_link']}' class='read_more'>{$this->lang->words['fpdt_readstory']}</a>
					  
					<a href='{$record['record_link']}#comments' class='comments'>{$record['record_comments']} {$this->lang->words['fpdt_comments']}</a>
					  
					<if test="$data['database']['database_rate']">
						<if test="$record['rating_real'] >= 1">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if><if test="$record['rating_real'] >= 2">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if><if test="$record['rating_real'] >= 3">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if><if test="$record['rating_real'] >= 4">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if><if test="$record['rating_real'] >= 5">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if>
					</if>
				</span>
			</div>
		</div>
	</foreach>
<else />
	<div class='no_messages'>
		<if test="!$this->_search">
			{$this->lang->words['fpdt_noarticles']}
			<if test="$data['database']['_can_add']">
				<a href='{$data['database']['base_link']}do=add&category={$this->request['category']}' title='{$this->lang->words['add_record_button']}'><strong>{$this->lang->words['fpdt_addone']}</strong></a>
			</if>
		<else />
			{$this->lang->words['archdt_nosearchresults']}
		</if>
	</div>
</if>
<div class='topic_controls'>
	{$data['pages']}
</div>
<br class='clear' />

<if test="count( $data['categories'] )">
	<hr />
	<div class='subcats'>
		<foreach loop="$data['categories'] as $category">
			<div class='subcat'>
				<h2><a href='{$category['category_link']}' title='{$this->lang->words['archdt_viewcat']}'>{$category['category_name']}</a> 
					<span class='desc'>
						<if test="substr( $category['category_rss'], 0, 1 ) == 1">
							<a href="{parse url="app=core&module=global&section=rss&type=ccs&id={$category['category_database_id']}c{$category['category_id']}" base="public" template="section=rss2" seotitle="{$category['category_furl_name']}"}"><img src='{$this->settings['img_url']}/feed.png' alt='{$this->lang->words['rss_feed']}' /></a>
						</if>
						{$category['category_records']} {$this->lang->words['archdt_articles']}
					</span>
				</h2>
				<div class='last_article'>
					<if test="$category['category_last_record_id']">
						<h3><a href='{$category['record_link']}'>{$category['article_title']}</a></h3>
						<div class='excerpt'>
							<span class='desc'>{parse date="$category['category_last_record_date']" format="manual{%b %d %Y}"}</span>  {IPSText::truncate( $category[ $data['database']['database_field_content'] ], 190 )}
						</div>
					<else />
						<p class='desc'>
							{$this->lang->words['fpdt_noarticles']}
						</p>
					</if>
				</div>
				<if test="$data['database']['moderate_approve'] AND $category['category_records_queued']">
					<em class='right moderated'><a href='{$category['category_link']}?view=archive&sort=queued' title='{$this->lang->words['cat_viewmoderated']}'>{parse expression="sprintf( $this->lang->words['category_unapprovedlink'], $category['category_records_queued'] )"}</a></em>
				</if>
			</div>
		</foreach>
	</div>
</if>

</div>

 

Share this post


Link to post
Share on other sites

В АЦП в Manage Categories везде стоит Override global permissions? - Нет.

 

В разделе Pages тоже стоит All current and future masks 'yes'

 

не знаю где еще можно доступ настраивать.

 

Шаблон посмотрел, скопировал заново, все равно пишет нет доступа.

 

Не знаю, что вообще ему может не нравиться... :D

Share this post


Link to post
Share on other sites

Здравствуйте,

 

когда в Контенте жму на "предыдушие статьи" выдает ошибку - [#10CCS19] У Вас нет прав на просмотр этой категории.

Не могу понять каких прав ему не хватает, пересмотрел все везде и всем права дал, из-за чего может возникать такая ошибка, именно на шаблоне Архива?

 

В корне сайта в файле initdata.php измени

define( 'IPB_USE_SEO_TRANSLIT', TRUE );

на

define( 'IPB_USE_SEO_TRANSLIT', FALSE );

Edited by ttindex

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...