+0.52
Рейтинг
0.49
Сила
  • avatar flax
  • 0
ставь nginx и будет тебе счастье…
  • avatar flax
  • 0
Я пробовал более предметно.
Вы как я понял не пробовали, вы просто его не смогли поставить.
С рерайтами проблемы могут возникнуть и у LS, тут скорее проблемы у пользователей.

Сам ставил Cogear и писал под него «шестернки». Основная проблема у него на мой взгляд это не любовь к Windows.
  • avatar flax
  • 1
только изображения в png сохраняйте ;)
  • avatar flax
  • 0
Небольшой хак.
  • avatar flax
  • 1
Планируется в будущих версиях доработать кат?
Сейчас при переходе под кат открывается страница топика, а не место где был указан кат.
Или пока не планируется и лучше допилить самому?
  • avatar flax
  • 1
Может покажете свой проект, где все не так убого и оч посещаемо?
  • avatar flax
  • 0
А в LS не заложено оставлять якорь на cut?
  • avatar flax
  • 0
templates\skin\твой_скин\block.tags.tpl
  • avatar flax
  • 0
в /plugins/page/classes/modules/page/Page.class.php
Есть такая строка?
class PluginPage_ModulePage extends Module {	
  • avatar flax
  • 0
не знаю как у других, но у меня css и javascript кешируется в любом случае =\
  • avatar flax
  • 0
Если вдруг после этого имя не измениться удалите файл tmp/adm.all.cfg
  • avatar flax
  • 0
зайдите в файл config.local.php
и измените строку на
$config['view']['name'] = 'Имя вашего сайта';
если такой строки вдруг нет добавьте.
  • avatar flax
  • 0
Смотрите sidebar.tpl
  • avatar flax
  • 0
Первое. Как поменять название сайта?
в config\config.local.php

$config['view']['name'] = 'Site_Name';

Загружаю его в templates/skin/new/css/style.css. На сайте активный шаблон new — и ничего.
Попробуйте удалить кеш файлы в templates\cache\new\

Фон хедера поменялся на раз, теперь, млин, буковки не видно!

Ctrl+a выделение должно помочь.
  • avatar flax
  • 0
В шаблон вставлять.
  • avatar flax
  • 0
Извиняюсь за огромный комент.
  • avatar flax
  • 0
Грубое решение:
В шаблоне «developer» найдите topic_list.tpl
Заменить

{if count($aTopics)>0}
	{foreach from=$aTopics item=oTopic}   
		{include file='topic.tpl'}	
	{/foreach}	
		
    {include file='pagination.tpl' aPaging="$aPaging"}			
{else}
	{$aLang.blog_no_topic}
{/if}

на

{if count($aTopics)>0}
	{foreach from=$aTopics item=oTopic}   
				{assign var="oBlog" value=$oTopic->getBlog()}
		{assign var="oUser" value=$oTopic->getUser()}
		{assign var="oVote" value=$oTopic->getVote()} 


		<div class="topic">
			<h2 class="title">
				<a href="{$oBlog->getUrlFull()}" class="title-blog">{$oBlog->getTitle()|escape:'html'}</a> →
				{if $oTopic->getPublish()==0}	
					<img src="{cfg name='path.static.skin'}/images/draft.png" title="{$aLang.topic_unpublish}" alt="{$aLang.topic_unpublish}" />
				{/if}
				{if $oTopic->getType() == 'link'}<img src="{cfg name='path.static.skin'}/images/topic_link.png" title="{$aLang.topic_link}" alt="{$aLang.topic_link}" />{/if}
				<a href="{if $oTopic->getType()=='link'}{router page='link'}go/{$oTopic->getId()}/{else}{$oTopic->getUrl()}{/if}" class="title-topic">{$oTopic->getTitle()|escape:'html'}</a>
			</h2>
			
			
			
			<ul class="actions">									
				{if $oUserCurrent and ($oUserCurrent->getId()==$oTopic->getUserId() or $oUserCurrent->isAdministrator() or $oBlog->getUserIsAdministrator() or $oBlog->getUserIsModerator() or $oBlog->getOwnerId()==$oUserCurrent->getId())}
					<li><a href="{cfg name='path.root.web'}/{$oTopic->getType()}/edit/{$oTopic->getId()}/" title="{$aLang.topic_edit}" class="edit">{$aLang.topic_edit}</a></li>
				{/if}
				{if $oUserCurrent and ($oUserCurrent->isAdministrator() or $oBlog->getUserIsAdministrator() or $oBlog->getOwnerId()==$oUserCurrent->getId())}
					<li><a href="{router page='topic'}delete/{$oTopic->getId()}/?security_ls_key={$LIVESTREET_SECURITY_KEY}" title="{$aLang.topic_delete}" onclick="return confirm('{$aLang.topic_delete_confirm}');" class="delete">{$aLang.topic_delete}</a></li>
				{/if}
			</ul>



