Иконка ресурса

FireDaemon - Resources on ForumHome 2.2.0

Нет прав для скачивания

Hope

Premium
Сообщения
48,305
Решения
22
Реакции
71,887
Баллы
40,905
Пользователь Hope разместил новый ресурс:

FireDaemon - Resources on ForumHome - Отображение ресурсов на главной странице форума.

Плагин отобразит блок ресурсов на главной странице форума выше списка разделов в 4 настраеваемых колонки.

Узнать больше об этом ресурсе...
 
не отображаются не категории не ресурсы на главной, только аватары. Может кто знает как исправить?

2014-01-14_213350.png
 
А настройки там какие-то есть... Попробуйте их изменять.
 
Ну тогда не знаю даже... Проверить мне не на чем. На офе ни одного отзыва нету.
 
Работает на 1.2.4 , но плагин сыроват
 
Да, я по скринам тоже заметил, что плагин так себе...
 
XenForo 1.5.14 ошибка при установке (((
Developer: default_value is not a valid array (resource_column_hs)
 
zerocoolprobiz, скиньте опцию сюда из xml
Скинуть код из модуля ? не совсем понял вопрос (
Код:
<?xml version="1.0" encoding="utf-8"?>
<addon addon_id="FireDaemon_ForumHome" title="FireDaemon Resources on ForumHome" version_string="2.2.0" version_id="2" url="" install_callback_class="" install_callback_method="" uninstall_callback_class="" uninstall_callback_method="">
  <admin_navigation/>
  <admin_permissions/>
  <admin_style_properties/>
  <admin_templates/>
  <admin_template_modifications/>
  <code_events/>
  <code_event_listeners>
    <listener event_id="load_class_controller" execute_order="10" callback_class="FireDaemon_ResourceManager_ForumHome_Listener" callback_method="extendThreadController" active="1" hint="" description="resource on home"/>
  </code_event_listeners>
  <cron/>
  <email_templates/>
  <email_template_modifications/>
  <optiongroups>
    <group group_id="ForumHome_resources" display_order="1" debug_only="0"/>
    <option option_id="avatar_position_bad" edit_format="radio" data_type="integer" can_backup="1">
      <default_value>0</default_value>
      <edit_format_params>1=Avatar before title
0=Avatar before username
2=Avatar disabled</edit_format_params>
      <sub_options></sub_options>
      <relation group_id="ForumHome_resources" display_order="70"/>
    </option>
    <option option_id="category_options" edit_format="radio" data_type="integer" can_backup="1">
      <default_value>0</default_value>
      <edit_format_params>1=Static categories
0=Dynamic Categories</edit_format_params>
      <sub_options></sub_options>
      <relation group_id="ForumHome_resources" display_order="50"/>
    </option>
    <option option_id="category_per_page" edit_format="spinbox" data_type="positive_integer" can_backup="1">
      <default_value>10</default_value>
      <edit_format_params>min=1</edit_format_params>
      <sub_options></sub_options>
      <relation group_id="ForumHome_resources" display_order="1"/>
    </option>
    <option option_id="latestresource_per" edit_format="spinbox" data_type="positive_integer" can_backup="1">
      <default_value>5</default_value>
      <edit_format_params>min=1</edit_format_params>
      <sub_options></sub_options>
      <relation group_id="ForumHome_resources" display_order="1"/>
    </option>
    <option option_id="randomresource_per" edit_format="spinbox" data_type="integer" can_backup="1">
      <default_value>5</default_value>
      <edit_format_params>min=1</edit_format_params>
      <sub_options></sub_options>
      <relation group_id="ForumHome_resources" display_order="1"/>
    </option>
    <option option_id="resource_column_hs" edit_format="checkbox" data_type="array" can_backup="1">
      <default_value>1</default_value>
      <edit_format_params>0=Categories
1=Most Popular Resources
2=Latest Resources
3=Random Resources</edit_format_params>
      <sub_options>0
1
2
3</sub_options>
      <relation group_id="ForumHome_resources" display_order="50"/>
    </option>
    <option option_id="topresource" edit_format="spinbox" data_type="positive_integer" can_backup="1">
      <default_value>5</default_value>
      <edit_format_params>min=1</edit_format_params>
      <sub_options></sub_options>
      <relation group_id="ForumHome_resources" display_order="1"/>
    </option>
  </optiongroups>
  <permissions>
    <permission_groups/>
    <permissions/>
    <interface_groups/>
  </permissions>
  <phrases>
    <phrase title="LatestResources" global_cache="1" version_id="1" version_string="1.0"><![CDATA[Latest Resources]]></phrase>
    <phrase title="MostPopularResources" global_cache="1" version_id="1" version_string="1.0"><![CDATA[Most Popular Resources]]></phrase>
    <phrase title="option_avatar_position_bad" version_id="1" version_string="2.1.0"><![CDATA[Avatar position]]></phrase>
    <phrase title="option_avatar_position_bad_explain" version_id="1" version_string="2.1.0"><![CDATA[]]></phrase>
    <phrase title="option_category_options" version_id="1" version_string="2.1.0"><![CDATA[Category options]]></phrase>
    <phrase title="option_category_options_explain" version_id="1" version_string="2.1.0"><![CDATA[]]></phrase>
    <phrase title="option_category_per_page" version_id="1" version_string="1.0"><![CDATA[Number of categories to display]]></phrase>
    <phrase title="option_category_per_page_explain" version_id="1" version_string="2.1.0"><![CDATA[]]></phrase>
    <phrase title="option_group_ForumHome_resources" version_id="1" version_string="1.0"><![CDATA[FireDaemon - Resources On ForumHome]]></phrase>
    <phrase title="option_group_ForumHome_resources_description" version_id="1" version_string="1.0"><![CDATA[Show resources directly on ForumHome.]]></phrase>
    <phrase title="option_latestresource_per" version_id="1" version_string="1.0"><![CDATA[Number of most popular resources to display]]></phrase>
    <phrase title="option_latestresource_per_explain" version_id="1" version_string="2.1.0"><![CDATA[]]></phrase>
    <phrase title="option_randomresource_per" version_id="1" version_string="2.1.0"><![CDATA[Number of random resources to display]]></phrase>
    <phrase title="option_randomresource_per_explain" version_id="1" version_string="1.0"><![CDATA[]]></phrase>
    <phrase title="option_resource_column_hs" version_id="1" version_string="2.1.0"><![CDATA[Resource Columns]]></phrase>
    <phrase title="option_resource_column_hs_explain" version_id="1" version_string="2.1.0"><![CDATA[]]></phrase>
    <phrase title="option_topresource" version_id="1" version_string="1.0"><![CDATA[Number of latest resources to display]]></phrase>
    <phrase title="option_topresource_explain" version_id="1" version_string="2.1.0"><![CDATA[]]></phrase>
    <phrase title="RandomResources" global_cache="1" version_id="1" version_string="1.0"><![CDATA[Random Resources]]></phrase>
    <phrase title="ResourceCategories" global_cache="1" version_id="1" version_string="1.0"><![CDATA[Resource Categories]]></phrase>
  </phrases>
  <route_prefixes/>
  <style_properties/>
  <templates>
    <template title="forum_home.css" version_id="1" version_string="2.1.0"><![CDATA[.resource_avatar
.avatar img {
    height: 20px;
    width: 20px;
    vertical-align: middle;
}

.forum_home img{
vertical-align: text-top;
}]]></template>
  </templates>
  <public_template_modifications>
    <modification template="forum_list" modification_key="resourceonforumhome" description="to show resources on forum" execution_order="10" enabled="1" action="str_replace">
      <find><![CDATA[<xen:h1>{$xenOptions.boardTitle}</xen:h1>]]></find>
      <replace><![CDATA[<xen:require css="forum_home.css" />
<xen:require css="resource_list.css" />
<xen:require css="resource_list_mini.css" />
<xen:h1>{$xenOptions.boardTitle}</xen:h1>
<xen:if is="{$hideall}">
<ol id="forums" class="nodeList sectionMain">
<li id="general.1" class="node category level_1 node_1">
<xen:if is="{$categorieshideshow}"><div style="float:left; width:{$wth};height:auto;"><div >
    <div class="nodeInfo categoryNodeInfo categoryStrip">    <h3 class="nodeTitle">{xen:phrase ResourceCategories}</h3></div>
        
            <ol>
            <xen:foreach loop="$categories" value="$_category">
                <li class="{xen:if '{$_category.resource_category_id} == {$selectedCategoryId}', selected}">
                    <a href="{xen:link resources/categories, $_category}" {xen:if $_category.category_description, 'title="{xen:helper striphtml, $_category.category_description}" class="Tooltip" data-tipclass="resourceCategoryTooltip"'}>{$_category.category_title}</a>
                    
                </li>
            </xen:foreach>
            </ol>
    </div></div></xen:if>
<xen:if is="{$popularresource}">
<div class="resource_avatar" style="float:left; width:{$wth};padding-left:0.5%"><div><ol>
<div class="nodeInfo categoryNodeInfo categoryStrip"><h3 class="nodeTitle">{xen:phrase MostPopularResources}</h3></div>
<xen:foreach loop="$resources1" value="$resource">
    <li class="{$resource.resource_state}" style="vertical-align:top;">
        <div class="forum_home" style="width:auto">
<xen:if is="{$pos} == 1">
            <xen:avatar user="$resource" size="s" img="true" />
</xen:if>
<a  href="{xen:link resources, $resource}" class="resourceTitle">{$resource.title}</a>
     <xen:if is="{$pos} == 0"> 
     (<xen:avatar user="$resource" size="s" img="true" /> <xen:username user="$resource" rich="true" class="username" />)
      <xen:else /> 
     (<xen:username user="$resource" rich="true" class="username" />)
       </xen:if>
        <dt>{$resource.tag_line}</dt>
</div>
<div style="clear:both;"></div>
    </li>
</xen:foreach>
</ol></div></div></xen:if>
<xen:if is="{$latestresource}">
<div class="resource_avatar" style="float:left; width:{$wth};padding-left:0.5%"><div ><ol>
<div class="nodeInfo categoryNodeInfo categoryStrip"><h3 class="nodeTitle">{xen:phrase LatestResources}</h3></div>
<xen:foreach loop="$resources2" value="$resource">

    <li class="{$resource.resource_state}">
        <div class="forum_home" style="width:auto">
        <xen:if is="{$pos} == 1">
            <xen:avatar user="$resource" size="s" img="true" />
        </xen:if>

    <a  href="{xen:link resources, $resource}" class="resourceTitle">{$resource.title}</a>
        <xen:if is="{$pos} == 0">
        (<xen:avatar user="$resource" size="s" img="true" /> <xen:username user="$resource" rich="true" class="username" />)
        
        <xen:else />
            (<xen:username user="$resource" rich="true" class="username" />)
        </xen:if>
        <dt>{$resource.tag_line}</dt>

</div>
<div style="clear:both;"></div>
    </li>
</xen:foreach>
</ol></div></div></xen:if>
<xen:if is="{$randomresource}">
<div class="resource_avatar" style="float:left; width:{$wth};padding-left:0.5%"><div ><ol>
<div class="nodeInfo categoryNodeInfo categoryStrip"><h3 class="nodeTitle">{xen:phrase RandomResources}</h3></div>
<xen:foreach loop="$resources3" value="$resource">
    <li class="{$resource1.resource_state}">
        <div class="forum_home" style="width:auto">
<xen:if is="{$pos} == 1">
<xen:avatar user="$resource" size="s" img="true" />
</xen:if>

 <a style="" href="{xen:link resources, $resource}" class="resourceTitle">{$resource.title}</a>
        <xen:if is="{$pos} == 0">
            (<xen:avatar user="$resource" size="s" img="true" /> <xen:username user="$resource" rich="true" class="username" />)
        <xen:else />
            (<xen:username user="$resource" rich="true" class="username" />)
        
         </xen:if>
        <dt>{$resource.tag_line}</dt>

</div>
<div style="clear:both;"></div>
    </li>
</xen:foreach>
</ol></div></div></xen:if></li><div style="clear:left"></div></ol>
<div style="clear:left"></div></xen:if>]]></replace>
    </modification>
     <modification template="PAGE_CONTAINER" modification_key="firedaemon_hook" description="" execution_order="15" enabled="1" action="str_replace" group="">
      <find><![CDATA[<div class="breadBoxBottom">]]></find>
    <replace><![CDATA[<div class="breadBoxBottom"><div align="center">Powered by <a href="http://firedaemon.com">FireDaemon</a></div>]]></replace>
    </modification>
  </public_template_modifications>
  <bb_code_media_sites/>
</addon>
 
Mirovinger, спасибо! сейчас опробую
Мега респект. теперь работает. Думаю стоит добавить к обновлениям ресурса данный фикс
 
Последнее редактирование:
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу