Unter "Letzter Beitrag" soll auch der Titel stehen

Du suchst einen bestimmten Mod, weißt aber nicht genau wo bzw. ob er überhaupt existiert? Wenn dir dieser Artikel nicht weiterhilft, kannst du hier den von dir gewünschten/gesuchten Mod beschreiben ...
Falls ein Mod-Autor eine der Anfragen hier aufnimmt um einen neuen Mod zu entwicklen, geht's in phpBB 2.0: Mods in Entwicklung weiter.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Superior
Mitglied
Beiträge: 3
Registriert: 16.12.2003 13:28

Unter "Letzter Beitrag" soll auch der Titel stehen

Beitrag von Superior »

Hallo
ich habe erfolgreich und auch dank des Forums mein phpbb Board installiert und möchte jetzt gerne folgende Änderung falls diese schon möglich ist! Ich hätte sehr gerne das unter "Letzter Beitrag" nicht nur das Datum, Uhrzeit und der Poster steht, sondern auch der Titel des letzten Themas. Habe dies schon auf einigen anderen Boards gesehen. Kann mir damit jemand helfen oder weiss ob es dafür irgendwo ne deutsche Anleitung gibt? Vielen Dank Schonmal
Gruß
Superior
Benutzeravatar
Markus Wandel
Mitglied
Beiträge: 658
Registriert: 01.12.2003 18:13
Wohnort: Wuppertal
Kontaktdaten:

Beitrag von Markus Wandel »

Hi,

ich habe das hier bei mir installiert, und es geht:

Code: Alles auswählen

##############################################################
## Mod Title:   shows topic of last made post on index
## Mod Version: 1.4.0
## Author:      e-sven <sven@e-sven.net> http://www.e-sven.net
## Description: -adds lasts post topic to each forum on
##               the index page (based on read-access)
##		-word censorship is used
##		-topic title with more then 27 chars are cut off
##		-mouseover info displays the full title
##
## Installation Level:  easy
## Installation Time:   2-5 Minutes
## Files To Edit:       index.php
## Included Files:      index.php (pre-modded)
##############################################################
## History:
##         0.9 not released beta
##         1.0 first working release
##         1.1 optimized db access
##	   1.2 made implementation easier 
##	       (only two replaces have to be made)
##         1.2a just a minor bug (thanks to Acid)
##         1.3 empty forums where not displayed correctly
##         1.4 optimized db-query
############################################################## 
## Before Adding This MOD To Your Forum, 
## You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------------
#
index.php

#
#-----[ ACTION Find ]-----------------------------------------
#
default:
	$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
	.
	.
	.
	//
	//
	// Obtain a list of topic ids which contain


#
#-----[ REPLACE WITH ]----------------------------------------
#
default:
 		$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id, t.topic_title, t.topic_last_post_id " .
			" FROM ((( " . FORUMS_TABLE . " f " .
			" LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )" .
			" LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id ) " .
			" LEFT JOIN " . TOPICS_TABLE . " t ON t.topic_last_post_id = p.post_id ) " .
			" ORDER BY f.cat_id, f.forum_order";
		break;
	}
	if ( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql);
	}

	$forum_data = array();
	$topic_last_ary = array();
	$i=0;
	while( $row = $db->sql_fetchrow($result) )
	{
		if (!in_array($row['topic_last_post_id'], $topic_last_ary) || $row['topic_last_post_id']==0) {
			$topic_last_ary[i]=$row['topic_last_post_id'];
			$i++;
			$forum_data[] = $row;
		}
	}
	unset($topic_last_ary);
	if ( !($total_forums = count($forum_data)) )
	{
		message_die(GENERAL_MESSAGE, $lang['No_forums']);
	}
	
	//
	// Filter topic_title not allowed to read
	// 
	if ( !($userdata['user_level'] == ADMIN && $userdata['session_logged_in']) ) {
		$auth_read_all = array();
		$auth_read_all=auth(AUTH_READ, AUTH_LIST_ALL, $userdata, $forum_data);
		$auth_data = '';
		for($i=0; $i<count($forum_data); $i++)
		{
			if (!$auth_read_all[$forum_data[$i]['forum_id']]['auth_read']) {
				$forum_data[$i]['topic_title']='';
			}
		}
	}

	//
	// Define censored word matches
	//
	$orig_word = array();
	$replacement_word = array();
	obtain_word_list($orig_word, $replacement_word);

	//
	// Obtain a list of topic ids which contain


