Last post

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
micha3L
Berichten: 943
Lid geworden op: 05 dec 2002, 18:23
Locatie: Nederland

Last post

Bericht door micha3L » 04 mei 2004, 10:31

Bij laatste post staat nu:

21 Okt 2000 12:01 am
[Gebruikersnaam]


Ik wil daar graag van maken:

Door: [Gebruikersnaam]

Hoe doe ik dit?

Gebruikersavatar
WebSiteNet
Berichten: 6524
Lid geworden op: 20 okt 2003, 16:56
Locatie: Wieringerwerf
Contacteer:

Bericht door WebSiteNet » 04 mei 2004, 10:32

Op de index of in viewforum?

Gebruikersavatar
micha3L
Berichten: 943
Lid geworden op: 05 dec 2002, 18:23
Locatie: Nederland

Bericht door micha3L » 04 mei 2004, 15:14

In allebei :bier:

Gebruikersavatar
WebSiteNet
Berichten: 6524
Lid geworden op: 20 okt 2003, 16:56
Locatie: Wieringerwerf
Contacteer:

Bericht door WebSiteNet » 04 mei 2004, 16:17

OPEN index.php en VIND:

Code: Selecteer alles

							if ( $forum_data[$j]['forum_last_post_id'] )
							{
								$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);

								$last_post = $last_post_time . '<br />';

								$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> ';
								
								$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'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
							}
Vervang met:

Code: Selecteer alles

							if ( $forum_data[$j]['forum_last_post_id'] )
							{
								$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);

								$last_post .= 'Door: ' . ( $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> ';
								
								$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'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
							}
OPEN viewforum.php en VIND:

Code: Selecteer alles

		$last_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']);

		$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>';

		$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';
Vervang met:

Code: Selecteer alles

		$last_post_time = '';

		$last_post_author = 'Door' . ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>';

		$last_post_url = '';

Gebruikersavatar
micha3L
Berichten: 943
Lid geworden op: 05 dec 2002, 18:23
Locatie: Nederland

Bericht door micha3L » 05 mei 2004, 09:27

Hartelijk dank :bier:

Gebruikersavatar
micha3L
Berichten: 943
Lid geworden op: 05 dec 2002, 18:23
Locatie: Nederland

Bericht door micha3L » 05 mei 2004, 17:20

Mm het werk niet..
Nu komt er alleen: Gast te staan met daar8ter een tekentje naar de laatste post..

Mosymuis heeft het ook zoals ik het wil op http://www.spammersheaven.nl .. maar dan wil ik alleen: door:

Kan iemand me helpen?

Gebruikersavatar
micha3L
Berichten: 943
Lid geworden op: 05 dec 2002, 18:23
Locatie: Nederland

Bericht door micha3L » 05 mei 2004, 20:05

Niet..?

Gebruikersavatar
WebSiteNet
Berichten: 6524
Lid geworden op: 20 okt 2003, 16:56
Locatie: Wieringerwerf
Contacteer:

Bericht door WebSiteNet » 05 mei 2004, 21:14

Laat in index.php dit weg:

Code: Selecteer alles

$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'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>'; 
En wees gewoon geduldig. :wink:

Gebruikersavatar
micha3L
Berichten: 943
Lid geworden op: 05 dec 2002, 18:23
Locatie: Nederland

Bericht door micha3L » 06 mei 2004, 08:25

Nou staat er gast zonder een linkje naar de laatste post..

Bij het eerst forum staat: gast
2de forum: gast gast
3de forum: gast gast gast

En zo steeds verder :roll:
Help me!

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 06 mei 2004, 09:17

Open index.php
Zoek

Code: Selecteer alles

$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);

								$last_post = $last_post_time . '<br />';

								$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> ';
								
								$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'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
Vervang met

Code: Selecteer alles

$last_post = 'Door: ';
								
								$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> ';
Open viewforum.php
Zoek

Code: Selecteer alles

$last_post_author .= ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>';
Wijzig met

Code: Selecteer alles

$last_post_author = 'Door: ';
		$last_post_author .= ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>';
Open temlates/XXX/viewforum_body.tpl
Zoek

Code: Selecteer alles

{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}
Vervang met:

Code: Selecteer alles

{topicrow.LAST_POST_AUTHOR}
Afbeelding

Gebruikersavatar
WebSiteNet
Berichten: 6524
Lid geworden op: 20 okt 2003, 16:56
Locatie: Wieringerwerf
Contacteer:

Bericht door WebSiteNet » 06 mei 2004, 09:26

Het doet het zelfde. Er stond bij mij alleen 2 punten teveel.

Gebruikersavatar
micha3L
Berichten: 943
Lid geworden op: 05 dec 2002, 18:23
Locatie: Nederland

Bericht door micha3L » 06 mei 2004, 09:35

Nou werkt het wel..
Alleen nu wil ik op de index ook nog achter de username het plaatje naar de laastste post..

Ik heb het aangegeven met:
{catrow.forumrow.LAST_POST_IMG}
Maahr die code pakt die niet..wat moet het zijn om dat plaatje op te roepen?

Gebruikersavatar
WebSiteNet
Berichten: 6524
Lid geworden op: 20 okt 2003, 16:56
Locatie: Wieringerwerf
Contacteer:

Bericht door WebSiteNet » 06 mei 2004, 09:38

Die wilde je weg. :?

Dit ongedaan maken:
WebSiteNet schreef:Laat in index.php dit weg:

Code: Selecteer alles

$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'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>'; 
En wees gewoon geduldig. :wink:

Gebruikersavatar
micha3L
Berichten: 943
Lid geworden op: 05 dec 2002, 18:23
Locatie: Nederland

Bericht door micha3L » 06 mei 2004, 09:41

Dus:
$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'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
Waar moet ik dat stuk 8ter zetten in index.php?

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 06 mei 2004, 09:48

achter wat je toe moest voegen in index.php :wink:
Afbeelding

Gesloten