Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
In UBB.Threads 7, a /scripts/sample.inc.php file is provided to help you create your own custom pages as needed.

For example, you can duplicate the /scripts/sample.inc.php file to /scripts/mypage.inc.php Then create a /templates/default/mypage.tpl template file with the HTML for your page.

Then visiting ubbthreads.php?ubb=mypage will load that page.

But if you need to have this page appear outside of your forum directory, you can create a PHP script elsewhere on your site to load this page from within UBBThreads. Here's how.

For example create a "mypage.php" script elsewhere on your site which looks like this:

Code

<?php
// Generic UBBThreads wrapper
// This allows you to access a UBBThreads 7 script from outside
// The UBBThreads directory.
//
// Instructions: create your sample.inc.php script and sample.tmp file
// (follow the example Groupee provided) you can rename as needed if you
// need more pages. Then create this script wherever you wish on your server.
// Edit the variable and full path as needed.

// Set this variable to whatever scriptname.inc.php file you have included in /scripts
$_REQUEST['ubb'] = "mypage";

// Set the full path to your ubbthreads.php file
include("/home/threads/public_html/ubb7/ubbthreads.php");
?>


You will need to edit the variable to match the name of the thread script and template you created above, and you'll also need to edit the full path to your UBB.Threads directory.

Thanks to Allen for requesting this.

Sponsored Links
Entire Thread
Subject Posted By Posted
[7.x] Generic Page Outside of forum directory JoshPet 01/15/2007 6:58 AM
Re: [7.0.x] Generic Page Outside of forum directory Ian_W 01/15/2007 2:38 PM
Re: [7.0.x] Generic Page Outside of forum director Gizmo 01/15/2007 2:57 PM
Re: [7.0.x] Generic Page Outside of forum director AllenAyres 01/15/2007 3:57 PM
Re: [7.0.x] Generic Page Outside of forum director Stephen G 01/15/2007 5:26 PM
Re: [7.0.x] Generic Page Outside of forum director AllenAyres 01/15/2007 5:43 PM
Re: [7.0.x] Generic Page Outside of forum director AllenAyres 01/15/2007 5:47 PM
Re: [7.0.x] Generic Page Outside of forum director Stephen G 01/15/2007 5:50 PM
Re: [7.0.x] Generic Page Outside of forum director Gizmo 01/16/2007 3:01 AM
Re: [7.0.x] Generic Page Outside of forum director Ian_W 01/16/2007 5:42 PM
Re: [7.0.x] Generic Page Outside of forum director Ian_W 01/16/2007 6:59 PM
Re: [7.0.x] Generic Page Outside of forum director AllenAyres 02/13/2007 7:26 PM
Re: [7.0.x] Generic Page Outside of forum director JoshPet 02/14/2007 4:25 AM
Re: [7.0.x] Generic Page Outside of forum director Allusivekudos 03/06/2007 4:58 AM
Re: [7.x] Generic Page Outside of forum directory Calpy 04/02/2007 3:35 AM
Re: [7.x] Generic Page Outside of forum directory Gizmo 04/02/2007 3:45 AM
Re: [7.x] Generic Page Outside of forum directory Calpy 04/07/2007 1:38 AM
Re: [7.x] Generic Page Outside of forum directory Gizmo 04/07/2007 4:57 AM
Re: [7.x] Generic Page Outside of forum directory Calpy 04/24/2007 12:29 AM
Re: [7.x] Generic Page Outside of forum directory Ian_W 06/12/2007 11:38 PM
Re: [7.x] Generic Page Outside of forum directory Stephen G 07/06/2007 8:28 PM
Re: [7.x] Generic Page Outside of forum directory AllenAyres 07/08/2007 6:24 AM
Re: [7.x] Generic Page Outside of forum directory Stephen G 07/08/2007 11:14 AM
Re: [7.x] Generic Page Outside of forum directory swebs 07/30/2007 6:11 AM
Re: [7.x] Generic Page Outside of forum directory Mark_S 08/03/2007 2:58 PM
Re: [7.x] Generic Page Outside of forum directory JonMcG 08/04/2007 3:13 AM
Re: [7.x] Generic Page Outside of forum directory Ian_W 08/04/2007 9:26 AM
Re: [7.x] Generic Page Outside of forum directory JonMcG 08/04/2007 9:43 PM
Re: [7.x] Generic Page Outside of forum directory Ian_W 08/04/2007 10:15 PM
Re: [7.x] Generic Page Outside of forum directory Myke 10/24/2007 2:01 PM
Re: [7.x] Generic Page Outside of forum directory AllenAyres 10/24/2007 8:31 PM
Re: [7.x] Generic Page Outside of forum directory Claus1 08/30/2008 10:34 PM
Re: [7.x] Generic Page Outside of forum directory Gizmo 08/31/2008 12:43 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 3408
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 2
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)