Oke i dit try
If i say no to edit post by the user groep the may not edit for 300 sec
If i say yes to edit the may still edit afther  20 minutes so it dont work

No if i want to allow users only to edit there post  for 300 sec must i say yes or No to Edit post

I will try this one also
Only must i allow or disallow the usergroep to edit
I think allow and afther 300 sec this will stop ?

only not for me sad

I did it again and again if you write somthing and you say save you get the redirect and than you get a complete emty page.
The i did look in old messages and the also gave a blanco page

maby i reed it wrong or understatd it wrong

i must remove whats on the lines and past the new lines.
So i start with this lines (who will stay the same)
message($lang_common['Bad request']);
en end  afther message($lang_common['Bad request']); what also stays the same

@@ -36,7 +36,7 @@
     message($lang_common['Bad request']);

// Fetch some info about the post, the topic and the forum
-$result = $db->query('SELECT f.id AS fid, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics, t.id AS tid, t.subject, t.posted, t.closed, p.poster, p.poster_id, p.message, p.hide_smilies FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND p.id='.$id) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
+$result = $db->query('SELECT f.id AS fid, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics, t.id AS tid, t.subject, t.posted, t.closed, p.posted AS post_posted, p.poster, p.poster_id, p.message, p.hide_smilies FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND p.id='.$id) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
if (!$db->num_rows($result))
     message($lang_common['Bad request']);

Will this be a standart option in 1.3 ?

no i dont have any idea of it
I am a user who try to get the forum as easy as posible
Debug ?

now if a user post a message he push on send and then she sees nothing
if you like i can send the two php files to you.
Maby you see somthing stainge

I did do it and from that moment you can not vieuw the topic you did enter.
edit PHP

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


$id = isset($_GET['id']) ? intval($_GET['id']) : 0;
if ($id < 1)
     message($lang_common['Bad request']);
 
 // Fetch some info about the post, the topic and the forum
-$result = $db->query('SELECT f.id AS fid, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics, t.id AS tid, t.subject, t.posted, t.closed, p.poster, p.poster_id, p.message, p.hide_smilies FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND p.id='.$id) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
+$result = $db->query('SELECT f.id AS fid, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics, t.id AS tid, t.subject, t.posted, t.closed, p.posted AS post_posted, p.poster, p.poster_id, p.message, p.hide_smilies FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND p.id='.$id) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
 if (!$db->num_rows($result))
     message($lang_common['Bad request']);


$cur_post = $db->fetch_assoc($result);
**************************************************************************
// Determine whether this post is the "topic post" or not
$result = $db->query('SELECT id FROM '.$db->prefix.'posts WHERE topic_id='.$cur_post['tid'].' ORDER BY posted LIMIT 1') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
$topic_post_id = $db->result($result);

$can_edit_subject = ($id == $topic_post_id && (($pun_user['g_edit_subjects_interval'] == '0' || (time() - $cur_post['posted']) < $pun_user['g_edit_subjects_interval']) || $is_admmod)) ? true : false;
 
 // Do we have permission to edit this post?
