Search found 15 matches

by FoolishNoob
Sun Feb 08, 2009 6:36 am
Forum: phpBB 3.0.x Support
Topic: confirm_box never returning true
Replies: 20
Views: 9433

Re: confirm_box never returning true

Putting all the session code inside an if statement did fix the issue. So as you wrote, the session must be completely preserved to use confirm_box.
by FoolishNoob
Sun Feb 08, 2009 6:33 am
Forum: phpBB 3.0.x Support
Topic: confirm_box never returning true
Replies: 20
Views: 9433

Re: confirm_box never returning true

Removing $user->session_create had no effect on fixing the issue.
by FoolishNoob
Sat Feb 07, 2009 10:13 pm
Forum: phpBB 3.0.x Support
Topic: confirm_box never returning true
Replies: 20
Views: 9433

Re: confirm_box never returning true

Here is the controller. <?php function sendPost() { // The default phpBB inclusion protection - required define('IN_PHPBB', true); // Make connection to globals from inside function global $phpbb_root_path, $phpEx, $user, $auth, $db, $config, $cache, $template; $phpbb_root_path = './'; $phpEx = subs...
by FoolishNoob
Sat Feb 07, 2009 9:29 pm
Forum: phpBB 3.0.x Support
Topic: confirm_box never returning true
Replies: 20
Views: 9433

Re: confirm_box never returning true

Why are you using session_create() ? session_begin() will do that for you. Huh? Because I also tested to see if it was a problem with the 'guest' user or if I needed another user... i tested if the session needed to persist. Would that have anything to do with the confirm_box? Again, what would cau...
by FoolishNoob
Sat Feb 07, 2009 7:49 pm
Forum: phpBB 3.0.x Support
Topic: confirm_box never returning true
Replies: 20
Views: 9433

Re: confirm_box never returning true

changing to ...

Code: Select all

$user->session_create(1,false,true,true);
had no effect.
by FoolishNoob
Sat Feb 07, 2009 7:47 pm
Forum: phpBB 3.0.x Support
Topic: confirm_box never returning true
Replies: 20
Views: 9433

Re: confirm_box never returning true

For creating the session--- do i need to set $persist_login = true?

Code: Select all

// Start session management
$user->session_begin();
$user->session_create(1,false,false,true);
$auth->acl($user->data);
// our lang file is in the mods directory
$user->setup('api_example');
by FoolishNoob
Sat Feb 07, 2009 7:07 pm
Forum: phpBB 3.0.x Support
Topic: confirm_box never returning true
Replies: 20
Views: 9433

Re: confirm_box never returning true

The form is setting submit as it should... as it does when no confirm_box code is there...

For example-- if I add ...

Code: Select all

...
if ($submit)
{
   trigger_error('Submit is true');
   if (confirm_box(true))
   {
...
I get the information message 'submit is true'
by FoolishNoob
Sat Feb 07, 2009 6:29 pm
Forum: phpBB 3.0.x Support
Topic: confirm_box never returning true
Replies: 20
Views: 9433

Re: confirm_box never returning true

That probably means that $submit is false when you are confirming. I see that you are attempting to send submit=true, but is it actually being picked up that way? I am taking this code right out of the example provided in the docs. The only thing I changed was instead of a PM self, I changed it to ...
by FoolishNoob
Sat Feb 07, 2009 6:22 pm
Forum: phpBB 3.0.x Support
Topic: confirm_box never returning true
Replies: 20
Views: 9433

Re: confirm_box never returning true

I note that the URL contains a sid and a confirm_key after clicking yes in the confirm_box standard form.
by FoolishNoob
Sat Feb 07, 2009 6:08 pm
Forum: phpBB 3.0.x Support
Topic: confirm_box never returning true
Replies: 20
Views: 9433

Re: confirm_box never returning true

The confirm_box shows fine... it asks 'yes' or 'no' with the 'Confirm' title and the correct language text... If I hit 'yes', the browser re-displays the input form with the details in the text boxes... as I said above, for some reason, confirm_box never returns true and the code resets back to the ...