phpbb3

Phpbb3 forum integration with existing site

萝らか妹 提交于 2019-12-24 07:09:36
问题 I am trying to integrate the phpbb forum with my existing site. I have already looked at these links, and it doesn't seem to work. I have copied this code define('IN_PHPBB', true); define('ROOT_PATH', "/path/to/forums"); if (!defined('IN_PHPBB') || !defined('ROOT_PATH')) { exit(); } $phpEx = "php"; $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : ROOT_PATH . '/'; include($phpbb_root_path . 'common.' . $phpEx); $user->session_begin(); $auth->acl($user->data); into a

PHPBB3 Forum feed on external page for non-authenticated users

妖精的绣舞 提交于 2019-12-22 00:23:14
问题 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

Can't upload file attachments to phpBB3 forum on IIS

穿精又带淫゛_ 提交于 2019-12-13 03:48:52
问题 With reference to this thread (where, to be honest, I'm a bit lost with the technicalities): https://www.phpbb.com/community/viewtopic.php?f=556&t=2520341&e=1&view=unread#unread Does anyone have any suggestions as to why I am unable to upload file attachments to my forum? I've tried every solution I can find via Google, fiddled endlessly with permissions etc. on the webserver - I just can't get it to work, nor can i find any useful error messages anywhere. I'd be great to finally fix this. 来源

Installing a reputation system on phpbb causes layout problems

拜拜、爱过 提交于 2019-12-13 03:35:38
问题 I have tried several times to install a reputation system mod on my phpbb forum. But it always causes the problem that my layout is messed up. Is there a way I can work around this? The mod I use is the rep system by pico88. I cant show the layout problems because the forum is up and running. Maybe there is a reputation system that doesnt do anything with the layout? 回答1: That's a bit of a heavy modification for the server. I'm not getting into details. Speaking if which you should have

Create topic in phpBB3 by php file

断了今生、忘了曾经 提交于 2019-12-12 10:26:27
问题 I am trying to create topics in phpBB3 forums by a php file. I found this Creating a forum in phpBB3 from PHP and settings permissions But when i copy this and running my php file i am getting this PHP Notice: Use of undefined constant FORUMS_TABLE - assumed 'FORUMS_TABLE' in /var/www/html/phpvibe/forum/insertPhpbb.php on line 13 PHP Fatal error: Call to a member function sql_build_array() on a non-object in /var/www/html/phpvibe/forum/insertPhpbb.php on line 14 I also found this https://wiki

run php function using ajax to update phpBB template variable

浪尽此生 提交于 2019-12-12 04:47:36
问题 NOTE: There are a lot of details here, so if anyone needs a condensed version of this, I'm happy to summarize. I am trying to run a function in my php file, that will in turn, update a template variable. As an example, here is one such function: function get_vehicle_makes() { $sql = 'SELECT DISTINCT make FROM phpbb_vehicles WHERE year = ' . $select_vehicle_year; $result = $db->sql_query($sql); while($row = $db->sql_fetchrow($result)) { $template->assign_block_vars('vehicle_makes', array(

preg_match to only allow https:// in an URL

感情迁移 提交于 2019-12-12 03:46:22
问题 I'd like to allow only https:// links to be used as remote avatar images in phpbb to avoid mixed content. This seems to be the code that is used to check whether the entered url is correct (to be found in /phpbb/avatar/driver/remote.php): if (!preg_match('#^(http|https|ftp)://(?:(.*?\.)*?[a-z0-9\-]+?\.[a-z]{2,4}|(?:\d{1,3}\.){3,5}\d{1,3}):?([0-9]*?).*?\.('. implode('|', $this->allowed_extensions) . ')$#i', $url)) { $error[] = 'AVATAR_URL_INVALID'; return false; } I'd like to add a if{}

phpass fails on Authentication on certain passwords from phpBB3?

那年仲夏 提交于 2019-12-11 17:51:30
问题 Using either the phpass test program http://www.openwall.com/phpass/phpass-0.3.tar.gz , or python-phpass, and using C?*|Y[j"KQ'%gf for the plain text password, and $P$9kS6tD8tVxajypvJ5837.bt2emepD8/ as the hash, doing: <?php # # This is a test program for the portable PHP password hashing framework. # # Written by Solar Designer and placed in the public domain. # See PasswordHash.php for more information. # require 'PasswordHash.php'; header('Content-type: text/plain'); $t_hasher = new

removing BBcode from textarea with Javascript

会有一股神秘感。 提交于 2019-12-11 13:51:48
问题 I'm creating a small javscript for phpBB3 forum, that counts how much character you typed in. But i need to remove the special characters(which i managed to do so.) and one BBcode: quote my problem lies with the quote...and the fact that I don't know much about regex. this is what I managed to do so far but I'm stranded: http://jsfiddle.net/emjkc/ var text = ''; var char = 0; text = $('textarea').val(); text = text.replace(/[&\/\\#,+()$~%.'":*?<>{}!?(\r\n|\n|\r)]/gm, ''); char = text.length;

Using Magento API v/s plain MySQL

冷暖自知 提交于 2019-12-11 07:54:39
问题 I've been tasked with connecting a phpbb forum to an existing Magento database. The way this will work is: New users register on the magento-based site and choose a forum username as well as a website username (could be the same). That way, they can use the same credentials in both places. Some registration logic needs to populate other database fields based on the user info. While authenticating an existing phpbb user, Magento's DB is used. I used Magento's API for populating the table in 1,