brinci aşamaincludes/sessions.php yi açınız
- Kod: Tümünü seç
function append_sid($url, $non_html_amp = false)
ile başlayan yeri bulunuz
- Kod: Tümünü seç
//
// Append $SID to a url. Borrowed from phplib and modified. This is an
// extra routine utilised by the session code above and acts as a wrapper
// around every single URL and form action. If you replace the session
// code you must include this routine, even if it's empty.
//
kodunun hemen altındadır...
ilk verdiğim kodun alt satırlarının da btmine kadar seçip
- Kod: Tümünü seç
function append_sid($url, $non_html_amp = false)
{
global $SID;
if ( !empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
// (redmonkey) Added to catch any stray non HTML compliant ampersands within
// URLs that have slipped through from sloppy coding
if ( !$non_html_amp )
{
$url = preg_replace('/&(?!(?:#\d{2,4}|\w{2,6});)/', '&', $url);
}
// (redmonkey) end of catch stray ampersand code
return $url;
}
ile değiştirin...
ikinci aşamaincludes/functions_calendar.php i açınız
BUL- Kod: Tümünü seç
$template->assign_block_vars('_calendar_box._row._cell', array(
'WIDTH' => floor(100 / $nb_cells),
'SPAN' => $span,
'DATE' => sprintf( $format, date_dsp( ($full_month ? '' : 'D ') . $lang['DATE_FORMAT'], $offset_date)),
'U_DATE' => append_sid($phpbb_root_path . "./calendar_scheduler.$phpEx?d=" . $offset_date . "&fid=$fid"),
)
);
BUNUNLA DEĞİŞTİR- Kod: Tümünü seç
$template->assign_block_vars('_calendar_box._row._cell', array(
'WIDTH' => floor(100 / $nb_cells),
'SPAN' => $span,
// (redmonkey) added A_DATE for use with the 'alt' attribute within urls
// previously the alt attribute value was assigned DATE but this could
// contain HTML characters i.e. <b> and </b>
'A_DATE' => sprintf( '%s', date_dsp( ($full_month ? '' : 'D ') . $lang['DATE_FORMAT'], $offset_date)),
// (redmonkey) end of additions.
'DATE' => sprintf( $format, date_dsp( ($full_month ? '' : 'D ') . $lang['DATE_FORMAT'], $offset_date)),
'U_DATE' => append_sid($phpbb_root_path . "./calendar_scheduler.$phpEx?d=" . $offset_date . "&fid=$fid"),
)
);
üçüncü aşamatemplates/kullandığınız tema/calendar_box.tpl i açınız
BUL- Kod: Tümünü seç
<td class="row2" align="center" height="4" nowrap="nowrap"><span class="genmed"><a href="{_calendar_box._row._cell.U_DATE}" alt="{_calendar_box._row._cell.DATE}" class="genmed">{_calendar_box._row._cell.DATE}</a></span></td>
BUNUNLA DEĞİŞTİR- Kod: Tümünü seç
<td class="row2" align="center" height="4" nowrap="nowrap"><span class="genmed"><a href="{_calendar_box._row._cell.U_DATE}" alt="{_calendar_box._row._cell.A_DATE}" class="genmed">{_calendar_box._row._cell.DATE}</a></span></td>