Previous Thread
Next Thread
Print Thread
Rate Thread
[7.x] Headerless CustomIslands #318585 05/24/2010 4:06 PM
Joined: Jan 2000
Posts: 5,786
Gizmo Offline OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,786
Name: UBB.Headerless CustomIslands

Author: Gizmo (James of VNC Web Design)

Requirements: UBB.Threads 7.x (not compatible with UBB.Threads 6.x or below)

Current Version: v0.1

If you've visited any of my client sites you'll see Custom Islands holding data placed around the forums without requiring editing of data outside of the Custom Islands (at least after modifying where you want to have the Custom Islands displayed).

Demo: I don't currently have a demo available.

Install Instructions:
You'll want to first go to "Portal Layout" area of the Control Panel and select the "External Use" link for the island you wish to use; really here all we need is 3 lines that show the "path" to files (here it's the /var/www/mysite.tld lines) for the Custom Island that we're going to be using (all code is displayed below), for this example we're going to be using the Custom Island #8.

PHP Code (For header/footer includes)

<div class="vnc_ads">
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
echo("<table width=\"100%\">");

Smarty Code (for use inside of template files)

<div class="vnc_ads" align="center">
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);

New Style Code (Insert at "Extra Properties")

.vnc_ads .tdheader {
display: none;
.vnc_ads .alt-1 {
background-color: #CCCCCC;

In the above "Code" sections (PHP or Smarty) you'll see:

These are:
$style_side=""; - Additional Style Data, Left Side of current style definitions.
$tbopen=""; - Just after table open.
$tbclose=""; - Just before table close.

You'll likely never need to change these; they are a part of the default syntax for the external use island in the UBB.

In the Style Code you'll see that we've added "vnc_ads", this is so we can change tdheader and alt-1 without having to modify any base code (it could just as easily be "my_ads" or anything other than what's being used by the base code of the UBB). The modified tdheader just hides the headerbar. The modified alt-1 just sets a background color.

What you'll do now is either edit a template and place the Smarty Code in the file at the approximate location you'd want it (say showflat.tpl above the quickreply box) and then save the template then clear your cache and your newly placed custom island is ready to go.

In our code above we've assumed you want the island centered where you place it, otherwise just remove the ' align="center"' from the "div" tag in the code. You can also add ' width="100%"' to the "table" tag above if you want it to display the full width of the area you're placing it in.

Pricing: Free

UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Sponsored Links

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:
Stable Host
Visit us on Facebook
Member Spotlight
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,786
Greg Hard 4,625
Top Posters(30 Days)
isaac 4
Today's Statistics
Currently Online 1426
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 21
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build
Responsive Width:

PHP: 5.4.45 Page Time: 0.033s Queries: 14 (0.011s) Memory: 3.1933 MB (Peak: 3.4385 MB) Data Comp: Zlib Server Time: 2019-10-21 14:48:58 UTC
Valid HTML 5 and Valid CSS