???????? ?????????????.

???? ?????? ???????? ?? ????? *????*

?? ???????? ????? ?????? ?????????, ????????? ????? ??????, ?????. ? ??? ????? ?????? ?? ?????????.
???-?? ? ???? ???? ??????...?? ?????.....

OPEN
viewtopic.php

FIND

            <div class="postfootright"><?php echo (count($post_actions)) ? '<ul>'.implode($lang_topic['Link separator'].'</li>', $post_actions).'</li></ul></div>'."\n" : '<div> </div></div>'."\n" ?>
        </div>
    </div>
</div>


<?php

}

?>

ADD AFTER

<script language="javascript"> 
<!-- 
var state = 'none'; 
function showhide(layer_ref) { 
if (state == 'block') { 
state = 'none'; 
} 
else { 
state = 'block'; 
} 
if (document.all) {
eval( "document.all." + layer_ref + ".style.display = state"); 
} 
if (document.layers) {
document.layers[layer_ref].display = state; 
} 
if (document.getElementById &&!document.all) { 
hza = document.getElementById(layer_ref); 
hza.style.display = state; 
} 
} 
//--> 
</script>

FIND

<div class="postlinksb">
    <div class="inbox">
        <p class="postlink conr"><?php echo $post_link ?></p>
        <p class="pagelink conl"><?php echo $paging_links ?></p>
        <ul><li><a href="index.php"><?php echo $lang_common['Index'] ?></a></li><li> » <a href="viewforum.php?id=<?php echo $cur_topic['forum_id'] ?>"><?php echo pun_htmlspecialchars($cur_topic['forum_name']) ?></a></li><li> » <?php echo pun_htmlspecialchars($cur_topic['subject']) ?></li></ul>
        <?php echo $subscraction ?>
    </div>
</div>

REPLACE WITH

<div class="postlinksb">
    <div class="inbox">
        <p class="postlink conr"><b><a href="javascript:void(0)" onclick="showhide('div1');">Quick post</a></b> | <?php echo $post_link ?></p>
        <p class="pagelink conl"><?php echo $paging_links ?></p>
        <ul><li><a href="index.php"><?php echo $lang_common['Index'] 

?></a></li><li> » <a href="viewforum.php?id=<?php echo $cur_topic['forum_id'] ?>"><?php echo pun_htmlspecialchars($cur_topic['forum_name']) ?></a></li><li> » <?php echo pun_htmlspecialchars($cur_topic['subject']) ?></li></ul>
        <?php echo $subscraction ?>
    </div>
</div>

FIND

<div class="blockform">
    <h2><span><?php echo $lang_topic['Quick post'] ?></span></h2>
    <div class="box">
        <form method="post" action="post.php?tid=<?php echo $id ?>" onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">
            <div class="inform">
                <fieldset>
                    <legend><?php echo $lang_common['Write message legend'] ?></legend>
                    <div class="infldset txtarea">
                        <input type="hidden" name="form_sent" value="1" />
                        <input type="hidden" name="form_user" value="<?php echo (!$pun_user['is_guest']) ? pun_htmlspecialchars($pun_user['username']) : 'Guest'; ?>" />
                        <label><textarea name="req_message" rows="7" cols="75" tabindex="1"></textarea></label>
                        <ul class="bblinks">
                            <li><a href="help.php#bbcode" onclick="window.open(this.href); return false;"><?php echo $lang_common['BBCode'] ?></a>: <?php echo ($pun_config['p_message_bbcode'] == '1') ? $lang_common['on'] : $lang_common['off']; ?></li>
                            <li><a href="help.php#img" onclick="window.open(this.href); return false;"><?php echo $lang_common['img tag'] ?></a>: <?php echo ($pun_config['p_message_img_tag'] == '1') ? $lang_common['on'] : $lang_common['off']; ?></li>
                            <li><a href="help.php#smilies" onclick="window.open(this.href); return false;"><?php echo $lang_common['Smilies'] ?></a>: <?php echo ($pun_config['o_smilies'] == '1') ? $lang_common['on'] : $lang_common['off']; ?></li>
                        </ul>
                    </div>
                </fieldset>
            </div>
            <p><input type="submit" name="submit" tabindex="2" value="<?php echo $lang_common['Submit'] ?>" accesskey="s" /></p>
        </form>
    </div>
</div>

REPLACE WITH

<div id="div1" style="display: none;">

<div class="blockform">
    <h2><span><?php echo $lang_topic['Quick post'] ?></span></h2>
    <div class="box">
        <form method="post" action="post.php?tid=<?php echo $id ?>" 
onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">
            <div class="inform">
                <fieldset>
                    <legend><?php echo $lang_common['Write message legend'] ?></legend>
                    <div class="infldset txtarea">
                        <input type="hidden" name="form_sent" value="1" />
                        <input type="hidden" name="form_user" value="<?php echo (!$pun_user['is_guest']) ? pun_htmlspecialchars($pun_user['username']) : 'Guest'; ?>" />
                        <label><textarea name="req_message" rows="7" cols="75" tabindex="1"></textarea></label>
                        <ul class="bblinks">
                            <li><a href="help.php#bbcode" onclick="window.open(this.href); return false;"><?php echo $lang_common['BBCode'] ?></a>: <?php echo ($pun_config['p_message_bbcode'] == '1') ? $lang_common['on'] : $lang_common['off']; ?></li>
                            <li><a href="help.php#img" onclick="window.open(this.href); return false;"><?php echo $lang_common['img tag'] ?></a>: <?php echo ($pun_config['p_message_img_tag'] == '1') ? $lang_common['on'] : $lang_common['off']; ?></li>
                            <li><a href="help.php#smilies" onclick="window.open(this.href); return false;"><?php echo $lang_common['Smilies'] ?></a>: <?php echo ($pun_config['o_smilies'] == '1') ? $lang_common['on'] : $lang_common['off']; ?></li>

                        </ul>
                    </div>
                </fieldset>
            </div>
            <p><input type="submit" name="submit" tabindex="2" value="<?php echo 

$lang_common['Submit'] ?>" accesskey="s" /></p>
        </form>
    </div>
</div>

</div>

It Was Tested in Opera Mozilla IE - all Ok smile

??????? ? ???? ??????? ?????????? ????? ????????????????? ????? ????.
??? ????? ? ?????? ????.

? ??? ?? ???????? ?????????? ??????

4

(4 replies, posted in Archive)

Gym1530

??? ??????? ?????????.

???? ???????????? ????? ???????:

????? ? ????? admin_bans.php ???:


        // Make sure we're not banning an admin
        if (isset($group_id) && $group_id == PUN_ADMIN)
            message('The user '.pun_htmlspecialchars($ban_user).' is an administrator and can\'t be banned. If you want to ban an administrator, you must first demote him/her to moderator or user.');

??? ?????? ?? ?? ????? ?????? ??????.
?????????????? ?????? ????? ?????? ???? ???????.
??? ???:
?????? ???? ?? ?????? ??????? ?? ?????? ????? ????? ?? ????? ????? ???????.

???????? ?????? ?? ????? ???:

        // Make sure we're not banning an admin
        if (isset($group_id) && $group_id == PUN_ADMIN || $pun_user['g_id'] == 4)
            message('The user '.pun_htmlspecialchars($ban_user).' is an administrator or other users and can\'t be banned. If you want to ban, you must first demote him/her to moderator or user.');

??? ????? "4" - ??? ?????? ??????? ??????.

good work! smile

6

(4 replies, posted in Archive)

Gym1530

???????? ???????? ? ????? admin_censoring.php

???? ???

if ($pun_user['g_id'] > PUN_MOD)
    message($lang_common['No permission']);

?? ????

if ($pun_user['g_id'] != PUN_ADMIN)
    message($lang_common['No permission']);

Trial_Period_1.1

Add demonstration of completion of trial period.

##
##
##        Mod title:  Trial Period
##
##      Mod version:  1.1
##   Works on PunBB:  1.2.11
##     Release date:  2006-05-5
##           Author:  Demo (http://punbb.ru)
##
##      Description:  This mod allows to create the trial period for authorized user.
##
##
##   Affected files:  viewtopic.php
##                    post.php
##
##       Affects DB:  No
##
##            Notes:  None
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##
#
#
#
#---------[ 1. OPEN ]----------------------------------------------------
#
    viewtopic.php
#
#---------[ 2. FIND ]----------------------------------------------------
#

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

#
#---------[ 3. ADD AFTER ]-----------------------------------------------
#

$lang_common['trial_period'] = "You registered user! But You inhere for trial period following after registration. Please wait one day after registrations. In the interim Read FAQ of forum, Rules of forum and etc... Trial period for you expire in (sec.): ";
$trial_period = ($pun_user['registered'] + 84600);
$end_trial_period = ($trial_period - time());
if (time() < $trial_period)
message($lang_common['trial_period'].$end_trial_period);

#
#---------[ 4. OPEN ]----------------------------------------------------
#
    post.php
#
#---------[ 5. FIND ]----------------------------------------------------
#

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

#
#---------[ 6. ADD AFTER ]-----------------------------------------------
#

$lang_common['trial_period'] = "You registered user! But You inhere for trial period following after registration. Please wait one day after registrations. In the interim Read FAQ of forum, Rules of forum and etc... Trial period for you expire in (sec.): ";
$trial_period = ($pun_user['registered'] + 84600);
$end_trial_period = ($trial_period - time());
if (time() < $trial_period)
message($lang_common['trial_period'].$end_trial_period);

#
#---------[ 7. SAVE/UPLOAD ]---------------------------------------------------
#

