|
|
 |
« : 03 Temmuz 2008, 14:33:40 » |
|
Bu ipucumuz sayesinde, duyuru bölümü olarak belirlediğimiz bölümde açılan son konu eğer giriş yapan kullanıcı tarafından okunmamışsa, kullanıcı hemen o konuya yönlendirilir. ../Sources/LogInOut.php Bul: // Just log you back out if it's in maintenance mode and you AREN'T an admin. if (empty($maintenance) || allowedTo('admin_forum')) Değiştir: // The board to look for. $board = 1453;
// Get the last topic. $request = db_query(" SELECT ID_TOPIC FROM {$db_prefix}topics WHERE ID_BOARD = $board ORDER BY ID_TOPIC DESC LIMIT 1", __FILE__, __LINE__); list ($topic) = mysql_fetch_row($request); mysql_free_result($request);
// Check if he read that topic. $request = db_query(" SELECT ID_TOPIC FROM {$db_prefix}log_topics WHERE ID_TOPIC = $topic AND ID_MEMBER = $ID_MEMBER LIMIT 1", __FILE__, __LINE__); list ($read) = mysql_fetch_row($request); mysql_free_result($request); // Just log you back out if it's in maintenance mode and you AREN'T an admin. if((empty($maintenance) || allowedTo('admin_forum')) && empty($read)) redirectexit('topic=' . $topic . '.0'); elseif ((empty($maintenance) || allowedTo('admin_forum')) && !empty($read)) 1453 duyuru bölümü IDsi olarak değiştirilmeli.Bir süre burada durduktan sonra İpuçları ve Hileler bölümüne taşınacak. Tamamiyle [SiNaN] yapımıdır.
|
|
|
|
|
Logged
|
|
|
|
|