And your database type is?
And.....?
You are not logged in. Please login or register.
PunBB Forums → Posts by MattF
And your database type is?
And.....?
I'd personally suggest having a word with your host. Sounds like you have multiple issues there.
What alterations had you made just before the problem appeared? What is being logged, (with regards to PHP), in your httpd logs when you try to post?
The whole file, not just an excerpt of it.
Use the patches or hdiffs.
And your database type is?
That code alone could not create the symptoms you describe. Post your viewforum.php.
What else have you changed?
It is better to cater for various possibilities rather than fixing the width.
What version of punbb are you using? That sounds like the duplicate users online issue, but that was sorted a good while ago. You would have to be running quite an outdated version of PunBB, (or possibly using postgresql), for that to happen.
Why not just set it at 75% or suchlike?
As one would assume it only happens when you're uploading or attaching files? the answer would appear to be to make sure that the httpd user has correct permissions on the directory where the attachments/files are stored.
Anatoly wrote:Who is ignoring you?
This forum is lacking official answers to user's questions, if it wasn't for a handful of us, you'd hear crickets.
Although upto just I have tried to stay fairly neutral on the whole takeover and progression from there on in, I must admit, I have to agree wholeheartedly with hcgtv on this point. I popped in yesterday after a break of a week or two away from visiting this forum, and I do have to say that in my personal opinion, your idea of community support and participation is abhorrently bad.
Commercial aspects would obviously appear to be your primary concern, whilst the community aspect comes a very distant, (I was going to say second, but doubt it is even rated that high upon your list), way thereafter. Even your new board moderator only had a grand total of two posts when last I checked yesterday. That sucks big style.
Edit: I'll update that last sentence as I've just noted you've added several more moderators since yesterday, of which you are the highest ranking Anatoly, and you have accumulated a grand total of 24 posts in 6 months. Seriously, if this is your idea of nurturing and supporting the community, you are on a completely different planet to I.
Also, you can condense this:
if (intval($_GET["id"]) == "5")
{
if ($pun_user['g_id'] < PUN_GUEST || $cur_topic['poster'] == $pun_user['username'])
{
into a single if statement:
if (intval($_GET["id"]) == "5" && ($pun_user['g_id'] < PUN_GUEST || $cur_topic['poster'] == $pun_user['username']))
{
Your code above has a typo. This:
if (intval($_GET["id"] == "5"))
should be:
if (intval($_GET["id"]) == "5")
Btw, you also need to add viewtopic.php to your list of files to modify.
$pun_user['username']
Also, change this:
if ($_GET["id"] == "7")
to this:
if (intval($_GET["id"]) == "7")
You're not doing anything notable with it, but it's good form to be secure in methodology throughout.
What is code for ?
Admin and Mods ? PUN_ADMIN and PUN_MOD ?
Thanks.
Did you actually read my post above, i.e:
That code above will allow mods and admins to view/post too.
if ($pun_user['g_id'] < PUN_GUEST || [add the poster == topic poster check here])
{
[whatever code here]
}
That code above will allow mods and admins to view/post too. Just replace your poster == topic poster check with that code above.
However, remember that you also have to account for post.php, search.php and possibly some other scripts to make the topics truly invisible.
There is a mod for that over on punres, if I remember correctly. Can't remember what it is called, however.
Must say though that the total lack of interest the new devs seem to have in this board is pathetic.
But I have another question: Is it possible to ignore sticky-threads?
Belated reply, but change this:
WHERE forum_id='.$news_forum_id.'
to this:
WHERE forum_id='.$news_forum_id.' AND sticky=0
ORDER BY -posted
Change that to either:
ORDER BY posted DESC
or:
ORDER BY posted ASC
One of those will flip the order.
In what regard? To post code in a message? If so, use the [code ][/code ] tags, (without spaces before the ]).
It isn't dead yet. I just think the commercial entity which is now behind PunBB has bugger all idea of what Open Source actually means and entails. Hopefully, they may get a good slap with the clue stick. If not, then PunBB is indeed most likely screwed.
Post the rest of the code from that function.
PunBB Forums → Posts by MattF
Powered by PunBB, supported by Informer Technologies, Inc.