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: 25411
Loc: Texas

   ubb.dev Post_Island to Del.icio.us Add to del.icio.us
  Digg ubb.dev Post_Island Digg it
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 (126 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: 25411
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: 5119
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: 5119
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: 5119
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


Top Posters Last 30 Days
AllenAyres 13
Gizmo 10
willing 2
S7ARBVCK 2
MattUK 1
Kevin H 1
tackaberry 1
Who's Online
0 Registered (), 21 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Noob - need help, or a reality check!
by Gizmo
Yesterday at 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks