php forum
php mysql forum
php mysql smarty
 
Topic Options
#316395 - 11/29/07 12:19 PM Custom island in the middle row
mishter Offline
Newbie

Registered: 10/08/07
Posts: 10
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.


Top
#316398 - 11/29/07 01:52 PM Re: Custom island in the middle row [Re: mishter]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
In the middle column, or row? For the portal page or somewhere else?
_________________________
- Allen wavey
- What Drives You?

Top
#316399 - 11/29/07 03:18 PM Re: Custom island in the middle row [Re: AllenAyres]
mishter Offline
Newbie

Registered: 10/08/07
Posts: 10
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).

Top
#316403 - 11/29/07 07:06 PM Re: Custom island in the middle row [Re: mishter]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
There is a post in the templates forum covering this
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316404 - 11/29/07 07:54 PM Re: Custom island in the middle row [Re: Gizmo]
mishter Offline
Newbie

Registered: 10/08/07
Posts: 10
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.

Top
#316405 - 11/29/07 09:07 PM Re: Custom island in the middle row [Re: mishter]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
Odd, my post isn' where I left it...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316406 - 11/29/07 09:20 PM Re: Custom island in the middle row [Re: Gizmo]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
follow this it covers placing a content island into the center section of your forum.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316412 - 11/30/07 06:29 AM Re: Custom island in the middle row [Re: Gizmo]
mishter Offline
Newbie

Registered: 10/08/07
Posts: 10
Great, I'll give it a try. Thanks!

Top
#316437 - 12/04/07 04:26 PM Re: Custom island in the middle row [Re: mishter]
mishter Offline
Newbie

Registered: 10/08/07
Posts: 10
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!

Top
#316438 - 12/04/07 04:42 PM Re: Custom island in the middle row [Re: mishter]
sirdude Moderator Offline
Enthusiast

Registered: 11/08/03
Posts: 442
Loc: SoCal
1. yes
2. Who's online
_________________________

Top
#316441 - 12/04/07 05:25 PM Re: Custom island in the middle row [Re: sirdude]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
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.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316442 - 12/04/07 07:32 PM Re: Custom island in the middle row [Re: Gizmo]
mishter Offline
Newbie

Registered: 10/08/07
Posts: 10
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?


Edited by Gizmo (12/04/07 08:30 PM)
Edit Reason: Added [code] tags.

Top
#316443 - 12/04/07 08:31 PM Re: Custom island in the middle row [Re: mishter]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
You can't use PHP tags in smarty, instead change your <?php to {php} and your ?> to {/php}
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316447 - 12/05/07 07:28 PM Re: Custom island in the middle row [Re: Gizmo]
mishter Offline
Newbie

Registered: 10/08/07
Posts: 10
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?

Top
#316457 - 12/11/07 07:38 PM Re: Custom island in the middle row [Re: mishter]
mishter Offline
Newbie

Registered: 10/08/07
Posts: 10
Still trying to do this, but no luck. Any new ideas? Thanks in advance.

Top
#316458 - 12/12/07 10:23 AM Re: Custom island in the middle row [Re: mishter]
Nightcrawler Offline
User

Registered: 12/17/03
Posts: 47
Loc: San Diego
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.

Top
#316459 - 12/12/07 06:35 PM Re: Custom island in the middle row [Re: Nightcrawler]
mishter Offline
Newbie

Registered: 10/08/07
Posts: 10
Thanks! That did it. I appreciate the help from all.

Top
#316460 - 12/12/07 08:02 PM Re: Custom island in the middle row [Re: mishter]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
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
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#317506 - 08/12/08 05:24 PM Re: Custom island in the middle row [Re: Gizmo]
Kevin H Offline
Lurker

Registered: 09/14/03
Posts: 1
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?

Top


Moderator:  sirdude 
Who's Online
0 registered (), 18 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks