Войти
Введите цифры и буквы
<p> <label for="{$sSelectName}">{$aLang.publishfrom_label}:</label> <select name="{$sSelectName}"> <option value="{$oUserCurrent->getId()}">{$oUserCurrent->getLogin()}</option> {if $aUsersFriend} {foreach from=$aUsersFriend item=oUser} <option value="{$oUser->getUserWebPath()}">{$oUser->getProfileName()}</option> {/foreach} {/if} </select> <span class="note">{$aLang.publishfrom_note}</span> </p>
<label for="blog_id">Viberite nominaciu:</label> <select name="blog_id" id="blog_id" onChange="ajaxJoinLeaveBlog(this,this.value); return false;"> <option value="0">Viberite nominaciu:</option> {foreach from=$aBlogs item=oBlog} {assign var="oUserOwner" value=$oBlog->getOwner()} {if $oUserCurrent->getId()!=$oBlog->getOwnerId() and $oBlog->getType()=='open'} <option value="{$oBlog->getId()}">{$oBlog->getTitle()|escape:'html'}</option> {/if} {/foreach} </select>
{if count($aTopics)>0} {foreach from=$aTopics item=oTopic} <!-- Topic --> {assign var="sTopicTemplateName" value="topic_`$oTopic->getType()`.tpl"} <!---- имзенил на это> {include file=$sTopicTemplateName bTopicList=true bFirstTopic=$smarty.foreach.Topics.first} <!-- /Topic --> {/foreach} {include file='paging.tpl' aPaging=$aPaging} {else} {$aLang.blog_no_topic} {/if}
<div class="topic"> {if $smarty.foreach.topics.iteration==1} ... </if> </div>
Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'Z:\home2.168.1.200\www/plugins/imgpreview/templates/skin/default/window_load_img.tpl'' in Z:\home\192.168.1.200\www\engine\lib\external\Smarty\libs\sysplugins\smarty_internal_template.php:168 Stack trace: #0 Z:\home\192.168.1.200\www\engine\lib\external\Smarty\libs\sysplugins\smarty_internal_template.php(557): Smarty_Internal_Template->isExisting(true) #1 Z:\home\192.168.1.200\www\templates\compiled\new\9cf36ed63b485a5fc155d160bf728ef87077ba28.file.add.tpl.php(81): Smarty_Internal_Template->getRenderedTemplate() #2 Z:\home\192.168.1.200\www\engine\lib\external\Smarty\libs\sysplugins\smarty_internal_template.php(439): include('Z:\home\192.168...') #3 Z:\home\192.168.1.200\www\engine\lib\external\Smarty\libs\sysplugins\smarty_internal_template.php(574): Smarty_Internal_Template->renderTemplate() #4 Z:\home\192.168.1.200\www\engine\lib\external\Smarty\libs\Smarty.class.php(340): Smarty_Internal_Template->getRenderedTemplate() #5 Z:\ in Z:\home\192.168.1.200\www\engine\lib\external\Smarty\libs\sysplugins\smarty_internal_template.php on line 168
подскажите пожалуйста в чем может быть проблема?
Беру код:
Вставляю его в «templates\skin\new\actions\ActionSettings\profile.tpl» в конец перед последним
Но список не заполняется названиями блогов. Подскажите пожалуйста в чем может быть проблемма?
Нужно чтобы всегда была виден только 1 самый последний топик…
в «topic_list.tpl» Сделал так:
а в «topic_list.tpl» добавил: