You are not logged in.
- Topics: Active | Unanswered
#1 Re: Core development » Additional styles » 2010-03-13 00:13:50
- Tyler
Very interested in the variants. ![]()
#2 Re: General support (1.4) » how to disallow to users to delete post older 24 hours » 2010-03-12 02:26:07
- Tyler
You'll still be able to access edit.php and delete.php directly. And what about moderators and administrators?
I assume he meant just regular users. As for still being able to access them directly, quick was the key word in my post.
#3 Re: General support (1.4) » how to disallow to users to delete post older 24 hours » 2010-03-11 22:05:00
- Tyler
if ($pun_user['g_edit_posts'] == '1') { if ($now < ($cur_post['posted']+86400)) $post_actions[] = '<li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'; }$now could not be defined here
Oh, my mistake. Add
$now = time();Above the if statement.
#4 Re: General support (1.4) » how to disallow to users to delete post older 24 hours » 2010-03-10 19:18:33
- Tyler
Here's a quick way to do it.
In viewtopic.php (around line 281), replace:
// 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 ($cur_post['poster_id'] == $pun_user['id'])
{
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')
$post_actions[] = '<li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>';
}
if (($cur_topic['post_replies'] == '' && $pun_user['g_post_replies'] == '1') || $cur_topic['post_replies'] == '1')
$post_actions[] = '<li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>';
}
}
else
$post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_common['Link separator'].'</li><li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_common['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_common['Link separator'].'</li><li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>';With:
// 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 ($cur_post['poster_id'] == $pun_user['id'])
{
if ((($start_from + $post_count) == 1 && $pun_user['g_delete_topics'] == '1') || (($start_from + $post_count) > 1 && $pun_user['g_delete_posts'] == '1'))
{
$now = time();
if ($now < ($cur_post['posted']+86400))
$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 ($now < ($cur_post['posted']+86400))
$post_actions[] = '<li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>';
}
}
if (($cur_topic['post_replies'] == '' && $pun_user['g_post_replies'] == '1') || $cur_topic['post_replies'] == '1')
$post_actions[] = '<li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>';
}
}
else
$post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_common['Link separator'].'</li><li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_common['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_common['Link separator'].'</li><li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>';#5 Re: FluxBB discussion » FluxBB XXL - Big Forums Running FluxBB » 2010-03-10 19:04:33
- Tyler
Oh whoops, didn't realize it was PunBB. ![]()
#6 Re: FluxBB discussion » FluxBB XXL - Big Forums Running FluxBB » 2010-03-10 04:06:52
- Tyler
Arch Linux - http://bbs.archlinux.org/ (33035 users)
Facebook Developers - http://forum.developers.facebook.com/ (61966 users)
#7 Re: General support (1.4) » New posts notification » 2010-03-09 22:24:38
- Tyler
Again about that. New post notification apears for no reason. This time i did not logout, just refreshed index page and vuala. I left browser tab open with forum index and after some time refreshed forum index. Any ideas?
You're saying there was no new post yet a new post indicator showed up after refresh?
#8 Re: Core development » Quick commit » 2010-03-08 13:34:01
- Tyler
Thanks I've commit them. I've no idea what's up with the SVN but Franz is having the same problem as you now...
Strange. ![]()
#9 Core development » Quick commit » 2010-03-08 05:25:26
- Tyler
- Replies: 2
As I am having trouble with my SVN, I need someone to commit some changes to install.php. It is missing a period and needs some text set as strong. The fixed file is located here: http://pastebin.org/104619
#10 Re: Core development » Thoughts on new server » 2010-03-04 23:38:00
- Tyler
You could use SSL for the login pages and when a user updates his/her password in the user profile.
^. With this couldn't you direct most of these activities toward the main domain with said SSL cert?
#11 Re: Core development » r1471 » 2010-03-03 23:55:09
- Tyler
Agreed with Reines. Remedy the issue with an error message later on.
#12 Re: Core development » Idea: Skin based smileys? » 2010-02-27 17:25:46
- Tyler
Paul wrote:You could go one step further with the smilies and have the definition array as an external file. That allows people not only to use their own smilies but also add smilies without touching parser.php.
+1
#14 Re: General support (1.2) » Latest posts on Homepage » 2010-02-24 22:03:41
- Tyler
Take a look through /extern.php. It has a manual at the top that describes how one would do so.
#15 Re: General discussion » the most powerful free forum is SMF? » 2010-02-24 21:51:45
- Tyler
It has a lot of features yes, but the way most things on it are handled is not my style.
#16 Re: Core development » Nasty parser bug » 2010-01-09 01:16:52
- Tyler
Welcome ridgerunner. (:
#17 Re: Core development » BBXF » 2009-11-28 19:18:47
- Tyler
We should definitely participate.
#18 Re: Modifications (1.4) » Temporary alternative to using 'forgot password' after conversion » 2009-11-21 00:25:20
- Tyler
Changed it to Smartys' (read: smarter) method. ![]()
#19 Re: Modifications (1.4) » Temporary alternative to using 'forgot password' after conversion » 2009-11-20 18:58:23
- Tyler
Tyler wrote:Note3: I didn't add any checking mechanism to see if you've converted, though I'd like to assume you'd only try this if you've converted from 1.3
.
Isn't this what you're talking about?
if (sha1($salt.sha1($form_password)) == $db_password_hash)
I mean it doesn't check to see if there is a salt column. So if you didn't convert, login doesn't work.
Also: why the 'converted' column?
Didn't think about what Smartys suggested.
#20 Modifications (1.4) » Temporary alternative to using 'forgot password' after conversion » 2009-11-20 03:59:56
- Tyler
- Replies: 4
Open login.php
Find:
$result = $db->query('SELECT id, group_id, password FROM '.$db->prefix.'users WHERE '.$username_sql) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());
list($user_id, $group_id, $db_password_hash) = $db->fetch_row($result);Replace With:
$result = $db->query('SELECT id, group_id, password, salt FROM '.$db->prefix.'users WHERE '.$username_sql) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());
list($user_id, $group_id, $db_password_hash, $salt) = $db->fetch_row($result);Find:
$authorized = false;Add Before:
if ($salt)
{
if (sha1($salt.sha1($form_password)) == $db_password_hash)
{
$db->query('UPDATE users SET password = \''.pun_hash($form_password).'\', salt=\'\' WHERE id = \''.$user_id.'\'');
message('Password updated successfully!');
}
}Save & Close login.php
If there is any wrong-doing, coding wise, in this please let me know. ![]()
Note: I've only tested this with PunBB 1.3 -> FluxBB 1.4b2 (MySQL), though I don't see it not working on any revision in between 1.4b2 and 1165 OR not working with FluxBB 1.3 -> 1.4b2.
Note2: I didn't add a pun_hash-esque function for this because as far as I know 1.3 dropped MD5 support, so any server running 1.3 will be able to handle SHA-1.
Note3: I didn't add any checking mechanism to see if you've converted, though I'd like to assume you'd only try this if you've converted from 1.3
.
#21 Re: General discussion » Favorite Web Scripts » 2009-11-12 22:41:12
- Tyler
FluxBB and weat-images.
#22 Re: General support (1.4) » 'No posts selected' » 2009-11-05 03:08:28
- Tyler
Smartys wrote:You were saying?
If we go around singleing out parts of everyones posts and disregarding the rest of the post content we could so everyone is repeating themselves.
Well to be fair you have been repeating yourself. You say you feel that the software should contain "non-generic" error messages because you feel "they should be as clear and helpfull as possible without compromise". It seems you're assuming the reader has no idea what the context of the error is: obviously if you're trying to delete a post and it returns that you haven't selected a post to delete, you're going to make the connection.
#23 Re: General support (1.4) » 'No posts selected' » 2009-11-04 00:20:40
- Tyler
At least we get some activity from this more than pointless discussion
Petty fixes/changes all seem to be a hot topic around here lately. ![]()
#24 Re: General support (1.4) » 'No posts selected' » 2009-11-02 22:47:26
- Tyler
A non-generic message has more soul, I think that's better and where the value is added if you like.
I don't think text needs a soul if it is more useful otherwise. ![]()
#25 Re: Show off » Ti-Pierre and it's little forum » 2009-11-01 22:43:59
- Tyler
Good looking skin.
