English EN Forum warning/disclaimer/rules
 
#1
user avatar
Hasan
Kurucu Offline
tarih Dün, 12:36 PM
This is a simple modification which is useful for:
  • Forums in which you want to display a warning/disclaimer before people enter
  • Forums in which you want to force users to view some rules before doing anything in them

This makes use of the rarely used password feature of MyBB.



  1. Edit the forum you wish to force a message display; set a template prefix if there isn't one set (in this example, we'll use the prefix fwarn_)
  2. Set the forum password to agree
  3. Add a template named fwarn_forumdisplay_password (change if you're using a different prefix)
    Kod:
    <html>
    <head>
    <title>{$mybb->settings['bbname']} - {$lang->password_required} </title>
    {$headerinclude}
    </head>
    <body>
    {$header}
    <form action="{$_SERVER['REQUEST_URI']}" method="post">
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    <tr>
    <td class="thead" align="center"><strong>

    Warning

    </strong></td>
    </tr>
    <tr>
    <td class="trow2">


    You are entering a forum which may be too awesome for you. If you continue, you implicitly acknowledge that we are not responsible for any harm caused by excessive awesomeness.

    </td>
    </tr>
    </table>
    <br />
    <input type="hidden" name="pwverify" value="agree" />
    <div align="center"><input type="submit" class="button" name="submit" value="Agree" /></div>
    </form>
    {$footer}
    </body>
    </html>
    Edit the above message to suit your needs. I've spaced out the parts which you may be interested in editing (title and body).

Now when users try to enter this forum through any means, they'll be brought up with a simple message before they enter. Once they've clicked the "Agree" button, they'll be able to view the forum. Works for guests too.

imza çizgisi
[Resim: dimza.gif]





Konuyu Okuyanlar: 1 Ziyaretçi

 
Dikkat Edelim
Kurallar


Reklam
Reklam


Yasal Uyarı
Gidenler.Me, hukuka, yasalara, telif haklarına ve kişilik haklarına saygılı olmayı amaç edinmiştir. Gidenler.Me, 5651 Sayılı İnternet Ortamında Yapılan Yayınların Düzenlenmesi ve Bu Yayınlar Yoluyla İşlenen Suçlara Mücadele Edilmesi Hakkında Kanunda tanımlanan -Yer Sağlayıcı- olarak hizmet vermektedir. İlgili yasaya göre, Gidenler.Me yönetiminin hukuka aykırı içerikleri kontrol etme yükümlülüğü yoktur. Bu sebeple, Gidenler.Me -Uyar ve Kaldır- prensibini benimsemiştir. Telif hakkına konu olan eserlerin yasal olmayan bir biçimde paylaşıldığını ve yasal haklarının çiğnendiğini düşünen hak sahipleri veya meslek birlikleri, hgidenler@gmail.com mail adresinden bize ulaşabilirler. Buraya ulaşan talep ve şikayetler incelenerek ihlal olduğu belirlenen içerikler Gidenler.Me 'den kaldırılacaktır. Ayrıca, mahkemelerden talep gelmesi halinde hukuka aykırı içerik üreten ve hukuka aykırı paylaşımda bulunan üyelerin tespiti için gerekli teknik veriler sağlanacaktır.



Türkçe Çeviri: MyBB, Yazılım: MyBB 1.6.x, © 2002-2025 MyBB Group.
Copyright ©2024 - 2025 Gidenler®. All rights reserved.
GM v1.0.20 theme designed for MyBB
Basit Sürüm