SEO VS Today at/Yesterday at

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
LazyTiger
Berichten: 2000
Lid geworden op: 21 okt 2003, 18:21

SEO VS Today at/Yesterday at

Bericht door LazyTiger » 01 jun 2004, 10:33

ik heb Able2Know.com Search Engine Optimization 2.0.0 (SEO) en today at/yesterday at geinstalleerd.

bij today at/yesterday at moet je het volgende in de index.php doen:
#-----[ FIND ]-----------------------------------
#
$last_post = $last_post_time . '<br />';

#
#-----[ REPLACE WITH ]-----------------------------------
#

// OLD
// $last_post = $last_post_time . '<br />';
//
// MOD - TODAY AT - BEGIN
//
if ( $board_config['time_today'] < $forum_data[$j]['post_time'])
{
$last_post = sprintf($lang['Today_at'], create_date($board_config['default_timeformat'], $forum_data[$j]['post_time'], $board_config['board_timezone'])) . '<br />';
}
else if ( $board_config['time_yesterday'] < $forum_data[$j]['post_time'])
{
$last_post = sprintf($lang['Yesterday_at'], create_date($board_config['default_timeformat'], $forum_data[$j]['post_time'], $board_config['board_timezone'])) . '<br />';
}
else
{
$last_post = $last_post_time . '<br />';
}
// MOD - TODAY AT - END

#
en bij SEO moet je dit doen:
#-----[ FIND ]------------------------------------------
#

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

#
#-----[ REPLACE WITH ]------------------------------------
#

$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="' . $lang['View_latest_post'] . '">' . $last_post_time . '</a>' . '<br />';

#
het gaat dus 2x om hetzelfde regeltje.

nu heb ik dit in de index staan:
// OLD
// $last_post = $last_post_time . '<br />';
//
// MOD - TODAY AT - BEGIN
//
if ( $board_config['time_today'] < $forum_data[$j]['post_time'])
{
$last_post = sprintf($lang['Today_at'], create_date($board_config['default_timeformat'], $forum_data[$j]['post_time'], $board_config['board_timezone'])) . '<br />';
}
else if ( $board_config['time_yesterday'] < $forum_data[$j]['post_time'])
{
$last_post = sprintf($lang['Yesterday_at'], create_date($board_config['default_timeformat'], $forum_data[$j]['post_time'], $board_config['board_timezone'])). '<br />';
}
else
{
$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="' . $lang['View_latest_post'] . '">' . $last_post_time . '</a>' . '<br />';
}
// MOD - TODAY AT - END


$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> ';
de laatste regel hier is dus vervangen door wat er in de SEO stond.

http://www.muziekforumonline.nl/phpBB2/index.php
nu kan ik de datums gewoon aanklikken, maar waar vandaag en gisteren staat niet. die zijn niet aanklikbaar. dus zou er het stukje van <a href blablabla ingebouwd moeten worden in today at/yesterday at. dit wil me echter niet lukken.

wie zou het kunnen maken voor mij?

Gebruikersavatar
mosymuis
Berichten: 6940
Lid geworden op: 05 feb 2003, 14:00
Locatie: Amsterdam
Contacteer:

Bericht door mosymuis » 01 jun 2004, 10:41

Code: Selecteer alles

if ( $board_config['time_today'] < $forum_data[$j]['post_time'])
{
	$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="' . $lang['View_latest_post'] . '">' . sprintf($lang['Today_at'], create_date($board_config['default_timeformat'], $forum_data[$j]['post_time'], $board_config['board_timezone'])) . '</a>' . '<br />';

} else if ( $board_config['time_yesterday'] < $forum_data[$j]['post_time']) {

	$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="' . $lang['View_latest_post'] . '">' . sprintf($lang['Yesterday_at'], create_date($board_config['default_timeformat'], $forum_data[$j]['post_time'], $board_config['board_timezone'])). '</a>' . '<br />';

} else {

	$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="' . $lang['View_latest_post'] . '">' . $last_post_time . '</a>' . '<br />';
}
:?:

Gebruikersavatar
LazyTiger
Berichten: 2000
Lid geworden op: 21 okt 2003, 18:21

Bericht door LazyTiger » 01 jun 2004, 10:45

hm.. dat werkt.
ik heb met die sprintf zitten klungelen, maar die heb jij dus gewoon weggelaten. :bier:

Gebruikersavatar
mosymuis
Berichten: 6940
Lid geworden op: 05 feb 2003, 14:00
Locatie: Amsterdam
Contacteer:

Bericht door mosymuis » 01 jun 2004, 10:48

Zit er nog steeds in hoor, kwestie van de zinnen in elkaar plakken.

Gebruikersavatar
LazyTiger
Berichten: 2000
Lid geworden op: 21 okt 2003, 18:21

Bericht door LazyTiger » 01 jun 2004, 10:51

oh ja, zie het nu ook. (ik keek naar de kleuren en zag geen roze kleurtje.)
maar in ieder geval, ik had ze verkeerd aan elkaar geplakt. :roll:

Gesloten