phpbb

operand should contain 1 columns [duplicate]

ⅰ亾dé卋堺 提交于 2019-12-01 23:19:59
This question already has an answer here: Operand Should Contain 1 Column - MySQL NOT IN 2 answers 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? You shouldn't include COUNT(p.post_id) AS total_posts in SELECT list in your subquery. Just SELECT topic_id FROM phpbb_topics AS t WHERE t.topic_id IN ( SELECT p.topic

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

phpBB3 auto-login

送分小仙女□ 提交于 2019-11-30 05:14:05
问题 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

How can I integrate users' logins from my site into phpBB?

我们两清 提交于 2019-11-28 06:29:13
I need some help with what is probably a newbie question in terms of modifying phpBB. I have a whole system developed in PHP, and I would like to integrate phpBB so that people can navigate into the forums and post seamlessly, without logging in again. Now, using the phpBB users table as the users table for my system (and having people register in phpBB instead of in my website) is not possible unfortunately (it'd take more work to redo our system than to build our own basic forum). I'm assuming I can hack my way into making phpBB believe that a certain user ID has logged in, however, that

Load Joomla 3.x Framework and Modules in external PHP file

余生长醉 提交于 2019-11-28 01:21:09
I am migrating my Joomla 2.5 site to Joomla 3.3. Now I'm struggling with loading the joomla framework and displaying a module in a phpbb-Template. Loading the Joomla framework worked fine in Joomla 2.5 with this code: define( '_JEXEC', 1 ); define('JPATH_BASE', '/var/customers/webs/tf2swiss/joomlasite'); define( 'DS', DIRECTORY_SEPARATOR ); require_once('../configuration.php'); require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); require_once ( JPATH_BASE .DS.'libraries'.DS.'joomla'.DS.'factory.php' ); require( JPATH

How can I integrate users' logins from my site into phpBB?

谁说胖子不能爱 提交于 2019-11-27 05:40:45
问题 I need some help with what is probably a newbie question in terms of modifying phpBB. I have a whole system developed in PHP, and I would like to integrate phpBB so that people can navigate into the forums and post seamlessly, without logging in again. Now, using the phpBB users table as the users table for my system (and having people register in phpBB instead of in my website) is not possible unfortunately (it'd take more work to redo our system than to build our own basic forum). I'm