UBB.Dev
Posted By: mishter Custom island in the middle row - 11/29/2007 8:19 PM
This is probably a simple newbie question, but how can I make a custom island in the middle row for UBB.Threads? I want to place a chart, or graphic, in the middle between a couple of category islands, but cannot seem to figure out how.

Posted By: AllenAyres Re: Custom island in the middle row - 11/29/2007 9:52 PM
In the middle column, or row? For the portal page or somewhere else?
Posted By: mishter Re: Custom island in the middle row - 11/29/2007 11:18 PM
Sorry, I meant in the middle COLUMN. I would use this on either the portal page, or on the main page for non-logged in users (i.e. forum list).
Posted By: Gizmo Re: Custom island in the middle row - 11/30/2007 3:06 AM
There is a post in the templates forum covering this
Posted By: mishter Re: Custom island in the middle row - 11/30/2007 3:54 AM
Gizmo,

I read through the template areas, and I didn't see the post that you mention. It could be my lack of understanding, but which posts mentions how to put a custom island in the middle column?

Thanks.
Posted By: Gizmo Re: Custom island in the middle row - 11/30/2007 5:07 AM
Odd, my post isn' where I left it...
Posted By: Gizmo Re: Custom island in the middle row - 11/30/2007 5:20 AM
follow this it covers placing a content island into the center section of your forum.
Posted By: mishter Re: Custom island in the middle row - 11/30/2007 2:29 PM
Great, I'll give it a try. Thanks!
Posted By: mishter Re: Custom island in the middle row - 12/05/2007 12:26 AM
Gizmo,

Can't seem to make this work, but I certainly can be doing something wrong. Couple of questions:

1. Does this work for v7.2.2 of UBB.Threads?
2. What is "WOL"?

Thx!
Posted By: sirdude Re: Custom island in the middle row - 12/05/2007 12:42 AM
1. yes
2. Who's online
Posted By: Gizmo Re: Custom island in the middle row - 12/05/2007 1:25 AM
As SD said, it will work with any version of threads (as the code you tae from the external link will be from your version) and WOL is Who's Online.
Posted By: mishter Re: Custom island in the middle row - 12/05/2007 3:32 AM
I followed the example that Gizmo gave me, no luck. I got the external use paths from the portal layout, and put them in the crfm.tpl file after the "{if $introtitle}" line, but don't see the Who's Online (just trying this for an example.

Here's an excerpt (the first 30 lines or so) of the cfrm.tpl file with the additional code:

Code
{* Script Version 7.2.2 *}


{if $introtitle}
{$tbopen}
<tr>
<td class="tdheader">
{$introtitle}
<?php
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
echo "<table width=\"100%\">";
include("/home/content/p/e/n/pennyprofilers/html/forum/languages/english/portal_islands.php");
include("/home/content/p/e/n/pennyprofilers/html/forum/languages/english/generic.php");
include("/home/content/p/e/n/pennyprofilers/html/forum/cache/online_now.php");
echo "</table>";
?>
</td>
</tr>
<tr>
<td class="alt-1">
{$introbody}
</td>
</tr>
{$tbclose}
{/if}

{section name="cats" loop=$catrow}
{$tbopen}
<thead>

What am I doing incorrectly?
Posted By: Gizmo Re: Custom island in the middle row - 12/05/2007 4:31 AM
You can't use PHP tags in smarty, instead change your to {/php}
Posted By: mishter Re: Custom island in the middle row - 12/06/2007 3:28 AM
Thanks, makes sense. However, I tried this and it didn't seem to change anything, i.e., the WoL didn't appear at the top of the forum list as I would expect. Here's the current code:

Code

{* Script Version 7.2.2 *}


{if $introtitle}
{php}
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
echo "<table width=\"100%\">";
include("/home/content/p/e/n/pennyprofilers/html/forum/languages/english/portal_islands.php");
include("/home/content/p/e/n/pennyprofilers/html/forum/languages/english/generic.php");
include("/home/content/p/e/n/pennyprofilers/html/forum/cache/online_now.php");
echo "</table>";
{/php}
{$tbopen}
<tr>
<td class="tdheader">
{$introtitle}
</td>
</tr>
<tr>
<td class="alt-1">
{$introbody}
</td>
</tr>
{$tbclose}
{/if}

{section name="cats" loop=$catrow}
{$tbopen}

Anything else I'm missing?
Posted By: mishter Re: Custom island in the middle row - 12/12/2007 3:38 AM
Still trying to do this, but no luck. Any new ideas? Thanks in advance.
Posted By: Nightcrawler Re: Custom island in the middle row - 12/12/2007 6:23 PM
Move it to this -

Code

{* Script Version 7.2.2 *}


{if $introtitle}
{$tbopen}
<tr>
<td class="tdheader">
{$introtitle}
</td>
</tr>
<tr>
<td class="alt-1">
{$introbody}
</td>
</tr>
{$tbclose}
{/if}

{php}
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
echo "<table width=\"100%\">";
include("/home/content/p/e/n/pennyprofilers/html/forum/languages/english/portal_islands.php");
include("/home/content/p/e/n/pennyprofilers/html/forum/languages/english/generic.php");
include("/home/content/p/e/n/pennyprofilers/html/forum/cache/online_now.php");
echo "</table>";
{/php}

{section name="cats" loop=$catrow}
{$tbopen}

That's how mine works.
Posted By: mishter Re: Custom island in the middle row - 12/13/2007 2:35 AM
Thanks! That did it. I appreciate the help from all.
Posted By: Gizmo Re: Custom island in the middle row - 12/13/2007 4:02 AM
Sorry for not getting around to posting; basically what was happening was that you where saying for the code to only apply when the intro was enabled.

Thanks to Night for posting a fix for mishter smile
Posted By: Kevin H Re: Custom island in the middle row - 08/13/2008 12:24 AM
I used your code to place addon chat in a middle island, it worked like a charm except anytime my page refreshes it logs me out of addon chat.

any ideas on what causes that?
Posted By: Dunny Re: Custom island in the middle row - 01/21/2009 4:21 PM
Would this work in 7.4.2 (or 7.4.1) I have tried it several ways now with a custom island and it didn't work at all. EDIT got it to work, but lost my whole right sidebar. LOL what am I doing wrong should I set to be say 80% instead so that it doesn't take out the sidebars?
Dunny
Posted By: Dunny Re: Custom island in the middle row - 01/23/2009 7:47 AM
Oh it works smile That is why you don't let beginners play with code tipsy.

Anyway, it works like a charm! Thanks
Posted By: AllenAyres Re: Custom island in the middle row - 01/25/2009 5:59 AM
You're welcome crazy
© UBB.Developers