			<div class="content">
				{if $oTopic->getType()=='question'}
					<div id="topic_question_area_{$oTopic->getId()}" class="poll">
						{if !$oTopic->getUserQuestionIsVote()}
							<ul class="poll-vote">
								{foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer}
									<li><label><input type="radio" id="topic_answer_{$oTopic->getId()}_{$key}" name="topic_answer_{$oTopic->getId()}" value="{$key}" onchange="$('topic_answer_{$oTopic->getId()}_value').setProperty('value',this.value);" /> {$aAnswer.text|escape:'html'}</label></li>
								{/foreach}
							</ul>

							<input type="submit" value="{$aLang.topic_question_vote}" onclick="ajaxQuestionVote({$oTopic->getId()},$('topic_answer_{$oTopic->getId()}_value').getProperty('value'));" />
							<input type="submit" value="{$aLang.topic_question_abstain}" onclick="ajaxQuestionVote({$oTopic->getId()},-1)" />
							<input type="hidden" id="topic_answer_{$oTopic->getId()}_value" value="-1" />
						{else}
							{include file='topic_question.tpl'}
						{/if}
					</div>
				{/if}

					{$oTopic->getTextShort()}
					{if $oTopic->getTextShort()!=$oTopic->getText()}
      					

( <a href="{$oTopic->getUrl()}" title="{$aLang.topic_read_more}">
      					{if $oTopic->getCutText()}
      						{$oTopic->getCutText()}
      					{else}
      						{$aLang.topic_read_more}
      					{/if}      			
      					</a> )
      				{/if}
			</div>	



			<ul class="tags">
				{foreach from=$oTopic->getTagsArray() item=sTag name=tags_list}
					<li><a href="{router page='tag'}{$sTag|escape:'html'}/">{$sTag|escape:'html'}</a>{if !$smarty.foreach.tags_list.last}, {/if}</li>
				{/foreach}								
			</ul>



			<ul class="info">
				<li class="voting {if $oVote || ($oUserCurrent && $oTopic->getUserId()==$oUserCurrent->getId()) || strtotime($oTopic->getDateAdd())<$smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')}{if $oTopic->getRating()>0}positive{elseif $oTopic->getRating()<0}negative{/if}{/if} {if !$oUserCurrent || $oTopic->getUserId()==$oUserCurrent->getId() || strtotime($oTopic->getDateAdd())<$smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')}guest{/if}{if $oVote} voted {if $oVote->getDirection()>0}plus{elseif $oVote->getDirection()<0}minus{/if}{/if}">
					<a href="#" class="plus" onclick="lsVote.vote({$oTopic->getId()},this,1,'topic'); return false;"></a>
					<span class="total" title="{$aLang.topic_vote_count}: {$oTopic->getCountVote()}">{if $oVote || ($oUserCurrent && $oTopic->getUserId()==$oUserCurrent->getId()) || strtotime($oTopic->getDateAdd())<$smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')} {if $oTopic->getRating()>0}+{/if}{$oTopic->getRating()} {else} <a href="#" onclick="lsVote.vote({$oTopic->getId()},this,0,'topic'); return false;">—</a> {/if}</span>
					<a href="#" class="minus" onclick="lsVote.vote({$oTopic->getId()},this,-1,'topic'); return false;"></a>
				</li>
				<li class="username"><a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a></li>	
				<li class="date">{date_format date=$oTopic->getDateAdd()}</li>
				<li><a href="#" onclick="lsFavourite.toggle({$oTopic->getId()},this,'topic'); return false;" class="favorite {if $oUserCurrent}{if $oTopic->getIsFavourite()}active{/if}{else}fav-guest{/if}"></a></li>
				{if $oTopic->getType()=='link'}
					<li><a href="{router page='link'}go/{$oTopic->getId()}/" title="{$aLang.topic_link_count_jump}: {$oTopic->getLinkCountJump()}">{$oTopic->getLinkUrl(true)}</a></li>
				{/if}
				{if !$tSingle}
					<li class="comments-link">
						{if $oTopic->getCountComment()>0}
							<a href="{$oTopic->getUrl()}#comments" title="{$aLang.topic_comment_read}">{$oTopic->getCountComment()} <span>{if $oTopic->getCountCommentNew()}+{$oTopic->getCountCommentNew()}{/if}</span></a>
						{else}
							<a href="{$oTopic->getUrl()}#comments" title="{$aLang.topic_comment_add}">0</a>
						{/if}
					</li>
				{/if}
				{hook run='topic_show_info' topic=$oTopic}
			</ul>
		</div>
	{/foreach}	
		
    {include file='pagination.tpl' aPaging="$aPaging"}			
{else}
	{$aLang.blog_no_topic}
{/if}
  • avatar flax
  • 0
Посмотрел, так же не работает в шаблоне «developer», в шаблоне «new» все в порядке.
Только сравнит и подправить…
  • avatar flax
  • 0
Большое Вам спасибо!
  • avatar flax
  • 0
Может кто нибудь помочь?
Есть урл.
site.ru/bla/abc/page7/
и
site.ru/bla/abc/b/page7/
В первом варианте чтобы получить страницу беру такое выражение
$this->AddEventPreg('/^abc$/i','/^(page(\d+))?$/i','EventShowAbc');
...
$iPage=$this->GetParamEventMatch(0,2) ? $this->GetParamEventMatch(0,2) : 1;

, а как получить буквенный указатель и номер страници для второго случая.