Why does phpBB use a posting confirmation page?

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
User avatar
dhn
Registered User
Posts: 1518
Joined: Wed Jul 04, 2001 8:10 am
Location: Around the corner
Contact:

Re: Why does phpBB use a posting confirmation page?

Post by dhn »

TimJBart wrote: Hope you guys can figure something out for phpbb 3, I really do prefer it without! I don't like putting the delay to zero either, looks a bit slapdash.
Won't happen, sorry.
Image
User avatar
Cheater512
Registered User
Posts: 245
Joined: Thu Mar 23, 2006 1:29 am
Location: Brisbane, Australia
Contact:

Re: Why does phpBB use a posting confirmation page?

Post by Cheater512 »

I like the confirmation page. It allows me to return to the forum easily instead of the thread. :)
User avatar
jojobarjo32
Registered User
Posts: 164
Joined: Wed Jun 22, 2005 7:38 pm
Location: France

Re: Why does phpBB use a posting confirmation page?

Post by jojobarjo32 »

Cheater512 wrote: I like the confirmation page. It allows me to return to the forum easily instead of the thread. :)
Me too :)
The only problem (with phpBB2 at least) is that the last post you made is not marking as read... I hope this will work better with Olympus.
Craig321
Registered User
Posts: 12
Joined: Thu Mar 18, 2004 4:15 pm

Re: Why does phpBB use a posting confirmation page?

Post by Craig321 »

it's actually not that hard to add a feature to turn it off at all.

Add new field into the config database called PostConfirm or something, 0=off 1=on.

Then somewhere in the post bit:

Code: Select all

$sql = "SELECT PostConfirm FROM Config";
$result = mysql_query($sql);
$field = mysql_fetch_array($result);

$PostConf = $field['PostConfirm'];

if($PostConf == 0)
{
  header("Location: blah.php?postid=blah");
}
elseif($PostConf == 1)
{
  header("Location: the_page_that_shows_confirm_dialog.php");
}
else
{
  do the default thing
}
Then some code can be added in the admin panel that allows the admin to toggle on/off.

Craig.
Twillingate.info
Registered User
Posts: 120
Joined: Thu Mar 30, 2006 9:30 pm

Re: Why does phpBB use a posting confirmation page?

Post by Twillingate.info »

Dean wrote: If your post took you directly to the thread, then you get problems with people pressing Refresh. This will re-post the POST data and result in double posts.

There are ways around it, as vB does, but they come with a whole bunch of problems of their own.
Yeah, that's a good reason why redirection is useful.
Administrator of The Fun Bucket
User avatar
Cheater512
Registered User
Posts: 245
Joined: Thu Mar 23, 2006 1:29 am
Location: Brisbane, Australia
Contact:

Re: Why does phpBB use a posting confirmation page?

Post by Cheater512 »

Craig321 wrote: Then some code can be added in the admin panel that allows the admin to toggle on/off.
1 word: $config :P
Craig321
Registered User
Posts: 12
Joined: Thu Mar 18, 2004 4:15 pm

Re: Why does phpBB use a posting confirmation page?

Post by Craig321 »

Cheater512 wrote:
Craig321 wrote: Then some code can be added in the admin panel that allows the admin to toggle on/off.
1 word: $config :P
Eh??
User avatar
Cheater512
Registered User
Posts: 245
Joined: Thu Mar 23, 2006 1:29 am
Location: Brisbane, Australia
Contact:

Re: Why does phpBB use a posting confirmation page?

Post by Cheater512 »

More efficent code. :P

Code: Select all

$PostConf = $config['PostConfirm'];

if($PostConf == 0)
{
  header("Location: blah.php?postid=blah");
}
elseif($PostConf == 1)
{
  header("Location: the_page_that_shows_confirm_dialog.php");
}
else
{
  do the default thing
}
Removed the SQL query because its done in common.php anyway.
User avatar
jojobarjo32
Registered User
Posts: 164
Joined: Wed Jun 22, 2005 7:38 pm
Location: France

Re: Why does phpBB use a posting confirmation page?

Post by jojobarjo32 »

And the confirmation page is displayed by a trigger_error call ;)
No need to redirect :)
User avatar
Pixelation
Registered User
Posts: 57
Joined: Mon Apr 10, 2006 1:03 pm
Location: Sydney, Australia
Contact:

Re: Why does phpBB use a posting confirmation page?

Post by Pixelation »

As said here, I like it. I guess it just ensures that people know they're post/topic has been posted and added, rather then double-posting by accident, which gives moderators or other staff more pointless and avoidable work to do.

I also agree that it looks good and I will always use it on my forum. :P
Pixelation :: The Freezing & Studio Blueprint Owner :: Visit Us :: Contact

Image
Leo the leopard

In need of hosting for your website, forum or even your blog? Visit The Freezing and be a part of one of the newest hosting websites around owned by yours truly!
Post Reply