Moved to Modifications
4,551 2006-12-30 02:41
Re: Tag system ??? (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
4,552 2006-12-29 21:13
Re: Gallery - Photo Delete Function (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Moved to Modifications
4,553 2006-12-29 20:00
Re: Re: Newbie Help Needed! (12 replies, posted in PunBB 1.2 troubleshooting)
1. If you're uploading using an FTP program, they usually offer you a way. If you're confused about the word directory, directories are just like folders in Windows.
2. Well, lets say I own the site www.example.com. If I upload the contents of the upload directory to a folder called "forum" in the site, I can access the forum at http://www.example.com/forum/. To install, you need to run the install.php file from your webbrowser. In my example, I would go to http://www.example.com/forum/index.php
4,554 2006-12-29 17:16
Re: Hide reported post (30 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I'm not returning any duplicate rows though, so that won't do anything
Anyways, the second post should deal with the user issue
4,555 2006-12-29 17:07
Re: Hide reported post (30 replies, posted in PunBB 1.2 modifications, plugins and integrations)
And here's a version which addresses the user issue: now you need reports from 3 unique users
Again, untested, I coded it right in the post box, it might need some fixes
FIND
// Retrieve the posts (and their respective poster/online status)
BEFORE, ADD
// mod: Don't display reported posts
$report_result = $db->query('SELECT post_id, reported_by FROM '.$db->prefix.'reports WHERE topic_id = '.$id.' AND zapped IS NULL') or error('Unable to fetch report info', __FILE__, __LINE__, $db->error());
$reported = array();
while($cur_report = $db->fetch_assoc($report_result))
{
$reported[$cur_report['post_id']][$cur_report['reported_by']] = true;
}
FIND
// Perform the main parsing of the message (BBCode, smilies, censor words etc)
$cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
REPLACE WITH
// Perform the main parsing of the message (BBCode, smilies, censor words etc)
// mod: Don't display reported posts
if (!$is_admmod && isset($reported[$cur_post['id']]) && count($reported[$cur_post['id']]) >= 3)
$cur_post['message'] = '[<em>This post has been marked as objectionable and is awaiting staff review.</em>]';
else
$cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
4,556 2006-12-29 17:03
Re: Hide reported post (30 replies, posted in PunBB 1.2 modifications, plugins and integrations)
An untested version which I think should be better:
Only problem with it: one user can make 3 reports and the post will be hidden (I actually think that was a bug in the original code as well, but I've never tested it)
FIND
// Retrieve the posts (and their respective poster/online status)
BEFORE, ADD
// mod: Don't display reported posts
$report_result = $db->query('SELECT post_id, COUNT(*) AS num_reports FROM '.$db->prefix.'reports WHERE topic_id = '.$id.' AND zapped IS NULL GROUP BY post_id') or error('Unable to fetch report info', __FILE__, __LINE__, $db->error());
$reported = array();
while($cur_report = $db->fetch_assoc($report_result))
{
if ($cur_report['num_reports'] >= 3)
$reported[$cur_report['post_id']] = true;
}
FIND
// Perform the main parsing of the message (BBCode, smilies, censor words etc)
$cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
REPLACE WITH
// Perform the main parsing of the message (BBCode, smilies, censor words etc)
// mod: Don't display reported posts
if (!$is_admmod && isset($reported[$cur_post['id']]))
$cur_post['message'] = '[<em>This post has been marked as objectionable and is awaiting staff review.</em>]';
else
$cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
4,557 2006-12-29 16:00
Re: Weird problem involing posting? (5 replies, posted in PunBB 1.2 troubleshooting)
Aha
Don't worry about it, that's very confusing!
4,558 2006-12-29 15:52
Re: Weird problem involing posting? (5 replies, posted in PunBB 1.2 troubleshooting)
That is very odd
Is there any chance you could give me a link and an admin account so I can check it out?
4,559 2006-12-29 15:49
Re: Weird problem involing posting? (5 replies, posted in PunBB 1.2 troubleshooting)
Have you made any modifications at all to the source? Did you modify any of the group permissions? Are you logged in as an administrator?
4,560 2006-12-29 14:42
Re: HELP ME!!!!!! (7 replies, posted in PunBB 1.2 troubleshooting)
Closed
This is the support forum for PunBB. If you want phpBB, go there.
But as has been said, you need to talk to your host: it's their issue, not ours or the phpBB group's.
4,561 2006-12-29 02:06
Re: Incoming Noob =/ (1 replies, posted in PunBB 1.2 troubleshooting)
You'll have to talk to your host: it's an issue with the MySQL server
4,562 2006-12-28 21:41
Re: How can I easy count category in index.php ? (11 replies, posted in PunBB 1.2 troubleshooting)
Easiest way? Remove the second parameter from the call to $db->query and $db->num_rows will work
Another (better?) way? Add a new variable (for the sake of this, I'll call it $forum_count). Increment it every time you go through another row.
4,563 2006-12-28 21:27
Re: How can I easy count category in index.php ? (11 replies, posted in PunBB 1.2 troubleshooting)
Well, there's a variable $cat_count which is already calculated for you at the end of the loop
The problem with $db->num_rows is that the query is running unbuffered. Therefore, the results aren't being loaded into memory beforehand (and thus you can't get an easy count).
4,564 2006-12-28 16:44
Re: punFramework (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
it will work with newer version until some bigger code changes
I'm sure it will: my point was simply that r682 (the current revision) is better to offer a tarball for (since it fixes the install bug)
4,565 2006-12-28 15:16
Re: punFramework (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
r681 is a bad release to start from: all new installs of that are "broken" (Guests are assigned the wrong usergroup)
4,566 2006-12-28 14:22
Re: Mark as read problem? (2 replies, posted in PunBB 1.2 troubleshooting)
Moved to Troubleshooting
It's most likely a caching issue with your browser as opposed to a bug
4,567 2006-12-28 14:21
Re: Online users bug? (1 replies, posted in PunBB 1.2 bug reports)
Yes, already discussed (and addressed in 1.3)
http://punbb.org/forums/viewtopic.php?id=8436
I'm going to close this since we already have a topic that discusses the bug in some detail
4,568 2006-12-28 14:00
Re: Need some help regarding [code] (4 replies, posted in PunBB 1.2 discussion)
pogenwurst, your post is showing up multiple times: try logging out/in
4,569 2006-12-28 00:26
Re: Is it possible to have a member in two groups at the same time? (5 replies, posted in PunBB 1.2 troubleshooting)
Possibly as an extension to 1.3
4,570 2006-12-27 17:49
Re: Getting listed on donation page? (11 replies, posted in PunBB 1.2 discussion)
I think you mean
http://punbb.org/forums/misc.php?email=2
4,571 2006-12-27 13:11
Re: New problem with extern.php on homepage (8 replies, posted in PunBB 1.2 troubleshooting)
I think if short tags work on the server his syntax is fine
My guess is that the host stopped allowing URLs in includes
4,572 2006-12-27 12:31
Re: New problem with extern.php on homepage (8 replies, posted in PunBB 1.2 troubleshooting)
What error is it causing? That's kind of important
4,573 2006-12-27 03:34
Re: [BUG?] Cannot log out when you are banned. (3 replies, posted in PunBB 1.2 discussion)
Not a problem: I was confused the first time I saw it as well
4,574 2006-12-27 03:17
Re: [BUG?] Cannot log out when you are banned. (3 replies, posted in PunBB 1.2 discussion)
Moved to PunBB Discussion
Not a bug, as you guessed:
http://punbb.org/forums/viewtopic.php?id=10299
http://punbb.org/forums/viewtopic.php?id=6865
http://punbb.org/forums/viewtopic.php?id=9735