Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (Ruben), 43 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 03/24/10
Posts: 8
Top Posters (30 Days)
Ruben 50
Gizmo 24
DennyP 24
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 2 of 2 < 1 2
Topic Options
#228544 - 08/22/09 09:09 PM Re: Portal Island External Use [Re: Ruben]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Currently wrappers aren't handled, so you'd need to manually insert it. So, the default code for external islands looks something like:

Php Code:


<?php
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
echo "<table width=\"100%\">";
include("/path/public_html/forums/languages/english/portal_islands.php");
include("/path/public_html/forums/languages/english/generic.php");
include("/path/ubbcentral.com/public_html/forums/cache/search.php");
echo "</table>";
?>




For example, here I'd have to do something like (basically copying the opening closing table wrappers):

Php Code:


<?php
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
echo <<<EOF
<table style="margin-bottom: 5px;" border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="3"><img src="http://www.ubbcentral.com/forums/styles/images/drop_shadow_wrapper/top_left.gif" width="3" height="2" /></td>
<td width="100%" style="background-image: url(http://www.ubbcentral.com/forums/styles/images/drop_shadow_wrapper/top_middle.gif); background-repeat: repeat-x;"><img src="http://www.ubbcentral.com/forums/styles/images/drop_shadow_wrapper/top_middle.gif" width="3" height="2" /></td>
<td width="3"><img src="http://www.ubbcentral.com/forums/styles/images/drop_shadow_wrapper/top_right.gif" width="3" height="2" /></td>
</tr>
<tr>
<td valign="top" style="background-image: url(http://www.ubbcentral.com/forums/styles/images/drop_shadow_wrapper/left_side.gif); background-repeat: repeat-y;"><img src="http://www.ubbcentral.com/forums/styles/images/drop_shadow_wrapper/left_side.gif" width="3" height="10" /></td>
<td><table width="100%" cellpadding="0" cellspacing="0" class="t_outer">
<tr>
<td><table width="100%" cellpadding="0" cellspacing="1" class="t_inner">
EOF;

include("/path/public_html/forums/languages/english/portal_islands.php");
include("/path/public_html/forums/languages/english/generic.php");
include("/path/ubbcentral.com/public_html/forums/cache/search.php");

echo <<<EOF
</table>
</td>
</tr>
</table>
?>




So as you can see, quite a bit of manual work is needed to duplicate the exact forum style. In version 8, hopefully we'll clean this up and make it easier to duplicate.


Edited by Rick (08/22/09 09:09 PM)
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Page 2 of 2 < 1 2



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image