12- Z?YARETÇ?LER MESAJLARI GÖREMES?N
BA?LAMADAN ÖNCE YEDEK ALMAYI UNUTMAYINIZ
ba?l?yoruz ;
asagidaki dosyalarda degisiklik yapmaniz gerekecek:
1.includes/init.php
2.includes/adminfunctions_forums.php
3.admincp/resources.php
4.admincp/usergroup.php
5.showthread.php
6.archive/index.php
7.archive/global.php
8.printthread.php
9.showpost.php
Ve izinlere iki yeni bolum eklenecek.
Kod:
bunun icinde bul includes/init.php:
PHP Kodu:
'canthreadrate' => 65536,
'isalwaysmoderated' => 131072,
'canseedelnotice' => 262144
);
BUNUNLA DEGISTIR:
Kod:
PHP Kodu:
'canthreadrate' => 65536,
'isalwaysmoderated' => 131072,
'canseedelnotice' => 262144
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
,'gtpcanreadcontent' => 524288 // VIEW THREAD
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
);
i?lem bitmi?tir kaydedin
Kod:
Burada Bul includes/adminfunctions_forums.php;
PHP Kodu:
print_yes_no_row($vbphrase['always_moderate_posts'], 'forumpermission[isalwaysmoderated]', $forumpermission['isalwaysmoderated'], $extra);
print_yes_no_row($vbphrase['can_upload_attachments'], 'forumpermission[canpostattachment]', $forumpermission['canpostattachment'], $extra);
print_yes_no_row($vbphrase['can_rate_threads'], 'forumpermission[canthreadrate]', $forumpermission['canthreadrate'], $extra);
BUNUNLA DEGISTIR
Kod:
PHP Kodu:
print_yes_no_row($vbphrase['always_moderate_posts'], 'forumpermission[isalwaysmoderated]', $forumpermission['isalwaysmoderated'], $extra);
print_yes_no_row($vbphrase['can_upload_attachments'], 'forumpermission[canpostattachment]', $forumpermission['canpostattachment'], $extra);
print_yes_no_row($vbphrase['can_rate_threads'], 'forumpermission[canthreadrate]', $forumpermission['canthreadrate'], $extra);
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
print_yes_no_row($vbphrase['gtp_can_read_content'], 'forumpermission[gtpcanreadcontent]', $forumpermission['gtpcanreadcontent'], $extra);
// == [ 00-00-2004 - GTP END ]
i?lem bitmi?tir kaydedin
Kod:
Burada Bul admincp/resources.php:
PHP Kodu:
'canthreadrate' => $vbphrase['can_rate_threads'],
'canseedelnotice' => $vbphrase['can_see_deletion_notices'],
'isalwaysmoderated' => $vbphrase['always_moderate_posts']
BUNUNLA DEGISTIR:
Kod:
PHP Kodu:
'canthreadrate' => $vbphrase['can_rate_threads'],
'canseedelnotice' => $vbphrase['can_see_deletion_notices'],
'isalwaysmoderated' => $vbphrase['always_moderate_posts'],
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
'gtpcanreadcontent' => $vbphrase['gtp_can_read_content']
// == [ 00-00-2004 - GTP END ]
i?lem bitmi?tir KAYDET
Kod:
Burada Bul admincp/usergroup.php:
PHP Kodu:
'canusesignature' => 1,
'cannegativerep' => 1,
'canuserep' => 1,
BUNUNLA DEGISTIR:
Kod:
PHP Kodu:
'canusesignature' => 1,
'cannegativerep' => 1,
'canuserep' => 1,
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
'gtpcanreadcontent' => 1
// == [ 00-00-2004 - GTP END ]
BUL
PHP Kodu:
print_yes_no_row($vbphrase['can_rate_threads'], 'usergroup[canthreadrate]', $ug_bitfield['canthreadrate']);
print_table_break();
BUNUNLA DEGISTIR:
PHP Kodu:
print_yes_no_row($vbphrase['can_rate_threads'], 'usergroup[canthreadrate]', $ug_bitfield['canthreadrate']);
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
print_yes_no_row($vbphrase['gtp_can_read_content'], 'usergroup[gtpcanreadcontent]', $ug_bitfield['gtpcanreadcontent']);
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
print_table_break();
i?lem bitmi?tir KAYDET
-------------------------------------------------------------------
Burada Bul showthread.php:
PHP Kodu:
if ($threadedmode == 0)
{
BUNUNLA DEGISTIR:
PHP Kodu:
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
if (!($forumperms & GTPCANREADCONTENT))
{
eval(print_standard_error('gtp_cannot_read'));
}
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
if ($threadedmode == 0)
{
i?lem bitmi?tir KAYDET
-------------------------------------------------------------------
BU SAYEDE ARSIV ICERiGiNE ULASILAMAYACAK
PHP Kodu:
Burada Bul archive/index.php
$forumperms = $bbuserinfo['forumpermissions'][$foruminfo['forumid']];
if (!($forumperms & CANVIEW) OR !($forumperms & CANVIEWOTHERS) OR in_coventry($threadinfo['postuserid']) OR $threadinfo['isdeleted'])
{
exit;
}
BUNUNLA DEGISTIR:
PHP Kodu:
$forumperms = $bbuserinfo['forumpermissions'][$foruminfo['forumid']];
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
//if (!($forumperms & CANVIEW) OR !($forumperms & CANVIEWOTHERS) OR in_coventry($threadinfo['postuserid']) OR $threadinfo['isdeleted'])
if (!($forumperms & CANVIEW) OR !($forumperms & CANVIEWOTHERS) OR !($forumperms & GTPCANREADCONTENT) OR in_coventry($threadinfo['postuserid']) OR $threadinfo['isdeleted'])
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
{
exit;
}
BUL:
PHP Kodu:
$forumperms = $bbuserinfo['forumpermissions'][$f];
if (!($forumperms & CANVIEW) OR !($forumperms & CANVIEWOTHERS))
{
exit;
}
BUNUNLA DEGISTIR:
PHP Kodu:
$forumperms = $bbuserinfo['forumpermissions'][$f];
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
//if (!($forumperms & CANVIEW) OR !($forumperms & CANVIEWOTHERS))
if (!($forumperms & CANVIEW) OR !($forumperms & CANVIEWOTHERS) OR !($forumperms & GTPCANREADCONTENT))
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
{
exit;
}
i?lem bitmi?tir KAYDET
------------------------------------------------------------------
BURADA BUL archive/global.php:
PHP Kodu:
if (!($bbuserinfo['forumpermissions']["$forumid"] & CANVIEW) AND $vboptions['hideprivateforums'])
BUNUNLA DEGISTIR:
PHP Kodu:
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
//if (!($bbuserinfo['forumpermissions']["$forumid"] & CANVIEW) AND $vboptions['hideprivateforums'])
if (!($bbuserinfo['forumpermissions']["$forumid"] & CANVIEW) OR !($bbuserinfo['forumpermissions']["$forumid"] & GTPCANREADCONTENT) AND $vboptions['hideprivateforums'])
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
i?lem bitmi?tir KAYDET
-----------------------------------------------------------------------
BU SAYEDE PRINTTHREAD ICERIGINE ERISILEMEYECEK
BURADA BUL printthread.php:
PHP Kodu:
$forumperms = fetch_permissions($threadinfo['forumid']);
if (!($forumperms & CANVIEW))
{
print_no_permission();
}
ASAGIYA EKLE
PHP Kodu:
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
if (!($forumperms & GTPCANREADCONTENT) )
{
eval(print_standard_error('gtp_cannot_read'));
}
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
i?lem bitmi?tir KAYDET
------------------------------------------------------------
BU SAYEDE SHOWPOST ICERIGINE ERISILEMEYECEK
BURADA BUL showpost.php:
PHP Kodu:
$forumperms = fetch_permissions($threadinfo['forumid']);
if (!($forumperms & CANVIEW))
{
print_no_permission();
}
ASAGIYA EKLE
PHP Kodu:
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
if (!($forumperms & GTPCANREADCONTENT) )
{
eval(print_standard_error('gtp_cannot_read'));
}
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
i?lem bitmi?tir KAYDET
-----------------------------------------------------------------
hepsini yerlereine at?yoruz unutmay?n?z yedek al?n
a?a??da her?eyi admin kontrol panelinde yapaca??z
Diller & Cümleler de
yeni birtane cümle ekliyece?iz
cümle tipini : Permissions seç
Varname : gtp_can_read_content
Yaz? :Group can read content?
not : gtp_can_read_content = Group can read content? ( bu yaz?n?n türkçesini yazabilirsiniz..
?imdi arkada?lar
Kullan?c? Grublar? ->Kullan?c? Grup Yönetimi->Registered Users->edit user grup deyin ve ?u ayarlar? yap?n
Gönderi / Konu ?zinleri bölümünde Group can read content? i bulun ve o seçene?i "evet" yap?n
Forum ?zin Görüntüleyicisi forumu? görebilir ve di?er konular? görebilir seçene?i zaten evet kalacak
?imdi ise Unregistered / Not Logged In kullan?c? gurubuna giriyoruz
Gönderi / Konu ?zinleri bölümünde "Group can read content?" buray? "hay?r" seçiyoruz
ve
Forum ?zin Görüntüleyicisi bölümünde Forumu Görebilir "evet" Di?er Konular? Görebilir "evet" seçiyoruz.<!-- / message --><!-- sig -->