Seite 2 von 2

Re: Mod neuetse Nachrichten anzeigen

Verfasst: 20.08.2012 21:24
von Dumdi
Nachfolgend die Installationsanweisung.

Code: Alles auswählen

http://opensource.org/licenses/gpl-license.php GNU General Public License v2
NV recent topics
NV recent topics
Fügt eine Liste mit einer einstellbaren Anzahl aus Themen auf die index.php.
Adds a list with a number of recent topics to the index.php
Ich hoffe ihr kommt mit dem MOD klar. Wenn nicht, könnt ihr auf phpbb.de oder phpbb.com eure Fragen stellen.
i hope you get it installed, otherwise you can ask for help on phpbb.de and phpbb.com


Joas Schilling
nickvergessen@gmx.de
nickvergessen
http://www.flying-bits.org/



1.0.6

easy
300
3.0.9


Update von 1.0.5 auf 1.0.6
Update from 1.0.5 to 1.0.6
Anleitung für das deutsche Sprachpaket
Manual for German Language-set
Anleitung für das Style subsilver2
Manual for subsilver2 Style



2011-06-29
1.0.6

[Fix] Conflict with “Soft Delete” by EXreaction: Don’t display deleted topics (Bug #761)
[Fix] Conflict with “ABBC” by MSSTI: Fix undefined offset error (Bug #805)
[Feature] Add option to display parent forums in recent topics. (Bug #683)
[Feature] Add anchor to pagination links, so you don't need to scroll manually. (Bug #663)



2009-08-03
1.0.5

[Fix] Correctly describe behaviour with 1 and 0 pages.
[Fix] Correctly build pagination with parameters
[Fix] Take all subforums in account when pulling recent topics
[Feature] Make it possible to view two different recent topic boxes on one page



2009-04-22
1.0.4

[Fix] Several subsilver2 bugs: Show report-icon, topic-icons, correct topic-starter, correct topic-start-time
[Fix] Hide unapproved topics when not m_approve
[Fix] Increased performance
[Fix] Fixed pagination on non index.php (by DavidIQ)



2008-12-22
1.0.3

Fixed deny reasons
Show topics of subforums



2008-12-14
1.0.2

Use phpBB-Stuff for adding SQL-Columns
Reduced the number of SQLs: only call if needed
Reduced the SQL-time to about 1/4th



2008-09-09
1.0.1

added a little Pagination



2008-01-06
1.0.0

finale version
little fix: "unread-image"

// Output page
if ($config['rt_index']) {  if (!function_exists('display_recent_topics'))  {   include($phpbb_root_path . 'includes/functions_recenttopics.' . $phpEx);  }  display_recent_topics($config['rt_number'], $config['rt_page_number'], $config['rt_anti_topics'], 'recent_topics', request_var('f', 0), true, $config['rt_parents']); }

<dt><label for="topics_per_page">{L_FORUM_TOPICS_PAGE}:</label><br /><span>{L_FORUM_TOPICS_PAGE_EXPLAIN}</span></dt>    <dd><input type="text" id="topics_per_page" name="topics_per_page" value="{TOPICS_PER_PAGE}" size="4" maxlength="4" /></dd>   </dl>
<dl>    <dt><label for="forum_recent_topics">{L_RECENT_TOPICS_LIST}:</label><br /><span>{L_RECENT_TOPICS_LIST_EXPLAIN}</span></dt>    <dd><label><input type="radio" class="radio" name="forum_recent_topics" value="1"<!-- IF RECENT_TOPICS --> id="forum_recent_topics" checked="checked"<!-- ENDIF --> /> {L_YES}</label>     <label><input type="radio" class="radio" name="forum_recent_topics" value="0"<!-- IF not RECENT_TOPICS --> id="forum_recent_topics" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>   </dl>

$user->add_lang('acp/forums');
$user->add_lang('mods/info_acp_recenttopics');

'forum_topics_per_page' => request_var('topics_per_page', 0),
'forum_recent_topics' => request_var('forum_recent_topics', 1),

'forum_topics_per_page' => 0,
'forum_recent_topics' => 1,

'TOPICS_PER_PAGE'   => $forum_data['forum_topics_per_page'],
'RECENT_TOPICS'    => $forum_data['forum_recent_topics'],

<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<!-- IF RECENT_TOPICS_DISPLAY --><!-- INCLUDE recent_topics_body.html --><!-- ENDIF -->

install/index.php aufrufen und ausführen
Browse to install/index.php and run the installer

Re: Mod neuetse Nachrichten anzeigen

Verfasst: 20.08.2012 21:39
von Crizzo
Das hier so zu posten bringt überhaupt nichts.

Im Ordner "NV_recent_topics_1_0_6" ist eine Datei: install.xml die musst du in deinem Browser (Firefox, Opera, Google Chrome...) aufrufen.

Jetzt hast du eine Seite mit Anweisungen geöffnet. Da steht z.B. sowas:
Files to edit
  • index.php,
  • adm/style/acp_forums.html,
  • includes/acp/acp_forums.php,
  • styles/prosilver/template/index_body.html
D.h. das du diese vier Dateien bearbeiten musst. Wie? Das steht unten drunter ab der Überschrift "Edits". Da sieht so ein Befehl z.B. so aus: (hier nochmal ein Bild von der Original Ansicht:
recent_topics_install_xml.PNG
Open: index.php (d.h. die index.php direkt im Foren Hauptverzeichnis öffnen)
Find: (d.h. in dieser Datei musst folgenden Code finden)

Code: Alles auswählen

// Output page
Add before (d.h. eine Zeile drüber machst du eine neue leere (!) Zeile und fügst nachfolgenden Code dort ein)

Code: Alles auswählen

if ($config['rt_index'])
{
	if (!function_exists('display_recent_topics'))
	{
		include($phpbb_root_path . 'includes/functions_recenttopics.' . $phpEx);
	}
	display_recent_topics($config['rt_number'], $config['rt_page_number'], $config['rt_anti_topics'], 'recent_topics', request_var('f', 0), true, $config['rt_parents']);
}
--> Datei speichern. Weiter zum nächsten Schritt:
Open: adm/style/acp_forums.html
Find....
und so weiter.

Wenn du alle bearbeitet hast, lädst du diese bearbeiten Dateien in dein Forenverzeichnis (natürlich an den gleichen Ort wo sie vorher waren)auf deinen Server (die alten Dateien müssen dabei überschrieben werden und kopierst alle Dateien die unter "File copy" aufgeführt sind, an ihre vorgesehene Stelle. Erst danach sollst du die "install/index.php" aufrufen, das Template aktualisieren und den Foren-Cache löschen.

Grüße

Re: Mod neuetse Nachrichten anzeigen

Verfasst: 23.08.2012 22:05
von Der Mick
Ich finde diesen Mod eigentlich ganz gut. Mich würde interessieren, weil die ganze Sache ja auf Englisch ist, ob sich wenn ich das in mein Forum einbinde, auch in deutsch ausgeführt wird?
Was ein Satz. Aber besser kann ich es heut nicht formulieren.

Re: Mod neuetse Nachrichten anzeigen

Verfasst: 23.08.2012 22:18
von Crizzo
Der Mod hat auch deutsche Sprachdateien mit dabei. Also ist das kein Problem. Selbst die install.xml kann man auf Deutsch stellen, aber das ist bei einem "Find, Add after, Add before" jetzt auch auf Englisch nicht so schwer zu verstehen.

Re: Mod neuetse Nachrichten anzeigen

Verfasst: 23.08.2012 22:57
von Der Mick
Dann werd ich mich mal am WE dran wagen. :grin: