php forum
php mysql forum
php mysql smarty
 
Topic Options
#310968 - 07/31/06 11:30 AM ubb.dev Post_Island
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Name: ubb.dev Post_Island

Author: Ian Spence, Allen Ayres

Version: 7.0a

Info: If you want a little more info in your post_island.tpl, then you might like how we do them here. Ian wrote most of the code, I just changed it a bit to link to the last post. Download the file, rename it to post_island.tpl, upload and there you go smile


Attachments
2246-post_island.tpl.txt (133 downloads)

_________________________
- Allen wavey
- What Drives You?

Top
#310990 - 08/01/06 11:34 AM Re: ubb.dev Post_Island [Re: AllenAyres]
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Code:
<?php if(!defined('UBB_MAIN_PROGRAM')) exit; ?>
{$tbopen}
<tr>
<td class="{$style_side}tdheader">
{$name}
</td>
</tr>

{section name=item loop=$items}
<tr>
{if $smarty.section.item.iteration % 2 == 1}
<td class="{$style_side}alt-1" align="left">
{else}
<td class="{$style_side}alt-2" align="left">
{/if}
<a href="{ubb url="ubb=showflat&Number=`$items[item].TOPIC_LAST_POST_ID`&Main=`$items[item].TOPIC_ID`#Post`$items[item].TOPIC_LAST_POST_ID`"}">
{if $items[item].POST_ID != $items[item].TOPIC_LAST_POST_ID}Re: {/if}{$items[item].TOPIC_SUBJECT}</a><br />
by <a href="{ubb url="ubb=showprofile&User=`$items[item].TOPIC_LAST_POSTER_ID`"}">{$items[item].TOPIC_LAST_POSTER_NAME}</a>
<br />{$items[item].TOPIC_LAST_REPLY_TIME}
</td>
</tr>
{/section}

{$tbclose}


That's what I settled on.

Can be seen HERE.
_________________________
Code monkey like Fritos

Top
#310993 - 08/01/06 12:25 PM Re: ubb.dev Post_Island [Re: Ian Spence]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Just some color differences?
_________________________
- Allen wavey
- What Drives You?

Top
#310994 - 08/01/06 02:14 PM Re: ubb.dev Post_Island [Re: AllenAyres]
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Some html, removes the divs since the look out of place, moves time to next line
_________________________
Code monkey like Fritos

Top
#313069 - 02/04/07 06:35 PM Re: ubb.dev Post_Island [Re: AllenAyres]
Larry Miller Offline
Lurker

Registered: 01/17/07
Posts: 3
will this work with7.1b5?

Larry

Top
#313074 - 02/05/07 07:31 AM Re: ubb.dev Post_Island [Re: Larry Miller]
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I don't see any reason why it wouldn't
_________________________
Code monkey like Fritos

Top
#313076 - 02/05/07 03:42 PM Re: ubb.dev Post_Island [Re: Ian Spence]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
I run it on my 7.1b4 test site without issue.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#313648 - 03/20/07 10:09 AM Re: ubb.dev Post_Island [Re: Gizmo]
Fred Johnson Offline
Junior Member

Registered: 07/14/06
Posts: 21
Does this limit to only show categories available to the user or is there a way to limit forums/categories from being listed?

I don't see it currently in the code, but I might be blind.

Top
#313655 - 03/20/07 05:14 PM Re: ubb.dev Post_Island [Re: Fred Johnson]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
The post item is non-permission capable, which means it'll show everything; this is how the stock code works and all this mod does is change how the output lists data.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#313664 - 03/21/07 08:51 AM Re: ubb.dev Post_Island [Re: Gizmo]
Fred Johnson Offline
Junior Member

Registered: 07/14/06
Posts: 21
Yeah, that is what I figured. On my site I have some private areas, like a forum for the Board of Directors, and having these posts pop up wouldn't really be that great. I like the idea of the island, but I would need a way to lock out or pick from specific categories/forums.

Fred

Top
#313665 - 03/21/07 09:09 AM Re: ubb.dev Post_Island [Re: Fred Johnson]
Fred Johnson Offline
Junior Member

Registered: 07/14/06
Posts: 21
Okay, nevermind... I understand now, this is only for the template, you select WHERE is pulls the info from when you create the post island... Great mod, I'm using it now.

Fred

Top
#313666 - 03/21/07 11:13 AM Re: ubb.dev Post_Island [Re: Fred Johnson]
Fred Johnson Offline
Junior Member

Registered: 07/14/06
Posts: 21
One thing noticed by my users, the date/time is the local server time instead of their local time, any idea how to make it their time?

Fred

Top
#313672 - 03/21/07 05:14 PM Re: ubb.dev Post_Island [Re: Fred Johnson]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
Lol yes, it's great to note that you have to choose which forums to pull data from when creating the post island; so if you don't want a private forums data pulled? then don't select it lol...

_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top


Who's Online
0 registered (), 27 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 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
David DelMonte, nick1, Begbie, cenk, MATTO
13363 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