Previous Thread
Next Thread
Print Thread
Rate Thread
#310968 07/31/2006 11:30 AM
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
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 (860 Bytes, 225 downloads)


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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.

Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
Just some color differences?


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Some html, removes the divs since the look out of place, moves time to next line

Joined: Jan 2007
Posts: 3
Lurker
Lurker
Offline
Joined: Jan 2007
Posts: 3
will this work with7.1b5?

Larry

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I don't see any reason why it wouldn't

Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
I run it on my 7.1b4 test site without issue.


UBBDev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.threads: My UBB Themes, My UBB Scripts
Gizmo #313648 03/20/2007 10:09 AM
Joined: Jul 2006
Posts: 21
Junior Member
Junior Member
Offline
Joined: Jul 2006
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.

Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
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.


UBBDev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.threads: My UBB Themes, My UBB Scripts
Joined: Jul 2006
Posts: 21
Junior Member
Junior Member
Offline
Joined: Jul 2006
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

Sponsored Links
Joined: Jul 2006
Posts: 21
Junior Member
Junior Member
Offline
Joined: Jul 2006
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

Joined: Jul 2006
Posts: 21
Junior Member
Junior Member
Offline
Joined: Jul 2006
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

Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
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...



UBBDev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.threads: My UBB Themes, My UBB Scripts

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 3296
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 6
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)