All Activity

This stream auto-updates   

  1. Last week
  2. @tbs04 try to run "Get Support" to fix the problem.
  3. Chat Box has been disconnected. I have installed uninstalled, tried everything I know. But same problem. What can I do to correct this issues?
  4. Thanks ..... I do not find one I am interested in which code is responsible for this
  5. It can be a plugin but I don't know. Try to go to IPS Marketplace to find it.
  6. Hi ...... How to add Last Topic in Category index page and last poster avatar Thanks
  7. yes, it works fine.
  8. thanks sir woorking good in v. ips 4.1?
  9. Earlier
  10. hello, i want to add for example twitch i did everything what you and guys said in that topic, but color pic didnt change... and second question is: what if i want to add new picture, for example 2x facebook fanpage but diffrent pictures?
  11. thanks !
  12. Lười lắm kid, vậy nó dễ responsive.
  13. Bim ơi, có thể edit lại đôi chút ho cái dòng chat nó nằm cùng một dòng với nick luôn được không? chứ xuống dòng dưới nick vậy nó kéo dài khoảng cách diễn đàn quá :)
  14. Try to run get support to clear the badly cache.
  15. Hi, Firstly I have heard amazing things about your chat, so have installed it, enabled it, been through all the settings, but sadly, this just keeps showing up & when I type something, a box appears and says "are you sure?" thats it.... Any help, would be awesome!
  16. Nó chỉ nghe tiếng khi có chat mới cập nhật thôi bạn, chứ mình chat đi thì nó ko nghe.
  17. bim ơi, tớ hỏi cái chatbox 1 tí, sao cái sound của chatbox nó không có tiếng nhỉ? mình gõ vào thì nó phải phát tiếng clicked chứ nhể
  18. Im an admin on this website and i love this chatbox, and i think im going to make my own website and add this to it
  19. Nudes trong một lễ hội popin, người tham gia sẽ tạo ra trần truồng để giành chiến thắng Hoa hậu, vẫn mooning Amtrak là một bữa tiệc dành cho những người muốn bắn quần cho thấy mông.Mua ve di hoa ky tham gia các lễ hội Nudes a Popin và Wayne

     
  20. hostinger cũng có tiếng mà bạn, vào việt nam đã vài năm mà vẫn còn sống là hay rồi.
  21. Ok no problem, I try to find a coder
  22. I'm busy with my current projects so I can not take more custom works, I'm so sorry.
  23. Yes, you can do it for me? What is your price for coding that got IPS4? Thx
  24. Hi, You need to hire a developer to code it for you.
  25. Hi all, I don't know if I post in the good forum ................. So I've a request for you, is it possible for you to code the Hook Topic Title Colored for IPS 4 ? I've ask to the original coder, but I don't have a feedback :( Please find below the Hook for IPS 3.4: <?xml version="1.0" encoding="UTF-8"?> -<hookexport> -<hookdata> -<config> <hook_name>(SOS32) Цветные название тем</hook_name> <hook_desc>Позволяет пользователю создавать темы с цветными название</hook_desc> <hook_author>Adriano Faria</hook_author> <hook_email>administracao@sosinvision.com.br</hook_email> <hook_website>[Hidden Content]; <hook_update_check/> -<hook_requirements> <![CDATA[a:4:{s:20:"hook_ipb_version_min";i:31007;s:20:"hook_ipb_version_max";i:0;s:20:"hook_php_version_min";s:0:"";s:20:"hook_php_version_max";s:0:"";}]]> </hook_requirements> <hook_version_human>2.2.0</hook_version_human> <hook_version_long>22000</hook_version_long> -<hook_extra_data> <![CDATA[a:4:{s:7:"display";a:3:{s:9:"templates";s:33:"From skin_post: topicTitleColored";s:8:"language";s:92:"From forums_public_post: ttc_backgroundcolor, ttc_bold, ttc_fontcolor, ttc_italic, ttc_title";s:8:"database";s:264:"ALTER TABLE topics ADD ttc_fontcolor varchar(32)<br />ALTER TABLE topics ADD ttc_backgroundcolor varchar(32)<br />ALTER TABLE topics ADD ttc_bold tinyint(1)<br />ALTER TABLE topics ADD ttc_italic tinyint(1)<br />ALTER TABLE forums ADD last_title_style varchar(255)";}s:8:"language";a:1:{s:18:"forums_public_post";a:5:{s:0:"";s:19:"ttc_backgroundcolor";i:1;s:8:"ttc_bold";i:2;s:13:"ttc_fontcolor";i:3;s:10:"ttc_italic";i:4;s:9:"ttc_title";}}s:9:"templates";a:1:{s:9:"skin_post";a:1:{s:0:"";s:17:"topicTitleColored";}}s:8:"database";a:1:{s:5:"alter";a:5:{i:0;a:6:{s:9:"altertype";s:3:"add";s:5:"table";s:6:"topics";s:5:"field";s:13:"ttc_fontcolor";s:8:"newfield";s:0:"";s:9:"fieldtype";s:11:"varchar(32)";s:7:"default";s:0:"";}i:1;a:6:{s:9:"altertype";s:3:"add";s:5:"table";s:6:"topics";s:5:"field";s:19:"ttc_backgroundcolor";s:8:"newfield";s:0:"";s:9:"fieldtype";s:11:"varchar(32)";s:7:"default";s:0:"";}i:2;a:6:{s:9:"altertype";s:3:"add";s:5:"table";s:6:"topics";s:5:"field";s:8:"ttc_bold";s:8:"newfield";s:0:"";s:9:"fieldtype";s:10:"tinyint(1)";s:7:"default";s:0:"";}i:3;a:6:{s:9:"altertype";s:3:"add";s:5:"table";s:6:"topics";s:5:"field";s:10:"ttc_italic";s:8:"newfield";s:0:"";s:9:"fieldtype";s:10:"tinyint(1)";s:7:"default";s:0:"";}i:4;a:6:{s:9:"altertype";s:3:"add";s:5:"table";s:6:"forums";s:5:"field";s:16:"last_title_style";s:8:"newfield";s:0:"";s:9:"fieldtype";s:12:"varchar(255)";s:7:"default";s:0:"";}}}}]]> </hook_extra_data> <hook_key>SOS33_ttc</hook_key> </config> </hookdata> -<hookfiles> -<file> <hook_file_real>SOS33_ttc_newtopic.php</hook_file_real> <hook_type>dataHooks</hook_type> <hook_classname>SOS33_ttc_newtopic</hook_classname> -<hook_data> <![CDATA[a:8:{s:12:"dataLocation";s:12:"postAddTopic";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";N;s:12:"skinFunction";N;s:4:"type";N;s:2:"id";N;s:8:"position";N;}]]> </hook_data> -<hooks_source> <![CDATA[<?php class SOS33_ttc_newtopic { /** * Product Title: (SOS34) Topic Title Colored * Product Version: 2.2.0 * Author: Adriano Faria * Website: SOS Invision * Website URL: [Hidden Content] * Email: administracao@sosinvision.com.br */ protected $request; public function __construct() { $this->registry = ipsRegistry::instance(); $this->memberData =& $this->registry->member()->fetchMemberData(); $this->settings =& $this->registry->fetchSettings(); $this->request =& $this->registry->fetchRequest(); } public function handleData( $data ) { if ( in_array( $this->memberData['member_group_id'], explode( ',', $this->settings['SOS33_ttc_grupos'] ) ) AND in_array( $this->request['f'], explode( ',', $this->settings['SOS33_ttc_forums'] ) ) ) { $data['ttc_fontcolor'] = $this->request['ttc_fontcolor']; $data['ttc_backgroundcolor'] = $this->request['ttc_backgroundcolor']; $data['ttc_bold'] = ( $this->request['ttc_bold'] == 1 ) ? 1: 0; $data['ttc_italic'] = ( $this->request['ttc_italic'] == 1 ) ? 1 : 0; } return $data; } }]]> </hooks_source> </file> -<file> <hook_file_real>SOS33_ttc_dataHook_forums.php</hook_file_real> <hook_type>dataHooks</hook_type> <hook_classname>SOS33_ttc_dataHook_forums</hook_classname> -<hook_data> <![CDATA[a:8:{s:12:"dataLocation";s:23:"updateForumLastPostData";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";N;s:12:"skinFunction";N;s:4:"type";N;s:2:"id";N;s:8:"position";N;}]]> </hook_data> -<hooks_source> <![CDATA[<?php class SOS33_ttc_dataHook_forums { /** * Product Title: (SOS34) Topic Title Colored * Product Version: 2.2.0 * Author: Adriano Faria * Website: SOS Invision * Website URL: [Hidden Content] * Email: administracao@sosinvision.com.br */ public function handleData( $forum_data ) { $topic = ipsRegistry::instance()->cache()->getCache( 'topicData' ); $styleArray = array(); if ( $topic['ttc_fontcolor'] OR $topic['ttc_backgroundcolor'] OR $topic['ttc_bold'] OR $topic['ttc_italic'] ) { $styleArray = array( 'styleForTid' => $topic['tid'], 'ttc_fontcolor' => $topic['ttc_fontcolor'], 'ttc_backgroundcolor' => $topic['ttc_backgroundcolor'], 'ttc_bold' => $topic['ttc_bold'], 'ttc_italic' => $topic['ttc_italic'], ); } $forum_data['last_title_style'] = serialize( $styleArray ); return $forum_data; } }]]> </hooks_source> </file> -<file> <hook_file_real>SOS33_ttc_profileTabs.php</hook_file_real> <hook_type>skinHooks</hook_type> <hook_classname>SOS33_ttc_profileTabs</hook_classname> -<hook_data> <![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:12:"skin_profile";s:9:"skinGroup";N;s:12:"skinFunction";N;s:4:"type";N;s:2:"id";N;s:8:"position";N;}]]> </hook_data> -<hooks_source> <![CDATA[class SOS33_ttc_profileTabs extends skin_profile(~id~) { /** * Product Title: (SOS34) Topic Title Colored * Product Version: 2.2.0 * Author: Adriano Faria * Website: SOS Invision * Website URL: [Hidden Content] * Email: administracao@sosinvision.com.br */ function tabSingleColumn($row=array(), $read_more_link='', $url='', $title='') { if ( $this->settings['SOS33_ttc_profiletab'] ) { $style = ""; if ( $row['ttc_fontcolor'] OR $row['ttc_backgroundcolor'] OR $row['ttc_bold'] OR $row['ttc_italic'] ) { $style .= " style='"; if ( $row['ttc_backgroundcolor'] ) { $style .= "-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding-left:5px;padding-right:5px;padding-top:2px;padding-bottom:2px;"; } $style .= ( $row['ttc_fontcolor'] ) ? "color: {$row['ttc_fontcolor']}; " : ''; $style .= ( $row['ttc_backgroundcolor'] ) ? "background-color: {$row['ttc_backgroundcolor']}; " : ''; $style .= ( $row['ttc_italic'] ) ? "font-style: italic; " : ''; $style .= ( $row['ttc_bold'] ) ? "font-weight: bold; " : ''; $style .= "'"; $title = "<span{$style}>".IPSText::truncate($title,90)."</span>"; } return parent::ttc_tabSingleColumn( $row, $read_more_link, $url, $title ); } else { return parent::tabSingleColumn( $row, $read_more_link, $url, $title ); } } }]]> </hooks_source> </file> -<file> <hook_file_real>SOS33_ttc_topicView.php</hook_file_real> <hook_type>templateHooks</hook_type> <hook_classname>SOS33_ttc_topicView</hook_classname> -<hook_data> <![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:10:"skin_topic";s:12:"skinFunction";s:17:"topicViewTemplate";s:4:"type";s:2:"if";s:2:"id";s:11:"allowRating";s:8:"position";s:11:"pre.startif";}]]> </hook_data> -<hooks_source> <![CDATA[<?php /** * Product Title: (SOS34) Topic Title Colored * Product Version: 2.2.0 * Author: Adriano Faria * Website: SOS Invision * Website URL: [Hidden Content] * Email: administracao@sosinvision.com.br */ class SOS33_ttc_topicView { public function __construct() { $this->registry = ipsRegistry::instance(); $this->DB = $this->registry->DB(); $this->request =& $this->registry->fetchRequest(); $this->lang = $this->registry->getClass('class_localization'); } public function getOutput() { $topic = $this->registry->output->getTemplate('topic')->functionData['topicViewTemplate'][0]['topic']; $style = ""; if ( $topic['ttc_fontcolor'] OR $topic['ttc_backgroundcolor'] OR $topic['ttc_bold'] OR $topic['ttc_italic'] ) { $style .= ".ipsType_pagetitle {" . PHP_EOL; if ( $topic['ttc_backgroundcolor'] ) { $style .= "-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding-left:5px;padding-right:5px;padding-top:2px;padding-bottom:2px;display: inline;"; } $style .= ( $topic['ttc_fontcolor'] ) ? "\tcolor: {$topic['ttc_fontcolor']};" . PHP_EOL : ''; $style .= ( $topic['ttc_backgroundcolor'] ) ? "\tbackground-color: {$topic['ttc_backgroundcolor']};" . PHP_EOL : ''; $style .= ( $topic['ttc_italic'] ) ? "\tfont-style: italic;" . PHP_EOL : ''; $style .= ( $topic['ttc_bold'] ) ? "\tfont-weight: bold;" . PHP_EOL : ''; $style .= "}" . PHP_EOL; } return ( ! empty( $style ) ) ? "<style type='text/css'>{$style}</style>" : ''; } }]]> </hooks_source> </file> -<file> <hook_file_real>SOS33_ttc_modLibrary.php</hook_file_real> <hook_type>libraryHooks</hook_type> <hook_classname>SOS33_ttc_modLibrary</hook_classname> -<hook_data> <![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:6:"forums";s:15:"classToOverload";s:16:"moderatorLibrary";s:9:"skinGroup";N;s:12:"skinFunction";N;s:4:"type";N;s:2:"id";N;s:8:"position";N;}]]> </hook_data> -<hooks_source> <![CDATA[<?php /** * Product Title: (SOS34) Topic Title Colored * Product Version: 2.2.0 * Author: Adriano Faria * Website: SOS Invision * Website URL: [Hidden Content] * Email: administracao@sosinvision.com.br */ class SOS33_ttc_modLibrary extends (~extends~) { /** * Recount a forum * * @return boolean */ public function forumRecount( $fid="" ) { $fid = intval($fid); if ( ! $fid ) { if ( $this->forum['id'] ) { $fid = $this->forum['id']; } else { return false; } } //----------------------------------------- // Get the topics.. //----------------------------------------- $topics = $this->DB->buildAndFetch( array( 'select' => 'COUNT(*) as count', 'from' => 'topics', 'where' => "approved=1 and forum_id={$fid}" ) ); //----------------------------------------- // Get the QUEUED topics.. //----------------------------------------- $queued_topics = $this->DB->buildAndFetch( array( 'select' => 'COUNT(*) as count', 'from' => 'topics', 'where' => "approved=0 and forum_id={$fid}" ) ); //----------------------------------------- // Get the DELETED topics.. //----------------------------------------- $deleted_topics = $this->DB->buildAndFetch( array( 'select' => 'COUNT(*) as count', 'from' => 'topics', 'where' => "approved=-1 and forum_id={$fid}" ) ); //----------------------------------------- // Get the posts.. //----------------------------------------- $posts = $this->DB->buildAndFetch( array( 'select' => 'SUM(posts) as replies', 'from' => 'topics', 'where' => "approved=1 and forum_id={$fid}" ) ); //----------------------------------------- // Get the QUEUED posts.. //----------------------------------------- $queued_posts = $this->DB->buildAndFetch( array( 'select' => 'SUM(topic_queuedposts) as replies', 'from' => 'topics', 'where' => "forum_id={$fid}" ) ); //----------------------------------------- // Get the DELETED posts.. //----------------------------------------- $deleted_posts = $this->DB->buildAndFetch( array( 'select' => 'SUM(topic_deleted_posts) as replies', 'from' => 'topics', 'where' => "forum_id={$fid}" ) ); //----------------------------------------- // Get the forum last poster.. //----------------------------------------- $last_post = $this->DB->buildAndFetch( array( 'select' => 'tid, title, last_poster_id, last_poster_name, seo_last_name, last_post', 'from' => 'topics', 'where' => "approved=1 and forum_id={$fid}", 'order' => 'last_post DESC', 'limit' => array( 1 ) ) ); $newest_topic = $this->DB->buildAndFetch( array( 'select' => 'title, tid, seo_first_name, ttc_fontcolor, ttc_backgroundcolor, ttc_bold, ttc_italic', 'from' => 'topics', 'where' => 'forum_id=' . $fid . ' and approved=1', 'order' => 'start_date desc', 'limit' => array( 1 ) ) ); $styleArray = array(); if ( $newest_topic['ttc_fontcolor'] OR $newest_topic['ttc_backgroundcolor'] OR $newest_topic['ttc_bold'] OR $newest_topic['ttc_italic'] ) { $styleArray = array( 'styleForTid' => $newest_topic['tid'], 'ttc_fontcolor' => $newest_topic['ttc_fontcolor'], 'ttc_backgroundcolor' => $newest_topic['ttc_backgroundcolor'], 'ttc_bold' => $newest_topic['ttc_bold'], 'ttc_italic' => $newest_topic['ttc_italic'], ); } $lastXTopics = $this->registry->class_forums->lastXFreeze( $this->registry->class_forums->buildLastXTopicIds( $fid, FALSE ) ); //----------------------------------------- // Reset this forums stats //----------------------------------------- $dbs = array( 'name_seo' => IPSText::makeSeoTitle( $this->registry->class_forums->allForums[ $fid ]['name'] ), 'last_poster_id' => intval($last_post['last_poster_id']), 'last_poster_name' => $last_post['last_poster_name'], 'seo_last_name' => IPSText::makeSeoTitle( $last_post['last_poster_name'] ), 'last_post' => intval($last_post['last_post']), 'last_title' => $last_post['title'], 'seo_last_title' => IPSText::makeSeoTitle( $last_post['title'] ), 'last_id' => intval($last_post['tid']), 'topics' => intval($topics['count']), 'posts' => intval($posts['replies']), 'queued_topics' => intval($queued_topics['count']), 'queued_posts' => intval($queued_posts['replies']), 'deleted_posts' => intval($deleted_posts['replies']), 'deleted_topics' => intval($deleted_topics['count']), 'newest_id' => intval($newest_topic['tid']), 'newest_title' => $newest_topic['title'], 'last_x_topic_ids' => $lastXTopics, 'last_title_style' => serialize( $styleArray ), ); if ( $this->registry->class_forums->allForums[ $fid ]['_update_deletion'] ) { $dbs['forum_last_deletion'] = time(); } $this->DB->force_data_type = array( 'last_poster_name' => 'string', 'last_title' => 'string', 'newest_title' => 'string', 'seo_last_title' => 'string', 'seo_last_name' => 'string' ); $this->DB->update( 'forums', $dbs, "id=" . $fid ); return true; } }]]> </hooks_source> </file> -<file> <hook_file_real>SOS33_ttc_newfileds.php</hook_file_real> <hook_type>templateHooks</hook_type> <hook_classname>SOS33_ttc_newfileds</hook_classname> -<hook_data> <![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:9:"skin_post";s:12:"skinFunction";s:16:"postFormTemplate";s:4:"type";s:2:"if";s:2:"id";s:11:"pollboxHtml";s:8:"position";s:11:"pre.startif";}]]> </hook_data> -<hooks_source> <![CDATA[<?php /** * Product Title: (SOS34) Topic Title Colored * Product Version: 2.2.0 * Author: Adriano Faria * Website: SOS Invision * Website URL: [Hidden Content] * Email: administracao@sosinvision.com.br */ class SOS33_ttc_newfileds { public $registry; public $DB; public $request; public $lang; public function __construct() { $this->registry = ipsRegistry::instance(); $this->memberData =& $this->registry->member()->fetchMemberData(); $this->settings =& $this->registry->fetchSettings(); $this->request =& $this->registry->fetchRequest(); $this->DB = $this->registry->DB(); $this->cache = $this->registry->cache(); $this->caches =& $this->registry->cache()->fetchCaches(); } public function getOutput() { if ( $this->request['do'] == 'reply_post' ) { return false; } if ( !in_array( $this->memberData['member_group_id'], explode( ',', $this->settings['SOS33_ttc_grupos'] ) ) OR !in_array( $this->request['f'], explode( ',', $this->settings['SOS33_ttc_forums'] ) ) ) { return false; } return $this->registry->getClass('output')->getTemplate( 'post' )->topicTitleColored( $this->caches['topicTitleColored'] ); } }]]> </hooks_source> </file> -<file> <hook_file_real>SOS33_ttc_postModule.php</hook_file_real> <hook_type>libraryHooks</hook_type> <hook_classname>SOS33_ttc_postModule</hook_classname> -<hook_data> <![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:6:"forums";s:15:"classToOverload";s:14:"classPostForms";s:9:"skinGroup";N;s:12:"skinFunction";N;s:4:"type";N;s:2:"id";N;s:8:"position";N;}]]> </hook_data> -<hooks_source> <![CDATA[<?php /** * Product Title: (SOS34) Topic Title Colored * Product Version: 2.2.0 * Author: Adriano Faria * Website: SOS Invision * Website URL: [Hidden Content] * Email: administracao@sosinvision.com.br */ class SOS33_ttc_postModule extends (~extends~) { private $formType = ''; public function hook_topicTitleColored() { if ( ! in_array( $this->formType, array( 'new', 'edit' ) ) ) { return false; } switch( $this->formType ) { case 'new': $checkFunc = 'topicSetUp'; break; case 'edit': $checkFunc = 'editSetUp'; break; } //----------------------------------------- // Global checks and functions //----------------------------------------- try { $this->globalSetUp(); } catch( Exception $error ) { $e = $error->getMessage(); if ( $this->formType == 'edit' AND $e == 'NO_POSTING_PPD' ) { } else { throw new Exception( $e ); } } //----------------------------------------- // Form specific... //----------------------------------------- try { $topic = $this->$checkFunc(); } catch( Exception $error ) { throw new Exception( $error->getMessage() ); } $styles = array(); foreach( array( 'fontcolor', 'backgroundcolor', 'italic', 'bold' ) as $style ) { $styles['ttc_' . $style ] = isset( $this->request['ttc_' . $style ] ) ? $this->request['ttc_' . $style ] : ''; } if( $this->_originalPost['new_topic'] ) { foreach( array( 'fontcolor', 'backgroundcolor', 'italic', 'bold' ) as $style ) { if ( ! isset( $styles['ttc_' . $style ] ) OR ! $styles['ttc_' . $style ] ) { if ( isset( $topic['ttc_' . $style ] ) AND $topic['ttc_' . $style ] ) { $styles['ttc_' . $style ] = $topic['ttc_' . $style ]; } } } } return $styles; } public function showEditForm() { $this->formType = 'edit'; $this->cache->updateCacheWithoutSaving( 'topicTitleColored', $this->hook_topicTitleColored() ); parent::showEditForm(); } public function showTopicForm() { $this->formType = 'new'; $this->cache->updateCacheWithoutSaving( 'topicTitleColored', $this->hook_topicTitleColored() ); parent::showTopicForm(); } public function editPost() { try { $return = parent::editPost(); if ( $return === TRUE ) { if( $this->_originalPost['new_topic'] == 1 ) { $bold = 0; $italic = 0; $toUpdate = array(); if ( isset( $this->request['ttc_fontcolor'] ) and $this->request['ttc_fontcolor'] ) { $toUpdate['ttc_fontcolor'] = $this->request['ttc_fontcolor']; } else { $toUpdate['ttc_fontcolor'] = ''; } if ( isset( $this->request['ttc_backgroundcolor'] ) and $this->request['ttc_backgroundcolor'] ) { $toUpdate['ttc_backgroundcolor'] = $this->request['ttc_backgroundcolor']; } else { $toUpdate['ttc_backgroundcolor'] = ''; } if ( isset( $this->request['ttc_bold'] ) and $this->request['ttc_bold'] == 1 ) { $bold = 1; } else { $bold = 0; } $toUpdate['ttc_bold'] = $bold; if ( isset( $this->request['ttc_italic'] ) and $this->request['ttc_italic'] == 1 ) { $italic = 1; } else { $italic = 0; } $toUpdate['ttc_italic'] = $italic; if ( count( $toUpdate ) ) { $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'forums' ) . "/sources/classes/topics.php", 'app_forums_classes_topics', 'forums' ); $topicClass = new $classToLoad( $this->registry ); $topic = $topicClass->getTopicById( $this->request['t'] ); $topic = array_merge( $topic, $toUpdate ); $topicClass->updateTopic( $topic['tid'], $toUpdate ); /* Needs this in case someone but the topic starter edits the topic */ $this->setAuthor( $topic['starter_id'] ); $dbs = array(); $this->registry->cache()->updateCacheWithoutSaving( 'topicData', $topic ); $this->DB->setDataType( array( 'last_poster_name', 'seo_last_name', 'seo_last_title', 'last_title' ), 'string' ); /* Data Hook Location */ IPSLib::doDataHooks( $dbs, 'updateForumLastPostData' ); $this->DB->update( 'forums', $dbs, "id=".intval($topic['forum_id']) ); } } } return $return; } catch( Exception $error ) { throw new Exception( $error->getMessage() ); } } protected function updateForumAndStats( $topic, $type='new') { $this->registry->cache()->updateCacheWithoutSaving( 'topicData', $topic ); return parent::updateForumAndStats( $topic, $type ); } }]]> </hooks_source> </file> -<file> <hook_file_real>SOS33_ttc_newtopic_forumview.php</hook_file_real> <hook_type>templateHooks</hook_type> <hook_classname>SOS33_ttc_newtopic_forumview</hook_classname> -<hook_data> <![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:10:"skin_forum";s:12:"skinFunction";s:18:"forumIndexTemplate";s:4:"type";s:2:"if";s:2:"id";s:10:"showtopics";s:8:"position";s:12:"post.startif";}]]> </hook_data> -<hooks_source> <![CDATA[<?php /** * Product Title: (SOS34) Topic Title Colored * Product Version: 2.2.0 * Author: Adriano Faria * Website: SOS Invision * Website URL: [Hidden Content] * Email: administracao@sosinvision.com.br */ class SOS33_ttc_newtopic_forumview { protected $registry; protected $DB; protected $request; protected $lang; protected $prefixes; public function __construct() { $this->registry = ipsRegistry::instance(); $this->DB = $this->registry->DB(); $this->request =& $this->registry->fetchRequest(); $this->lang = $this->registry->getClass('class_localization'); } public function getOutput() { $data = $this->registry->output->getTemplate('forum')->functionData['forumIndexTemplate'][0]; $style = ""; foreach( $data['topic_data'] as $topic ) { if ( ! $topic['ttc_fontcolor'] AND ! $topic['ttc_backgroundcolor'] AND ! $topic['ttc_bold'] AND ! $topic['ttc_italic'] ) { continue; } $style .= "#tid-link-{$topic['tid']} {" . PHP_EOL; if ( $topic['ttc_backgroundcolor'] ) { $style .= "-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding-left:5px;padding-right:5px;padding-top:2px;padding-bottom:2px;"; } $style .= ( $topic['ttc_fontcolor'] ) ? "\tcolor: {$topic['ttc_fontcolor']};" . PHP_EOL : ''; $style .= ( $topic['ttc_backgroundcolor'] ) ? "\tbackground-color: {$topic['ttc_backgroundcolor']};" . PHP_EOL : ''; $style .= ( $topic['ttc_italic'] ) ? "\tfont-style: italic;" . PHP_EOL : ''; $style .= ( $topic['ttc_bold'] ) ? "\tfont-weight: bold;" . PHP_EOL : ''; $style .= "}" . PHP_EOL; } return ( ! empty( $style ) ) ? "<style type='text/css'>{$style}</style>" : ''; } /*public function replaceOutput( $output, $key ) { $data = $this->registry->output->getTemplate('forum')->functionData['forumIndexTemplate'][0]; $tag = '<!--hook.'.$key.'-->'; $lastFound = 0; $fc = ""; $bg = ""; foreach( $data['topic_data'] as $tid => $topic ) { $tag2 = '"topic-'.$tid.'"'; $pos = strpos( $output, $tag, $lastFound ); $pos = $pos ? $pos : strpos( $output, '"topic-'.$tid.'"', $lastFound ) + strlen( $tag2 ) + 1; if ( $topic['ttc_fontcolor'] ) { $fc = 'color:'.$topic['ttc_fontcolor'].';'; } if ( $topic['ttc_backgroundcolor'] ) { $bg = 'background-color:'.$topic['ttc_backgroundcolor'].';'; } if ( $topic['ttc_bold'] ) { $bold = 'font-weight:bold;'; } if ( $topic['ttc_italic'] ) { $italic = 'font-style: italic;'; } if ( $fc OR $bg OR $bold or $italic ) { $strToInsert = '<div style="float:left;'.$fc.$bg.$bold.$italic.'">'; } if( $pos ) { $output = substr_replace( $output, $strToInsert, $pos, 0 ); $lastFound = $pos + strlen( $tag . $strToInsert ); } } return $output; }*/ } ]]> </hooks_source> </file> -<file> <hook_file_real>SOS33_ttc_search.php</hook_file_real> <hook_type>templateHooks</hook_type> <hook_classname>SOS33_ttc_search</hook_classname> -<hook_data> <![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:11:"skin_search";s:12:"skinFunction";s:20:"searchResultsAsForum";s:4:"type";s:7:"foreach";s:2:"id";s:16:"NCresultsAsForum";s:8:"position";s:9:"outer.pre";}]]> </hook_data> -<hooks_source> <![CDATA[<?php class SOS33_ttc_search { /** * Product Title: (SOS34) Topic Title Colored * Product Version: 2.2.0 * Author: Adriano Faria * Website: SOS Invision * Website URL: [Hidden Content] * Email: administracao@sosinvision.com.br */ public function __construct() { $this->registry = ipsRegistry::instance(); $this->DB = $this->registry->DB(); $this->request =& $this->registry->fetchRequest(); $this->lang = $this->registry->getClass('class_localization'); $this->cache = $this->registry->cache(); $this->caches =& $this->registry->cache()->fetchCaches(); $this->settings =& $this->registry->fetchSettings(); } public function getOutput() { $data = $this->caches['resultSet']; $selectorTitle = $this->lang->words['view_result']; $style = ""; if ( is_array( $data ) AND count( $data ) ) { foreach( $data as $topic ) { if ( ! $topic['ttc_fontcolor'] AND ! $topic['ttc_backgroundcolor'] AND ! $topic['ttc_bold'] AND ! $topic['ttc_italic'] ) { continue; } if ( !$this->settings['SOS33_ttc_searchresults'] ) { continue; } $style .= "#trow_{$topic['tid']} a[title='{$selectorTitle}'] {" . PHP_EOL; if ( $topic['ttc_backgroundcolor'] ) { $style .= "-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding-left:5px;padding-right:5px;padding-top:2px;padding-bottom:2px;"; } $style .= ( $topic['ttc_fontcolor'] ) ? "\tcolor: {$topic['ttc_fontcolor']};" . PHP_EOL : ''; $style .= ( $topic['ttc_backgroundcolor'] ) ? "\tbackground-color: {$topic['ttc_backgroundcolor']};" . PHP_EOL : ''; $style .= ( $topic['ttc_italic'] ) ? "\tfont-style: italic;" . PHP_EOL : ''; $style .= ( $topic['ttc_bold'] ) ? "\tfont-weight: bold;" . PHP_EOL : ''; $style .= "}" . PHP_EOL; } } return ( ! empty( $style ) ) ? "<style type='text/css'>{$style}</style>" : ''; } }]]> </hooks_source> </file> -<file> <hook_file_real>SOS33_ttc_search_dummy.php</hook_file_real> <hook_type>skinHooks</hook_type> <hook_classname>SOS33_ttc_search_dummy</hook_classname> -<hook_data> <![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:11:"skin_search";s:9:"skinGroup";N;s:12:"skinFunction";N;s:4:"type";N;s:2:"id";N;s:8:"position";N;}]]> </hook_data> -<hooks_source> <![CDATA[ /** * Product Title: (SOS34) Topic Title Colored * Product Version: 2.2.0 * Author: Adriano Faria * Website: SOS Invision * Website URL: [Hidden Content] * Email: administracao@sosinvision.com.br */ /* This is just a dummy hook to get access to the data I need in a different templatehook */ class SOS33_ttc_search_dummy extends skin_search(~id~) { function topicPostSearchResultAsForum( $data, $resultAsTitle=false ) { $cache = $this->caches['resultSet']; $cache[ $data['tid'] ] = $data; $this->cache->updateCacheWithoutSaving( 'resultSet', $cache ); return parent::topicPostSearchResultAsForum( $data, $resultAsTitle ); } }]]> </hooks_source> </file> -<file> <hook_file_real>SOS33_ttc_boardIndex.php</hook_file_real> <hook_type>libraryHooks</hook_type> <hook_classname>SOS33_ttc_boardIndex</hook_classname> -<hook_data> <![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:6:"forums";s:15:"classToOverload";s:12:"class_forums";s:9:"skinGroup";N;s:12:"skinFunction";N;s:4:"type";N;s:2:"id";N;s:8:"position";N;}]]> </hook_data> -<hooks_source> <![CDATA[<?php /** * Product Title: (SOS34) Topic Title Colored * Product Version: 2.2.0 * Author: Adriano Faria * Website: SOS Invision * Website URL: [Hidden Content] * Email: administracao@sosinvision.com.br */ class SOS33_ttc_boardIndex extends (~extends~) { public function forumsFormatLastinfo( $forum_data ) { if ( !$this->settings['SOS33_ttc_boardindex'] ) { return parent::forumsFormatLastInfo( $forum_data ); } $forum_data = parent::forumsFormatLastInfo( $forum_data ); if ( $forum_data['last_topic_title'] AND $forum_data['_hide_last_date'] != TRUE ) { $topic = unserialize( $forum_data['last_title_style'] ); if ( ( ! $topic['styleForTid'] OR $topic['styleForTid'] == $forum_data['last_id'] ) AND ( $topic['ttc_fontcolor'] OR $topic['ttc_backgroundcolor'] OR $topic['ttc_bold'] OR $topic['ttc_italic'] ) ) { $style .= " style='"; $style .= "-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding-left:5px;padding-right:5px;padding-top:2px;padding-bottom:2px;"; $style .= ( $topic['ttc_fontcolor'] ) ? "color: {$topic['ttc_fontcolor']}; " : ''; $style .= ( $topic['ttc_backgroundcolor'] ) ? "background-color: {$topic['ttc_backgroundcolor']}; " : ''; $style .= ( $topic['ttc_italic'] ) ? "font-style: italic; " : ''; $style .= ( $topic['ttc_bold'] ) ? "font-weight: bold; " : ''; $style .= "'"; $forum_data['last_topic_title'] = "<a{$style} href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showtopic={$forum_data['last_id']}&amp;view=getnewpost", 'public' ), $forum_data['seo_last_title'], 'showtopic' ) . "' title='" . $this->lang->words['tt_gounread'] . ": {$forum_data['full_last_title']}'>{$forum_data['last_title']}</a>"; } } return $forum_data; } public function forumsCalcChildren( $root_id, $forum_data=array(), $done_pass=0 ) { //----------------------------------------- // Markers //----------------------------------------- $rtime = $this->registry->classItemMarking->fetchTimeLastMarked( array( 'forumID' => $forum_data['id'] ), 'forums' ); if( !isset($forum_data['_has_unread']) ) { $forum_data['_has_unread'] = ( $forum_data['last_post'] && $forum_data['last_post'] > $rtime ) ? 1 : 0; } if ( isset( $this->forum_cache[ $root_id ]) AND is_array( $this->forum_cache[ $root_id ] ) ) { foreach( $this->forum_cache[ $root_id ] as $data ) { if ( $data['last_post'] > $forum_data['last_post'] AND ! $data['hide_last_info'] ) { $forum_data['last_post'] = $data['last_post']; $forum_data['fid'] = $data['id']; $forum_data['last_id'] = $data['last_id']; $forum_data['last_title'] = $data['last_title']; $forum_data['seo_last_title'] = $data['seo_last_title']; $forum_data['password'] = isset( $data['password'] ) ? $data['password'] : ''; $forum_data['password_override'] = isset( $data['password_override'] ) ? $data['password_override'] : ''; $forum_data['last_poster_id'] = $data['last_poster_id']; $forum_data['last_poster_name'] = $data['last_poster_name']; $forum_data['seo_last_name'] = $data['seo_last_name']; $forum_data['_has_unread'] = $forum_data['_has_unread']; $forum_data['last_title_style'] = $data['last_title_style']; // TTC } //----------------------------------------- // Markers. We never set false from inside loop. //----------------------------------------- $rtime = $this->registry->classItemMarking->fetchTimeLastMarked( array( 'forumID' => $data['id'] ), 'forums' ); $data['_has_unread'] = 0; if( $data['last_post'] && $data['last_post'] > $rtime ) { $forum_data['_has_unread'] = 1; $data['_has_unread'] = 1; } //----------------------------------------- // Topics and posts //----------------------------------------- $forum_data['posts'] += $data['posts']; $forum_data['topics'] += $data['topics']; $_mod = ( isset( $this->_memberData['forumsModeratorData'] ) ) ? $this->_memberData['forumsModeratorData'] : array(); if ( $this->_memberData['g_is_supmod'] or ( $_mod && !empty( $_mod[ $data['id'] ]['post_q'] ) ) ) { $forum_data['queued_posts'] += $data['queued_posts']; $forum_data['queued_topics'] += $data['queued_topics']; } if ( ! $done_pass ) { $forum_data['subforums'][ $data['id'] ] = array($data['id'], $data['name'], $data['name_seo'], intval( $data['_has_unread'] ), 0 ); } $forum_data = $this->forumsCalcChildren( $data['id'], $forum_data, 1 ); } } return $forum_data; } public function hooks_recentTopics( $topicCount=5, $output=true ) { /* INIT */ $topicIDs = array(); $topic_rows = array(); $timesUsed = array(); $bvnp = explode( ',', $this->settings['vnp_block_forums'] ); $this->registry->class_localization->loadLanguageFile( array( 'public_topic' ), 'forums' ); /* Grab last X data */ foreach( $this->forum_by_id as $forumID => $forumData ) { if ( ! $forumData['can_view_others'] ) { continue; } if ( $forumData['password'] ) { continue; } if ( ! $this->registry->permissions->check( 'read', $forumData ) ) { continue; } if ( is_array( $bvnp ) AND count( $bvnp ) ) { if ( in_array( $forumID, $bvnp ) ) { continue; } } if ( $this->settings['forum_trash_can_id'] AND $forumID == $this->settings['forum_trash_can_id'] ) { continue; } /* Still here? */ $_topics = $this->lastXThaw( $forumData['last_x_topic_ids'] ); if ( is_array( $_topics ) ) { foreach( $_topics as $id => $time ) { if( in_array( $time, $timesUsed ) ) { while( in_array( $time, $timesUsed ) ) { $time +=1; } } $timesUsed[] = $time; $topicIDs[ $time ] = $id; } } } $timesUsed = array(); if ( is_array( $topicIDs ) && count( $topicIDs ) ) { krsort( $topicIDs ); /* We get up to double in case some of the latest are moved_to links - we do another array_slice afterwards to limit to right limit */ $_topics = array_slice( $topicIDs, 0, $topicCount * 2 ); if ( is_array( $_topics ) && count( $_topics ) ) { /* Query Topics */ $this->registry->DB()->build( array( 'select' => 't.tid, t.title as topic_title, t.title_seo, t.start_date, t.starter_id, t.starter_name, t.moved_to, t.views, t.posts, t.ttc_fontcolor, t.ttc_backgroundcolor, t.ttc_bold, t.ttc_italic', 'from' => array( 'topics' => 't' ), 'where' => 't.tid IN (' . implode( ',', array_values( $_topics ) ) . ')', 'add_join' => array( array( 'select' => 'm.*', 'from' => array( 'members' => 'm' ), 'where' => 'm.member_id=t.starter_id', 'type' => 'left', ), array( 'select' => 'pp.*', 'from' => array( 'profile_portal' => 'pp' ), 'where' => 'm.member_id=pp.pp_member_id', 'type' => 'left', ), ) ) ); $this->registry->DB()->execute(); while( $r = $this->registry->DB()->fetch() ) { if( !is_null($r['moved_to']) ) { continue; } $time = $r['start_date']; if( in_array( $time, $timesUsed ) ) { while( in_array( $time, $timesUsed ) ) { $time +=1; } } if ( $this->settings['SOS33_ttc_sidebar'] ) { $style = ""; if ( $output AND ( $r['ttc_fontcolor'] OR $r['ttc_backgroundcolor'] OR $r['ttc_bold'] OR $r['ttc_italic'] ) ) { $style .= " style='"; if ( $r['ttc_backgroundcolor'] ) { $style .= "-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding-left:5px;padding-right:5px;padding-top:2px;padding-bottom:2px;"; } $style .= ( $r['ttc_fontcolor'] ) ? "color: {$r['ttc_fontcolor']}; " : ''; $style .= ( $r['ttc_backgroundcolor'] ) ? "background-color: {$r['ttc_backgroundcolor']}; " : ''; $style .= ( $r['ttc_italic'] ) ? "font-style: italic; " : ''; $style .= ( $r['ttc_bold'] ) ? "font-weight: bold; " : ''; $style .= "'"; $r['topic_title'] = "<span{$style}>{$r['topic_title']}</span>"; } } $timesUsed[] = $time; $topics_rows[ $time ] = IPSMember::buildDisplayData( $r ); } /* Got any results? */ if ( count($topics_rows) ) { krsort( $topics_rows ); $topics_rows = array_slice( $topics_rows, 0, $topicCount ); } } } if( $output ) { return $this->registry->output->getTemplate( 'boards' )->hookRecentTopics( $topics_rows ); } else { return $topics_rows; } } }]]> </hooks_source> </file> </hookfiles> -<hookextras_settings> -<setting> <conf_is_title>1</conf_is_title> <conf_title_title>(SOS34) Цветные названия тем</conf_title_title> <conf_title_desc>Настройки для хука</conf_title_desc> <conf_title_noshow>0</conf_title_noshow> <conf_title_keyword>SOS33_ttc</conf_title_keyword> <conf_title_app>forums</conf_title_app> <conf_title_tab>IZ_mod</conf_title_tab> </setting> -<setting> <conf_id>392</conf_id> <conf_title>Использовать цвет фона?</conf_title> <conf_description/> <conf_group>36</conf_group> <conf_type>yes_no</conf_type> <conf_key>SOS33_ttc_backgroundcolor</conf_key> <conf_value/> <conf_default>1</conf_default> <conf_extra/> <conf_evalphp/> <conf_protected>1</conf_protected> <conf_position>1</conf_position> <conf_start_group>Общие настройки</conf_start_group> <conf_end_group>0</conf_end_group> <conf_add_cache>1</conf_add_cache> <conf_keywords/> <conf_title_keyword>SOS33_ttc</conf_title_keyword> <conf_is_title>0</conf_is_title> </setting> -<setting> <conf_id>393</conf_id> <conf_title>Показать окрашеные названия тем на главной странице</conf_title> <conf_description/> <conf_group>36</conf_group> <conf_type>yes_no</conf_type> <conf_key>SOS33_ttc_boardindex</conf_key> <conf_value/> <conf_default>1</conf_default> <conf_extra/> <conf_evalphp/> <conf_protected>1</conf_protected> <conf_position>2</conf_position> <conf_start_group/> <conf_end_group>0</conf_end_group> <conf_add_cache>1</conf_add_cache> <conf_keywords/> <conf_title_keyword>SOS33_ttc</conf_title_keyword> <conf_is_title>0</conf_is_title> </setting> -<setting> <conf_id>394</conf_id> <conf_title>Показать окрашенные названия тем в боковом блоке?</conf_title> <conf_description/> <conf_group>36</conf_group> <conf_type>yes_no</conf_type> <conf_key>SOS33_ttc_sidebar</conf_key> <conf_value/> <conf_default>1</conf_default> <conf_extra/> <conf_evalphp/> <conf_protected>1</conf_protected> <conf_position>3</conf_position> <conf_start_group/> <conf_end_group>0</conf_end_group> <conf_add_cache>1</conf_add_cache> <conf_keywords/> <conf_title_keyword>SOS33_ttc</conf_title_keyword> <conf_is_title>0</conf_is_title> </setting> -<setting> <conf_id>395</conf_id> <conf_title>Показать окрашенные название темы в результатах поиска?</conf_title> <conf_description/> <conf_group>36</conf_group> <conf_type>yes_no</conf_type> <conf_key>SOS33_ttc_searchresults</conf_key> <conf_value/> <conf_default>1</conf_default> <conf_extra/> <conf_evalphp/> <conf_protected>1</conf_protected> <conf_position>4</conf_position> <conf_start_group/> <conf_end_group>0</conf_end_group> <conf_add_cache>1</conf_add_cache> <conf_keywords/> <conf_title_keyword>SOS33_ttc</conf_title_keyword> <conf_is_title>0</conf_is_title> </setting> -<setting> <conf_id>396</conf_id> <conf_title>Показать окрашенные название темы в профиле вкладок (тем и сообщений)?</conf_title> <conf_description/> <conf_group>36</conf_group> <conf_type>yes_no</conf_type> <conf_key>SOS33_ttc_profiletab</conf_key> <conf_value/> <conf_default>1</conf_default> <conf_extra/> <conf_evalphp/> <conf_protected>1</conf_protected> <conf_position>5</conf_position> <conf_start_group/> <conf_end_group>0</conf_end_group> <conf_add_cache>1</conf_add_cache> <conf_keywords/> <conf_title_keyword>SOS33_ttc</conf_title_keyword> <conf_is_title>0</conf_is_title> </setting> -<setting> <conf_id>395</conf_id> <conf_title>Группы которые смогут создавать цветные темы</conf_title> <conf_description/> <conf_group>36</conf_group> <conf_type>multi</conf_type> <conf_key>SOS33_ttc_grupos</conf_key> <conf_value/> <conf_default/> <conf_extra>#show_groups#</conf_extra> -<conf_evalphp> <![CDATA[if ( $save == 1) { if ( is_array($_POST['SOS33_ttc_grupos']) ) { $_POST['SOS33_ttc_grupos'] = implode(",",$_POST['SOS33_ttc_grupos']); } else { $_POST['SOS33_ttc_grupos'] = ""; } $key = 'SOS33_ttc_grupos'; } if ( $show == 1 ) { $key = 'SOS33_ttc_grupos[]'; }]]> </conf_evalphp> <conf_protected>1</conf_protected> <conf_position>6</conf_position> <conf_start_group/> <conf_end_group>0</conf_end_group> <conf_add_cache>1</conf_add_cache> <conf_keywords/> <conf_title_keyword>SOS33_ttc</conf_title_keyword> <conf_is_title>0</conf_is_title> </setting> -<setting> <conf_id>396</conf_id> <conf_title>Форум, где пользователи могут создавать темы с цветными названиями</conf_title> <conf_description/> <conf_group>36</conf_group> <conf_type>multi</conf_type> <conf_key>SOS33_ttc_forums</conf_key> <conf_value/> <conf_default/> <conf_extra>#show_forums#</conf_extra> -<conf_evalphp> <![CDATA[if ( $save == 1) { if ( is_array($_POST['SOS33_ttc_forums']) ) { $_POST['SOS33_ttc_forums'] = implode(",",$_POST['SOS33_ttc_forums']); } else { $_POST['SOS33_ttc_forums'] = ""; } $key = 'SOS33_ttc_forums'; } if ( $show == 1 ) { $key = 'SOS33_ttc_forums[]'; }]]> </conf_evalphp> <conf_protected>1</conf_protected> <conf_position>7</conf_position> <conf_start_group/> <conf_end_group>0</conf_end_group> <conf_add_cache>1</conf_add_cache> <conf_keywords/> <conf_title_keyword>SOS33_ttc</conf_title_keyword> <conf_is_title>0</conf_is_title> </setting> </hookextras_settings> -<hookextras_language> -<language> <word_app>forums</word_app> <word_pack>public_post</word_pack> <word_key>ttc_backgroundcolor</word_key> <word_default>Фон</word_default> <word_custom/> <word_js>0</word_js> </language> -<language> <word_app>forums</word_app> <word_pack>public_post</word_pack> <word_key>ttc_title</word_key> <word_default>Цвета</word_default> <word_custom/> <word_js>0</word_js> </language> -<language> <word_app>forums</word_app> <word_pack>public_post</word_pack> <word_key>ttc_italic</word_key> -<word_default> <![CDATA[<em>Курсив</em>]]> </word_default> <word_custom/> <word_js>0</word_js> </language> -<language> <word_app>forums</word_app> <word_pack>public_post</word_pack> <word_key>ttc_fontcolor</word_key> <word_default>Цвет текста</word_default> <word_custom/> <word_js>0</word_js> </language> -<language> <word_app>forums</word_app> <word_pack>public_post</word_pack> <word_key>ttc_bold</word_key> -<word_default> <![CDATA[<strong>Жирный</strong>]]> </word_default> <word_custom/> <word_js>0</word_js> </language> </hookextras_language> <hookextras_modules/> <hookextras_help/> -<hookextras_templates> -<templates> <template_set_id>0</template_set_id> <template_group>skin_post</template_group> -<template_content> <![CDATA[<script type='text/javascript' src='{$this->settings['public_dir']}/js/3rd_party/colorpicker/jscolor.js'></script> <div class='ipsPostForm_sidebar_block'> <h3 class='bar'>{$this->lang->words['ttc_title']} <span class='desc'>{$this->lang->words['post_optional']}</span></h3> <ul class='ipsPad ipsForm ipsForm_vertical'> <li class='ipsField'> <label for='ttc_fontcolor' class=''>{$this->lang->words['ttc_fontcolor']}</label> <p class='ipsField_content'> <input id='ttc_fontcolor' class='input_text color {pickerPosition:"top",hash:true,required:false}' type="text" size="17" maxlength="10" name="ttc_fontcolor" value="{$formData['ttc_fontcolor']}" tabindex="0" /> </p> </li> <if test="$this->settings['SOS33_ttc_backgroundcolor']"> <li class='ipsField'> <label for='ttc_backgroundcolor' class=''>{$this->lang->words['ttc_backgroundcolor']}</label> <p class='ipsField_content'> <input id='topic_bg' class='input_text color {pickerPosition:"top",hash:true,required:false}' type="text" size="17" maxlength="10" name="ttc_backgroundcolor" value="{$formData['ttc_backgroundcolor']}" tabindex="0" /> </p> </li> </if> <li class='ipsField ipsField_checkbox'> <input type="checkbox" name="ttc_bold" id="ttc_bold" value="1" class="input_check" <if test="$formData['ttc_bold']">checked='checked'</if> /> <p class='ipsField_content'> <label for="ttc_bold"><strong>{$this->lang->words['ttc_bold']}</strong></label> </p> </li> <li class='ipsField ipsField_checkbox'> <input type="checkbox" name="ttc_italic" id="ttc_italic" value="1" class="input_check" <if test="$formData['ttc_italic']">checked='checked'</if> /> <p class='ipsField_content'> <label for='ttc_italic'><em>{$this->lang->words['ttc_italic']}</em></label> </p> </li> </ul> </div>]]> </template_content> <template_name>topicTitleColored</template_name> <template_data>$formData=array()</template_data> <template_updated>1305660883</template_updated> <template_removable>0</template_removable> <template_added_to>0</template_added_to> <template_user_added>0</template_user_added> <template_user_edited>0</template_user_edited> <template_master_key>root</template_master_key> <template_set_type/> </templates> -<templates> <template_group>skin_profile</template_group> -<template_content> <![CDATA[<div class='post_block no_sidebar'> <div class='post_wrap'> <if test="singleColumnTitle:|:$title"> <if test="singleColumnUrl:|:$url"> <h3 class='row2'><a href="$url" title="{$this->lang->words['view_topic']}">$title</a></h3> <else /> <h3 class='row2'>$title</h3> </if> </if> <div class='post_body'> <p class='posted_info'> <if test="date:|:$row['_raw_date']">{parse date="$row['_raw_date']" format="long"}<else />{$this->lang->words['posted']} {$row['_date_array']['mday']} {$row['_date_array']['smonth']} {$row['_date_array']['year']}</if> </p> <div class='post'> {$row['post']} </div> </div> </div> <br /> </div>]]> </template_content> <template_name>ttc_tabSingleColumn</template_name> -<template_data> <![CDATA[$row=array(), $read_more_link='', $url='', $title='']]> </template_data> <template_updated>1313408200</template_updated> <template_removable>1</template_removable> <template_added_to>1</template_added_to> <template_user_added>1</template_user_added> <template_user_edited>1</template_user_edited> <template_master_key>root</template_master_key> </templates> </hookextras_templates> <hookextras_css/> <hookextras_tasks/> <hookextras_database_create/> -<hookextras_database_alter> -<alter> <altertype>add</altertype> <table>topics</table> <field>ttc_fontcolor</field> <newfield/> <fieldtype>varchar(32)</fieldtype> <default>null</default> </alter> -<alter> <altertype>add</altertype> <table>topics</table> <field>ttc_backgroundcolor</field> <newfield/> <fieldtype>varchar(32)</fieldtype> <default>null</default> </alter> -<alter> <altertype>add</altertype> <table>topics</table> <field>ttc_bold</field> <newfield/> <fieldtype>tinyint(1)</fieldtype> <default>0</default> </alter> -<alter> <altertype>add</altertype> <table>topics</table> <field>ttc_italic</field> <newfield/> <fieldtype>tinyint(1)</fieldtype> <default>0</default> </alter> -<alter> <altertype>add</altertype> <table>forums</table> <field>last_title_style</field> <newfield/> <fieldtype>varchar(255)</fieldtype> <default>null</default> </alter> </hookextras_database_alter> <hookextras_database_update/> <hookextras_database_insert/> </hookexport> Thank in advance for your help and your feedback
  26. About This File This is a custom .htaccess to use on the IPS Community Suite Forums. It helps to improve your forums Google Page Speed and YSlow scores. The top segment is the same .htaccess that is generated by the IPS Forum software. This segment is Invision Power Services code and I do not claim it as my own. All rights and credit for this segment of the .htaccess are Invision Power Services. The bottom segment is based upon research of several websites and the references listed below. Please be careful when using this file because the contents may be incompatible with your server setup. Preventative measures have been taken to ensure that it should be safe to use in any Apache based environment. Google recommends a minimum of one week: [Hidden Content] GTmetrix recommends a minimum of one month: [Hidden Content] Download: [Hidden Content]
  27. Thank you for this
  1. Load more activity