#
#-----[ ACTION Find ]-----------------------------------------
#
	if ( $forum_data[$j]['forum_last_post_id'] )
	{
	...
	}


#
#-----[ ACTION Replace With ]---------------------------------
#
	if ( $forum_data[$j]['forum_last_post_id'] )
	{
		$topic_title = $forum_data[$j]['topic_title'];
		$topic_title2 = $forum_data[$j]['topic_title'];
		
		//
		// Censor topic title
		//
		if ( count($orig_word) )
		{
			$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
			$topic_title2 = preg_replace($orig_word, $replacement_word, $topic_title2);
		}
										
		if (strlen($topic_title)>27) {
			$topic_title = substr($topic_title,0,24) . '...';
		}

		$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
		$last_post = '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '" title="' . $topic_title2 . '">' . $topic_title . '</a><br>';
		$last_post .= $last_post_time . '&nbsp;<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '"></a><br>' . $lang['by'] . '&nbsp;';
		$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
	}

#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------
#
Aber immer bedenken:
Sichere vorher die Originaldatei.
WebMaster von: www.RoCoFa.de - Wir sind die RollerCoasterFans
Die Seite für Achterbahn- und Freizeitparkfans, kostenlose Mitgliedschaft, keine Verpflichtungen.
Gast

Beitrag von Gast »

womit kann ich die datei denn ordentlich öffnen bei mir ist das alles sehr durcheinander
Benutzeravatar
Markus Wandel
Mitglied
Beiträge: 658
Registriert: 01.12.2003 18:13
Wohnort: Wuppertal
Kontaktdaten:

Beitrag von Markus Wandel »

Ich benutze zum bearbeiten das Programm "TextPad"

Beim Hersteller Helios Software gibt es davon eine Testversion.
WebMaster von: www.RoCoFa.de - Wir sind die RollerCoasterFans
Die Seite für Achterbahn- und Freizeitparkfans, kostenlose Mitgliedschaft, keine Verpflichtungen.
reichr
Mitglied
Beiträge: 6
Registriert: 30.06.2003 08:26
Kontaktdaten:

..

Beitrag von reichr »

hab das jetz auch probiert!

funktioniert bei mir auch einwandfrei!!
lg

chris
Stean
Mitglied
Beiträge: 13
Registriert: 31.12.2003 16:59

Beitrag von Stean »

Wo gibts denn diesen Mod? Habt ihr einen link für mich? Und wo muss ich den reinkopieren? Ich habe auch grad easymod installiert. Sorry, für die blöden Fragen, aber bin ein Laie.
Vielen besten Dank Jungs,
MfG Stean.
Acid
Ehrenadmin
Beiträge: 12195
Registriert: 26.04.2001 02:00
Wohnort: Berlin

Beitrag von Acid »

Der notwendige Code steht doch da oben.. ;)
Stean
Mitglied
Beiträge: 13
Registriert: 31.12.2003 16:59

Beitrag von Stean »

Mann, ich bin ein Vollidiot. Sorry, aber in diesem Fall hab ich Recht :D
Vielen Dank.
Cesare
Mitglied
Beiträge: 83
Registriert: 15.02.2004 08:34
Wohnort: Naumburg a.d. Saale
Kontaktdaten:

Super

Beitrag von Cesare »

Das ist ja Super schon ewig danach gesucht und hier nun auch gefunden :D

BIG TH>< ich probier´s gleich mal aus
Benutzeravatar
watch
Mitglied
Beiträge: 33
Registriert: 06.01.2004 16:25

Toll!

Beitrag von watch »

Hallo,
bin ebenfalls noch phpbb Anfänger aber habe es ausprobiert und es funktionierte auf Anhieb.
Toll!

Grüße
watch
Antworten

Zurück zu „phpBB 2.0: Mod Suche/Anfragen“