phpbb

CodeIgniter and PhPBB 3.1.3 integration

我的梦境 提交于 2019-12-04 19:04:49
I develop a website site based on CodeIgniter, the latest version 2.2.1 and I installed a PhPBB forum (version 3.1.3). I would like to use the functions of the forum on my web site (like the connection/profile etc.). I've looked on this site : http://www.3cc.org/blog/2010/03/integrating-your-existing-site-into-phpbb3/ to simply display my pseudo. My Controller is just a copy/paste of the first paragraph class Forum_test extends CI_Controller{ function __construct() { parent::__construct(); } function index() { define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB

Use PHPBB2 Login Credentials in my site

白昼怎懂夜的黑 提交于 2019-12-04 14:54:04
I'm currently using a PHPBB2 forum for a section of one of my sites, and I would like to extend this site (add new pages, scripts, etc). I would like to restrict access to these pages to the users already logged in the PHPBB2 Forum. In fact, if only members of a certain MemberGroup could access these pages, that would be great. Is there a way to use the same login credentials on the rest of my site, and to check out which groups the members are from? Thanks (by the way, these pages are in PHP) random If a user is logged into PHPBB, there's a good chance, though not always likely, that they

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;

What is the best forum plug-in solution for the Symfony framework?

本小妞迷上赌 提交于 2019-12-03 20:27:11
I'm looking for a good solution to integrate a forum into a symfony application. Something like phpBB would be excellent. I've seen phpBB plugins to integrate with symfony but that's not enough for my purposes, also, mapping database tables is a lame approach in my opinion. If anybody knows a good working forum component for Symfony then I would really apreciate it. :) Also, it needs to work with Doctrine. Thanks! I've found sfDoctrineSimpleForumPlugin Thanks for all the responses, hope this works :) ! The author made even some changes today after this post If you're discounting the

Handling unread posts in PHP / MySQL

笑着哭i 提交于 2019-12-03 01:53:22
For a personal project, I need to build a forum using PHP and MySQL. It is not possible for me to use an already-built forum package (such as phpBB). I'm currently working through the logic needed to build such an application, but it's been a long day and I'm struggling with the concept of handling unread posts for users. One solution I had was to have a separate table which essentially holds all post IDs and user IDs, to determine if they've been read: tbl_userReadPosts: user_id, post_id, read_timestamp Obviously, if a user's ID appears in this table, we know they've read the post. This is

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

PHP Variables with the same name

狂风中的少年 提交于 2019-12-02 15:03:25
问题 I am trying to integrate my login system made with PHP with the PHPBB Login system. My problem is that I am including the PHP login document which contains a class called $user but my login system uses $user as well. e.g My function for login is executing inside a class called $user and the phpbb login class is $user->login Is it possible to load the phpbb document, and login in a separate kind of "environment" to my main website? If you need any more info just let me know 回答1: You could run

PHP Variables with the same name

好久不见. 提交于 2019-12-02 10:09:47
I am trying to integrate my login system made with PHP with the PHPBB Login system. My problem is that I am including the PHP login document which contains a class called $user but my login system uses $user as well. e.g My function for login is executing inside a class called $user and the phpbb login class is $user->login Is it possible to load the phpbb document, and login in a separate kind of "environment" to my main website? If you need any more info just let me know You could run your code in a function. Functions aren't passed global variables if you don't explicitly tell them ;) Can

operand should contain 1 columns [duplicate]

霸气de小男生 提交于 2019-12-02 03:59:07
问题 This question already has answers here : Operand Should Contain 1 Column - MySQL NOT IN (2 answers) Closed 5 years ago . SELECT topic_id FROM phpbb_topics AS t WHERE t.topic_id IN ( SELECT p.topic_id, COUNT(p.post_id) AS total_posts FROM phpbb_posts AS p WHERE p.poster_id = 61640 GROUP BY p.topic_id HAVING t.topic_replies_real = total_posts - 1 ); That query gets me the following error: Error Code: 1241. Operand should contain 1 column(s) Any ideas? 回答1: You shouldn't include COUNT(p.post_id)