bookmark.php Favorites Bookmark this page to Reddit Share this page on Twitter Bookmark this page to Delicious Bookmark this page to Facebook Bookmark this page to StumbleUpon More bookmarks

Shopping


Community




Discuss about website design tools and programs.
 April 20 2010

How to enable PHP parsing in your phpBB3 template


kwok

Exclusive member

User Avatar


Reputation:
Medals: 1 
March 2010 (1)

 Joined: January 2010
 Country: United States (us)
 Location: WWW
 Posts: 144
Member Blog: View Blog (0)
Invitations sent: 0
Successful invitations: 0

F$: 2,465,871.00
Bank: 1,000.00
Instant Play Lottery Ticket Username - Black Post Count +100 Beer Gold Medal Silver Medal Gold Star Silver Star




You will learn how to include a PHP file in your phpBB3 template(s).

Step1 Enable the use of PHP and PHPINCLUDE in your templates.
In Administration Control Panel: General Tab -> Server Configuration Category -> Security settings
On the next page, select "Allow php in templates" to "Yes".

Step2 Include PHP or INCLUDEPHP in your template files. For example,
Code: Select all
<!-- INCLUDEPHP file.php -->

Alternatively, this code should work as well:
Code: Select all
<!-- PHP --> include("file.php"); <!-- ENDPHP -->

Note that the file path is relative to the templates directory.
Last edited by kwok on April 20 2010, edited 2 times in total.
 

Display Options (This thread contains 1 post) Currently Active Users Viewing This Thread
Posted Time Order By Sort By

No registered users and 1 guest

 
 Posting Rules

You cannot post new threads in this forum
You cannot reply to threads in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum





cron