phpbb3

Codeigniter+PhpBB function redeclaration

痴心易碎 提交于 2019-12-10 23:03:30
问题 I am trying to integrate phpbb to codeigniter. I don't want that the users register for the forum. Site login/register controllers should handle the forum part as well, so I am writing a ci library to register/login to phpbb. I got an error because I have included phpbb functions and libraries inside my ci library: Fatal error: Cannot redeclare redirect() (previously declared in E:\xampp\htdocs\ci\system\helpers\url_helper.php:535) in Any idea how to solve this quickest way? phpbb files that

Authenticate user against PhPbb database

∥☆過路亽.° 提交于 2019-12-09 16:01:03
问题 Recently I have started implementing a solution which will use a PhPbb database for forms authorization, I have used the class from this below thread: PhPbb C# Authentication Port So i wrote a membership provider using this class in the 'ValidateUser' function: public override bool ValidateUser(string username, string password) { ForumsDataContext db = Root.ForumsDataContext; PhPbbCryptoServiceProvider phpbbCrypt = new PhPbbCryptoServiceProvider(); string remoteHash = db.Users.Where(u => u

Is it safe to store plaintext passwords in MySQL *temporarily*?

浪子不回头ぞ 提交于 2019-12-08 19:14:07
问题 A little bit of background -- I run a game server that runs in Java, and a forum that runs in PHP (phpbb). I have the game and forum accounts linked, such that changing the password in the game automatically changes the password for the forum account. The two systems use different password hashing algorithms, and I need to update the password hash on the forum side by using phpbb's built-in functions, meaning I have to call them from a PHP script (rather than running my own code). In order to

Login to a phpBB forum. Cookie changed

岁酱吖の 提交于 2019-12-08 02:53:06
问题 I am trying to create a small script that is to run in the background and check for incomming new messages on a forum (with phpBB3). As many of the subforums need permissions from a logged in user to be viewed I created a script that would send a post-request to the server to login first. The script currently gets a successfull login, and is greeted with a welcome message telling me I am logged in. But when I access a new page the script seems to have forgotten that I logged in and my session

phpbb 3.1 passing variable between 2 pages

半城伤御伤魂 提交于 2019-12-06 16:47:31
With phpbb3.1 it appears they have disabled more superglobals. I have tried passing a variable between using sessions, but have had no success. $_SESSION['example'] = 'example'; $example = $_SESSION['example']; Nothing is stored because nothing is there due to phpbb disabling superglobals. What's the next best and most secure way to pass variables in between pages? I'm not sure if $_SESSION is included, but try phpBBs request class... $example = $request->variable('example',''); Docs for the class are here - https://wiki.phpbb.com/PhpBB3.1/RFC/Request_class You might want to take a look at

PHPBB3 Forum feed on external page for non-authenticated users

雨燕双飞 提交于 2019-12-04 21:49:13
I am trying to integrate Forum Feeds of a PHPBB3 Forum into an external Frontpage. For this I'm using an example from the phpbbwiki : here is the code My problem is that this only works if the user is authenticated on the forum allready, but I would like the user to see topics that are open to guest users, instead of a PHPBB default (blank-)page. In this case I am using ajax to return topics in JSON, but this should not really matter for my problem here. It would be good to know if this is achievable within the scope of what PHPBB is able to deliver and where to start looking if this is a more

Creating a forum in phpBB3 from PHP and settings permissions

余生颓废 提交于 2019-12-04 09:23:38
I'm attempting to create a new forum on an existing forum. I can create the new forum quite easily and view it from the admin console. The problem is I need it to show up at the front end as well for users. This is done via permissions. What I am attempting to do therefore is copy the permissions of the parent forum (which is public) to the forum I create. However the forum still doesn't appear to be showing up on the public facing side. Here's my code (please note the phpBB include files have been loaded previously): // $forum_name = name of the new forum // $parent_id = the forum which this

Authenticate user against PhPbb database

*爱你&永不变心* 提交于 2019-12-04 03:27:18
Recently I have started implementing a solution which will use a PhPbb database for forms authorization, I have used the class from this below thread: PhPbb C# Authentication Port So i wrote a membership provider using this class in the 'ValidateUser' function: public override bool ValidateUser(string username, string password) { ForumsDataContext db = Root.ForumsDataContext; PhPbbCryptoServiceProvider phpbbCrypt = new PhPbbCryptoServiceProvider(); string remoteHash = db.Users.Where(u => u.UserName == username).FirstOrDefault().UserPassword; if (String.IsNullOrEmpty(remoteHash)) return false;

Full integrate phpbb into existing website

陌路散爱 提交于 2019-12-03 00:51:29
I have a website that runs for around 2-3 years before, it has its own forum, however, recently I would like to use the phpbb3 to replace that forum. I encounter the problem when I need to do integration . To be precise, I have an existing database that have fields designed for my own website. What I would like to do is the old user do not need to register again and can login to the phpbb forum, using every functions it provided (e.g. check profile) . Are there any way to implement such conversion? So far I have got some source code to check login, but there are a lots of works should be done

phpBB3 auto-login

自作多情 提交于 2019-11-30 20:48:09
I've integrated a phpbb3 forum to my already existing website. I've been able to make my registration process add the user to the phpbb db as well. Now i'm facing a problem where I am trying to get the user to auto-login to the forum when he logs in to my website. Have anyone here done that? I can't find anything relevant on Google as all posts seem to talk about 'phpbb external webpages' and how you can use phpbb sessions on other webpages. however what i'm trying to do is to initiate a login only when the member logs in to my website, and following the tutorials i found on google will let my