Mod post icons & recent topics?

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
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
Benutzeravatar
Helmut71
Mitglied
Beiträge: 1152
Registriert: 07.07.2003 23:03
Wohnort: Hohenau/Österreich

Mod post icons & recent topics?

Beitrag von Helmut71 »

Hallo!!

Hat sich schon mal jemand dran gemacht, den Mod post icons mit dem recent topics Mod zu kombinieren??
Wäre schön, wenn die kleinen Bildchen auch in der recent.php angezeigt werden...

*edit*

es gibt einen Mod, der die Forumicons in den Suchergebnissen anzeigt:

Code: Alles auswählen

################################################################################################ 
## Mod Title: Post Icons in the Search Pages 
## Mod Version: 0.0.2
## Date: 2005-06-03
##
## MOD Author:  antoonvdr  < antoonvdr@yahoo.com > (Antoon) http://www.chathamkiwanis.com
##
##
## Description: Addon to the Post Icon Mod from Ptirhiik, to have the topic icons also
##	displayed in the search pages.
##
##
## Installation Level: easy
## Installation Time: 1 Minutes 
## Files To Edit: 
##	search.php
##	templates/subSilver/search_results_topics.tpl
##	templates/subSilver/search_results_posts.tpl
##
## If you installed the Bookmarks Mod v1.1.1a MOD by PhilippK, or if you have phpBB2 Plus 1.52:
##
##	templates/subSilver/search_results_bookmarks.tpl	
##
##
################################################################################################ 
## For Security Purposes, Please Check: http://www.chathamkiwanis.com/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
################################################################################################ 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
################################################################################################ 
# 
#-----[ OPEN ]------------------------------------------ 
# 
search.php
# 
#-----[ FIND ]------------------------------------------ 
# 
				$template->assign_block_vars("searchresults", array( 
# 
#-----[ BEFORE ADD ]--------------------------------- 
#
// get the topic icons	   
				$icon_installed = function_exists(get_icon_title);
				$icon = '';
				if ($icon_installed)
				{	 
					$type = $searchset[$i]['topic_type'];
					$icon = get_icon_title($searchset[$i]['topic_icon'], 1, $type);	
				}
// end icon
# 
#-----[ FIND ]------------------------------------------ 
# 
					'MESSAGE' => $message,
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
//icon		
					'ICON'	=> $icon,
# 
#-----[ FIND ]------------------------------------------ 
# 
				$template->assign_block_vars('searchresults', array(
# 
#-----[ BEFORE ADD ]--------------------------------- 
#
// get the topic icons	   
				$icon_installed = function_exists(get_icon_title);
				$icon = '';
				if ($icon_installed)
				{	 
					$type = $searchset[$i]['topic_type'];
					$icon = get_icon_title($searchset[$i]['topic_icon'], 1, $type);	
				}
// end icon
# 
#-----[ FIND ]------------------------------------------ 
# 
					'TOPIC_AUTHOR' => $topic_author,
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
//icon		
					'ICON'	=> $icon,
# 
#-----[ OPEN ]------------------------------------------ 
# pay special attention to the code if your board is heavily modded, it may be slightly different in your case!
#
templates/subSilver/search_results_topics.tpl
# 
#-----[ FIND ]------------------------------------------ 
# 
<th>{L_TOPICS}</th>
# 
#-----[ REPLACE, WITH ]--------------------------------- 
#
<th colspan="2">{L_TOPICS}</th>
# 
#-----[ FIND ]------------------------------------------ 
# 
<td class="row1"><strong><a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_NAME}</a></strong></td>

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
<td class="row2" align="center" valign="middle" width="20">{searchresults.ICON}</td>

# 
#-----[ FIND ]------------------------------------------ 
# 
<td class="cat" colspan="7">&nbsp;</td>

# 
#-----[ REPLACE, WITH ]--------------------------------- 
#
<td class="cat" colspan="8">&nbsp;</td>

# 
#-----[ OPEN ]------------------------------------------ 
# pay special attention to the code if your board is heavily modded, it may be slightly different in your case!
#
templates/subSilver/search_results_posts.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
{searchresults.MINI_POST_IMG}
# 
#-----[ FIND ]------------------------------------------ 
# 
{L_SUBJECT}: <strong><a href="{searchresults.U_POST}">{searchresults.POST_SUBJECT}</a></strong>

# 
#-----[ REPLACE, WITH ]--------------------------------- 
#
{L_SUBJECT}:{searchresults.ICON} <strong><a href="{searchresults.U_POST}">{searchresults.POST_SUBJECT}</a></strong>

# 
#-----[ OPEN ]------------------------------------------ 
# pay special attention to the code if your board is heavily modded, it may be slightly different in your case!
#
templates/subSilver/search_results_bookmarks.tpl	

# 
#-----[ FIND ]------------------------------------------ 
# 
	<td class="row1"><span class="forumlink"><a href="{searchresults.U_VIEW_FORUM}" class="forumlink">{searchresults.FORUM_NAME}</a></span></td>

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	<td class="row2" align="center" valign="middle" width="20">{searchresults.ICON}</td>

# 
#-----[ FIND ]------------------------------------------ 
# 
    <td class="cat" colspan="7" height="29"> {S_HIDDEN_FIELDS}

# 
#-----[ REPLACE, WITH ]--------------------------------- 
#
    <td class="cat" colspan="8" height="29"> {S_HIDDEN_FIELDS}

#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
Den müsste man vermutlich nur ein wenig umbauen...
Es tanzt ein Bi Ba Butzemann.
Benutzeravatar
dopppeldecker
Mitglied
Beiträge: 248
Registriert: 24.10.2004 10:40
Wohnort: Erndtebrück
Kontaktdaten:

Beitrag von dopppeldecker »

*anschieb*

ich habe leider nicht mehr zu diesem Thema gefunden und es verzweifelt selbst versucht. Aber wnen man keine Ahnung von PHP hat steht man eh´ auf verlorenem Posten.

Wie kann man denn das richtige Topic-Icon aus der DB auslesen und es dann in der Recent Tabelle anzeigen ? Das dürfte doch so schwer nicht sein, oder ?

Büdde ein bissel Hilfe.

lg dopppeldecker
greetz dopppeldecker
Antworten

Zurück zu „phpBB 2.0: Mod Support“