2,976

(3 replies, posted in PunBB 1.2 troubleshooting)

No problem wink
It sounded like it was a cache issue to me, so I wanted to check it out myself wink

2,977

(3 replies, posted in PunBB 1.2 troubleshooting)

Could I see a link to your forum?

Strofanto: keep in mind you took out a lot of the sanitizing code (but kept in the $pun_user['is_guest'] check).

It makes sense in general for integration. You would have a function that takes the necessary parameters (eg: forum ID, topic title, poster, etc) and inserts the information into the database

2,980

(13 replies, posted in PunBB 1.2 discussion)

I'm confused, what are you talking about? tongue

$db->query('UPDATE '.$db->prefix.'users SET num_posts=new_num FROM '.$db->prefix.'post_counts WHERE id=poster_id') or error('Could not update post counts', __FILE__, __LINE__, $db->error());

Try that

Aha

$db->query('CREATE TEMPORARY TABLE '.$db->prefix.'post_counts AS SELECT poster_id, count(*) as new_num FROM '.$db->prefix.'posts GROUP BY poster_id') or error('Creating temporary table failed', __FILE__, __LINE__, $db->error());

2,983

(13 replies, posted in PunBB 1.2 discussion)

Yes, 1.3 will have a set of official tools (most likely in the form of extensions) for fighting spam

Oh, well, you would have to convince someone to write it for you then tongue

Take a look at how post.php handles new topics tongue

Try removing the if not exists, then paste any error you get

2,987

(4 replies, posted in PunBB 1.2 troubleshooting)

Yeah, I was just suggesting how to do it tongue

2,988

(4 replies, posted in PunBB 1.2 troubleshooting)

Modify post.php to automatically close a topic when the x post is made?

2,989

(4 replies, posted in PunBB 1.2 troubleshooting)

Not without modifying the code or making them administrators, the whole point of giving moderator permissions in certain forums is to control where individual moderators can edit/delete.

2,990

(6 replies, posted in PunBB 1.2 discussion)

Xeoncross wrote:

Ok then I guess the system will have to be GPL wink

But who wrote those functions? - because I can't give credit.

split_words looks to be based off of some of phpBB's code, parse_message I would assume is Rickard's doing. wink

2,991

(5 replies, posted in PunBB 1.2 troubleshooting)

Not without editing the code I'm afraid

2,992

(6 replies, posted in PunBB 1.2 discussion)

Xeoncross wrote:

Great!

So what about the http://creativecommons.org/licenses/by-sa/3.0/ ?

GPL wrote:

PunBB is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published
  by the Free Software Foundation; either version 2 of the License,
  or (at your option) any later version.

2,993

(6 replies, posted in PunBB 1.2 discussion)

It's fine as long as you release your system under the GPL wink

2,994

(5 replies, posted in PunBB 1.2 troubleshooting)

Rich Pedley wrote:

aye, but could someone have found a loophole to do this?

if it happens to no-one else, then it could just be a one off error, which is obviously what I hope it is!

Nope, there should be no exploit which allows this wink
My guess? One of your admins did it and is too embarassed to tell

2,995

(5 replies, posted in PunBB 1.2 discussion)

Moved to PunBB Discussion

2,996

(5 replies, posted in PunBB 1.2 troubleshooting)

Nothing, it doesn't do it by itself smile

2,997

(29 replies, posted in Programming)

Yes, because you're making two calls to the script, one when you view the form and one when you submit. That's why I suggested using sessions. It would go something like this:

session_start();
if (isset($_SESSION['hint']))
{
    $hint = $_SESSION['hint'];
    $answer = $_SESSION['answer'];
    $question = $_SESSION['question'];
}
else
{
    $number = rand(1, 2);

    $hint = $hints[$number];
    $answer = $answers[$number];
    $question = $questions[$number];

    $_SESSION['hint'] = $hint;
    $_SESSION['answer'] = $answer;
    $_SESSION['question'] = $question;
}

Moved to Modifications

2,999

(4 replies, posted in PunBB 1.2 troubleshooting)

A MySQL database isn't a file. Just run those queries I gave you in phpMyAdmin, replacing prefix with your database prefix for PunBB
And as for not displaying the information, you can just look in the files (eg: profile.php, viewtopic.php) where the information is shown and remove the showing part

3,000

(4 replies, posted in PunBB 1.2 troubleshooting)

Yeah, you can't just randomly remove columns from the database tables wink

alter table prefixusers add column url varchar(100) after realname
alter table prefixusers add column jabber varchar(75) after url
alter table prefixusers add column msn varchar(50) after icq
alter table prefixusers add column yahoo varchar(30) after aim
alter table prefixusers add column location varchar(30) after yahoo

Replace prefix with your database prefix