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
1 2008-10-28 07:58
Re: message edit timer (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 2008-10-28 07:52
Re: message edit timer (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
No if i want to allow users only to edit there post for 300 sec must i say yes or No to Edit post
3 2008-10-28 07:31
Re: message edit timer (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 ?
4 2008-10-27 15:56
Re: message edit timer (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
only not for me
5 2008-10-27 14:24
Re: message edit timer (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
6 2008-10-27 14:04
Re: message edit timer (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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']);
7 2008-10-27 13:48
Re: message edit timer (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Will this be a standart option in 1.3 ?
8 2008-10-27 13:19
Re: message edit timer (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
no i dont have any idea of it
I am a user who try to get the forum as easy as posible
Debug ?
9 2008-10-27 13:00
Re: message edit timer (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
10 2008-10-27 11:48
Re: message edit timer (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.'&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
11 2008-10-27 10:50
Re: message edit timer (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 ?
12 2008-10-25 07:28
Topic: message edit timer (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 2008-10-24 12:53
Re: opening links in (17 replies, posted in PunBB 1.2 troubleshooting)
Thanks 2 problems solved in once
14 2008-10-24 11:19
Re: opening links in (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 ]------------------------------------------------
#
15 2008-10-24 10:57
Re: smily`s and edit in messages on forum 1.2.20 (4 replies, posted in PunBB 1.2 troubleshooting)
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 2008-10-24 10:55
Re: opening links in (17 replies, posted in PunBB 1.2 troubleshooting)
YES YES YES:D:D
17 2008-10-24 10:35
Re: opening links in (17 replies, posted in PunBB 1.2 troubleshooting)
18 2008-10-24 10:33
Re: opening links in (17 replies, posted in PunBB 1.2 troubleshooting)
sorry i dont understand
19 2008-10-24 08:03
Re: opening links in (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 2008-10-24 07:35
Re: opening links in (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
21 2008-10-24 07:18
Re: 1.2.14 php5 -reports trouble (10 replies, posted in PunBB 1.2 troubleshooting)
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.
22 2008-10-24 07:15
Re: smily`s and edit in messages on forum 1.2.20 (4 replies, posted in PunBB 1.2 troubleshooting)
> 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
23 2008-10-23 07:21
Topic: smily`s and edit in messages on forum 1.2.20 (4 replies, posted in PunBB 1.2 troubleshooting)
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 2008-10-23 07:17
Topic: opening links in (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.
25 2008-10-23 07:11
Re: 1.2.14 php5 -reports trouble (10 replies, posted in PunBB 1.2 troubleshooting)
in the configuration i did leave smtp empty