#LighT Posted March 13, 2017 Report Posted March 13, 2017 Salut cum pot muta total topics sub forum icon ca aici? Am cautat pe tot forumul dar nu am gasit raspuns din pacate http://m.imgur.com/P1ZLAVV
+d@niel Posted March 14, 2017 Report Posted March 14, 2017 lasa link de la forumul respectiv si o sa te ajute cine poate.
+Andreeas Z. Posted March 14, 2017 Report Posted March 14, 2017 Trebuie sa inlocuiesti f_icons , este cam complicat pentru un incepator sa rescrie codurile acelea. Nu incurajez copiatul , te poti gandii la o alta forma daca vrei sa fii original.
#LighT Posted March 14, 2017 Author Report Posted March 14, 2017 (edited) Spoiler Quote <if test="$this->settings['hoverDescriptions']='no'"></if> <if test="$this->settings['removeStatsColumn']='no'"></if> <if test="$this->settings['customForumIcons']='no'"></if> <!-- --> {parse js_module="board"} {parse variable="sidebar_enabled" default="$show_side_blocks"} <if test="boardIndexTop:|:true"></if> <div id='board_index' class='ipsLayout <if test="sideBarEnabledL:|:$this->templateVars['sidebar_enabled']">ipsLayout_withright</if> ipsLayout_largeright clearfix <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">no_sidebar</if>'> <div id='categories' class='ipsLayout_content clearfix'> <!-- CATS AND FORUMS --> <if test="cats_forums:|:is_array( $cat_data ) AND count( $cat_data )"> <foreach loop="categories:$cat_data as $_data"> <if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )"> <div id='category_{$_data['cat_data']['id']}' class='category_block block_wrap'> {parse replacement="header_start"} <h3 class='maintitle'> <a class='toggle right' href='#' title="{parse expression="sprintf( $this->lang->words['toggle_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}">{parse expression="sprintf( $this->lang->words['toggle_cat'], $_data['cat_data']['name'] )"}</a> <div class='mticon'><php> $icon = ''; switch ($_data['cat_data']['name']){ case 'ADMINISTRAȚIE & DEZVOLTARE': $icon ='<i class="ion-arrow-graph-up-right" aria-hidden="true"></i>'; break; case 'SERVERE PUBLICE ONLINE': $icon ='<i class="ion-ios-game-controller-b" aria-hidden="true"></i>'; break; case 'CATEGORIA GENERALĂ': $icon = '<i class="fa fa-area-chart fa-lg"></i>'; break; case 'LUMEA JOCURILOR': $icon = '<i class="fa fa-globe fa-lg"></i>'; break; } </php> {$icon}</div> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{parse expression="sprintf( $this->lang->words['view_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}'>{$_data['cat_data']['name']}</a> </h3>{parse replacement="header_end"} <div class='ipsBox clearfix'><div class='ipsBox table_wrap removeDefault'> <div class='ipsBox_container'> <table class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_data']['name']}'"> <tr class='header hide'> <th scope='col' class='col_c_icon'> </th> <th scope='col' class='col_c_forum'>{$this->lang->words['cat_name']}</th> <if test="$this->settings['removeStatsColumn']=='no'"><th scope='col' class='col_c_stats stats'>{$this->lang->words['stats']}</th></if> <if test="canSeeLastInfoHeader:|:$this->memberData['gbw_view_last_info']"><th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th></if> </tr> <!-- / CAT HEADER --> <foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data"> <if test="forumRedirect:|:$forum_data['redirect_on']"> <tr class='redirect_forum' id='f_{$forum_data['id']}'> <td class='col_c_icon'> <if test="$this->settings['customForumIcons']=='yes'"> <php> $imageURL = "{$this->settings['img_url']}"; $imageFolder = basename($imageURL); $forumId = $forum_data['id']; </php> <if test="is_file( DOC_IPS_ROOT_PATH . '/' . PUBLIC_DIRECTORY . '/style_images/' . $imageFolder . '/forum_images/' . $forumId . '.png' )"> <img src="{style_images_url}/forum_images/{$forum_data['id']}.png" alt="" /> <else /> <img src="{style_images_url}/forum_images/default.png" alt="" /> </if> <else /> <div class='col_c_narf .forumIcon_259'><i class="$icon" style="color: #26a65b;"></i></div> </if> </td> <td <if test="$this->settings['removeStatsColumn']=='no'"><if test="canSeeLastInfoRedirect:|:$this->memberData['gbw_view_last_info']">colspan='2'</if></if> class='col_c_forum'> <h4 class='forum_name'><strong class='highlight_unread'><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{parse expression="IPSText::striptags( IPSText::htmlspecialchars( $forum_data['name'] ) )"}'>{$forum_data['name']}</a></strong></h4> <if test="$forum_data['description']"><if test="$this->settings['hoverDescriptions']=='yes'"><span class='forum_desc_pos'><span class='forum_desc_con'><span class='forum_description'>{$forum_data['description']}</span></span></span><else /><p class='desc forum_desc'>{$forum_data['description']}</p></if></if> </td> <td class='desc'> <ul class='last_post ipsType_small'> <li class='desc lighter'><em><font style="font-weight: bold; font-size: 12px;">{parse format_number="$forum_data['redirect_hits']"}</font> {$this->lang->words['rd_hits']}</em></li> </ul> </td> </tr> <else /> <tr class='<if test="hasUnreadClass:|:$forum_data['_has_unread']">unread<else />notnew</if>'> <if test="hasUnread:|:$forum_data['_has_unread']"> <a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&returntoforumid={$this->request['f']}&i=1" base="public"}" class='forum_marker'> <if test="$this->settings['customForumIcons']=='yes'"> <php> $imageURL = "{$this->settings['img_url']}"; $imageFolder = basename($imageURL); $forumId = $forum_data['id']; </php> <if test="is_file( DOC_IPS_ROOT_PATH . '/' . PUBLIC_DIRECTORY . '/style_images/' . $imageFolder . '/forum_images/' . $forumId . '.png' )"> <img src="{style_images_url}/forum_images/{$forum_data['id']}.png" alt="" /> <else /> </if> <else /> </if> </a> <else /> <if test="$this->settings['customForumIcons']=='yes'"> <php> $imageURL = "{$this->settings['img_url']}"; $imageFolder = basename($imageURL); $forumId = $forum_data['id']; </php> <if test="is_file( DOC_IPS_ROOT_PATH . '/' . PUBLIC_DIRECTORY . '/style_images/' . $imageFolder . '/forum_images/' . $forumId . '.png' )"> <img src="{style_images_url}/forum_images/{$forum_data['id']}.png" alt="" <if test="$this->memberData['member_id']">class='fadedForumIcon'</if> /> <else /> <img src="{style_images_url}/forum_images/default.png" alt="" <if test="$this->memberData['member_id']">class='fadedForumIcon'</if> /> </if> <else /> <php> $total_topics_posts = $days = ereg_replace("[^0-9]", "", $forum_data['topics']) + $days = ereg_replace("[^0-9]", "", $forum_data['posts']); /*$total_topics_posts = number_format($total_topics_posts, null, '.', '.');*/ </php> <if test="!in_array($forum_data['id'], array(14, 68))"> <if test="$_data['cat_data']['id'] != 0"> <if test="$this->settings['removeStatsColumn']=='no'"> <td style='width: 7%;'><span class='nstatsNumber'><i style="color: #232323" class="fa fa-bar-chart" aria-hidden="true"></i><span class='nstatsText'>{$forum_data['topics']}</span></td> </td> </if> </if> </td> <td class='col_c_forum' <if test="in_array($forum_data['id'], array(14, 68))">colspan='4'</if>> <h4 class='forum_name'> <if test="hasQueuedAndCanSeeIcon:|:!empty($forum_data['_has_queued_and_can_see_icon'])"> <a href='{parse url="showforum={$forum_data['id']}&modfilter=unapproved" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['view_unapproved']}' class='ipsBadge ipsBadge_orange' data-tooltip="{parse expression="sprintf( $this->lang->words['f_queued'], $forum_data['queued_topics'], $forum_data['queued_posts'])"}" style='vertical-align: top'>{$this->lang->words['f_queued_badge']}</a> </if> <strong class='highlight_unread'><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{parse expression="IPSText::striptags( IPSText::htmlspecialchars( $forum_data['name'] ) )"}'>{$forum_data['name']}</a></strong> <if test="$this->settings['customForumIcons']=='yes'"><if test="$forum_data['_has_unread']"></if></if> </h4> <if test="$forum_data['description']"><if test="$this->settings['hoverDescriptions']=='yes'"><span class='forum_desc_pos'><span class='forum_desc_con'><span class='forum_description'>{$forum_data['description']}</span></span></span><else /><p class='desc forum_desc'>{$forum_data['description']}</p></if></if> <if test="$this->settings['removeStatsColumn']=='yes'"><div class='forum_stats'><span>{$this->lang->words['topics']}:</span> {$forum_data['topics']} <span>{$this->lang->words['replies']}:</span> {$forum_data['posts']}</div></if> <if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']"> <ol class='ipsList_inline ipsType_small subforums2' id='subforums_{$forum_data['id']}' <if test='in_array($forum_data['id'], array(14, 999))'>style='width: 25%;'</if>> <foreach loop="subforums:$forum_data['subforums'] as $__id => $__data"> </ol> <ol class='ipsList_inline ipsType_small subforums3' id='subforums_{$forum_data['id']}' <if test='in_array($forum_data['id'], array(14, 999))'>style='width: 25%;'</if>> <if test="showSubForumsLit:|:$__data[3]"> <li class='unread'> <else /> <li> </if> </foreach> </ol> <ol class='ipsList_inline ipsType_small subforums' id='subforums_{$forum_data['id']}' <if test='in_array($forum_data['id'], array(14, 999))'>style='width: 25%;'</if>> <foreach loop="subforums:$forum_data['subforums'] as $__id => $__data"> </ol> <ol class='ipsList_inline ipsType_small subforums1' id='subforums_{$forum_data['id']}' <if test='in_array($forum_data['id'], array(999))'>style='width: 25%;'</if>> <if test="showSubForumsLit:|:$__data[3]"> <li class='unread'> <else /> <li> </if> <a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$__data[1]}</a> </li> </foreach> </ol> </if> </td> </if></ul> </td></if> <if test="canSeeLastInfo:|:$this->memberData['gbw_view_last_info']"> <td class='col_c_post'> <if test="hideLastInfo:|:$forum_data['hide_last_info']"> <ul class='last_post'> <li class='desc lighter'><em>{$this->lang->words['f_protected']}</em></li> </ul> <else /> <if test="hideTopicInTitle:|:$forum_data['_hide_last_date']"> {parse template="userSmallPhoto" group="global" params="array('member_id' => $forum_data['last_poster_id'], 'members_seo_name' => $forum_data['seo_last_name'], 'pp_small_photo' => $forum_data['pp_small_photo'], 'alt' => '' )"} <else /> {parse template="userSmallPhoto" group="global" params="array('member_id' => $forum_data['last_poster_id'], 'members_seo_name' => $forum_data['seo_last_name'], 'pp_small_photo' => $forum_data['pp_small_photo'], 'alt' => sprintf( $this->lang->words['bindex_userphoto_alt'], $forum_data['last_title'], $forum_data['members_display_name'] ) )"} </if> <ul class='last_post ipsType_small'> <if test="!$forum_data['last_id']"> <li class='desc lighter'><em>{$this->lang->words['f_none']}</em></li> <else /> <li> <span class='highlight_unread'>{$forum_data['last_topic_title']} <i id="colci" class="fa fa-commenting"></i></span> </li> <li> <span class='desc lighter blend_links'> <if test="hideDateUrl:|:$forum_data['_hide_last_date']"> {parse date="$forum_data['last_post']" format="DATE"} <else /> <a href='{parse url="showtopic={$forum_data['last_id']}&view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse date="$forum_data['last_post']" format="DATE"}</a> </if></span> <if test="lastPosterID:|:$forum_data['last_poster_id']"> {$this->lang->words['by']} {parse template="userHoverCard" group="global" params="$forum_data"} </if> </li> </if> </ul> </if> </td></if></if></if> </tr> </if> </foreach> </table> </div></div> </div>{parse replacement="box_end"} <br /> </div> </if> </foreach> </if> </div> <if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']"> <div id='index_stats' class='ipsLayout_right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>> <if test="memberbox:|:$this->memberData['member_id']"> </if> <foreach loop="side_blocks:$side_blocks as $block"> {$block} </foreach> </div> <a href='#' id='toggle_sidebar' title='{$this->lang->words['toggle_sidebar']}' data-closed="{$this->lang->words['_laquo']}" data-open="×"> </a> </if> </div> <script type='text/javascript'> //<![CDATA[ var markerURL = ipb.vars['base_url'] + "app=forums&module=ajax§ion=markasread&i=1"; // Ajax URL so don't use & var unreadIcon = "<i class='fa fa-comments' style='color: #555; border-color: #555;'></i>"; <if test="markercatforums:|:is_array( $cat_data ) AND count( $cat_data )"> <foreach loop="markercategories:$cat_data as $_data"> <if test="markerhasforums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )"> <foreach loop="markerforums:$_data['forum_data'] as $forum_id => $forum_data"> <if test="markernotredirect:|:!$forum_data['redirect_on']"> <if test="markerhasunread:|:$forum_data['_has_unread']"> ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" ); </if> </if> </foreach> </if> </foreach> </if> //]]> </script> <div class='special_border'></div> <div class="stats"> <if test="showTotals:|:$this->settings['show_totals']"> <table style="width: 100%; text-align: center; background: none;"> <tbody><tr> <td style="width: 19%; background: none;letter-spacing: 1px;color: #bcbcbc;text-transform: uppercase;"><div style="font-size: 20px;">{$stats['info']['total_posts']}</div><br>Total Posts</td> <td style="width: 16%; background: none;letter-spacing: 1px;color: #bcbcbc;text-transform: uppercase;"><div style="font-size: 20px">{parse format_number="$this->caches['stats']['total_topics']"}</div><br>Total topics</td> <td style="width: 16%; background: none;letter-spacing: 1px;color: #bcbcbc;text-transform: uppercase;"><div style="font-size: 20px">{$stats['info']['mem_count']}</div><br>Total Members</td> <td style="width: 16%; background: none; border-right: 1px solid #444;letter-spacing: 1px;color: #bcbcbc;text-transform: uppercase;"><div style="font-size: 20px" data-tooltip="31 oct 2015">{$stats['info']['most_online']}</div><br>Most Online</td> <td style="background: none; text-align: left; padding-left: 10px;"> <div style="float: left; padding-right: 10px;"><img src="{$link_avatar}" width="45"></div> <php> $link_avatar = 'http://i.imgur.com/2QCNnUm.png'; // avatar-ul default ipsRegistry::DB()->build( array('select' => 'pp_main_photo', 'from' => 'profile_portal', 'where' => 'pp_member_id = ' . $stats['info']['last_mem_id'] ) ); $rezultat = ipsRegistry::DB()->execute(); if(ipsRegistry::DB()->getTotalRows() > 0) { $rand_user = ipsRegistry::DB()->fetch($rezultat); if($rand_user['pp_main_photo'] != '') { $link_avatar = $this->settings['board_url'] . '/uploads/' . $rand_user['pp_main_photo']; } } </php> <div style="font-size: 15px;"><span class="value">{IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}</span></div><br></div>Newest Member</td> </tr> </tbody></table> </div> </if> <br /> <div id='board_statistics' class='statistics clearfix'> <h4 class='statistics_head clearfix'><ul id='stat_links' class='ipsList_inline right ipsType_small'> <if test="statsLinks:|:1==1"> <!-- Hook point --> <li><a href="{parse url="app=forums&module=extras&section=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li> <li><a href="{parse url="app=forums&module=extras&section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li> <li><a href="{parse url="app=members&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public" seotitle="false"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li> <if test="reputationEnabled:|:$this->settings['reputation_enabled']"> <li> <a href="{parse url="app=members&module=reputation&section=most" base="public" template="most_liked" seotitle="most_liked"}"> <if test="reputationType:|:$this->settings['reputation_point_types'] == 'like'"> {$this->lang->words['most_rep_likes']} <else /> {$this->lang->words['most_rep_rep']} </if> </a> </li> </if> </if> </ul> <if test="showActive:|:$this->settings['show_active'] && $this->memberData['gbw_view_online_lists']">{parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"} {$this->lang->words['active_users']}</if></h4> <if test="$this->settings['show_active']"><p class='statistics_brief desc'> {parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"} <if test="onlineListEnabled:|:$this->settings['allow_online_list']"> <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>({$this->lang->words['online_link']})</a> </if> </p></if> <if test="activeNames:|:count($stats['NAMES']) && $this->settings['show_active']"> <br /> <p> <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span> </p> </if> </div> Nu stiu daca am buguit ceva dar rezultatul arata binisor Edited March 14, 2017 by gadeas Adaugat spoiler
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now