Весь контент Ciko
-
Проблема из шириной хуков
Отключите хук и посматрите.
-
Проблема из шириной хуков
А что за хук? и можна ссылку указать в профиле на свой форум.
-
userInfoPane Изменение внешный вид
Админ Панель-Внешний вид-Ваш стиль-Глобальные-userInfoPane заменить все на: <div itemscope itemtype="http://schema.org/Person" class='user_details'> <span class='hide' itemprop="name">{$author['members_display_name']}</span> <ul class='basic_info'><if test="membertitle:|:$author['member_title']"> <li> <span class="ft"></span> <span class="fc">{$author['member_title']}</span> </li> </if> <if test="avatar:|:$author['member_id']"> <li class='avatar'> <if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )"> <a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'> </if> <if test="hasVariable:|:$this->settings['member_topic_avatar_max']"> <img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' /> <else /> <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' /> </if> <if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )"> </a> </if> </li> <else /> <li class='avatar'> <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' /> </li> </if> </li> </if> </ul> <if test="authorcfields:|:$author['custom_fields'] != """> <ul class='user_fields'> <if test="authorwarn:|:$author['show_warn']"> <li> <if test="hasWarningId:|:$options['wl_id']"> <img src='{$this->settings['img_url']}/warn.png' class='clickable' onclick='warningPopup( this, {$options['wl_id']} )' title='{$this->lang->words['warnings_issued']}' /> </if> <a class='desc lighter blend_links' href='{parse url="app=members&module=profile§ion=warnings&member={$author['member_id']}&from_app={$this->request['app']}&from_id1={$contentid}&from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'>{parse expression="sprintf( $this->lang->words['warn_status'], $author['warn_level'] )"}</a> </li> </if> <li> <span class="ft">Группа:</span> <span class="fc">{$author['_group_formatted']}</span> </li> <if test="postCount:|:$author['member_id']"> <li> <span class="ft">Postów:</span> <span class="fc">{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</span> </li> <li> <span class="ft">Репутация:</span> <span class="fc">{parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</span> </li> </if> <li> <span class="ft">Регистрация:</span> <span class="fc">{parse date="$author['joined']" format="DATE"}</span> </li> <foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data"> <foreach loop="customFields:$author['custom_fields'][ $group ] as $field"> <if test="$field != ''"> <li> {$field} </li> </if> </foreach> </foreach> </ul> </if> </div>Админ Панель-Внешний вид-Ваш стиль-css-ipb_styles.css добавить у самий ныз: /************************************************************************//* ipb-board.com */.author_info { width: 185px; float: left; font-size: 12px; text-align: center; padding: 10px 0px 0px 0px; line-height: 150%;} .author_info .group_title { font-weight: bold; color: #202020; margin-top: 5px; } .author_info .member_title { margin-bottom: 5px; } .author_info .group_icon { margin-bottom: 3px; } .author_info li.avatar, .author_info li.group_icon, .author_info li.title { text-align: center; text-shadow: 0 1px 0 #FFFFFF; } .author_info ul.user_fields li { clear: both; /*font-size: 0.9em;*/ padding-bottom: 2px; overflow: hidden; border-bottom: 1px dashed #454545; } .author_info ul.user_fields { clear: both; } .author_info ul.user_fields li span.ft, .author_info ul.user_fields li span.fc { color: #818181; display: block; float: left; text-align: left; } .author_info ul.user_fields li span.ft { width: 38%; text-align: right; /*font-weight: bold;*/ padding: 0 0 0 4px; } .author_info ul.user_fields li span.fc { padding: 0 8px 0 4px; max-width: 50%; word-wrap: break-word; }/* ipb-board.com */
-
Картинки из вложений доступны пользователям, незарегистрированным
Я представляю так, чтобы картинки, являющиеся вложениями были видны не только для зарегистрированных и авторизованных пользователей на форуме IPB, но также для гостей и ботов, как Google. Перейти на FTP-Клиент. /admin/applications/core/sources/classes/attachВ функции renderAttachments() в линии 733 о прекращении петли if ( $this->settings['show_img_upload] and $row['attach_is_image] ) после команды: else {Ниже добавить: if ( $this->settings['show_img_upload'] == 0 and $row['attach_is_image'] ) {//Makensis dla Tweaks.pl v.1.0 attachments visible for unregistered users and unlogged forums IPBif ( $this->attach_settings['siu_thumb'] AND $row['attach_thumb_location'] AND $row['attach_thumb_width'] ){//-----------------------------------------// Make sure we've not seen this ID//----------------------------------------- $row['_attach_id'] = $row['attach_id'] . '-' . str_replace( array( '.', ' ' ), "-", microtime() ); $tmp = $this->registry->getClass('output')->getTemplate( $skin_name )->Show_attachments_img_thumb( array( 't_location' => $row['attach_thumb_location'],'t_width' => $row['attach_thumb_width'],'t_height' => $row['attach_thumb_height'], 'o_width' => $row['attach_img_width'],'o_height' => $row['attach_img_height'], 'attach_id' => $row['attach_id'],'_attach_id' => $row['_attach_id'],'location' => $row['attach_file']." Зарегистрируйтесь или войдите, чтобы увидеть фотографию в полном размере!",'type' => $this->type,'a_location' => $row['attach_location'],'attach_rel_id' => $row['attach_rel_id'] ) ); //-----------------------------------------// Convert HTML//----------------------------------------- $tmp = str_replace("lightbox", "", $tmp);$final_blocks[ $row['attach_rel_id'] ]['thumb'][] = $tmp;} }else {
-
Способ error: mySQL query error: UPDATE ibf_topics SET title_seo='-' WHERE tid=
Что делать в этой ситуации, когда у нас, например, такая ошибка: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Date: Mon, 14 Jan 2013 14:41:04 +0000 Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 IP Address: 82.160.150.181 - /topic/110723322399-test/ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- mySQL query error: UPDATE ibf_topics SET title_seo='-' WHERE tid=.--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------. | File | Function | Line No. | |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------| | admin/applications/forums/sources/classes/topics.php | [db_main_mysql].update | 1745 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | admin/applications/forums/modules_public/forums/topics.php | [app_forums_classes_topics].parseTopicForLineEntry | 1303 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | admin/applications/forums/modules_public/forums/topics.php | [public_forums_forums_topics]._getSameTaggedData | 304 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | admin/sources/base/ipsController.php | [public_forums_forums_topics].doExecute | 306 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'Перейти: /admin/applications/forums/sources/classesНайти: //-----------------------------------------// Rebuild SEO title on the fly, if needed//-----------------------------------------if( ! $topic['title_seo'] ){$topic['title_seo'] = IPSText::makeSeoTitle( $topic['title'] );$this->DB->update( 'topics', array( 'title_seo' => ( $topic['title_seo'] ) ? $topic['title_seo'] : '-' ), 'tid=' . $topic['tid'] );}Заменить на: //-----------------------------------------// Rebuild SEO title on the fly, if needed//-----------------------------------------if ($topic['tid']){if( ! $topic['title_seo'] ){$topic['title_seo'] = IPSText::makeSeoTitle( $topic['title'] );$this->DB->update( 'topics', array( 'title_seo' => ( $topic['title_seo'] ) ? $topic['title_seo'] : '-' ), 'tid=' . $topic['tid'] );}}
-
Спонсоры разные виды!
1) Выд: <!-- TABELKA START--><div id="" class="category_block block_wrap"> <h3 id="category_NAZWA" class="maintitle"> <a class="toggle right" title="Изменение видимости этой категории" href="#">Изменение видимости этой категории</a> <a title="Wyświetl kategorię" href="#">Партнеры</a> </h3><div class="table_wrap"><table class="ipb_table" summary="Форумы в категории 'Названые'"><tr class="row2"><td><center><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://pukawka.pl/_gfx/pukawka_logo.png" alt="Pukawka.pl"></a></center></td></tr></table></div></div> <!-- TABELKA KONIEC-->2) Выд: <!-- TABELKA START--><div id="" class="category_block block_wrap"> <h3 id="category_NAZWA" class="maintitle"> <a class="toggle right" title="Изменение видимости этой категории" href="#">Изменение видимости этой категории</a> <a title="Wyświetl kategorię" href="#">Партнеры</a> </h3><div class="table_wrap"><table class="ipb_table" summary="Форумы в категории 'Названые'"><tr class="row2"><td><center><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://pukawka.pl/_gfx/pukawka_logo.png" alt="Pukawka.pl"></a></center></td></tr> </table></div></div> <!-- TABELKA KONIEC-->3) Выд: <!-- TABELKA START--><div id="" class="category_block block_wrap"> <h3 id="category_NAZWA" class="maintitle"> <a class="toggle right" title="Изменение видимости этой категории" href="#">Изменение видимости этой категории</a> <a title="Wyświetl kategorię" href="#">Партнеры</a> </h3><div class="table_wrap"><table class="ipb_table" summary="Форумы в категории 'Названые'"><td><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://pukawka.pl/_gfx/pukawka_logo.png" alt="Pukawka.pl"></a></td><td><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://pukawka.pl/_gfx/pukawka_logo.png" alt="Pukawka.pl"></a></td><td><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://pukawka.pl/_gfx/pukawka_logo.png" alt="Pukawka.pl"></a></td></table></div></div> <!-- TABELKA KONIEC-->4) Выд: <!-- TABELKA START--><div id="" class="category_block block_wrap"> <h3 id="category_NAZWA" class="maintitle"> <a class="toggle right" title="Изменение видимости этой категории" href="#">Изменение видимости этой категории</a> <a title="Wyświetl kategorię" href="#">Партнеры</a> </h3><div class="table_wrap"><table class="ipb_table" summary="Форумы в категории 'Названые'"><td><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://pukawka.pl/_gfx/pukawka_logo.png" alt="Pukawka.pl"></a></td><td><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://pukawka.pl/_gfx/pukawka_logo.png" alt="Pukawka.pl"></a></td></table></div></div> <!-- TABELKA KONIEC-->5) Выд: <!-- TABELKA START--><div id="" class="category_block block_wrap"> <h3 id="category_NAZWA" class="maintitle"> <a class="toggle right" title="Изменение видимости этой категории" href="#">Изменение видимости этой категории</a> <a title="Wyświetl kategorię" href="#">Партнеры</a> </h3><div class="table_wrap"><table class="ipb_table" summary="Форумы в категории 'Названые'"><td><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://pukawka.pl/_gfx/pukawka_logo.png" alt="Pukawka.pl"></a></td><td><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://pukawka.pl/_gfx/pukawka_logo.png" alt="Pukawka.pl"></a></td><tr></tr><td><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://pukawka.pl/_gfx/pukawka_logo.png" alt="Pukawka.pl"></a></td><td><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://pukawka.pl/_gfx/pukawka_logo.png" alt="Pukawka.pl"></a></td></table></div></div> <!-- TABELKA KONIEC-->Пример: <!-- TABELKA START--><div id="" class="category_block block_wrap"> <h3 id="category_NAZWA" class="maintitle"> <a class="toggle right" title="Изменение видимости этой категории" href="#">Изменение видимости этой категории</a> <a title="Wyświetl kategorię" href="#">Реклама</a> </h3><div class="table_wrap"> <script type="text/javascript">// <![CDATA[Array.prototype.random = function(limit){if (typeof limit == 'undefined' || limit < 0) limit = 1;else if (!limit) limit = this.length;for (var i = 0, source = this, target = new Array(), n = source.length; i < limit && n > 0; i++){do { var index = Math.random(); } while (index == 1);index = Math.floor(index * n);target.push(source[index]);source[index] = source[--n];}return target;} document.write(new Array(// Tu wpisz kolejne elementy: '<center><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://pukawka.pl/_gfx/pukawka_logo.png" alt="Pukawka.pl"></a></center>','<center><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://6lat.pukawka.pl/img/pukawka_logo.png" alt="Pukawka.pl"></a></center>','<center><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://counter-strike-download.net/owo/pukawka_new_logo.png" alt="Pukawka.pl"></a></center>','<center><a target="_blank" href="http://www.pukawka.pl/" title="Pukawka.pl"><img src="http://6lat.pukawka.pl/img/pukawka_logo_2006.gif" alt="Pukawka.pl"></a></center>' ).random().join(''));// ]]></script> </table></div></div> <!-- TABELKA KONIEC-->
-
Количество зарегистрированных пользователей (сегодня) в статистике форума
Админ Панель-Внешний вид-Ваш стиль-Список форумов-boardIndexTemplate найти: <li class='clear'> <span class='value'>{$stats['info']['mem_count']}</span> {$this->lang->words['total_members']}</li>Ниже добавить: <php>$membersToday = ipsRegistry::DB()->buildAndFetch(array('select' => 'count(*) as ile', 'from' => 'members', 'where' => "FROM_UNIXTIME(joined, '%Y-%m-%d') = CURDATE()"));</php> <li class='clear'> <span class='value'>{$membersToday['ile']}</span> Зарегистрированные сегодня</li>
-
Изменение внешый вид статистики
Перейти Админ Панель-Внешний вид-Ваш стиль-Список форумов-boardIndexTemplate Найти: <if test="showTotals:|:$this->settings['show_totals']"> <div id='board_stats'> <ul class='ipsType_small ipsList_inline'> <li class='clear'> <span class='value'>{$stats['info']['total_posts']}</span> {$this->lang->words['total_posts']} </li> <li class='clear'> <span class='value'>{$stats['info']['mem_count']}</span> {$this->lang->words['total_members']} </li> <li class='clear'> {IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )} {$this->lang->words['newest_member']} </li> <li class='clear' data-tooltip="{$stats['info']['most_time']}"> <span class='value'>{$stats['info']['most_online']}</span> {$this->lang->words['online_at_once']} </li> </ul> </div></if><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§ion=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§ion=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§ion=most" base="public" template="most_liked" seotitle="most_liked"}" title="<if test="reputationTypeTitle:|:$this->settings['reputation_point_types'] == 'like'">{$this->lang->words['most_rep_likes']}<else />{$this->lang->words['most_rep_rep']}</if>"> <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"}' title='{$this->lang->words['online_link']}'>({$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>Заменить все на: <h3 id='category_stats' class='maintitle'> <a title='{$this->lang->words['board_stats']}'>{$this->lang->words['board_stats']}</a> <span class="right desc"> <if test="statsLinks:|:1==1"> <!-- Hook point --> <a href="{parse url="app=forums&module=extras§ion=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a> · <a href="{parse url="app=forums&module=extras§ion=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a> · <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> <if test="reputationEnabled:|:$this->settings['reputation_enabled']"> · <a href="{parse url="app=members&module=reputation§ion=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> </if> </if> </span></h3><div class='table_wrap'> <div id='board_statistics' class='category_block statistics clearfix stats_container row2 stats_border'> <if test="showTotals:|:$this->settings['show_totals']"> <div id='stats'> <h2>{$this->lang->words['board_stats']}</h2> <dl> <dt> {$this->lang->words['total_posts']} </dt> <dd> {$stats['info']['total_posts']} </dd> <dt> {$this->lang->words['total_members']} </dt> <dd> {$stats['info']['mem_count']} </dd> <dt> {$this->lang->words['newest_member']} </dt> <dd> {IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )} </dd> <dt> {$this->lang->words['online_at_once']} </dt> <dd> {$stats['info']['most_online']}<br> <span class='extra'>{$stats['info']['most_time']}</span> </dd> <dt> </dt> <dd> </dd> </dl> </div> </if> <div id='active_users' class='stats_list'> <if test="showActive:|:$this->settings['show_active'] && $this->memberData['gbw_view_online_lists']"> <h2> {parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"} <span>{$this->lang->words['active_users']}</span><br> <span class='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> </span> </h2> </if> <if test="activeNames:|:count($stats['NAMES']) && $this->settings['show_active']"> <p> <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span> </p> </if> </div> </div></div>Админ Панель-Внешний вид-Ваш стиль-сss-ipb_styles.css найти: "/* board stats */"до самого конца этого div'у /* board stats */#board_stats ul { text-align: center; } #board_stats li { margin-right: 20px; } #board_stats .value { display: inline-block; background: #e2e2e2; color: #4a4a4a; padding: 2px 6px; font-weight: bold; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; margin-right: 3px; }.statistics { margin: 10px 0 0; min-height: 160px; padding: 15px;}.statistics h2 { font-size: 1.1em; font-weight: bold;}.statistics h2 span { color: #8D8D8D; font-size: 0.8em; font-weight: normal;}.statistics #active_users, .statistics #forum_active_users { border-top: 0 none; padding-top: 0;}body #topic_stats.statistics {min-height: 50px;}body .stats_list {border-top: 1px solid #F5F5F5;float: left;font-size: 12px;line-height: 140%;margin-bottom: 10px;overflow: hidden;padding: 10px 0 0;width: 68%;}.stats_list li, .active_users li {float: left;/*font-size: 0.9em;*/margin-top: 4px;padding: 0 5px 0 0;}.stats_list ul, .stats_list p {margin-left: 15px;}.stats_list span.desc {font-weight: normal;}.active_users span.name {font-size: 0.9em;margin-top: 4px;padding: 0 5px 0 0;}.active_users p {margin-left: 15px;}#stats {border-left: 1px solid #393939;float: right;padding-left: 20px;width: 30%;}#stats dl {margin-left: 10px;}#stats dt {border-top: 1px solid #393939;float: left;font-size: 0.85em;padding: 6px 2px;width: 45%;}#stats dd {border-top: 1px solid #393939;float: left;font-size: 0.85em;padding: 6px 3px;width: 45%;}#stats dt {clear: both;font-weight: bold;}#stats .extra {color: #A2A2A2;font-size: 0.9em;}.stats_container {margin-top: 0 !important;padding-right: 0 !important;position: relative;}.stats_container #stats {border-left: 1px solid #393939;border-radius: 0 2px 2px 0;bottom: 0;padding-left: 15px;padding-top: 15px;position: absolute;right: 0;top: 0;}.stats_border, .help_doc {border: 1px solid #393939;}#index_stats .hentry, .row1 td, .row2 td, #help_topics li {border-bottom: 1px solid #393939;border-top: 1px solid #393939;}#premium_ads {background: none repeat scroll 0 0 #3076A8;border-radius: 2px 2px 2px 2px;color: #FFFFFF;display: inline-block;font-size: 11px;padding: 2px 4px;text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);}#premium_ads a {color: #FFFFFF;}#ads {font-size: 11px;}#ads_banner {opacity: 0.6;}#ads_banner a:hover, #ads_banner:hover, #ads_banner a:active {opacity: 1;}.friend_list ul li,#top_posters li { text-align: center; padding: 8px 0 0 0; margin: 5px 0 0 0; min-width: 80px; height: 70px; float: left;} .friend_list ul li span.name, #top_posters li span.name { font-size: 0.8em; } #hook_watched_items ul li { padding: 8px;} body#ipboard_body #hook_watched_items fieldset.submit { padding: 8px; } #hook_birthdays .list_content { padding-top: 8px;}#hook_calendar .ipsBox_container { padding: 10px; }#hook_calendar td, #hook_calendar th { text-align: center; }#hook_calendar th { font-weight: bold; padding: 5px 0;}
-
userInfoPane новий вид
Админ Панель-Внешний вид-Ваш стиль-Глобальные-userInfoPane заменить все на: <div class="test_userinfo" itemscope="" itemtype="http://schema.org/Person"><div itemscope itemtype="http://schema.org/Person" class='user_details'> <span class="hide" itemprop="name"> {$author['members_display_name']} </span><div class="test_userinfo_bg" style='<if test="hasBodyCustomization:|:$author['customization']['bg_color'] OR $author['customization']['_bgUrl']"> <if test="hasBackgroundColor:|:$author['customization']['bg_color']">background-color: #{$author['customization']['bg_color']} !important; </if> <if test="hasBackgroundImage:|:$author['customization']['_bgUrl']"> background-image: url("{$author['customization']['_bgUrl']}?nc={$author['pp_profile_update']}") !important;margin-bottom: -60px !important; <if test="backgroundIsFixed:|:! $author['customization']['bg_tile']"> background-color: #FFFFFF !important;background-position: 50% 50%;background-repeat: no-repeat;-webkit-background-size: 100% 100%;-moz-background-size: 100% 100%;background-size: 100% 100% !important;height: 110px;width: 197px;margin-left: 0px !important;margin: -9px -9px 0 -9px; <else /> background-position: 0px 0px; background-attachment: fixed; background-repeat: repeat; </if> </if></if>'></div> <div class="test_userinfo_b1"> <if test="avatar:|:$author['member_id']"> <if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )"> <if test="hasVariable:|:$this->settings['member_topic_avatar_max']"> <img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' /> <else /> <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' /> </if> </if> </if> </div> <div class="test_userinfo_b3"><if test="pmlink:|:($author['member_id'] != $this->memberData['member_id']) AND $this->memberData['g_use_pm'] AND $this->memberData['members_disable_pm'] == 0 AND IPSLib::moduleIsEnabled( 'messaging', 'members' ) AND $author['members_disable_pm'] == 0"><a class='pm_button ipsButton_secondary ipsType_smaller' id='pm_xxx_{$author['member_id']}' href='{parse url="app=members&module=messaging§ion=send&do=form&fromMemberID={$member['member_id']}" base="public"}' title='{$this->lang->words['pm_this_member']}' class='ipsButton_secondary'><img src='{style_images_url}/emailbg_open.png' alt='' /></a> </if><if test="noFriendYourself:|:$this->memberData['member_id'] AND $this->memberData['member_id'] != $author['member_id'] && $this->settings['friends_enabled'] AND $this->memberData['g_can_add_friends']"> <if test="isFriend:|:IPSMember::checkFriendStatus( $author['member_id'] )"> <a class='pm_button ipsButton_secondary ipsType_smaller' href='{parse url="app=members§ion=friends&module=profile&do=remove&member_id={$author['member_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['remove_friend']}'><img src='{style_images_url}/profile_userbg_delete.png' alt='{$this->lang->words['remove_friend']}' /></a> <else /> <a class='pm_button ipsButton_secondary ipsType_smaller' href='{parse url="app=members§ion=friends&module=profile&do=add&member_id={$author['member_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['add_friend']}'><img src='{style_images_url}/profile_userbg_add.png' alt='{$this->lang->words['add_friend']}' /></a> </if> </if><if test="$author['field_3']"> <a href="{$author['field_3']}" target="_blank" class="ipsButton_secondary ipsType_smaller"><img src="{style_images_url}/profile_websitebg.png" style="width:20px;"></a><else /><a style="opacity:0.2" target="_blank" class="ipsButton_secondary ipsType_smaller"><img style="width:20px;" src="{style_images_url}/profile_websitebg.png"></a></if><if test="$author['field_10']"> <a href=skype:{$author['field_10']}?call target="_blank" class="ipsButton_secondary ipsType_smaller"><img style="width:20px;" src="{style_images_url}/profile_skypebg.png"></a><else /><a style="opacity:0.2" target="_blank" class="ipsButton_secondary ipsType_smaller"><img style="width:20px;" src="{style_images_url}/profile_skypebg.png"></a></if><if test="$author['field_17']"><a href="{$author['field_17']}" target="_blank" class="ipsButton_secondary ipsType_smaller"><img style="width:20px;" src="{style_images_url}/profile_vk.png"></a><else /><a style="opacity:0.2" target="_blank" class="ipsButton_secondary ipsType_smaller"><img style="width:20px;" src="{style_images_url}/profile_vk.png"></a></if><if> </div> <div id="sholder"> <div id="scolumn" class="sfirst"> <p id="snumber">{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} </p><li class="post_count desc lighter" style="display:none"></li><p></p> <p id="sdesc">СООБЩЕНИЙ </p> </div> <div id="scolumn" class="ssecond"> <p id="snumber">{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['points'] ) )"}</p> <p id="sdesc">ОЧКОВ</p> </div> <div id="scolumn" class="sthird"> <p id="snumber">{parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</p> <p id="sdesc">РЕПУТАЦИИ</p> </div></div><if test="authorcfields:|:$author['custom_fields'] != """></if></div></div>Админ Панель-Внешний вид-Ваш стиль-сss-Добавить CSS-файл Названые: nazwa #sholder {background: none repeat scroll 0% 0% #1d2124;width: 159px;height: 62px;border-top: 1px solid #383838;margin-top: 10px;padding: 0 8px;border-bottom: 1px solid #333;font-family: Tahoma,sans-serif;}#scolumn {width: 53px;text-align: center;height: 100%;float: left;color: #9bb6b9;}#snumber {padding-top: 27px;font-size: 12px;}#sdesc {font-size: 8px;margin-top: -5px;}#scolumn:hover {color: #777;}.sthird:hover {background: url({style_images_url}/repu.png) no-repeat 50% 20%;}.ssecond {background: url({style_images_url}/points.png) no-repeat 50% 20%;}.ssecond:hover {background: url({style_images_url}/points.png) no-repeat 50% 20%;}.sthird:hover {background: url({style_images_url}/repu.png) no-repeat 50% 20%;}.sthird {background: url({style_images_url}/repu.png) no-repeat 50% 20%;}.sfirst {background: url({style_images_url}/posts.png) no-repeat 50% 20%;}.sfirst:hover {background: url({style_images_url}/posts.png) no-repeat 50% 20%;}.test_userinfo_b3.ipsButton_secondary {padding: 0 5px }.pm_button img{width: 20px;}.test_userinfo {background: #1d2124;margin:3px 0 0 3px;border-radius: 2px;box-shadow: 0px 2px 4px 0px #000; } .test_userinfo_b1 {text-align: center;margin-top:-40px} .test_userinfo_b1 img {height: 80px;border-radius: 800px;box-shadow: 0px 0px 4px 1px rgba(0,0,0,0.2);border: 2pxsolid #1d2124;} .test_userinfo_b2 {padding-top: 10px} .test_userinfo_b2span {color: #7da9ca; font-size:18px} .test_userinfo_b3 {padding-top: 5px} .test_userinfo_b3span {color: #7da9ca; font-size:11px} .test_userinfo_b4 {background: #1d2124;overflow: hidden;padding: 7px;margin-top: 5px } .test_userinfo_b4_1 {width: 50%} .test_userinfo_b4_m {color: #7da9ca;} /************************************************************************//* USER REPUTATION CODED BY YOW MIKE */ .reputation-bg {background: #415C71;border: 1px solid #415C71;border-radius: 4px;-moz-border-radius: 4px;-webkit-border-radius: 4px} .reputation-bar {border-radius: 4px;-moz-border-radius: 4px;-webkit-border-radius: 4px;font: 12px/23px "Segoe UI",Arial,Tahoma,sans-serif;color: #fff;height: 21px;margin: 1px;text-align: center;}.reputation-bar.gray { background:#BDC3C7; }.reputation-bar.red { background:#C0392B; }.reputation-bar.blue { background:#3498DB; }.reputation-bar.green { background:#2ECC71; }.reputation-bar.gold { background:#F1C40F; }.reputation-bar .width10 { width: 10% }.reputation-bar. width20 { width: 20% }.reputation-bar. width30 { width: 30% }.reputation-bar. width40 { width: 40% }.reputation-bar. width50 { width: 50% }.reputation-bar. width60 { width: 60% }.reputation-bar. width70 { width: 70% }.reputation-bar. width80 { width: 80% }.reputation-bar. width90 { width: 90% }Найти: .author_info {Все что там заменить на: .author_info {width: 200px; float: left; font-size: 12px; text-align: center; margin: 3px 3px 0 0; padding: 0 0px 6px 0px;}Найти: .post_body {Все что там заменить на: .post_body {margin-left: 200px !important;padding-left: 10px;padding-top: 10px; }
-
Делаем footer
Админ Панель-Внешний вид-Ваш стиль-Глобальные-globalTemplate найти: <!-- ::: FOOTER (Change skin, language, mark as read, etc) ::: -->Ниже добавить: <footer id="siteinfo" role="contentinfo"> <div id="siteinfo-company"> <h3>Support IP.Board</h3> <ul> <li><a href="/contactus/">Kontakt z nami</a></li> <li><a href="/pages/credits">O nas</a></li> <li><a href="/pages/advertising">Reklama</a></li> <li><a href="/pages/jobs">Oferta pracy</a></li> </ul> </div> <div id="siteinfo-community"> <h3>Społeczność</h3> <ul> <li><a href='{parse url="app=core&module=search&do=viewNewContent&search_app=<if test="viewnewcontentapp:|:$this->registry->getCurrentApplication() != 'core' AND IPSLib::appIsSearchable( $this->registry->getCurrentApplication() )">{$this->registry->getCurrentApplication()}<else />forums</if>" base="public"}' accesskey='2'>{$this->lang->words['view_new_posts']}</a></li> <li><a href="/statuses/all/">Aktualizacje statusu</a></li> <li><a href="/best-content/">Najbardziej lubiana zawartość</a></li> <if test="privvy:|:$this->settings['priv_title']"><li><a rel="nofollow" href='{parse url="app=core&module=global§ion=privacy" template="privacy" seotitle="false" base="public"}'>{$this->settings['priv_title']}</a></li></if> </ul> </div> <div id="siteinfo-social"> <h3>Połącz się z nami</h3> <ul> <li><a href="https://www.facebook.com/{ID_PAGE}" target="_blank">Dołącz do nas na Facebooku</a></li> <li><a href="https://www.twitter.com/{ID_PAGE}" target="_blank">Śledź nas na Twitterze</a></li> </ul> </div> <div id="siteinfo-account"> <h3>Konto</h3> <if test="! $this->memberData["member_id"]"><ul> <li><a href="{parse url="app=core&module=global§ion=register" base="public"}" title='{$this->lang->words['register']}'>Utwórz nowe konto</a></li> <li><a href='{parse url="app=core&module=global§ion=login" base="public"}' title='{$this->lang->words['sign_in']}'>Zaloguj się do konta</a></li> </ul></if> <if test="$this->memberData[ 'member_id' ]"><ul> <li><a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}'>Mój profil</a></li> <li><a href="{parse url="app=core&module=usercp" base="public"}" title="{$this->lang->words['cp_tool_tip']}">Moje ustawienia</a></li> <li><a href='{parse url="app=members&module=profile§ion=friends&do=list" base="public"}' title="{$this->lang->words['manage_friends']}" class='manage_friends'>Zarządzaj znajomymi</a></li> <li><a href='{parse url="app=members&module=messaging" base="public"}' title='{$this->lang->words['your_messenger']}'>Mój osobisty komunikator</a></li> </ul></if> </div> <div id="siteinfo-content"> <h3>Informacje serwisu</h3> <p class="copyright"> Wszystkie wymienione znaki towarowe są własnością ich właścicieli.<br /> Mario14125 © <strong>Support IP.Board</strong>, od 2007. Napędzany przez <a href="http://forum.invisionize.pl/topic/37221-nawi%C4%85zanie-wsp%C3%B3%C5%82pracy-z-dhostingpl" target="_blank"><strong>dHosting</strong></a>.<br /><br /> <span class="right"><a href='#' data-clicklaunch='changeSkin' data-skinid='3'>Zobacz wersję mobilną</a> | <a href="#top">Przejdź na górę</a></span> </p> </div></footer>Админ Панель-Внешний вид-Ваш стиль-css-Добавить CSS-файл Названые: siteInfo /************************************************************************//* IP.Board 3 CSS - By Rikki Tissier - (c)2011 Invision Power Services *//* Enhanced and modified by Mario14125 *//************************************************************************//* siteInfo.css *//************************************************************************//************************************************************************/#siteinfo { padding: 16px; color: #b8b8b8; line-height: 20px; overflow: hidden; font-size: 10px;}#siteinfo>div { float: left; margin-right: 32px;}#siteinfo h3 { margin-bottom: 8px; font-size: 180%; font-weight: normal; text-transform: uppercase; color: #454545;}#siteinfo li, #siteinfo p { list-style: none; font-size: 120%; line-height: 150%;}#siteinfo a { color: #b8b8b8;}#siteinfo a:hover { color: #b8b8b8; text-decoration: none;}#siteinfo>#siteinfo-content { float: right; margin-right: 0;}.mario14125{}
-
Исправлена ошибка: количество изображений для массовой загрузки из zip файла
Перейти на FTP-Клиент. sources/components_public/gallery/post.phpНайти: if( ( intval($ttl_images) + count($data) ) >= $this->ipsclass->member['g_img_album_limit'] )Заменить на: if( ( intval($ttl_images) + count($data) ) > $this->ipsclass->member['g_img_album_limit'] )
-
Desctiption in lightbox
Перейти на FTP-Клиент. sources/components_public/downloads/display.phpНайти: if( $category['coptions']['opt_filess'] ) { $this->output = str_replace( "<!--SCREENSHOT_DISPLAY-->", $this->ipsclass->compiled_templates['skin_downloads']->screenshot_inline( array( 'file_ssname' => $file['file_ssname'], 'file_ssurl' => $file['file_ssurl'], 'file_id' => $file['file_id'], 'thumb_x' => $category['coptions']['opt_thumb_x'] ) ), $this->output ); }Заменить на: if( $category['coptions']['opt_filess'] ) { $this->output = str_replace( "<!--SCREENSHOT_DISPLAY-->", $this->ipsclass->compiled_templates['skin_downloads']->screenshot_inline( array( 'file_ssname' => $file['file_ssname'], 'file_ssurl' => $file['file_ssurl'], 'file_id' => $file['file_id'], 'thumb_x' => $category['coptions']['opt_thumb_x'], 'file_name' => $file['file_name'] ) ), $this->output ); }
-
Цвет загрузчик имена на IP.Downloads индекса в соответствии с их группы
Перейти на FTP-Клиент. sources/components_public/downloads/display.phpНайти: $cinfo['cfileinfo']['author'] = $cinfo['cfileinfo']['mid'] > 0 ? $this->ipsclass->make_profile_link( $cinfo['cfileinfo']['mname'], $cinfo['cfileinfo']['mid'] ) : $this->ipsclass->lang['idm_guestlang'];Заменить на: $mgroup = $this->ipsclass->DB->build_and_exec_query( array( 'select' => 'mgroup', 'from' => 'members', 'where' => 'id='.$cinfo['cfileinfo']['mid'] ) ); $cinfo['cfileinfo']['author'] = $cinfo['cfileinfo']['mid'] > 0 ? $this->ipsclass->make_profile_link( $this->ipsclass->make_name_formatted( $cinfo['cfileinfo']['mname'], $mgroup['mgroup'] ), $cinfo['cfileinfo']['mid'] ) : $this->ipsclass->lang['idm_guestlang'];
-
Цвет загрузчик имена на IP.Downloads категории в соответствии с их группами
Перейти на FTP-Клиент. sources/sql/mysql_idm_queries.phpНайти: file_pendcomments, m.members_display_nameЗаменить на: file_pendcomments, m.members_display_name, m.mgroupПерейти: sources/components_public/downloads/display.phpНайти: $row['submitter'] = $this->ipsclass->make_profile_link( $row['members_display_name'], $row['file_submitter'] );Заменить на: $row['submitter'] = $this->ipsclass->make_profile_link( $this->ipsclass->make_name_formatted( $row['members_display_name'], $row['mgroup'] ), $row['file_submitter'] );
-
Смена группы пользователей для UPLOADERS когда загрузка файла
Перейти на FTP-Клиент. sources\components_public\downloads\submit.phpНайти: //--------------------------------------------------------- // We need this for the topic posting, and subscription // notifications. Let's instantiate it here. //---------------------------------------------------------Добавить выше: if ( $open == 1 && $this->ipsclass->member['mgroup'] == 3 ) { $this->ipsclass->DB->do_update( 'members', array( 'mgroup' => XX, ), 'id='.( $this->ipsclass->member['id'] ) ); }Перейти: sources\components_public\downloads\moderate.phpНайти: $this->ipsclass->DB->build_query( array( 'select' => 'members_display_name, email, view_pop, email_pm', 'from' => 'members', 'where' => 'id='.intval($mid) ) ); $this->ipsclass->DB->exec_query(); $author = $this->ipsclass->DB->fetch_row(); $to_update = array( 'file_open' => 1, 'file_approver' => $this->ipsclass->member['id'], 'file_approvedon' => time(), 'file_new' => 0 ); $this->ipsclass->DB->do_update( "downloads_files", $to_update, "file_id=".$id );Заменить на: $this->ipsclass->DB->build_query( array( 'select' => 'members_display_name, email, view_pop, email_pm, mgroup', 'from' => 'members', 'where' => 'id='.intval($mid) ) ); $this->ipsclass->DB->exec_query(); $author = $this->ipsclass->DB->fetch_row(); $to_update = array( 'file_open' => 1, 'file_approver' => $this->ipsclass->member['id'], 'file_approvedon' => time(), 'file_new' => 0 ); if ( $author['mgroup'] == 3 ) { $this->ipsclass->DB->do_update( 'members', array( 'mgroup' => XX, ), 'id='.( $mid ) ); } $this->ipsclass->DB->do_update( "downloads_files", $to_update, "file_id=".$id );Помните, чтобы изменить ХХ на ID группы, которую вы хотите.
-
Изменить тему форума, когда перемещение файла
Перейти на FTP-Клиент. open sources/components_public/downloads/moderate.php Найти: $this->ipsclass->DB->do_update( "downloads_files", array( 'file_cat' => $newcatid ), "file_id=".$id );Добавить выше: $newcat = $this->catlib->cat_lookup[ $newcatid ]; if ( $newcat['coptions']['opt_topice'] == 1 ) { $this->ipsclass->DB->do_update( "topics", array( 'forum_id' => $newcat['coptions']['opt_topicf'] ), "tid=".$file['file_topicid'] ); }
-
Изменение заголовка страницы при просмотре файлов
Перейти на FTP-Клиент. sources\components_public\downloads\display.phpНайти: $this->page_title = strip_tags( implode( ' -> ', array_reverse( $this->nav ) ) );Заменить на: $this->page_title = $this->ipsclass->vars['board_name']. " -> ".strip_tags( implode( ' -> ', $this->nav ) );
-
Исправлена ошибка: увеличена пользователя число сообщений на пост файл, если создать новую тему
Перейти на FTP-Клиент. sources\components_public\downloads\lib\lib_topics.phpНайти: $this->ipsclass->DB->simple_update( 'members', 'posts=posts+1', 'id='.intval( $mid ) );Заменить на: $this->ipsclass->DB->simple_update( 'members', 'posts=posts+1', 'id='.intval( $file['file_submitter'] ) );
-
Добавление стандартного текста в файл описания когда загрузить новый файл
Перейти на FTP-Клиент. sources/components_public/downloads/submit.phpНайти: 'file_desc' => $file['file_desc'],Заменить на: 'file_desc' => $file['file_desc']."<br /><br />Original File Name: ".$file['file_realname'],
- Older Topic Alert
-
Плавный спойлер на JQuery
.blockspoiler a{text-decoration:none;color: #fff;}Цвет измени: color: #fff;
- Spoiler
-
Spoiler
Найти: span.bbc_hrВсе что там заменить на: span.bbc_hr { width:100%; display: block; border-top: 2px solid #777; height: 4px; }Найти: div.bbc_spoilerВсе что там заменить на: div.bbc_spoiler { }Найти: div.bbc_spoiler span.spoiler_titleВсе что там заменить на: div.bbc_spoiler span.spoiler_title { font-weight: bold; }Найти: div.bbc_spoiler_wrapperВсе что там заменить на: div.bbc_spoiler_wrapper { }Найти: div.bbc_spoiler_contentВсе что там заменить на: div.bbc_spoiler_content { background: #fcfcfc; border: 1px dashed #e3e3e3; padding: 5px; margin-top: 5px; }Найти: input.bbc_spoiler_showВсе что там заменить на: input.bbc_spoiler_show { width: 45px; font-size: .8em; margin: 0px; margin-left: 5px; padding: 0px; }Найти: img.bbc_imgВсе что там заменить на: img.bbc_img { cursor: pointer; }Найти: .signature img.bbc_img Все что заменить на: .signature img.bbc_img { cursor: default; }Найти: .signature a img.bbc_imgВсе что там заменить на: .signature a img.bbc_img { cursor: pointer; }Или используйте другой спойлер. Плавный спойлер на JQuery
- Spoiler
- Spoiler