-if (($pun_user['g_edit_posts'] == '0' ||
-    $cur_post['poster_id'] != $pun_user['id'] ||
+if (((($pun_user['g_edit_posts'] == '0' ||
+    $cur_post['poster_id'] != $pun_user['id']) &&
+    (time() - $cur_post['post_posted']) > 300) ||
     $cur_post['closed'] == '1') &&
     !$is_admmod)
     message($lang_common['No permission']);


// Load the post.php/edit.php language file
********************************************
viewtopic.PHP

// Generation post action array (quote, edit, delete etc.)
    if (!$is_admmod)
    {
        if (!$pun_user['is_guest'])
            $post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>';

        if ($cur_topic['closed'] == '0')
             {
                 if ((($start_from + $post_count) == 1 && $pun_user['g_delete_topics'] == '1') || (($start_from + $post_count) > 1 && $pun_user['g_delete_posts'] == '1'))
                     $post_actions[] = '<li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>';
-                if ($pun_user['g_edit_posts'] == '1')
+                if ($pun_user['g_edit_posts'] == '1' || (time() - $cur_post['posted']) <= 300)
                     $post_actions[] = '<li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>';
             }
    }
    else
        $post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_topic['Link separator'].'</li><li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_topic['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_topic['Link separator'].'</li><li class="postquote"><a href="post.php?tid='.$id.'&amp;qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>';


    // Switch the background color for every message.
    $bg_switch = ($bg_switch) ? $bg_switch = false : $bg_switch = true;
    $vtbg = ($bg_switch) ? ' roweven' : ' rowodd';

EDIT: Added [code ] tag // Anatoly

where must i edit this ?
I mean where in the edit.php where in the view.php file must i copy this

Forget this i did read with my eyes closed
This is working with version 1.2.20 ?

I am loking for a working mod for 1.2.20 that allows users to edit the message for a short period.
The one i did find, so far, dont work.

13

(17 replies, posted in PunBB 1.2 troubleshooting)

Thanks 2 problems solved in once smile

14

(17 replies, posted in PunBB 1.2 troubleshooting)

small other question
I did find this to hide links from guest is that also opening links in a new page ?

Mod title:  Hide Links From Guests
##
##      Mod version:  1.0
##   Works on PunBB:  1.2.15
##     Release date:  2007-09-10
##           Author:  Natanzuelo (http://gritalo.wordpress.com)
##
##      Description:  This Mod hides links from guests, and displays
##                    any text or image you want instead of it.
##       You can put a link to the register page instead
##       of the real link.
##
##
##   Affected files:  include/parser.php
##
##       Affects DB:  No
##
##
##       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 ]-----------------------------------------------------------
#

parser.php

#
#---------[ 2. FIND ]-----------------------------------------------------------
#

return '<a href="'.$full_url.'">'.$link.'</a>';

#
#---------[ 3. REPLACE WITH ]---------------------------------------------------
#

// Hide Links From Guests 1.0
    if ($pun_user['is_guest'] )
    return ' <span class="members-only">REPLACE THIS</span>';
    else
    return '<a href="'.$full_url.'" onclick="window.open(this.href); return false;">'.$link.'</a>';
// End of Hide Links From Guests 1.0


*Note: You have the replace the words "REPLACE THIS" with whatever you want to show instead of the links.
You can use HTML to put a link to the register.php page if you want.

#
#---------[ 4. SAVE AND UPLOAD ]------------------------------------------------
#

Oke but is there anyone who nows a working mod so that users can change there posyings fo let say 5 minutes
All i did find dont work

16

(17 replies, posted in PunBB 1.2 troubleshooting)

YES YES YES:D:D

17

(17 replies, posted in PunBB 1.2 troubleshooting)

http://forum.offshoreradio.org/viewtopic.php?id=4581

18

(17 replies, posted in PunBB 1.2 troubleshooting)

sorry i dont understand

19

(17 replies, posted in PunBB 1.2 troubleshooting)

Sorry buth as far as i can see are
return '<a href="'.$full_url.'" taget="_blank">'.$link.'</a>';
or the line you write
return '<a href="'.$full_url.'" taget="_blank">'.$link.'</a>';
the same
so where must i do the space

20

(17 replies, posted in PunBB 1.2 troubleshooting)

i did change line 280
from
return '<a href="'.$full_url.'">'.$link.'</a>';

to
return '<a href="'.$full_url.'" taget="_blank">'.$link.'</a>';

Only i dont see any change

The parser file whas located in inculde, is this correct

Dont ask me how and also dont ask me why ;-)
Only yesturday evning he did send e-mails again.


What i did do is puth a SMTP server adres in the configuration save it and than enter de configuration again removed it.

Anatoly wrote:

> I expect that you also using 1.2.20.
Sorry, but it is PunBB 1.3 RC installed her.
1.3 final is planned to be released in two weeks, you will be able to upgrade your 1.2 installation then.

pun_bbcode extension is used here.

> Is there a way that users can edit there own message for abouth 10 minutes and not longer

Try to find the mods you need at punres.org.

The bbcode is there a explanation how to instal ?
Maby i did look over it.

I did find one mod for this buth he dont works at al

If i look here i see smilys above the write message box and also buttons for quote etc etc What did you do extra.
I expect that you also using 1.2.20

Is there a way that users can edit there own message for abouth 10 minutes and not longer ?

24

(17 replies, posted in PunBB 1.2 troubleshooting)

When some one ads u url to a message now (1.20.0) and you click on it it will open the page not in a new tab in IE7 and in Firefox buth in the same one where you are reading the forum.
Thats not as in the old vesion (1.1.14) where it did open a new page.

in the configuration i did leave smtp empty