$this->template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_path'] . '/template/bbcode.html';
<!-- BEGIN topicrow -->
document.writeln('<div class="f_trebuchet c_black"><span class="f_12 f_arial">{topicrow.TOPIC_LAST_POST_TIME} <a href="{topicrow.U_TOPIC}" class="f_12 c_blue invert">{topicrow.TOPIC_TITLE}</a><br />is:<!-- PHP -->echo {topicrow.TOPIC_TITLE};<!-- ENDPHP --></div>');Fray98rus писал(а):DimkaG писал(а):В описании написано
В инструкции все написано.
Прочтите topic20956.html
# #-----[ COPY ]------------------------------------------ # copy root/recent.php to recent.php copy root/styles/prosilver/template/recent_body.html to styles/prosilver/template/recent_body.html copy root/styles/subsilver2/template/recent_body.html to styles/subsilver2/template/recent_body.html # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM
## Installation: ## First open recent.php and config the script for yourself. ## Then just paste the folowing JS code on the page of your site ## you want topics to be displayed on. Don't forget to define the correct path ## to your phpBB3 script. ## ## <script language='JavaScript' type='text/javascript' src='/phpBB3/recent.php'></script>
DimkaG писал(а):Вы прежде
<script language='JavaScript' type='text/javascript' src='путь_к_recent.php'></script>
<table class="tablebg" cellspacing="1" width="100%">
<tr>
<th colspan="3">{L_RECENT_NEWS}</th>
</tr>
<tr>
<td class="row1"><strong>{L_RECENT_ANN}</strong></td>
<td class="row1"><strong>{L_RECENT_TOPICS} (здесь всего 15 тем - остальные смотрите в форуме)</strong></td>
</tr>
<tr>
<td class="row1" valign="top">
<!-- BEGIN latest_announcements -->
<!-- IF latest_announcements.S_UNREAD_TOPIC -->
<a href="{latest_announcements.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <a href="{latest_announcements.U_NEWEST_POST}" title="{latest_announcements.FULL_TITLE}" class="link-new">{latest_announcements.TITLE} ({latest_announcements.TOPIC_REPLIES})</a>
<!-- ELSE -->
<a href="{latest_announcements.U_LAST_POST}">{LATEST_POST_IMG}</a> <a href="{latest_announcements.U_LAST_POST}" title="{latest_announcements.FULL_TITLE}">{latest_announcements.TITLE} ({latest_announcements.TOPIC_REPLIES})</a>
<!-- ENDIF -->
<br />
<!-- END latest_announcements -->
</td>
<td class="row1" valign="top">
<!-- BEGIN latest_topics -->
<!-- IF latest_topics.S_UNREAD_TOPIC -->
<a href="{latest_topics.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <a href="{latest_topics.U_NEWEST_POST}" title="{latest_topics.FULL_TITLE}" class="link-new">{latest_topics.TITLE} ({latest_topics.TOPIC_REPLIES})</a>
<!-- ELSE -->
<a href="{latest_topics.U_LAST_POST}">{LATEST_POST_IMG}</a> <a href="{latest_topics.U_LAST_POST}" title="{latest_topics.FULL_TITLE}">{latest_topics.TITLE} ({latest_topics.TOPIC_REPLIES})</a>
<!-- ENDIF -->
<br />
<!-- END latest_topics -->
</td>
</tr>
</table>
<br /><!-- IF S_USER_LOGGED_IN --> код между последними тегами <tr> </tr> <!-- ENDIF -->

Вернуться в Бета-версии модов для phpBB 3.0.x
Сейчас этот форум просматривают: Google Feedfetcher и гости: 0