enjoy :=)

Download punres.org:
http://www.punres.org/desc.php?pid=243

This mod allows to create the trial period for authorized user.

##
##
##        Mod title:  Trial Period
##
##      Mod version:  1.0
##   Works on PunBB:  1.2.11
##     Release date:  2006-05-3
##           Author:  Demo (http://punbb.ru)
##
##      Description:  This mod allows to create the trial period for authorized user.
##
##
##   Affected files:  viewtopic.php
##                    
##       Affects DB:  No
##
##            Notes:  None
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##
#
#
#
#---------[ 10. OPEN ]----------------------------------------------------
#
    viewtopic.php
#
#---------[ 11. FIND ]----------------------------------------------------
#

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);
#
#---------[ 12. ADD AFTER ]-----------------------------------------------
#

$trial_period = ($pun_user['registered'] + 84600);
$lang_common['trial_period'] = "You registered user, but You inhere for trial period following after registration. Wait one day. Read the Help of forum, Rules of forum and etc...";
if (time() < $trial_period)
message($lang_common['trial_period']);

#
#---------[ 25. SAVE/UPLOAD ]---------------------------------------------------
#

enjoy :=)

Download punres.org:
http://www.punres.org/desc.php?pid=243

???????????? ???? ?????? ??? ???? ???? ? ????? ????? ??????????

beotiger

??????? ????????????? ???????? ?????? ?? ????????? ???? ?????. ????? ?????? ?????? ??? ????? ?????? 200 ?? ???????? ??????? ?????????? (
??? ???????? ??????? ??? ??????????? ? ????? ????????

Hmmm...
Posts are not deleted with user but they not see.

Posts deleted together with users?
As possible avoid this?

Possible see who edit, delete and move topic or message? How do it?

http://www.punres.org/viewtopic.php?id=1322

roopix wrote:

???????, ?? ??? jino-net ?? ???????, ??? ???..

???????.
?? ????? ?????:
http://awardspace.com

16

(1 replies, posted in Archive)

????????? - ?????.
smile

????? ????...

???? ?????-??...

????????... ??? ????? smile
???????? ???.

KCEOH

- ?? ???? ????? ?????-???? ???? (????????? ????).

?????? ???? ????? ????????? ????? ???????????? ???????...

- ????? ???????? AJAX ?? ????????? ????????? ? ??????? ?????? (win1251).

?? ??? ?? ?? ???????? ????????? ??????? ????????? ??????? ?????... ? ?? ?? ?????? ??? ?????????? ??? ?? ??? ???? ???????.

- ???????? ???????????? ??-?? ?????.

?????? ? ???????? ??????.

??? ?????? ???? ???? .php
???? ??????? ? ???? ? ????? .htaccess ?? ???????????, ????? ????? ????? ??????????? ??? php-?????.

?????????...
???? ?????!
? ?????? ????? ?????? ???...

beotiger

??????? ?? ????????.
??? ?? ?????? ?????? ???????:

200MB Disk Space
5GB Monthly Traffic
2 Domains Hosting
5 Subdomains
Free DNS Server
PHP, Perl/CGI-BIN
1 MySQL Database
FTP/FrontPage Access
5 POP3/IMAP E-mails
Instant Account Setup
Web-based File Manager

??? ??????? ?? ?? ??? ???????? ??????? ???????... ?? ??? ?????????? ????? ???? ?? ?????.
????? ??????? ???????? ??? smile

??? ????????? ?????????? ??? ????????? ???? (??? ?????? ???????) ????????????. ?.?. ????? ???????????? ?????? ??? ??????? ????????????? ? ?? ???????????? ???????????????, ??????????? ??? ????????? ????????????? ? ????????? id.

? footer.php
?????? ???:

<?php
// End the transaction
$db->end_transaction();

?? ???:

<?php
if ($pun_user['g_id'] != PUN_ADMIN && $pun_user['id'] != 1 && $pun_user['id'] != 2 && $pun_user['id'] != 3 && $pun_user['id'] != 4 && $pun_user['id'] != 5 && $pun_user['id'] != 6 && $pun_user['id'] != 7) {
?>  

<div id="brdfooter" class="block">
    <h2><span><?php echo $lang_common['Board footer'] ?></span></h2>
    <div class="box">
        <div class="inbox">

<center>
????? ??? ????????? ???? ??? ?????? ??????
</center>

            <div class="clearer"></div>
        </div>
    </div>
</div>


<?
}
?>
<?php
// End the transaction
$db->end_transaction();

??? ???? ??????? ?????? ?? ??????????????? ?????? ? ????????????? ? id: 1, 2, 3, 4, 5, 6, 7.
?????? ???? ???????? ????? ?????? ??????????? ?????.

beotiger

?? ??? ??????? ?? ???? ????...
???? ?????-??...