Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Forum warning/disclaimer/rules
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #1
Forum warning/disclaimer/rules
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)

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    <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.

My Blog
10-05-2010 04:12 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Forum warning/disclaimer/rules - ZiNgA BuRgA - 10-05-2010 04:12 PM
RE: Forum warning/disclaimer/rules - RateU - 10-07-2010, 04:42 AM
RE: Forum warning/disclaimer/rules - Imran - 10-07-2010, 07:12 AM
RE: Forum warning/disclaimer/rules - Codyy - 08-24-2011, 05:04 PM
RE: Forum warning/disclaimer/rules - Codyy - 08-25-2011, 06:20 AM
RE: Forum warning/disclaimer/rules - Codyy - 08-25-2011, 07:04 AM

 Standard Tools
Forum Jump: