Fruks
-
Постов
8 -
Зарегистрирован
-
Посещение
Тип контента
Профили
Загрузки
База знаний IPS Community Suite 4
База знаний IP.Board 3.x
Форумы
События
Магазин
Совместные покупки
Сообщения, опубликованные Fruks
-
-
Еще есть forum.tpl
[main]<!-- Модуль Темы с Форума --><div id="lastpost">{item}</div>[/main][item]<div class="lastdate">{link}<div class="lastauts">{date} - от {author}</div></div>[/item]и index.tpl
<!-- Начало Темы с Форума--><div class="for">{forum}</div><!-- Конец Темы с форума --> -
Ну я так понял forum.php
<?php
/*** STRESS WEB* @author S.T.R.E.S.S.* @copyright 2008 - 2012 STRESS WEB* @version 13* @web __stressweb.ru*/if ( !defined("STRESSWEB") )die( "Access denied..." );if ( !$l2cfg["forum"]["enable"] ) {$tpl->SetResult( 'forum' );} else {$mod_forum = $controller->GetCache( 'mod_forum' );if ( $mod_forum )$tpl->SetResult( 'forum', $mod_forum );else {if ( empty($l2cfg["forum"]["deny"]) )$l2cfg["forum"]["deny"] = "0";$fdb = new db( $l2cfg["forum"]["dbhost"], $l2cfg["forum"]["dbuser"], $l2cfg["forum"]["dbpass"], $l2cfg["forum"]["dbname"], $l2cfg["mysql"]["debug"] );$fdb->query( "SET NAMES '{$l2cfg["forum"]["dbcoll"]}'" );/*** =================* IPB* =================*/if ( $l2cfg["forum"]["version"] == "ipb" ) {$fsql = "SELECT tid,title,last_post,last_poster_id,last_poster_nameFROM {$l2cfg["forum"]["prefix"]}topicsWHERE forum_id NOT IN ({$l2cfg["forum"]["deny"]})ORDER BY last_post DESCLIMIT {$l2cfg["forum"]["count"]}";$furl_user = "index.php?showuser=";$furl_link = "index.php?showtopic={topic_id}' title='{desc_id}'";}/*** =================* phpBB* =================*/if ( $l2cfg["forum"]["version"] == "phpbb" ) {$fsql = "SELECT topic_id,topic_title,forum_id,topic_last_post_time,topic_last_poster_id,topic_last_poster_nameFROM {$l2cfg["forum"]["prefix"]}topicsWHERE forum_id NOT IN ({$l2cfg["forum"]["deny"]})ORDER BY topic_last_post_time DESCLIMIT {$l2cfg["forum"]["count"]}";$furl_user = "memberlist.php?mode=viewprofile&u=";$furl_link = "viewtopic.php?f={desc_id}&t={topic_id}'";}/*** =================* smf* =================*/if ( $l2cfg["forum"]["version"] == "smf" ) {$fsql = "SELECT id_topic,subject,id_board,poster_time,id_member,poster_nameFROM {$l2cfg["forum"]["prefix"]}messagesWHERE id_board NOT IN ({$l2cfg["forum"]["deny"]})ORDER BY poster_time DESCLIMIT {$l2cfg["forum"]["count"]}";$furl_user = "index.php?action=profile;u=";$furl_link = "index.php?topic={topic_id}'";}/*** =================* vBulletin* =================*/if ( $l2cfg["forum"]["version"] == "vbulletin" ) {$fsql = "SELECT t.threadid,t.title,t.forumid,t.lastpost,u.userid,t.lastposterFROM {$l2cfg["forum"]["prefix"]}thread tLEFT JOIN {$l2cfg["forum"]["prefix"]}user u ON t.lastposter = u.usernameWHERE t.forumid NOT IN ({$l2cfg["forum"]["deny"]})ORDER BY t.lastpost DESCLIMIT {$l2cfg["forum"]["count"]}";$furl_user = "member.php?u=";$furl_link = "showthread.php?t={topic_id}'";}/*** =================* XenFoRo* © thx Ream* =================*/if ( $l2cfg["forum"]["version"] == "xenforo" ) {$fsql = "SELECT thread_id,title,node_id,last_post_date,user_id,last_post_usernameFROM {$l2cfg["forum"]["prefix"]}threadWHERE node_id NOT IN ({$l2cfg["forum"]["deny"]})ORDER BY last_post_date DESCLIMIT {$l2cfg["forum"]["count"]}";$furl_user = "members/";$furl_link = "threads/{topic_id}'";}/*** ----------------------------------------------------------------------------------------*/$fquery = $fdb->query( $fsql );while ( list($ftid, $ftitle, $fdesc_id, $flast_post, $flast_poster_id, $flast_poster_name) = $fdb->fetch($fquery) ) {if ( strlen($ftitle) > $l2cfg["forum"]["length"] ) {$ftitle = iconv( 'UTF-8', 'windows-1251', $ftitle );$ftitle = substr( $ftitle, 0, $l2cfg["forum"]["length"] - 3 )."...";$ftitle = iconv( 'windows-1251', 'UTF-8', $ftitle );}$flast_post = date( $l2cfg["forum"]["date"], $flast_post );$flast_poster = "<a href='{$l2cfg["forum"]["url"]}/{$furl_user}{$flast_poster_id}' target='_blank'>{$flast_poster_name}</a>";$flast_link = "<a href='{$l2cfg["forum"]["url"]}/".$controller->buildString( $furl_link, array("topic_id" => $ftid, "desc_id" => $fdesc_id) )." target='_blank'>{$ftitle}</a>";$tpl->LoadView( 'forum' );$tpl->Block( 'main', false );$tpl->Block( 'item' );$tpl->Set( 'date', $flast_post );$tpl->Set( 'author', $flast_poster );$tpl->Set( 'link', $flast_link );$tpl->Build( 'forum_item' );}$fdb->close();$tpl->LoadView( 'forum' );$tpl->Block( 'main' );$tpl->Block( 'item', false );$tpl->Set( 'item', $tpl->GetResult('forum_item', true) );$tpl->Build( "forum" );if ( $l2cfg['cache']['enable'] and $l2cfg['cache']['forum'] ) {$controller->SetCache( 'mod_forum', $tpl->GetResult('forum'), $l2cfg['cache']['forum'] );}}}?> -
Все доброго времени суток. Возникла такая проблема, что когда создаешь тему на форуме, то он выводит ее на сайт, но число дата и время всегда 01.01.70 03:00 и не пишет от кого!
Не поможете?
Спасибо за внимание.
P.S может проблема не в форуме, я не знаю
-
Добрый день! Подскажите пожалуйста, как сделать чтобы при регистрации пользователь попадал не в группу "пользователи", а в ту, которую я создал?
Благодарю за внимание.
P.S искал на форуме не нашел
Неактуально, спасибо
-
благодарю
-
А в самом шаблоне где поменять?
-
Когда заходишь на главную страницу не зарегистрированным, то появляется вот такое сообщение: Welcome to Форум сайта La2Divine-World.ru
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account
Как его перевести на русский?
Вывод тем с форума на сайт [Дата]
в Техническая поддержка IP.Board
Опубликовано
Благодарю