Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6993563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:46:49+00:00 2026-05-27T19:46:49+00:00

i have on my page phpbb3 and now I am also starting some advertisementing…

  • 0

i have on my page phpbb3 and now I am also starting some advertisementing… So basicly want to have a form where i fill a username and password, then I want the script to hash and md5 the password (the same way as my phpbb3 does) and compare the password and username with table forum_users…. whatever I do I just cant make that works…

<?php

define('IN_PHPBB', true);
include ("../Forum/common.php");
include ("../Forum/includes/functions.php");


$pass = "password";
$hash = phpbb_hash($pass);

echo $hash;

?>

it doesnt do anything actually

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:46:50+00:00Added an answer on May 27, 2026 at 7:46 pm

    If your goal is to authenticate the username and password that your user is providing to you against what is in the database then this is all you should need:

    <?php
    /**
    *
    * Login script for phpBB using username/password
    * Used for website authentication
    *
    */
    define('IN_PHPBB', true);
    $phpbb_root_path = dirname(__FILE__) . '/./';
    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include("common.php");
    // Start session management
    $user->session_begin();
    $auth->acl($user->data);
    $user->setup();
    
    $username = request_var('username', '');
    $password = request_var('password', '');
    
    if(isset($username) && isset($password))
    {
      $auth->login($username, $password, true);
    }
    ?>
    

    But if you still wish to figure out the PHPBB password encryption hash, it is no longer MD5 in version 3.0 or higher and is a custom hash. Take a look at this thread:

    http://www.phpbb.com/community/viewtopic.php?f=71&t=585387

    I hope this helps.

    Pete

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have page and call method inside my page. I want to add some
I have page which is redirected from htaccess. now I can pass the German
I have page where RSS icon is present. I want that when user clicks
I have page which is desgined for map point browsing. I want to show
I have page control in main form and page controls in child form ,
I have page that is receiving a query string and I want it so
I have successfully intergrated phpbb3 with my site however now on the login pages
I have page, that loads in data using AJAX (a form filter) using jQuery.
I have page with fixed 1000px. I want to set shadow on left and
I have page with form: @using (Html.BeginForm(Create, Theme, FormMethod.Post, new { id = frm_post,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.