Topic: is is possible?

currently no one is allowed to read my forum without being registered, i confirm all accounts manually..

now the question is where is the code located that contains this text displayed to non registered users "You do not have permission to view these forums." I would like to add a couple lines of code here for my non tech savy members.


Thank You,
Andy

Re: is is possible?

lang/<yourlang>/common.php

(for example if you use english it is lang/English/common.php)

look for the 'No View' entry and change the text value.

Re: is is possible?

thanks for the quick response do you know if i can add PHP to this line as it is currently only text...?

this is the code I would like to add...

<div class="block">
            <h2><span>Login, Register, or Leave </span></h2>
            <div class="box">
                <div class="inbox">
                    <ol>
                   <div class="newsbox">
    <h3>This forum is dedicated to the Protection of its Members </h3>
    <div class="item">
        <p> This site contains various galleries and discussions involving our members for their safety registration is REQUIRED.<br /><br />If you are a registered member <a href="/login.php">Login</a> <br />If you have not registered yet you don't know what your missing.<br />
          to register please click <a href="/register.php">HERE</a> or use the "Register" link above.</p>
        </div>
</div>         </ol>
              </div>
            </div>
        </div>

4 (edited by Lurker.boi 2008-05-15 18:38)

Re: is is possible?

You don't want to do that in the lang file.  YOu'll probably just want to change the line in index.php

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);

to

if ($pun_user['g_read_board'] == '0')
              header("location:noviewpage.php");

and then create a simple noviewpage.php something like

<?php 
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
// Load the index.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';

$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php'
?>
<your divs from above>
<?php
$footer_style = 'index';
require PUN_ROOT.'footer.php';

Edit: forgot the header.

Re: is is possible?

beautiful....

thank you..

-andy