Integration with the site

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
vkw81
Registered User
Posts: 1
Joined: Fri Jul 31, 2020 9:28 am

Integration with the site

Post by vkw81 »

Hello. There are users on my site. The site is written in PCP. How can I integrate them into the forum?
Last edited by HiFiKabin on Fri Jul 31, 2020 12:49 pm, edited 1 time in total.
Reason: Moved to Custom Coding
rxu
Extensions Development Team
Posts: 3363
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: Integration with the site

Post by rxu »

What meaning do you put into the "integrate" term?
User avatar
janus_zonstraal
Registered User
Posts: 4678
Joined: Sat Aug 30, 2014 1:30 pm

Re: Integration with the site

Post by janus_zonstraal »

PCP is a drug I think :roll:
Sorry! My English is bat ;) !!!
User avatar
orynider
Registered User
Posts: 267
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin Bodin
Contact:

Re: Integration with the site

Post by orynider »

Something like this?

Code: Select all

<?php

$root_path = './';
$phpbb_root_path = $root_path . '/phpBB/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);

	if (isset($_GET['page']))
	{
		//A CMS page?
		include $root_path . 'index.' . $phpEx;
	}
	elseif (file_exists(realpath($root_path . 'welcome' . '.php')))
	{
		if (file_exists(realpath($phpbb_root_path . 'common.' . $phpEx)))
		{
			define('IN_PHPBB', 1);
			include $phpbb_root_path . 'common.' . $phpEx;
		}
		//A page written in PHP?
		include $root_path . 'welcome' . '.php';
	}
	
?>
rxu
Extensions Development Team
Posts: 3363
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: Integration with the site

Post by rxu »

Post Reply

Return to “phpBB Custom Coding”