TRForumcu.NeT (Arşiv Ana sayfa) => SMF

Konu: Giriş Yapanları Duyuruya Yönlendirmek

Sayfa: [ 1 ]

Gondolin 03.07.2008 13:33:40

Notice: Undefined index: codeselectall in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 30

Notice: Undefined index: codeselectall in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 30

Notice: Undefined index: codedivider in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 31

Notice: Undefined index: codecopytoclipboard in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 31

Notice: Undefined index: codecopytoclipboard in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 31

Notice: Undefined index: codeselectall in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 30

Notice: Undefined index: codeselectall in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 30

Notice: Undefined index: codedivider in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 31

Notice: Undefined index: codecopytoclipboard in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 31

Notice: Undefined index: codecopytoclipboard in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 31
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:

Kod:  
// 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:

Kod:  
// 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.


Sayfa: [ 1 ]